Web Inspector: NetworkPanel search failed if the matched sting is in the query part...
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-07-08  Ilya Tikhonovsky  <loislo@chromium.org>
2
3         Web Inspector: NetworkPanel search failed if the matched sting is in the query part of url
4         https://bugs.webkit.org/show_bug.cgi?id=64167
5
6         Reviewed by Yury Semikhatsky.
7
8         * inspector/front-end/NetworkPanel.js:
9         (WebInspector.NetworkPanel.prototype._matchResource):
10         (WebInspector.NetworkPanel.prototype._highlightNthMatchedResource):
11         (WebInspector.NetworkDataGridNode.prototype._refreshNameCell):
12         * inspector/front-end/Resource.js:
13         (WebInspector.Resource.prototype.get folder):
14
15 2011-07-08  Benjamin Poulain  <benjamin@webkit.org>
16
17         [Qt] Enable HTTP Pipelining by default
18         https://bugs.webkit.org/show_bug.cgi?id=64169
19
20         Reviewed by Andreas Kling.
21
22         QNetworkAccessManager disables HTTP pipelining by default. We enable it by
23         setting an attribute on the request.
24
25         * platform/network/qt/ResourceRequestQt.cpp:
26         (WebCore::ResourceRequest::toNetworkRequest):
27
28 2011-07-08  Alexander Pavlov  <apavlov@chromium.org>
29
30         Web Inspector: CSS inspector gets confused about specificity of !important properties
31         https://bugs.webkit.org/show_bug.cgi?id=64074
32
33         Reviewed by Yury Semikhatsky.
34
35         * inspector/front-end/StylesSidebarPane.js:
36         (WebInspector.StylesSidebarPane.prototype._markUsedProperties):
37
38 2011-07-08  Alexander Pavlov  <apavlov@chromium.org>
39
40         [Chromium] Unreviewed, clang build fix.
41
42         * inspector/InspectorStyleTextEditor.h:
43
44 2011-07-08  Pavel Feldman  <pfeldman@google.com>
45
46         Web Inspector: add support for drag'n'drop of non-elements (comments, text, etc.)
47         https://bugs.webkit.org/show_bug.cgi?id=64163
48
49         Reviewed by Yury Semikhatsky.
50
51         * inspector/Inspector.json:
52         * inspector/InspectorDOMAgent.cpp:
53         (WebCore::InspectorDOMAgent::moveTo):
54         * inspector/front-end/ElementsTreeOutline.js:
55         (WebInspector.ElementsTreeOutline.prototype._isValidDragSourceOrTarget):
56
57 2011-07-08  Andrey Kosyakov  <caseq@chromium.org>
58
59         Web Inspector: secure access to extensions API
60         https://bugs.webkit.org/show_bug.cgi?id=64080
61
62         Reviewed by Pavel Feldman.
63
64         * inspector/front-end/ExtensionAPI.js:
65         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
66         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setPage):
67         * inspector/front-end/ExtensionPanel.js:
68         (WebInspector.ExtensionPanel):
69         * inspector/front-end/ExtensionServer.js:
70         (WebInspector.ExtensionServer):
71         (WebInspector.ExtensionServer.prototype._onCreatePanel):
72         (WebInspector.ExtensionServer.prototype._onSetSidebarPage):
73         (WebInspector.ExtensionServer.prototype._addExtensions):
74         (WebInspector.ExtensionServer.prototype._onWindowMessage):
75         (WebInspector.ExtensionServer.prototype._registerSubscriptionHandler):
76         (WebInspector.ExtensionServer.prototype._expandResourcePath):
77         (WebInspector.ExtensionServer.prototype._normalizePath):
78
79 2011-07-08  Adam Barth  <abarth@webkit.org>
80
81         Unreviewed, rolling out r90615.
82         http://trac.webkit.org/changeset/90615
83         https://bugs.webkit.org/show_bug.cgi?id=64158
84
85         broke inspector/extensions/extensions.html (Requested by caseq
86         on #webkit).
87
88         * inspector/front-end/ExtensionAPI.js:
89         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
90         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setPage):
91         (WebInspector.injectedExtensionAPI.expandURL):
92         * inspector/front-end/ExtensionPanel.js:
93         (WebInspector.ExtensionPanel):
94         * inspector/front-end/ExtensionServer.js:
95         (WebInspector.ExtensionServer):
96         (WebInspector.ExtensionServer.prototype._onCreatePanel):
97         (WebInspector.ExtensionServer.prototype._onSetSidebarPage):
98         (WebInspector.ExtensionServer.prototype._addExtensions):
99         (WebInspector.ExtensionServer.prototype._onWindowMessage):
100         (WebInspector.ExtensionServer.prototype._registerSubscriptionHandler):
101
102 2011-07-07  Alexander Pavlov  <apavlov@chromium.org>
103
104         Web Inspector: Adding CSS properties results in messy style rules
105         https://bugs.webkit.org/show_bug.cgi?id=63622
106
107         Reviewed by Pavel Feldman.
108
109         Test: inspector/styles/styles-formatting.html
110
111         * CMakeLists.txt:
112         * GNUmakefile.list.am:
113         * WebCore.gypi:
114         * WebCore.pro:
115         * WebCore.vcproj/WebCore.vcproj:
116         * WebCore.xcodeproj/project.pbxproj:
117         * css/CSSPropertySourceData.cpp:
118         (WebCore::SourceRange::length):
119         * css/CSSPropertySourceData.h:
120         * inspector/InspectorStyleSheet.cpp:
121         (WebCore::InspectorStyle::InspectorStyle):
122         (WebCore::InspectorStyle::setPropertyText):
123         (WebCore::InspectorStyle::toggleProperty):
124         (WebCore::InspectorStyle::applyStyleText):
125         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters):
126         * inspector/InspectorStyleSheet.h:
127         * inspector/InspectorStyleTextEditor.cpp: Added.
128         (WebCore::InspectorStyleTextEditor::InspectorStyleTextEditor):
129         (WebCore::InspectorStyleTextEditor::insertProperty):
130         (WebCore::InspectorStyleTextEditor::replaceProperty):
131         (WebCore::InspectorStyleTextEditor::removeProperty):
132         (WebCore::InspectorStyleTextEditor::enableProperty):
133         (WebCore::InspectorStyleTextEditor::disableProperty):
134         (WebCore::InspectorStyleTextEditor::disabledIndexByOrdinal):
135         (WebCore::InspectorStyleTextEditor::shiftDisabledProperties):
136         (WebCore::InspectorStyleTextEditor::internalReplaceProperty):
137         * inspector/InspectorStyleTextEditor.h: Added.
138         (WebCore::InspectorStyleTextEditor::styleText):
139
140 2011-07-08  Alexander Pavlov  <apavlov@chromium.org>
141
142         Web Inspector: Quotes are rendered as &quot; in the DOM tree
143         https://bugs.webkit.org/show_bug.cgi?id=64154
144
145         Reviewed by Yury Semikhatsky.
146
147         Since we currently rely on setting textContent rather than innerHTML for the DOM tree elements,
148         escapeHTML() calls unnecessarily HTML-escape certain characters in the DOM tree contents.
149
150         * inspector/front-end/ElementsTreeOutline.js:
151         (WebInspector.ElementsTreeElement.prototype._buildAttributeDOM):
152         ():
153
154 2011-07-08  Vsevolod Vlasov  <vsevik@chromium.org>
155
156         Web Inspector: Remove unused code from InspectorAgent.h.
157         https://bugs.webkit.org/show_bug.cgi?id=64120
158
159         Reviewed by Joseph Pecoraro.
160
161         * inspector/InspectorAgent.h:
162
163 2011-07-08  Andrey Kosyakov  <caseq@chromium.org>
164
165         Web Inspector: secure access to extensions API
166         https://bugs.webkit.org/show_bug.cgi?id=64080
167
168         Reviewed by Pavel Feldman.
169
170         * inspector/front-end/ExtensionAPI.js:
171         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
172         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setPage):
173         * inspector/front-end/ExtensionPanel.js:
174         (WebInspector.ExtensionPanel):
175         * inspector/front-end/ExtensionServer.js:
176         (WebInspector.ExtensionServer):
177         (WebInspector.ExtensionServer.prototype._onCreatePanel):
178         (WebInspector.ExtensionServer.prototype._onSetSidebarPage):
179         (WebInspector.ExtensionServer.prototype._addExtensions):
180         (WebInspector.ExtensionServer.prototype._onWindowMessage):
181         (WebInspector.ExtensionServer.prototype._registerSubscriptionHandler):
182         (WebInspector.ExtensionServer.prototype._expandResourcePath):
183         (WebInspector.ExtensionServer.prototype._normalizePath):
184
185 2011-07-08  Yury Semikhatsky  <yurys@chromium.org>
186
187         Web Inspector: typing undefined = 1 in console crashes browser
188         https://bugs.webkit.org/show_bug.cgi?id=64155
189
190         Do not access undefined value directly when producing JSON objects as undefined
191         may be overriden by the inspected page.
192
193         Reviewed by Pavel Feldman.
194
195         Test: inspector/console/console-eval-undefined-override.html
196
197         * inspector/InjectedScriptSource.js:
198         (.):
199         ():
200
201 2011-07-07  Emil A Eklund  <eae@chromium.org>
202
203         Switch HitTestResult to to new layout types
204         https://bugs.webkit.org/show_bug.cgi?id=64131
205
206         Reviewed by Eric Seidel.
207
208         No new tests, no functionality changes.
209
210         * page/MouseEventWithHitTestResults.cpp:
211         (WebCore::MouseEventWithHitTestResults::localPoint):
212         * page/MouseEventWithHitTestResults.h:
213         * rendering/HitTestResult.cpp:
214         (WebCore::HitTestResult::HitTestResult):
215         (WebCore::HitTestResult::addNodeToRectBasedTestResult):
216         (WebCore::HitTestResult::rectForPoint):
217         * rendering/HitTestResult.h:
218         (WebCore::HitTestResult::point):
219         (WebCore::HitTestResult::localPoint):
220         (WebCore::HitTestResult::setPoint):
221         (WebCore::HitTestResult::setLocalPoint):
222         (WebCore::HitTestResult::rectForPoint):
223
224 2011-07-07  Levi Weintraub  <leviw@chromium.org>
225
226         Switch remaining paint functions to new layout types
227         https://bugs.webkit.org/show_bug.cgi?id=64116
228
229         Reviewed by Eric Seidel.
230
231         Switching all functions with IntPoint paintOffsets to the new Layout types.
232
233         No new tests, no functionality changes.
234
235         * rendering/EllipsisBox.cpp:
236         (WebCore::EllipsisBox::paint):
237         (WebCore::EllipsisBox::paintSelection):
238         * rendering/EllipsisBox.h:
239         * rendering/InlineBox.cpp:
240         (WebCore::InlineBox::paint):
241         * rendering/InlineBox.h:
242         * rendering/InlineFlowBox.cpp:
243         (WebCore::InlineFlowBox::paint):
244         * rendering/InlineFlowBox.h:
245         * rendering/InlineTextBox.cpp:
246         (WebCore::InlineTextBox::paint):
247         (WebCore::InlineTextBox::paintCustomHighlight):
248         * rendering/InlineTextBox.h:
249         * rendering/LayoutTypes.h:
250         * rendering/RenderBlock.cpp:
251         (WebCore::RenderBlock::paintColumnRules):
252         (WebCore::RenderBlock::paintColumnContents):
253         (WebCore::RenderBlock::paintContents):
254         (WebCore::RenderBlock::paintChildren):
255         (WebCore::RenderBlock::paintCaret):
256         (WebCore::RenderBlock::paintObject):
257         (WebCore::RenderBlock::paintFloats):
258         (WebCore::RenderBlock::paintEllipsisBoxes):
259         (WebCore::RenderBlock::paintContinuationOutlines):
260         (WebCore::RenderBlock::paintSelection):
261         * rendering/RenderBlock.h:
262         * rendering/RenderBox.cpp:
263         (WebCore::RenderBox::paintCustomHighlight):
264         * rendering/RenderBox.h:
265         * rendering/RenderInline.cpp:
266         (WebCore::RenderInline::paintOutline):
267         (WebCore::RenderInline::paintOutlineForLine):
268         * rendering/RenderInline.h:
269         * rendering/RenderLayer.cpp:
270         (WebCore::RenderLayer::paintOverflowControls):
271         (WebCore::RenderLayer::paintScrollCorner):
272         (WebCore::RenderLayer::paintResizer):
273         * rendering/RenderLayer.h:
274         * rendering/RenderLineBoxList.cpp:
275         (WebCore::RenderLineBoxList::paint):
276         * rendering/RenderListBox.cpp:
277         (WebCore::RenderListBox::paintScrollbar):
278         (WebCore::RenderListBox::paintItemForeground):
279         (WebCore::RenderListBox::paintItemBackground):
280         * rendering/RenderListBox.h:
281         * rendering/RenderObject.cpp:
282         (WebCore::RenderObject::paintFocusRing):
283         (WebCore::RenderObject::paintOutline):
284         * rendering/RenderObject.h:
285         * rendering/RenderReplaced.cpp:
286         (WebCore::RenderReplaced::shouldPaint):
287         * rendering/RenderReplaced.h:
288         * rendering/RenderScrollbarPart.cpp:
289         (WebCore::RenderScrollbarPart::paintIntoRect):
290         * rendering/RenderScrollbarPart.h:
291         * rendering/RenderTableCell.cpp:
292         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
293         * rendering/RenderTableSection.cpp:
294         (WebCore::RenderTableSection::paintCell):
295         * rendering/RenderTableSection.h:
296         * rendering/RenderTextControl.cpp:
297         (WebCore::RenderTextControl::paintPlaceholder):
298         * rendering/RootInlineBox.cpp:
299         (WebCore::RootInlineBox::paintEllipsisBox):
300         (WebCore::RootInlineBox::paintCustomHighlight):
301         (WebCore::RootInlineBox::paint):
302         * rendering/RootInlineBox.h:
303         * rendering/mathml/RenderMathMLBlock.cpp:
304         (WebCore::RenderMathMLBlock::paint):
305         * rendering/mathml/RenderMathMLFraction.cpp:
306         (WebCore::RenderMathMLFraction::paint):
307         * rendering/mathml/RenderMathMLRoot.cpp:
308         (WebCore::RenderMathMLRoot::paint):
309         * rendering/mathml/RenderMathMLSquareRoot.cpp:
310         (WebCore::RenderMathMLSquareRoot::paint):
311
312 2011-07-07  Steve VanDeBogart  <vandebo@chromium.org>
313
314         Work around Skia PDF's lack of inverted path support.
315         https://bugs.webkit.org/show_bug.cgi?id=64032
316
317         Reviewed by James Robinson.
318
319         The trick used in http://neugierig.org/software/chromium/notes/2010/07/clipping.html
320         to support antialiased clips doesn't work when printing to Skia's PDF backend because
321         the backend does not support inverted paths. This manifests as rounded buttons not being
322         drawn when printing, tracked as Chrome bug 79519.
323         
324         However, when the output is a vector device, like PDF, we don't need antialiased clips.
325         It's up to the PDF rendering engine to do that.  So we can simply disable the antialiased
326         clip code if the output is a vector device.
327         
328         I think the fix isn't testable because it requires examining the printed output.
329
330         * platform/graphics/skia/PlatformContextSkia.cpp:
331         (WebCore::PlatformContextSkia::clipPathAntiAliased):
332
333 2011-07-07  Emil A Eklund  <eae@chromium.org>
334
335         Switch rendering tree selection code to to new layout types
336         https://bugs.webkit.org/show_bug.cgi?id=63762
337
338         Reviewed by Eric Seidel.
339
340         Switch selection getters and selection gap calculation methods over to
341         new layout abstraction.
342
343         No new tests, no functionality changes.
344
345         * rendering/InlineTextBox.cpp:
346         (WebCore::InlineTextBox::selectionTop):
347         (WebCore::InlineTextBox::selectionBottom):
348         (WebCore::InlineTextBox::selectionHeight):
349         (WebCore::InlineTextBox::isSelected):
350         * rendering/InlineTextBox.h:
351         * rendering/RenderBR.h:
352         (WebCore::RenderBR::selectionRectForRepaint):
353         * rendering/RenderBlock.cpp:
354         (WebCore::RenderBlock::selectionGapRectsForRepaint):
355         (WebCore::RenderBlock::selectionGaps):
356         (WebCore::RenderBlock::inlineSelectionGaps):
357         (WebCore::RenderBlock::blockSelectionGaps):
358         (WebCore::RenderBlock::blockSelectionGap):
359         (WebCore::RenderBlock::logicalLeftSelectionGap):
360         (WebCore::RenderBlock::logicalRightSelectionGap):
361         (WebCore::RenderBlock::logicalLeftSelectionOffset):
362         (WebCore::RenderBlock::logicalRightSelectionOffset):
363         (WebCore::RenderBlock::positionForPointWithInlineChildren):
364         (WebCore::RenderBlock::desiredColumnWidth):
365         * rendering/RenderBlock.h:
366         (WebCore::RenderBlock::selectionRectForRepaint):
367         * rendering/RenderListMarker.cpp:
368         (WebCore::RenderListMarker::selectionRectForRepaint):
369         * rendering/RenderListMarker.h:
370         * rendering/RenderObject.h:
371         (WebCore::RenderObject::selectionRect):
372         (WebCore::RenderObject::selectionRectForRepaint):
373         * rendering/RenderReplaced.cpp:
374         (WebCore::RenderReplaced::selectionRectForRepaint):
375         * rendering/RenderReplaced.h:
376         * rendering/RenderSelectionInfo.h:
377         (WebCore::RenderSelectionInfo::RenderSelectionInfo):
378         * rendering/RenderText.cpp:
379         (WebCore::RenderText::selectionRectForRepaint):
380         * rendering/RenderText.h:
381         * rendering/RootInlineBox.cpp:
382         (WebCore::RootInlineBox::selectionTop):
383         (WebCore::RootInlineBox::selectionBottom):
384         * rendering/RootInlineBox.h:
385         (WebCore::RootInlineBox::selectionHeight):
386
387 2011-07-07  Gavin Peters  <gavinp@chromium.org>
388
389         Reviewed by Alexey Proskuryakov.
390
391         fast/dom/HTMLLinkElement/link-and-subresource-test.html is flaky on chromium debug bots
392         https://bugs.webkit.org/show_bug.cgi?id=60097
393
394         The culprit was that CachedResource:stopLoading() was using *this
395         after a call to checkNotify(), which isn't kosher.  This patch
396         uses a CachedResourceHandle to keep the CachedResource alive.
397
398         The test is a very close copy of the eponymous
399         link-and-subresource-test.html, only substituting invalid
400         resources for the valid ones in that test.  The reproduction is
401         timing related, and happens much more consistantly with an invalid
402         resource for whatever reason.
403         Test: fast/dom/HTMLLinkElement/link-and-subresource-test-nonexistent.html
404
405         * loader/cache/CachedResource.cpp:
406         (WebCore::CachedResource::stopLoading):
407
408 2011-07-07  James Robinson  <jamesr@chromium.org>
409
410         Reviewed by Kenneth Russell.
411
412         Use v8::AdjustAmountOfExternalAllocatedMemory for ArrayBuffers
413         https://bugs.webkit.org/show_bug.cgi?id=42912
414
415         This calls v8's AdjustAmountOfExternalAllocatedMemory when ArrayBuffers are allocated/deallocated so that V8's
416         garbage collection heuristics can account for the memory held by these objects.  On the new test page, this
417         reduces the peak memory use from 5BG+ (or a crash in 32-bit systems) to <300MB.
418
419         Test: WebCore/manual-tests/array-buffer-memory.html
420
421         * html/canvas/ArrayBuffer.cpp:
422         (WebCore::ArrayBuffer::~ArrayBuffer):
423         (WebCore::ArrayBuffer::tryAllocate):
424
425 2011-07-07  Ryosuke Niwa  <rniwa@webkit.org>
426
427         Move all code related to cachedSelection to HTMLTextFormControlElement
428         https://bugs.webkit.org/show_bug.cgi?id=64118
429
430         Reviewed by Alexey Proskuryakov.
431
432         Moved m_cachedSelectionStart and m_cachedSelectionEnd from HTMLInputElement
433         and HTMLTextAreaElement to HTMLTextFormControlElement
434
435         Also removed cached selection related functions from RenderTextControl,
436         RenderTextControlSingleLine, and RenderTextControlMultiLine because they were
437         merely providing wrapper functions to enable polymorphism between
438         input and textarea elements and their WML equivalents.
439
440         * editing/FrameSelection.cpp:
441         (WebCore::FrameSelection::notifyRendererOfSelectionChange): Calls HTMLTextFormControlElement's
442         selectionChanged instead of RenderTextControl's.
443         * html/HTMLFormControlElement.cpp:
444         (WebCore::HTMLTextFormControlElement::HTMLTextFormControlElement): Initialize
445         m_cachedSelectionStart and m_cachedSelectionEnd.
446         (WebCore::HTMLTextFormControlElement::selectionStart):
447         (WebCore::HTMLTextFormControlElement::selectionEnd):
448         (WebCore::HTMLTextFormControlElement::selection):
449         (WebCore::HTMLTextFormControlElement::restoreCachedSelection): Added.
450         (WebCore::HTMLTextFormControlElement::selectionChanged): Extracted from
451         RenderTextControl::selectionChanged.
452         * html/HTMLFormControlElement.h:
453         (WebCore::HTMLTextFormControlElement::cacheSelection): Extracted from HTMLInputElement
454         and HTMLTextAreaElement.
455         (WebCore::HTMLTextFormControlElement::hasCachedSelectionStart): Added.
456         (WebCore::HTMLTextFormControlElement::hasCachedSelectionEnd): Added.
457         * html/HTMLInputElement.cpp:
458         (WebCore::HTMLInputElement::HTMLInputElement):
459         (WebCore::HTMLInputElement::updateFocusAppearance):
460         * html/HTMLInputElement.h:
461         * html/HTMLTextAreaElement.cpp:
462         (WebCore::HTMLTextAreaElement::HTMLTextAreaElement):
463         (WebCore::HTMLTextAreaElement::updateFocusAppearance):
464         * html/HTMLTextAreaElement.h:
465         (WebCore::HTMLTextAreaElement::isEmptyValue):
466         * rendering/RenderTextControl.cpp:
467         (WebCore::setSelectionRange):
468         * rendering/RenderTextControl.h:
469         * rendering/RenderTextControlMultiLine.cpp:
470         * rendering/RenderTextControlMultiLine.h:
471         * rendering/RenderTextControlSingleLine.cpp:
472         * rendering/RenderTextControlSingleLine.h:
473
474 2011-07-07  Emil A Eklund  <eae@chromium.org>
475
476         Switch addFocusRingRects to to new layout types
477         https://bugs.webkit.org/show_bug.cgi?id=64114
478
479         Reviewed by Eric Seidel.
480
481         No new tests, no functionality changes.
482
483         * rendering/LayoutTypes.h:
484         (WebCore::flooredLayoutPoint):
485         * rendering/RenderBlock.cpp:
486         (WebCore::RenderBlock::addFocusRingRects):
487         * rendering/RenderBlock.h:
488         * rendering/RenderBox.cpp:
489         (WebCore::RenderBox::addFocusRingRects):
490         * rendering/RenderBox.h:
491         * rendering/RenderInline.cpp:
492         (WebCore::RenderInline::addFocusRingRects):
493         * rendering/RenderInline.h:
494         * rendering/RenderListBox.cpp:
495         (WebCore::RenderListBox::addFocusRingRects):
496         * rendering/RenderListBox.h:
497         * rendering/RenderObject.h:
498         (WebCore::RenderObject::addFocusRingRects):
499         * rendering/RenderTextControl.cpp:
500         (WebCore::RenderTextControl::addFocusRingRects):
501         * rendering/RenderTextControl.h:
502         * rendering/svg/RenderSVGContainer.cpp:
503         (WebCore::RenderSVGContainer::addFocusRingRects):
504         * rendering/svg/RenderSVGContainer.h:
505         * rendering/svg/RenderSVGImage.cpp:
506         (WebCore::RenderSVGImage::addFocusRingRects):
507         * rendering/svg/RenderSVGImage.h:
508         * rendering/svg/RenderSVGPath.cpp:
509         (WebCore::RenderSVGPath::addFocusRingRects):
510         * rendering/svg/RenderSVGPath.h:
511
512 2011-07-06  Adrienne Walker  <enne@google.com>
513
514         [chromium] Reduce compositor texture memory by skipping layers and clipping surfaces
515         https://bugs.webkit.org/show_bug.cgi?id=64052
516
517         Reviewed by James Robinson.
518
519         Layers and surfaces that are entirely transparent are now skipped.
520         Parent scissor rects are now applied to the content rect of surfaces
521         so that offscreen surfaces can be skipped.
522
523         Landing this for vangelis@chromium.org.
524
525         Covered by existing tests.
526
527         * platform/graphics/chromium/LayerRendererChromium.cpp:
528         (WebCore::calculateVisibleRect):
529         (WebCore::calculateVisibleLayerRect):
530         (WebCore::LayerRendererChromium::paintLayerContents):
531         (WebCore::LayerRendererChromium::drawLayers):
532         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
533         (WebCore::LayerRendererChromium::updateCompositorResources):
534         (WebCore::LayerRendererChromium::drawLayer):
535         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
536         (WebCore::RenderSurfaceChromium::RenderSurfaceChromium):
537
538 2011-07-07  Adam Barth  <abarth@webkit.org>
539
540         Unreviewed, rolling out r90581.
541         http://trac.webkit.org/changeset/90581
542         https://bugs.webkit.org/show_bug.cgi?id=64124
543
544         Broke a bunch of inspector tests (Requested by ojan on
545         #webkit).
546
547         * inspector/front-end/ExtensionAPI.js:
548         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
549         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setPage):
550         (WebInspector.injectedExtensionAPI.expandURL):
551         * inspector/front-end/ExtensionPanel.js:
552         (WebInspector.ExtensionPanel):
553         * inspector/front-end/ExtensionServer.js:
554         (WebInspector.ExtensionServer):
555         (WebInspector.ExtensionServer.prototype._onCreatePanel):
556         (WebInspector.ExtensionServer.prototype._onSetSidebarPage):
557         (WebInspector.ExtensionServer.prototype._addExtensions):
558         (WebInspector.ExtensionServer.prototype._onWindowMessage):
559         (WebInspector.ExtensionServer.prototype._registerSubscriptionHandler):
560
561 2011-07-07  Adrienne Walker  <enne@google.com>
562
563         [chromium] Fix crash when compositing gets disabled mid-paint
564         https://bugs.webkit.org/show_bug.cgi?id=64119
565
566         Reviewed by James Robinson.
567
568         WebKit paint can disable compositing and call setRootLayer(0). Adding
569         a check for this in drawLayers prevents a null pointer deref.
570
571         * platform/graphics/chromium/LayerRendererChromium.cpp:
572         (WebCore::LayerRendererChromium::drawLayers):
573
574 2011-07-07  Dirk Schulze  <krit@webkit.org>
575
576         SVGAnimateTransform does not support calcMode=discrete
577         https://bugs.webkit.org/show_bug.cgi?id=63914
578
579         Reviewed by Rob Buis.
580
581         CalcMode discrete specifies that the animation function will jump from one value to the next without any interpolation.
582         Implemented calcMode discrete by checking current progress of animation. If we are in the first half of the animation,
583         we use the start value of the aniamtion, end value for the second half of the animation. The key time at 50% is used on
584         all other animations as well as on other SVG viewers.
585
586         Added a manual test. DRT crashes on an automated test with the SVG animation API. Opened a new bug report: 64104.
587
588         * manual-tests/svg-animateTransform-calcMode-discrete.svg: Added.
589         * svg/SVGAnimateTransformElement.cpp:
590         (WebCore::SVGAnimateTransformElement::calculateAnimatedValue):
591
592 2011-07-07  Dirk Schulze  <krit@webkit.org>
593
594         Reviewed by Rob Buis.
595
596         SVGAnimatedPath needs fallback for 'by' animation
597         https://bugs.webkit.org/show_bug.cgi?id=63865
598         
599         Added fallback to 'to' animation for 'by' animated SVGAnimatedPathAnimator.
600         
601         Clenup of SVGAnimateElement. Removed all switches since we support all AnimatedTypes
602         with the exception of AnimatedEnumeration. AnimatedEnumeration gets animated as AnimatedString at the moment. 
603
604         Test: svg/animations/svgpath-animation-1.html
605
606         * svg/SVGAnimateElement.cpp:
607         (WebCore::getPropertyValue):
608         (WebCore::inheritsFromProperty):
609         (WebCore::attributeValueIsCurrentColor):
610         (WebCore::SVGAnimateElement::adjustForCurrentColor):
611         (WebCore::SVGAnimateElement::determineAnimatedAttributeType):
612         (WebCore::SVGAnimateElement::calculateAnimatedValue):
613         (WebCore::SVGAnimateElement::calculateFromAndToValues):
614         (WebCore::SVGAnimateElement::calculateFromAndByValues):
615         (WebCore::SVGAnimateElement::resetToBaseValue):
616         (WebCore::SVGAnimateElement::applyResultsToTarget):
617         (WebCore::SVGAnimateElement::calculateDistance):
618         * svg/SVGAnimatedPath.cpp:
619         (WebCore::SVGAnimatedPathAnimator::calculateFromAndByValues):
620
621 2011-07-07  Andrey Kosyakov  <caseq@chromium.org>
622
623         Web Inspector: secure access to extensions API
624         https://bugs.webkit.org/show_bug.cgi?id=64080
625
626         Reviewed by Pavel Feldman.
627
628         * inspector/front-end/ExtensionAPI.js:
629         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
630         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setPage):
631         * inspector/front-end/ExtensionPanel.js:
632         (WebInspector.ExtensionPanel):
633         * inspector/front-end/ExtensionServer.js:
634         (WebInspector.ExtensionServer):
635         (WebInspector.ExtensionServer.prototype._onCreatePanel):
636         (WebInspector.ExtensionServer.prototype._onSetSidebarPage):
637         (WebInspector.ExtensionServer.prototype._addExtensions):
638         (WebInspector.ExtensionServer.prototype._onWindowMessage):
639         (WebInspector.ExtensionServer.prototype._registerSubscriptionHandler):
640         (WebInspector.ExtensionServer.prototype._expandResourcePath):
641
642 2011-07-07  Kyusun Kim  <maniagoon@company100.net>
643
644         The return value of SharedBuffer::createWithContentsOfFile must have valid m_size.
645         https://bugs.webkit.org/show_bug.cgi?id=63313
646
647         Reviewed by Eric Seidel.
648
649         * platform/posix/SharedBufferPOSIX.cpp:
650         (WebCore::SharedBuffer::createWithContentsOfFile):
651
652 2011-07-07  Dan Bernstein  <mitz@apple.com>
653
654         <rdar://problem/9737435> Re-enable -webkit-column-break-inside: avoid
655         https://bugs.webkit.org/show_bug.cgi?id=64102
656
657         Reviewed by Simon Fraser.
658
659         -webkit-column-break-inside: avoid was disabled in r62632 along with page-break-inside: avoid.
660         The latter remains disabled.
661
662         * rendering/RenderBlock.cpp:
663         (WebCore::RenderBlock::adjustForUnsplittableChild): Treat the child as unsplittable if
664         '-webkit-column-break-inside: avoid' was specified.
665
666 2011-07-07  Andrey Kosyakov  <caseq@chromium.org>
667
668         Web Inspector: visual regressions in network panel
669         https://bugs.webkit.org/show_bug.cgi?id=64089
670
671         Reviewed by Pavel Feldman.
672
673         * inspector/front-end/networkPanel.css:
674         (.data-grid.network-log-grid tr.filler td):
675         (.network.panel .sidebar):
676
677 2011-07-07  Julien Chaffraix  <jchaffraix@webkit.org>
678
679         Reviewed by David Hyatt.
680
681         Partial layout when a flex-box has visibility: collapse
682         https://bugs.webkit.org/show_bug.cgi?id=63776
683
684         Tests: fast/flexbox/crash-button-input-autofocus.html
685                fast/flexbox/crash-button-keygen.html
686                fast/flexbox/crash-button-relayout.html
687
688         The issue is that FlexBoxIterator would skip any child if it has visibility: collapsed.
689         However if one of the child is anonymous, it may wrap some other child that would be skipped.
690         Now FlexBoxIterator is called during the layout phase and thus some nodes would not relayouted
691         as expected.
692
693         * rendering/RenderDeprecatedFlexibleBox.cpp:
694         (WebCore::FlexBoxIterator::next): When iterating, don't skip anonymous content as there may
695         be real content hiding below.
696
697 2011-07-07  Vsevolod Vlasov  <vsevik@chromium.org>
698
699         Web Inspector: URL links in styles open new tab instead of showing resources panel.
700         https://bugs.webkit.org/show_bug.cgi?id=64090
701
702         Reviewed by Pavel Feldman.
703
704         * inspector/front-end/StylesSidebarPane.js:
705         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.linkifyURL):
706
707 2011-07-07  Andrey Kosyakov  <caseq@chromium.org>
708
709         Web Inspector: active panel does not receive resize event when drawer is resized
710         https://bugs.webkit.org/show_bug.cgi?id=64094
711
712         Reviewed by Pavel Feldman.
713
714         * inspector/front-end/Drawer.js:
715         (WebInspector.Drawer.prototype._statusBarDragging):
716
717 2011-07-07  Pavel Feldman  <pfeldman@chromium.org>
718
719         Web Inspector: prevent default action during drag'n'drop in the Elements panel.
720         https://bugs.webkit.org/show_bug.cgi?id=64081
721
722         Reviewed by Yury Semikhatsky.
723
724         * inspector/front-end/ElementsTreeOutline.js:
725         (WebInspector.ElementsTreeOutline):
726         (WebInspector.ElementsTreeOutline.prototype._ondragstart):
727         (WebInspector.ElementsTreeOutline.prototype._ondragover):
728         (WebInspector.ElementsTreeOutline.prototype._ondragend):
729         * inspector/front-end/treeoutline.js:
730         (TreeOutline.prototype.treeElementFromPoint):
731
732 2011-07-07  Nikolas Zimmermann  <nzimmermann@rim.com>
733
734         Move remaining enums out of SVG*Element classes
735         https://bugs.webkit.org/show_bug.cgi?id=64075
736
737         Reviewed by Dirk Schulze.
738
739         Move remaining enums out of SVG*Element classes. This is a preparation patch for bug 63797.
740         Also move the SVGPropertyTraits template specializations for enum types before the class
741         definition in the header, otherwhise we can't use SVGPropertyTraits<FooType>::fromString/toString
742         in the DECLARE_ANIMATED* macros, which is needed soon.
743
744         No new tests, just refactoring.
745
746         * rendering/svg/RenderSVGResourceGradient.cpp:
747         (WebCore::RenderSVGResourceGradient::applyResource):
748         * rendering/svg/RenderSVGResourceGradient.h:
749         * rendering/svg/RenderSVGResourceMarker.cpp:
750         (WebCore::RenderSVGResourceMarker::angle):
751         (WebCore::RenderSVGResourceMarker::markerTransformation):
752         * rendering/svg/RenderSVGResourceMarker.h:
753         (WebCore::RenderSVGResourceMarker::markerUnits):
754         * rendering/svg/RenderSVGTextPath.cpp:
755         (WebCore::RenderSVGTextPath::RenderSVGTextPath):
756         (WebCore::RenderSVGTextPath::exactAlignment):
757         (WebCore::RenderSVGTextPath::stretchMethod):
758         * rendering/svg/SVGRenderTreeAsText.cpp:
759         (WebCore::operator<<):
760         (WebCore::writeCommonGradientProperties):
761         * rendering/svg/SVGTextChunkBuilder.cpp:
762         (WebCore::SVGTextChunkBuilder::addTextChunk):
763         * rendering/svg/SVGTextLayoutEngine.cpp:
764         (WebCore::SVGTextLayoutEngine::parentDefinesTextLength):
765         (WebCore::SVGTextLayoutEngine::beginTextPathLayout):
766         * svg/GradientAttributes.h:
767         (WebCore::GradientAttributes::GradientAttributes):
768         (WebCore::GradientAttributes::spreadMethod):
769         (WebCore::GradientAttributes::setSpreadMethod):
770         * svg/SVGComponentTransferFunctionElement.h:
771         * svg/SVGFEBlendElement.h:
772         * svg/SVGFEColorMatrixElement.h:
773         * svg/SVGFECompositeElement.h:
774         * svg/SVGFEConvolveMatrixElement.h:
775         * svg/SVGFEDisplacementMapElement.h:
776         * svg/SVGFEMorphologyElement.h:
777         * svg/SVGFETurbulenceElement.h:
778         * svg/SVGGradientElement.cpp:
779         (WebCore::SVGGradientElement::SVGGradientElement):
780         * svg/SVGGradientElement.h:
781         * svg/SVGMarkerElement.cpp:
782         (WebCore::SVGMarkerElement::SVGMarkerElement):
783         (WebCore::SVGMarkerElement::parseMappedAttribute):
784         (WebCore::SVGMarkerElement::setOrientToAuto):
785         (WebCore::SVGMarkerElement::setOrientToAngle):
786         (WebCore::SVGMarkerElement::synchronizeOrientType):
787         (WebCore::SVGMarkerElement::orientTypeAnimated):
788         * svg/SVGMarkerElement.h:
789         * svg/SVGTextContentElement.cpp:
790         (WebCore::SVGTextContentElement::SVGTextContentElement):
791         * svg/SVGTextContentElement.h:
792         * svg/SVGTextPathElement.cpp:
793         (WebCore::SVGTextPathElement::SVGTextPathElement):
794         * svg/SVGTextPathElement.h:
795
796 2011-07-07  Ilya Tikhonovsky  <loislo@chromium.org>
797
798         Web Inspector: Protocol: pointers to optional "in" parameters passing to the
799         backend methods should be NULL if they are not specified in the message.
800         https://bugs.webkit.org/show_bug.cgi?id=64083
801
802         Reviewed by Pavel Feldman.
803
804         * inspector/CodeGeneratorInspector.pm:
805         (generateBackendFunction):
806         (generateArgumentGetters):
807         * inspector/InspectorCSSAgent.cpp:
808         (WebCore::InspectorCSSAgent::getStylesForNode):
809
810 2011-07-07  Ilya Tikhonovsky  <loislo@chromium.org>
811
812         Web Inspector: Searching on the Network panel doesn't do anything?
813         https://bugs.webkit.org/show_bug.cgi?id=55489
814
815         This is initial implementation of search in Network panel.
816         It is pretty simple search only for names and paths.
817
818         Reviewed by Pavel Feldman.
819
820         * inspector/front-end/NetworkPanel.js:
821         (WebInspector.NetworkPanel.prototype.refresh):
822         (WebInspector.NetworkPanel.prototype._reset):
823         (WebInspector.NetworkPanel.prototype._updateOffscreenRows):
824         (WebInspector.NetworkPanel.prototype._matchResource):
825         (WebInspector.NetworkPanel.prototype._clearSearchMatchedList):
826         (WebInspector.NetworkPanel.prototype._highlightNthMatchedResource):
827         (WebInspector.NetworkPanel.prototype.performSearch):
828         (WebInspector.NetworkDataGridNode.prototype.createCells):
829         * inspector/front-end/utilities.js:
830         (String.prototype.escapeHTML):
831         ():
832
833 2011-07-07  Vsevolod Vlasov  <vsevik@chromium.org>
834
835         Web Inspector: Resources panel shows only one resource when multiple resources have the same url.
836         https://bugs.webkit.org/show_bug.cgi?id=63936
837
838         Reviewed by Pavel Feldman.
839
840         Test: http/tests/inspector/resource-tree/resource-tree-non-unique-url.html
841
842         * inspector/front-end/ResourcesPanel.js:
843         (WebInspector.FrameTreeElement.prototype.appendResource):
844
845 2011-07-07  Vsevolod Vlasov  <vsevik@chromium.org>
846
847         Web Inspector: Add support for clearing cache and cookies from network panel.
848         https://bugs.webkit.org/show_bug.cgi?id=63999
849
850         Reviewed by Pavel Feldman.
851
852         * English.lproj/localizedStrings.js:
853         * inspector/Inspector.json:
854         * inspector/InspectorClient.h:
855         (WebCore::InspectorClient::clearBrowserCache):
856         (WebCore::InspectorClient::clearBrowserCookies):
857         * inspector/InspectorController.cpp:
858         (WebCore::InspectorController::InspectorController):
859         * inspector/InspectorResourceAgent.cpp:
860         (WebCore::InspectorResourceAgent::clearBrowserCache):
861         (WebCore::InspectorResourceAgent::clearBrowserCookies):
862         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
863         * inspector/InspectorResourceAgent.h:
864         (WebCore::InspectorResourceAgent::create):
865         * inspector/front-end/NetworkPanel.js:
866         (WebInspector.NetworkPanel.prototype._contextMenu):
867         (WebInspector.NetworkPanel.prototype._clearBrowserCache):
868         (WebInspector.NetworkPanel.prototype._clearBrowserCookies):
869         * inspector/front-end/Settings.js:
870
871 2011-07-07  Shinya Kawanaka  <shinyak@google.com>
872
873         Added more key bindings for input[type=range].
874         https://bugs.webkit.org/show_bug.cgi?id=52262
875
876         Added PageUp/PageDown/Home/End key bindings for input[type=range].
877         PageUp/PageDown change value by about 10%.
878         Home/End change value to minimum/maximum.
879
880         Reviewed by Kent Tamura.
881
882         * html/RangeInputType.cpp:
883         (WebCore::RangeInputType::handleKeydownEvent):
884           Added key bindings.
885
886 2011-07-07  Oleg Romashin  <romaxa@gmail.com>
887
888         Fix InspectorInstrumentation compilation.
889         https://bugs.webkit.org/show_bug.cgi?id=64033
890
891         Reviewed by Yury Semikhatsky.
892
893         No new tests. just compile fix.
894
895         * inspector/InspectorInstrumentation.cpp:
896         (WebCore::InspectorInstrumentation::didInvalidateStyleAttrImpl):
897
898 2011-07-06  Mihnea Ovidenie  <mihnea@adobe.com>
899
900         Reviewed by David Hyatt.
901
902         [CSSRegions] Parse flow property
903         https://bugs.webkit.org/show_bug.cgi?id=61730
904
905         Test: fast/regions/webkit-flow-parsing.html
906
907         * css/CSSComputedStyleDeclaration.cpp:
908         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
909         * css/CSSParser.cpp:
910         (WebCore::CSSParser::parseValue):
911         (WebCore::CSSParser::parseFlowThread):
912         * css/CSSParser.h:
913         * css/CSSPropertyNames.in:
914         * css/CSSStyleSelector.cpp:
915         (WebCore::CSSStyleSelector::applyProperty):
916         * rendering/style/RenderStyle.cpp:
917         (WebCore::RenderStyle::diff):
918         * rendering/style/RenderStyle.h:
919         (WebCore::InheritedFlags::flowThread):
920         (WebCore::InheritedFlags::setFlowThread):
921         (WebCore::InheritedFlags::initialFlowThread):
922         * rendering/style/StyleRareNonInheritedData.cpp:
923         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
924         (WebCore::StyleRareNonInheritedData::operator==):
925         * rendering/style/StyleRareNonInheritedData.h:
926
927 2011-07-06  MORITA Hajime  <morrita@google.com>
928
929         [ShadowContentElement] Redundant RenderText objects are created on the content boundaries.
930         https://bugs.webkit.org/show_bug.cgi?id=63977
931
932         Reviewed by Dimitri Glazkov.
933
934         NodeRenderingContext::nextRenderer() and previousRenderer() didn't work well
935         when it crosses content elements:
936         - It doesn't step into forwarded children of ShadowContentElement.
937         - It doesn't step out from traversing forwarded children to
938           neighbors of the content element of that forwarded chidren.
939         
940         This change makes it to step into and out from content element.
941         
942         Test: fast/dom/shadow/content-element-renderers.html
943
944         * dom/NodeRenderingContext.cpp:
945         (WebCore::firstRendererOf): Added
946         (WebCore::lastRendererOf): Added
947         (WebCore::NodeRenderingContext::nextRenderer):
948         (WebCore::NodeRenderingContext::previousRenderer):
949
950 2011-07-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
951
952         [EFL] Add Fullscreen API feature
953         https://bugs.webkit.org/show_bug.cgi?id=63975
954
955         Add needed files for enabling ENABLE_FULLSCREEN_API feature.
956
957         Reviewed by Adam Barth.
958
959         * CMakeLists.txt: Add RenderFullScreen.cpp, fullscreen.css
960
961 2011-07-06  Emil A Eklund  <eae@chromium.org>
962
963         Switch absoluteRects to to new layout types
964         https://bugs.webkit.org/show_bug.cgi?id=64035
965
966         Reviewed by Eric Seidel.
967
968         Move absoluteRects over to new layout unit abstraction.
969         Add flooredLayoutPoint, mapped to flooredIntPoint.
970
971         No new tests, no functionality changes.
972
973         * rendering/LayoutTypes.h:
974         (WebCore::flooredLayoutPoint):
975         * rendering/RenderBlock.cpp:
976         (WebCore::RenderBlock::absoluteRects):
977         * rendering/RenderBlock.h:
978         * rendering/RenderBox.cpp:
979         (WebCore::RenderBox::absoluteRects):
980         * rendering/RenderInline.cpp:
981         (WebCore::RenderInline::absoluteRects):
982         * rendering/RenderInline.h:
983         * rendering/RenderObject.cpp:
984         (WebCore::RenderObject::absoluteBoundingBoxRect):
985         * rendering/RenderObject.h:
986         (WebCore::RenderObject::absoluteRects):
987         * rendering/RenderText.cpp:
988         (WebCore::RenderText::absoluteRects):
989         * rendering/RenderText.h:
990         * rendering/RenderView.cpp:
991         (WebCore::RenderView::absoluteRects):
992         * rendering/RenderView.h:
993         * rendering/svg/RenderSVGBlock.cpp:
994         (WebCore::RenderSVGBlock::absoluteRects):
995         * rendering/svg/RenderSVGBlock.h:
996         * rendering/svg/RenderSVGModelObject.cpp:
997         (WebCore::RenderSVGModelObject::absoluteRects):
998         * rendering/svg/RenderSVGModelObject.h:
999
1000 2011-07-06  Emil A Eklund  <eae@chromium.org>
1001
1002         Reviewed by Eric Seidel.
1003
1004         Switch offsetFromContainer and related to to new layout types
1005         https://bugs.webkit.org/show_bug.cgi?id=63659
1006
1007         Switch offsetFromContainer and related mapping methods to new layout unit
1008         abstraction.
1009
1010         No new tests, no functionality changes.
1011
1012         * rendering/LayoutTypes.h:
1013         (WebCore::enclosingLayoutRect):
1014         (WebCore::roundedLayoutPoint):
1015         (WebCore::roundedLayoutUnit):
1016         Add LayoutUnit versions of enclosingIntRect, roundedIntPoint and lroundf.
1017         For now these map to their int counterpart but once we switch to float or
1018         fixed point they'll be no-ops and eventually will be removed. 
1019         
1020         * rendering/RenderBox.cpp:
1021         (WebCore::RenderBox::mapLocalToContainer):
1022         (WebCore::RenderBox::mapAbsoluteToLocalPoint):
1023         (WebCore::RenderBox::offsetFromContainer):
1024         * rendering/RenderBox.h:
1025         * rendering/RenderInline.cpp:
1026         (WebCore::RenderInline::linesBoundingBox):
1027         (WebCore::RenderInline::offsetFromContainer):
1028         (WebCore::RenderInline::mapLocalToContainer):
1029         (WebCore::RenderInline::mapAbsoluteToLocalPoint):
1030         (WebCore::RenderInline::relativePositionedInlineOffset):
1031         * rendering/RenderInline.h:
1032         * rendering/RenderObject.cpp:
1033         (WebCore::RenderObject::offsetFromContainer):
1034         (WebCore::RenderObject::offsetFromAncestorContainer):
1035         * rendering/RenderObject.h:
1036         * rendering/RenderTableCell.cpp:
1037         (WebCore::RenderTableCell::offsetFromContainer):
1038         * rendering/RenderTableCell.h:
1039         * rendering/RenderThemeMac.mm:
1040         (WebCore::RenderThemeMac::convertToPaintingRect):
1041
1042 2011-07-06  Levi Weintraub  <leviw@chromium.org>
1043
1044         Switch FrameSelection to new Layout Types
1045         https://bugs.webkit.org/show_bug.cgi?id=64043
1046
1047         Reviewed by Eric Seidel.
1048
1049         Switching the selection classes to the new layout types. Changing
1050         NoXPosForVerticalArrowNavigation to a static inline since as it stood it violated
1051         our global initializer rule when converted to numeric_limits from INT_MIN.
1052
1053         No new tests, no functionality changes.
1054
1055         * editing/FrameSelection.cpp:
1056         (WebCore::FrameSelection::modify):
1057         (WebCore::absoluteCaretY):
1058         (WebCore::FrameSelection::lineDirectionPointForBlockDirectionNavigation):
1059         (WebCore::CaretBase::clearCaretRect):
1060         (WebCore::CaretBase::updateCaretRect):
1061         (WebCore::FrameSelection::localCaretRect):
1062         (WebCore::CaretBase::absoluteBoundsForLocalRect):
1063         (WebCore::FrameSelection::absoluteCaretBounds):
1064         (WebCore::repaintRectForCaret):
1065         (WebCore::CaretBase::caretRepaintRect):
1066         (WebCore::FrameSelection::recomputeCaretRect):
1067         (WebCore::FrameSelection::paintCaret):
1068         (WebCore::CaretBase::paintCaret):
1069         (WebCore::FrameSelection::contains):
1070         (WebCore::DragCaretController::paintDragCaret):
1071         (WebCore::FrameSelection::bounds):
1072         (WebCore::FrameSelection::revealSelection):
1073         * editing/FrameSelection.h:
1074         (WebCore::CaretBase::localCaretRectWithoutUpdate):
1075
1076 2011-07-06  Levi Weintraub  <leviw@chromium.org>
1077
1078         Switch Overflow and FrameRect methods in InlineBox to Layout Units
1079         https://bugs.webkit.org/show_bug.cgi?id=64034
1080
1081         Reviewed by Eric Seidel.
1082
1083         Switching Overflow and FrameRect methods on InlineBox to new Layout Unit abstraction and
1084         cleaning up some compilation errors that crop up when building with floating point layout units.
1085
1086         No new tests, no functionality changes.
1087
1088         * css/CSSComputedStyleDeclaration.cpp:
1089         (WebCore::sizingBox):
1090         * dom/Document.h:
1091         * editing/DeleteButtonController.cpp:
1092         (WebCore::isDeletableElement):
1093         * inspector/DOMNodeHighlighter.cpp:
1094         (WebCore::DOMNodeHighlighter::drawNodeHighlight):
1095         * page/animation/AnimationBase.cpp:
1096         (WebCore::blendFunc):
1097         * platform/ScrollView.h:
1098         (WebCore::ScrollView::visibleWidth):
1099         (WebCore::ScrollView::visibleHeight):
1100         * platform/ScrollableArea.h:
1101         (WebCore::ScrollableArea::visibleHeight):
1102         (WebCore::ScrollableArea::visibleWidth):
1103         * platform/graphics/FloatPoint.h: Adding FloatPoint and FloatSize move[By] functions
1104         (WebCore::FloatPoint::move):
1105         (WebCore::FloatPoint::moveBy):
1106         * rendering/AutoTableLayout.cpp:
1107         (WebCore::AutoTableLayout::computePreferredLogicalWidths):
1108         (WebCore::AutoTableLayout::layout):
1109         * rendering/InlineFlowBox.h:
1110         (WebCore::InlineFlowBox::layoutOverflowRect):
1111         (WebCore::InlineFlowBox::logicalLeftLayoutOverflow):
1112         (WebCore::InlineFlowBox::logicalRightLayoutOverflow):
1113         (WebCore::InlineFlowBox::logicalTopLayoutOverflow):
1114         (WebCore::InlineFlowBox::logicalBottomLayoutOverflow):
1115         (WebCore::InlineFlowBox::logicalLayoutOverflowRect):
1116         (WebCore::InlineFlowBox::visualOverflowRect):
1117         (WebCore::InlineFlowBox::logicalLeftVisualOverflow):
1118         (WebCore::InlineFlowBox::logicalRightVisualOverflow):
1119         (WebCore::InlineFlowBox::logicalTopVisualOverflow):
1120         (WebCore::InlineFlowBox::logicalBottomVisualOverflow):
1121         (WebCore::InlineFlowBox::logicalVisualOverflowRect):
1122         (WebCore::InlineFlowBox::frameRectIncludingLineHeight):
1123         (WebCore::InlineFlowBox::logicalFrameRectIncludingLineHeight):
1124         * rendering/RenderBlock.h:
1125         (WebCore::RenderBlock::RenderBlockRareData::positiveMarginBeforeDefault):
1126         (WebCore::RenderBlock::RenderBlockRareData::negativeMarginBeforeDefault):
1127         (WebCore::RenderBlock::RenderBlockRareData::positiveMarginAfterDefault):
1128         (WebCore::RenderBlock::RenderBlockRareData::negativeMarginAfterDefault):
1129
1130 2011-07-06  Emil A Eklund  <eae@chromium.org>
1131
1132         Reviewed by Eric Seidel.
1133         
1134         Switch nodeAtPoint to to new layout types
1135         https://bugs.webkit.org/show_bug.cgi?id=63663
1136
1137         No new tests, no functionality changes.
1138
1139         * rendering/EllipsisBox.cpp:
1140         (WebCore::EllipsisBox::nodeAtPoint):
1141         * rendering/EllipsisBox.h:
1142         * rendering/InlineBox.cpp:
1143         (WebCore::InlineBox::nodeAtPoint):
1144         * rendering/InlineBox.h:
1145         * rendering/InlineFlowBox.cpp:
1146         (WebCore::InlineFlowBox::nodeAtPoint):
1147         * rendering/InlineFlowBox.h:
1148         * rendering/InlineTextBox.cpp:
1149         (WebCore::InlineTextBox::nodeAtPoint):
1150         * rendering/InlineTextBox.h:
1151         * rendering/LayoutTypes.h:
1152         (WebCore::toLayoutSize):
1153         (WebCore::toLayoutPoint):
1154         (WebCore::roundedLayoutPoint):
1155         (WebCore::roundedLayoutUnit):
1156         * rendering/RenderBlock.cpp:
1157         (WebCore::RenderBlock::nodeAtPoint):
1158         * rendering/RenderBlock.h:
1159         * rendering/RenderBox.cpp:
1160         (WebCore::RenderBox::nodeAtPoint):
1161         * rendering/RenderBox.h:
1162         * rendering/RenderFrameSet.cpp:
1163         (WebCore::RenderFrameSet::nodeAtPoint):
1164         * rendering/RenderFrameSet.h:
1165         * rendering/RenderImage.cpp:
1166         (WebCore::RenderImage::nodeAtPoint):
1167         * rendering/RenderImage.h:
1168         * rendering/RenderInline.cpp:
1169         (WebCore::RenderInline::nodeAtPoint):
1170         * rendering/RenderInline.h:
1171         * rendering/RenderListBox.cpp:
1172         (WebCore::RenderListBox::nodeAtPoint):
1173         * rendering/RenderListBox.h:
1174         * rendering/RenderObject.cpp:
1175         (WebCore::RenderObject::nodeAtPoint):
1176         * rendering/RenderObject.h:
1177         * rendering/RenderTable.cpp:
1178         (WebCore::RenderTable::nodeAtPoint):
1179         * rendering/RenderTable.h:
1180         * rendering/RenderTableRow.cpp:
1181         (WebCore::RenderTableRow::nodeAtPoint):
1182         * rendering/RenderTableRow.h:
1183         * rendering/RenderTableSection.cpp:
1184         (WebCore::RenderTableSection::nodeAtPoint):
1185         * rendering/RenderTableSection.h:
1186         * rendering/RenderText.h:
1187         (WebCore::RenderText::nodeAtPoint):
1188         * rendering/RenderTextControlMultiLine.cpp:
1189         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
1190         * rendering/RenderTextControlMultiLine.h:
1191         * rendering/RenderTextControlSingleLine.cpp:
1192         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
1193         * rendering/RenderTextControlSingleLine.h:
1194         * rendering/RenderWidget.cpp:
1195         (WebCore::RenderWidget::nodeAtPoint):
1196         * rendering/RenderWidget.h:
1197         * rendering/RootInlineBox.cpp:
1198         (WebCore::RootInlineBox::nodeAtPoint):
1199         * rendering/RootInlineBox.h:
1200         * rendering/svg/RenderSVGForeignObject.cpp:
1201         (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
1202         (WebCore::RenderSVGForeignObject::nodeAtPoint):
1203         * rendering/svg/RenderSVGForeignObject.h:
1204         * rendering/svg/RenderSVGModelObject.cpp:
1205         (WebCore::RenderSVGModelObject::nodeAtPoint):
1206         * rendering/svg/RenderSVGModelObject.h:
1207         * rendering/svg/RenderSVGRoot.cpp:
1208         (WebCore::RenderSVGRoot::nodeAtPoint):
1209         * rendering/svg/RenderSVGRoot.h:
1210         * rendering/svg/RenderSVGText.cpp:
1211         (WebCore::RenderSVGText::nodeAtPoint):
1212         * rendering/svg/RenderSVGText.h:
1213         * rendering/svg/SVGInlineTextBox.cpp:
1214         (WebCore::SVGInlineTextBox::nodeAtPoint):
1215         * rendering/svg/SVGInlineTextBox.h:
1216
1217 2011-07-06  Adrienne Walker  <enne@google.com>
1218
1219         [chromium] Add compositor texture manager soft limits and lost focus reclaiming
1220         https://bugs.webkit.org/show_bug.cgi?id=64009
1221
1222         Reviewed by James Robinson.
1223
1224         Add a soft limit for texture memory. Unprotected textures will get
1225         reclaimed when above this limit. Increase the hard limit for maximum
1226         texture memory as well, now that there is a better heuristic and
1227         textures are reclaimed from tabs without focus.
1228
1229         Landing this for vangelis@chromium.org.
1230
1231         * platform/graphics/chromium/LayerRendererChromium.cpp:
1232         (WebCore::LayerRendererChromium::releaseTextures):
1233         (WebCore::LayerRendererChromium::initializeSharedObjects):
1234         * platform/graphics/chromium/LayerRendererChromium.h:
1235         * platform/graphics/chromium/LayerTilerChromium.cpp:
1236         (WebCore::LayerTilerChromium::protectTileTextures):
1237         * platform/graphics/chromium/LayerTilerChromium.h:
1238         * platform/graphics/chromium/TextureManager.cpp:
1239         (WebCore::TextureManager::TextureManager):
1240         (WebCore::TextureManager::requestTexture):
1241         * platform/graphics/chromium/TextureManager.h:
1242         (WebCore::TextureManager::create):
1243
1244 2011-07-06  Pavel Feldman  <pfeldman@chromium.org>
1245
1246         Not reviewed: Web Inspector: fixing typo introduced in the r90397.
1247
1248         * inspector/front-end/StylesSidebarPane.js:
1249
1250 2011-07-06  Mike Reed  <reed@google.com>
1251
1252         [skia] don't include deprecated header
1253         https://bugs.webkit.org/show_bug.cgi?id=64025
1254
1255         Reviewed by James Robinson.
1256
1257         No new tests. Just removing #include of an unused header that will be gone soon
1258
1259         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
1260         * platform/graphics/skia/PlatformContextSkia.cpp:
1261
1262 2011-06-30  Cris Neckar  <cdn@chromium.org>
1263
1264         Reviewed by Darin Fisher.
1265
1266         Add versioning to Chromium clipboard and prevent polling from inside events.
1267         https://bugs.webkit.org/show_bug.cgi?id=63738
1268
1269         * platform/chromium/ChromiumDataObject.cpp:
1270         (WebCore::ChromiumDataObject::getSequenceNumber):
1271         * platform/chromium/ChromiumDataObject.h:
1272         * platform/chromium/ClipboardChromium.cpp:
1273         (WebCore::ClipboardChromium::ClipboardChromium):
1274         (WebCore::ClipboardChromium::getData):
1275         (WebCore::ClipboardChromium::platformClipboardChanged):
1276         * platform/chromium/ClipboardChromium.h:
1277         * platform/chromium/DataTransferItemChromium.cpp:
1278         (WebCore::DataTransferItemChromium::getAsString):
1279         (WebCore::DataTransferItemChromium::getAsFile):
1280         * platform/chromium/PlatformBridge.h:
1281         * svg/SVGAnimationElement.cpp:
1282         (WebCore::SVGAnimationElement::setTargetAttributeAnimatedValue):
1283
1284 2011-07-01  James Robinson  <jamesr@chromium.org>
1285
1286         Reviewed by Stephen White.
1287
1288         [chromium] Externalize layer visibility calculation
1289         https://bugs.webkit.org/show_bug.cgi?id=63847
1290
1291         This moves the layer visibility calculation from the layer itself out to LayerRendererChromium, like the other
1292         calculated properties.  Previously, we were doing this calculating at paint time and again at draw time and
1293         relying on the fact that this produced the same value.  This avoids the redundant calculation.
1294
1295         Covered by existing compositing/ layout tests.
1296
1297         * platform/graphics/chromium/ContentLayerChromium.cpp:
1298         (WebCore::ContentLayerChromium::ContentLayerChromium):
1299         (WebCore::ContentLayerChromium::paintContentsIfDirty):
1300         (WebCore::ContentLayerChromium::tilingTransform):
1301         (WebCore::ContentLayerChromium::contentBounds):
1302         (WebCore::ContentLayerChromium::updateLayerSize):
1303         (WebCore::ContentLayerChromium::draw):
1304         (WebCore::ContentLayerChromium::setTilingOption):
1305         (WebCore::ContentLayerChromium::setIsMask):
1306         * platform/graphics/chromium/ContentLayerChromium.h:
1307         * platform/graphics/chromium/ImageLayerChromium.cpp:
1308         (WebCore::ImageLayerChromium::paintContentsIfDirty):
1309         (WebCore::ImageLayerChromium::contentBounds):
1310         * platform/graphics/chromium/ImageLayerChromium.h:
1311         * platform/graphics/chromium/LayerChromium.cpp:
1312         (WebCore::LayerChromium::pushPropertiesTo):
1313         * platform/graphics/chromium/LayerChromium.h:
1314         (WebCore::LayerChromium::contentBounds):
1315         (WebCore::LayerChromium::visibleLayerRect):
1316         (WebCore::LayerChromium::setVisibleLayerRect):
1317         (WebCore::LayerChromium::draw):
1318         * platform/graphics/chromium/LayerRendererChromium.cpp:
1319         (WebCore::calculateVisibleLayerRect):
1320         (WebCore::LayerRendererChromium::paintLayerContents):
1321         (WebCore::LayerRendererChromium::drawLayer):
1322         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
1323         (WebCore::RenderSurfaceChromium::draw):
1324         * platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp:
1325         (WebCore::CCCanvasLayerImpl::draw):
1326         * platform/graphics/chromium/cc/CCCanvasLayerImpl.h:
1327         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1328         (WebCore::CCLayerImpl::draw):
1329         * platform/graphics/chromium/cc/CCLayerImpl.h:
1330         (WebCore::CCLayerImpl::contentBounds):
1331         (WebCore::CCLayerImpl::setContentBounds):
1332         (WebCore::CCLayerImpl::visibleLayerRect):
1333         (WebCore::CCLayerImpl::setVisibleLayerRect):
1334         (WebCore::CCLayerImpl::doubleSided):
1335         (WebCore::CCLayerImpl::setDoubleSided):
1336         * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
1337         (WebCore::CCPluginLayerImpl::draw):
1338         * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
1339         * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
1340         (WebCore::CCVideoLayerImpl::draw):
1341         * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
1342
1343 2011-07-06  John Sullivan  <sullivan@apple.com>
1344
1345         IconDatabase::synchronousIconForPageURL() has inconsistent API when no custom icon is available
1346         <https://bugs.webkit.org/show_bug.cgi?id=64015>
1347         <rdar://problem/9706277>
1348
1349         For some URLs it would return a particular size of default icon; for other
1350         URLs it would return 0.
1351
1352         Reviewed by Ada Chan.
1353
1354         * loader/icon/IconDatabase.cpp:
1355         (WebCore::IconDatabase::synchronousIconForPageURL):
1356         Return 0 in all cases where there is no custom icon.
1357
1358 2011-07-06  Emil A Eklund  <eae@chromium.org>
1359
1360         Reviewed by Eric Seidel.
1361
1362         Switch RenderLayer::hitTest* to to new layout types
1363         https://bugs.webkit.org/show_bug.cgi?id=63640
1364
1365         Switch hit testing and supporting methods for RenderLayer over to the new
1366         layout unit abstraction.
1367         
1368         No new tests, no functionality changes.
1369
1370         * rendering/LayoutTypes.h:
1371         (WebCore::roundedLayoutPoint):
1372         Add roundedLayoutPoint abstraction, calls roundedIntPoint now but will be a
1373         no-op (and eventually go away) once we switch to float or fixed point.
1374         
1375         * rendering/RenderLayer.cpp:
1376         (WebCore::RenderLayer::createLocalTransformState):
1377         (WebCore::RenderLayer::hitTestLayer):
1378         (WebCore::RenderLayer::hitTestList):
1379         (WebCore::RenderLayer::hitTestPaginatedChildLayer):
1380         (WebCore::RenderLayer::hitTestChildLayerColumns):
1381         (WebCore::RenderLayer::calculateRects):
1382         * rendering/RenderLayer.h:
1383
1384 2011-07-06  Simon Fraser  <simon.fraser@apple.com>
1385
1386         Have RenderLayerCompositor take care of clearing backing store when entering the page cache
1387         https://bugs.webkit.org/show_bug.cgi?id=64018
1388
1389         Reviewed by Joseph Pecoraro.
1390
1391         Move responsibility for tearing down all RenderLayer backing stores from
1392         RenderLayer itself to RenderLayerCompositor, since RenderLayerCompositor 
1393         manages backing store creation and destruction in general.
1394
1395         * page/FrameView.cpp:
1396         (WebCore::FrameView::clearBackingStores):
1397         * rendering/RenderLayer.cpp:
1398         * rendering/RenderLayer.h:
1399         * rendering/RenderLayerCompositor.cpp:
1400         (WebCore::RenderLayerCompositor::clearBackingForLayerIncludingDescendants):
1401         (WebCore::RenderLayerCompositor::clearBackingForAllLayers):
1402         * rendering/RenderLayerCompositor.h:
1403
1404 2011-07-06  Ryuan Choi  <ryuan.choi@samsung.com>
1405
1406         [Performance] Only call sendContentResizeNotification when the scrollbar actually did change
1407         https://bugs.webkit.org/show_bug.cgi?id=47320
1408
1409         Reviewed by Eric Seidel.
1410
1411         Move avoidScrollbarCreation checking code from setHasHorizontalScrollbar
1412         and setHasVerticalScrollbar to their caller in order to keep sendContentResizedNotification
1413         false in case scrollbar is not really changed.
1414         As a result, it will remove unnecessary relayout in the above case.
1415
1416         No new tests as this is very hard to write tests for. The bug only
1417         occured when scrolling the sites which contain frame in browser with
1418         frameFlattening. This should not change functionality in other case.
1419
1420         * platform/ScrollView.cpp:
1421         (WebCore::ScrollView::setHasHorizontalScrollbar):
1422         (WebCore::ScrollView::setHasVerticalScrollbar):
1423         (WebCore::ScrollView::updateScrollbars):
1424
1425 2011-07-06  Nate Chapin  <japhet@chromium.org>
1426
1427         Don't let all subresources keep isLoadingInAPISense() from
1428         returning false, only requests that affect
1429         CachedResourceRequest::requestCount().
1430         https://bugs.webkit.org/show_bug.cgi?id=62066
1431
1432         Reviewed by Adam Barth.
1433
1434         * dom/Document.cpp:
1435         (WebCore::Document::Document):
1436         (WebCore::Document::dispatchWindowLoadEvent):
1437         * dom/Document.h:
1438         (WebCore::Document::loadEventFinished):
1439         * loader/DocumentLoader.cpp:
1440         (WebCore::DocumentLoader::isLoadingInAPISense):
1441
1442 2011-07-06  Pavel Feldman  <pfeldman@google.com>
1443
1444         Web Inspector: implement drag'n'drop in the elements panel for reordering nodes.
1445         https://bugs.webkit.org/show_bug.cgi?id=63990
1446
1447         Reviewed by Yury Semikhatsky.
1448
1449         * inspector/Inspector.json:
1450         * inspector/InspectorDOMAgent.cpp:
1451         (WebCore::InspectorDOMAgent::moveTo):
1452         * inspector/InspectorDOMAgent.h:
1453         * inspector/front-end/DOMAgent.js:
1454         (WebInspector.DOMNode.prototype._removeChild):
1455         (WebInspector.DOMNode.prototype.ownerDocumentElement):
1456         (WebInspector.DOMNode.prototype.moveTo):
1457         (WebInspector.DOMAgent.prototype._childNodeRemoved):
1458         * inspector/front-end/ElementsTreeOutline.js:
1459         (WebInspector.ElementsTreeOutline):
1460         (WebInspector.ElementsTreeOutline.prototype._ondragstart):
1461         (WebInspector.ElementsTreeOutline.prototype._ondragover):
1462         (WebInspector.ElementsTreeOutline.prototype._ondragleave):
1463         (WebInspector.ElementsTreeOutline.prototype._isValidDragSourceOrTarget):
1464         (WebInspector.ElementsTreeOutline.prototype._ondragend.callback):
1465         (WebInspector.ElementsTreeOutline.prototype._ondragend):
1466         (WebInspector.ElementsTreeOutline.prototype._clearDragOverTreeElementMarker):
1467         (WebInspector.ElementsTreeOutline.prototype.populateContextMenu.focusElement):
1468         (WebInspector.ElementsTreeOutline.prototype.populateContextMenu):
1469         (WebInspector.ElementsTreeElement.prototype.onattach):
1470         * inspector/front-end/inspector.css:
1471         (.outline-disclosure li.elements-drag-over .selection):
1472         * inspector/front-end/treeoutline.js:
1473         (TreeOutline.prototype.treeElementFromEvent):
1474
1475 2011-07-06  Andras Becsi  <abecsi@webkit.org>
1476
1477         Fix "warning: a `;' might be needed at the end of action code"
1478
1479         Unreviewed gardening.
1480
1481         No new tests needed.
1482
1483         * css/CSSGrammar.y: Future versions of Bison will not add the ';' so add it.
1484
1485 2011-07-06  Andras Becsi  <abecsi@webkit.org>
1486
1487         [Qt] Revome unused but set shadowBlur variable after r90406.
1488
1489         Unreviewed build fix.
1490
1491         No new tests needed.
1492
1493         * platform/graphics/qt/GraphicsContextQt.cpp:
1494         (WebCore::GraphicsContext::fillPath): Use the GraphicsContext brush.
1495
1496 2011-07-06  Andras Becsi  <abecsi@webkit.org>
1497
1498         [Qt] Remove duplicate entries of ShadowBlur sources from project file.
1499
1500         Rubber-stamped by Csaba Osztrogon√°c.
1501
1502         No new tests needed.
1503
1504         * WebCore.pro: These files were already added in r84410.
1505
1506 2011-07-05  Kentaro Hara  <haraken@google.com>
1507
1508         Trigger a 'change' event whenever selected files are changed
1509         https://bugs.webkit.org/show_bug.cgi?id=63929
1510
1511         Reviewed by Kent Tamura.
1512
1513         Record previously selected files and then compare them with newly selected files.
1514         If the previously selected files and their order are not equal to those of
1515         the newly selected files, we trigger the 'change' event.
1516
1517         Test: fast/forms/file-input-change-event.html
1518
1519         * html/FileInputType.cpp:
1520         (WebCore::FileInputType::filesChosen): Calls dispathChangeEvent() only when the previously selected files are different from the newly selected files
1521
1522 2011-06-29  Kent Tamura  <tkent@chromium.org>
1523
1524         Reviewed by Alexey Proskuryakov.
1525
1526         [Mac] REGRESSION (r88415): Range slider doesn't have focus appearance.
1527         https://bugs.webkit.org/show_bug.cgi?id=63573
1528
1529         * rendering/RenderThemeMac.mm:
1530         (WebCore::RenderThemeMac::paintSliderThumb):
1531         Need to pass the RenderObject of the owner <input> because
1532         updateFocusedState() checks the outline style of the specified
1533         renderer, and we'd like to make a slider thumb reflect the owner
1534         focus style.
1535
1536 2011-07-05  Hans Wennborg  <hans@chromium.org>
1537
1538         [V8][Chromium] Remove use of OwnHandle from V8LocalContext
1539         https://bugs.webkit.org/show_bug.cgi?id=63925
1540
1541         Reviewed by Adam Barth.
1542
1543         Replace the OwnHandle<> member in V8LocalContext with
1544         v8::Persistent<v8::Context>.
1545         The code that used OwnHandle<> would not correctly Dispose
1546         of the Context, which would cause the memory to fill up when creating
1547         and destructing many V8LocalContext objects, such as in the case
1548         of IndexedDB.
1549
1550         * bindings/v8/V8Utilities.cpp:
1551         (WebCore::V8LocalContext::V8LocalContext):
1552         (WebCore::V8LocalContext::~V8LocalContext):
1553         * bindings/v8/V8Utilities.h:
1554
1555 2011-07-05  Igor Oliveira  <igor.oliveira@openbossa.org>
1556
1557         [Qt] Add ShadowBlur support
1558         https://bugs.webkit.org/show_bug.cgi?id=62997
1559
1560         Use ShadowBlur instead of ContextShadow to handle canvas and css shadows. ShadowBlur is
1561         a newer and platform independent shadow implementation.
1562         Qt QPainter does not have support for shadows so is necessary to create a layer support
1563         to draw complex shapes and fonts. The beginShadowLayer creates a temporary shadow buffer
1564         where the canvas can draw onto and endShadowLayer applies the blur filter, colors the
1565         shadow buffer and draw the final shadow to the graphics context.
1566
1567         Reviewed by Andreas Kling.
1568
1569         * WebCore.pro:
1570         * platform/graphics/GraphicsContext.cpp:
1571         * platform/graphics/GraphicsContext.h:
1572         * platform/graphics/ShadowBlur.cpp:
1573         (WebCore::ShadowBlur::ShadowBlur):
1574         (WebCore::ShadowBlur::setShadowValues):
1575         (WebCore::ShadowBlur::updateShadowBlurValues):
1576         (WebCore::ShadowBlur::clear):
1577         (WebCore::ShadowBlur::blurAndColorShadowBuffer):
1578         (WebCore::ShadowBlur::beginShadowLayer):
1579         (WebCore::ShadowBlur::endShadowLayer):
1580         * platform/graphics/ShadowBlur.h:
1581         (WebCore::ShadowBlur::type):
1582         * platform/graphics/qt/ContextShadowQt.cpp: Removed.
1583         * platform/graphics/qt/FontQt.cpp:
1584         (WebCore::drawTextCommon):
1585         (WebCore::Font::drawGlyphs):
1586         * platform/graphics/qt/GraphicsContextQt.cpp:
1587         (WebCore::GraphicsContextPlatformPrivate::mustUseShadowBlur):
1588         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
1589         (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
1590         (WebCore::GraphicsContext::savePlatformState):
1591         (WebCore::GraphicsContext::restorePlatformState):
1592         (WebCore::GraphicsContext::fillPath):
1593         (WebCore::GraphicsContext::strokePath):
1594         (WebCore::GraphicsContext::fillRect):
1595         (WebCore::GraphicsContext::fillRoundedRect):
1596         (WebCore::GraphicsContext::shadowBlur):
1597         (WebCore::GraphicsContext::clipBounds):
1598         (WebCore::GraphicsContext::setPlatformShadow):
1599         (WebCore::GraphicsContext::clearPlatformShadow):
1600         * platform/graphics/qt/ImageQt.cpp:
1601         (WebCore::BitmapImage::draw):
1602         * platform/graphics/qt/StillImageQt.cpp:
1603         (WebCore::StillImage::draw):
1604
1605 2011-07-05  Sam Weinig  <sam@webkit.org>
1606
1607         Null deref accessing CustomEvent.detail
1608         <rdar://problem/9724577>
1609         https://bugs.webkit.org/show_bug.cgi?id=63885
1610
1611         Reviewed by Anders Carlsson.
1612
1613         Test: fast/events/custom-event-uninitialized.html
1614
1615         * bindings/scripts/CodeGeneratorJS.pm:
1616         Guard against uninitialized script value.
1617
1618 2011-07-05  Pratik Solanki  <psolanki@apple.com>
1619
1620         Reviewed by Dan Bernstein.
1621
1622         Coalesce data array into one NSData before calling didReceiveData
1623         https://bugs.webkit.org/show_bug.cgi?id=63916
1624         <rdar://problem/9715181>
1625
1626         Instead of calling didReceiveData multiple times with smaller chunks of data, we merge the
1627         data buffers into one and call it once.
1628
1629         No new tests because the flag isn't enabled yet.
1630
1631         * platform/network/mac/ResourceHandleMac.mm:
1632         (-[WebCoreResourceHandleAsDelegate connection:didReceiveDataArray:]):
1633
1634 2011-07-05  Tamas Czene  <Czene.Tamas@stud.u-szeged.hu>
1635
1636         Reviewed by Simon Fraser.
1637
1638         Remove virtual functions from StyleImage.
1639         https://bugs.webkit.org/show_bug.cgi?id=63909
1640
1641         We can remove the virtual "isChachedImage, isPendingImage, isGeneratedImage" functions to speed up the StyleImage.
1642         Some profile data shows this part is significant, especially in small CSS-based sites.
1643         Removing the virtual functions - removing the calls - makes a small performance progression on this part.
1644
1645         * rendering/style/StyleCachedImage.h:
1646         (WebCore::StyleCachedImage::StyleCachedImage):
1647         * rendering/style/StyleGeneratedImage.h:
1648         (WebCore::StyleGeneratedImage::StyleGeneratedImage):
1649         * rendering/style/StyleImage.h:
1650         (WebCore::StyleImage::isCachedImage):
1651         (WebCore::StyleImage::isPendingImage):
1652         (WebCore::StyleImage::isGeneratedImage):
1653         (WebCore::StyleImage::StyleImage):
1654         * rendering/style/StylePendingImage.h:
1655         (WebCore::StylePendingImage::StylePendingImage):
1656
1657 2011-07-05  Pavel Feldman  <pfeldman@google.com>
1658
1659         Web Inspector: add "element state" setting to the styles section title.
1660         https://bugs.webkit.org/show_bug.cgi?id=63932
1661
1662         Reviewed by Yury Semikhatsky.
1663
1664         * English.lproj/localizedStrings.js:
1665         * WebCore.gypi:
1666         * inspector/front-end/Images/paneElementStateButtons.png: Added.
1667         * inspector/front-end/StylesSidebarPane.js:
1668         (WebInspector.StylesSidebarPane.muteEventListener):
1669         (WebInspector.StylesSidebarPane):
1670         (WebInspector.StylesSidebarPane.prototype.update):
1671         (WebInspector.StylesSidebarPane.prototype._rebuildUpdate):
1672         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
1673         (WebInspector.StylesSidebarPane.prototype.addBlankSection):
1674         (WebInspector.StylesSidebarPane.prototype.registerShortcuts):
1675         (WebInspector.StylesSidebarPane.prototype._toggleElementStatePane):
1676         (WebInspector.StylesSidebarPane.prototype._createElementStatePane.clickListener):
1677         (WebInspector.StylesSidebarPane.prototype._createElementStatePane.createCheckbox):
1678         (WebInspector.StylesSidebarPane.prototype._createElementStatePane):
1679         * inspector/front-end/WebKit.qrc:
1680         * inspector/front-end/inspector.css:
1681         (.pane > .title > .pane-title-button:active, .pane > .title > .pane-title-button.toggled):
1682         (.pane > .title > .pane-title-button.element-state):
1683         (.styles-element-state-pane):
1684         (.styles-element-state-pane.expanded):
1685         (.styles-element-state-pane > table):
1686         (.styles-element-state-pane input):
1687
1688 2011-06-22  Pavel Podivilov  <podivilov@chromium.org>
1689
1690         Reviewed by Yury Semikhatsky.
1691
1692         Web Inspector: extract duplicated code that deals with source mappings.
1693         https://bugs.webkit.org/show_bug.cgi?id=63139
1694
1695         * inspector/front-end/ConsoleView.js:
1696         (WebInspector.ConsoleMessage.prototype.isEqual):
1697         (WebInspector.ConsoleMessage.prototype.get stackTrace):
1698         * inspector/front-end/DebuggerPresentationModel.js:
1699         (WebInspector.DebuggerPresentationModel.prototype._uiLocationToScriptLocation):
1700         (WebInspector.DebuggerPresentationModel.prototype._updateAnchor):
1701         (WebInspector.DebuggerPresentationModel.prototype._addConsoleMessage.didGetUILocation):
1702         (WebInspector.DebuggerPresentationModel.prototype._addConsoleMessage):
1703         (WebInspector.DebuggerPresentationModel.prototype.continueToLine):
1704         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger.didGetScriptLocation):
1705         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger):
1706         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded.updateSourceFileBreakpointsAndDispatchEvent):
1707         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded.didGetUILocation):
1708         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded):
1709         (WebInspector.DebuggerPresentationModel.prototype._debuggerPaused):
1710         (WebInspector.DebuggerPresentationModel.prototype._sourceFileForScript):
1711         (WebInspector.PresenationCallFrame):
1712         (WebInspector.PresenationCallFrame.prototype.sourceLine):
1713
1714 2011-07-05  Ilya Tikhonovsky  <loislo@chromium.org>
1715
1716         Web Inspector: WebInspector frontend reports a protocol error in remote debugging mode.
1717         https://bugs.webkit.org/show_bug.cgi?id=63935
1718
1719         it was error generated for obsolete message "loaded" which was sent from frontend to backend.
1720
1721         Reviewed by Yury Semikhatsky.
1722
1723         * inspector/CodeGeneratorInspector.pm:
1724         * inspector/front-end/inspector.js:
1725         (WebInspector.loaded.WebInspector.socket.onopen):
1726         (WebInspector.loaded):
1727
1728 2011-07-05  Andrey Kosyakov  <caseq@chromium.org>
1729
1730         Web Inspector: [refactoring] remove network-sidebar style, add network-log-grid
1731         https://bugs.webkit.org/show_bug.cgi?id=63913
1732
1733         Reviewed by Yury Semikhatsky.
1734
1735         * inspector/front-end/NetworkPanel.js:
1736         (WebInspector.NetworkPanel):
1737         (WebInspector.NetworkPanel.prototype._createTable):
1738         * inspector/front-end/networkPanel.css:
1739         (.network-log-grid):
1740         (.network-log-grid table.data):
1741         (.network-log-grid.small table.data):
1742         (.network-log-grid td):
1743         (.network-log-grid.small td):
1744         (.network-log-grid th):
1745         (.network-log-grid.small th):
1746         (.network-log-grid th, .network.panel .data-grid th.sort-descending, .network.panel .data-grid th.sort-ascending):
1747         (.network-log-grid .data-container):
1748         (.network-log-grid.small .data-container):
1749         (.network-log-grid select):
1750         (.network-log-grid.small tr.offscreen):
1751         (.network-log-grid tr.offscreen):
1752         (.network-log-grid tr.offscreen td):
1753         (.network-log-grid tr.filler):
1754         (.network-log-grid tr:not(.filler) td.name-column):
1755         (.network.panel:not(.viewing-resource) .network-log-grid td.name-column:hover):
1756         (.network-log-grid td.time-column):
1757         (.network-log-grid.small .network-graph-side):
1758         (.network-log-grid th.sortable:active):
1759         (.network-log-grid tr.selected .network-cell-subtitle):
1760         (.network-log-grid .icon):
1761         (.network-log-grid.small .icon):
1762         (.network-log-grid .network-category-scripts .icon):
1763         (.network-log-grid.small .network-category-scripts .icon):
1764         (.network-log-grid .network-category-documents .icon):
1765         (.network-log-grid.small .network-category-documents .icon):
1766         (.network-log-grid .network-category-stylesheets .icon):
1767         (.network-log-grid.small .network-category-stylesheets .icon):
1768         (.network-log-grid .network-category-images .icon):
1769         (.network-log-grid.small .network-category-images .icon):
1770         (.network-log-grid .image-network-icon-preview):
1771         (.network-log-grid.small .image-network-icon-preview):
1772         (.network-timeline-grid.small .network-event-divider):
1773         (.network-log-grid .resources-dividers):
1774         (.network-log-grid .resources-dividers-label-bar):
1775         (.network-timeline-grid.small .resources-dividers-label-bar):
1776         (.network-timeline-grid .resources-divider-label):
1777         (.network-timeline-grid .resources-dividers-label-bar .resources-divider):
1778         (.network-timeline-grid.small .resources-dividers-label-bar .resources-divider):
1779         (.network-timeline-grid .resources-divider.first .resources-divider-label):
1780         (.network-timeline-grid .resources-dividers-label-bar .resources-divider.first):
1781         (.network-timeline-grid tr.filler td):
1782         (.network-summary-bar td):
1783         (.network.panel.viewing-resource .network-log-grid th):
1784         (.network-log-grid.full-grid-mode .viewer-column):
1785         (.network-log-grid.brief-grid-mode .time-column):
1786         (.network-log-grid.viewing-resource-mode .timeline-column):
1787         (.network.panel .sidebar):
1788         (.network.panel.viewing-resource .network-log-grid .data-grid-resizer):
1789
1790 2011-07-05  Alexandru Chiculita  <achicu@adobe.com>
1791
1792         Reviewed by Simon Hausmann.
1793
1794         [Qt] "cat" is not available when building.
1795         https://bugs.webkit.org/show_bug.cgi?id=63924
1796
1797         Changed 'cat' to 'perl -ne \"print $1\"' because 'cat' is not available on Windows with
1798         MSVC toolchain. It passed the Qt buildbots, because they run with cygwin.
1799
1800         Project file change. No tests needed.
1801
1802         * CodeGenerators.pri:
1803 2011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
1804
1805         Unreviewed; Qt Linux Release minimal compile fix.
1806
1807         * testing/Internals.h:
1808         (WebCore::Internals::setInspectorResourcesDataSizeLimits):
1809         * testing/Internals.idl:
1810
1811 2011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
1812
1813         Web Inspector: Show content for plugin requests in network panel.
1814         https://bugs.webkit.org/show_bug.cgi?id=30080
1815
1816         Now the data from didReceiveData callback is passed to inspector.
1817         It is then saved in NetworkResourcesData structure for plugin requests.
1818         Added window.internals.setInspectorResourcesDataSizeLimits() method
1819         for testing replacement logic.
1820
1821         Reviewed by Pavel Feldman.
1822
1823         Tests: http/tests/inspector/network/network-content-replacement-embed.html
1824                http/tests/inspector/network/network-content-replacement-xhr.html
1825                http/tests/inspector/network/network-embed.html
1826
1827         * WebCore.exp.in:
1828         * inspector/InspectorController.cpp:
1829         (WebCore::InspectorController::setResourcesDataSizeLimitsFromInternals):
1830         * inspector/InspectorController.h:
1831         * inspector/InspectorInstrumentation.cpp:
1832         (WebCore::InspectorInstrumentation::didReceiveDataImpl):
1833         * inspector/InspectorInstrumentation.h:
1834         (WebCore::InspectorInstrumentation::didReceiveData):
1835         * inspector/InspectorResourceAgent.cpp:
1836         (WebCore::InspectorResourceAgent::didReceiveResponse):
1837         (WebCore::InspectorResourceAgent::didReceiveData):
1838         (WebCore::InspectorResourceAgent::didFinishLoading):
1839         (WebCore::InspectorResourceAgent::setInitialXHRContent):
1840         (WebCore::InspectorResourceAgent::setResourcesDataSizeLimitsFromInternals):
1841         (WebCore::InspectorResourceAgent::getResourceContent):
1842         * inspector/InspectorResourceAgent.h:
1843         * inspector/NetworkResourcesData.cpp:
1844         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
1845         (WebCore::NetworkResourcesData::ResourceData::setContent):
1846         (WebCore::NetworkResourcesData::ResourceData::purgeContent):
1847         (WebCore::NetworkResourcesData::ResourceData::createDecoder):
1848         (WebCore::NetworkResourcesData::ResourceData::dataLength):
1849         (WebCore::NetworkResourcesData::ResourceData::appendData):
1850         (WebCore::NetworkResourcesData::ResourceData::decodeDataToContent):
1851         (WebCore::NetworkResourcesData::NetworkResourcesData):
1852         (WebCore::NetworkResourcesData::responseReceived):
1853         (WebCore::NetworkResourcesData::setResourceContent):
1854         (WebCore::NetworkResourcesData::maybeAddResourceData):
1855         (WebCore::NetworkResourcesData::maybeDecodeDataToContent):
1856         (WebCore::NetworkResourcesData::data):
1857         (WebCore::NetworkResourcesData::clear):
1858         (WebCore::NetworkResourcesData::setResourcesDataSizeLimits):
1859         (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
1860         (WebCore::NetworkResourcesData::ensureFreeSpace):
1861         * inspector/NetworkResourcesData.h:
1862         (WebCore::NetworkResourcesData::ResourceData::hasContent):
1863         (WebCore::NetworkResourcesData::ResourceData::content):
1864         (WebCore::NetworkResourcesData::ResourceData::decoder):
1865         (WebCore::NetworkResourcesData::ResourceData::buffer):
1866         (WebCore::NetworkResourcesData::ResourceData::setBuffer):
1867         (WebCore::NetworkResourcesData::ResourceData::hasData):
1868         * inspector/front-end/Resource.js:
1869         (WebInspector.Resource.prototype.get contentEncoded):
1870         * inspector/front-end/ResourcePreviewView.js:
1871         (WebInspector.ResourcePreviewView.prototype.contentLoaded):
1872         (WebInspector.ResourcePreviewView.prototype._createEmptyView):
1873         (WebInspector.ResourcePreviewView.prototype._createPreviewView):
1874         * inspector/front-end/ResourceView.js:
1875         (WebInspector.ResourceView.hasTextContent):
1876         * loader/DocumentThreadableLoader.cpp:
1877         (WebCore::DocumentThreadableLoader::didReceiveData):
1878         * loader/FrameLoader.cpp:
1879         (WebCore::FrameLoader::willLoadMediaElementURL):
1880         (WebCore::FrameLoader::commitProvisionalLoad):
1881         (WebCore::FrameLoader::loadResourceSynchronously):
1882         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
1883         * loader/ResourceLoadNotifier.cpp:
1884         (WebCore::ResourceLoadNotifier::didReceiveData):
1885         (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
1886         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
1887         * loader/ResourceLoadNotifier.h:
1888         * loader/appcache/ApplicationCacheGroup.cpp:
1889         (WebCore::ApplicationCacheGroup::didReceiveData):
1890         * testing/Internals.cpp:
1891         (WebCore::Internals::setInspectorResourcesDataSizeLimits):
1892         * testing/Internals.h:
1893         * testing/Internals.idl:
1894
1895 2011-07-05  Kent Tamura  <tkent@chromium.org>
1896
1897         Add an assertion that percent height box is unregistered correctly.
1898         https://bugs.webkit.org/show_bug.cgi?id=62792
1899
1900         Reviewed by Hajime Morita.
1901
1902         No new tests. This won't change behavior.
1903
1904         * rendering/RenderBlock.cpp:
1905         (WebCore::RenderBlock::hasPercentHeightDescendant): Added.
1906         * rendering/RenderBlock.h: Declare hasPercentHeightDescendant().
1907         * rendering/RenderBox.cpp:
1908         (WebCore::RenderBox::destroy): Assert !hasPercentHeightDescendant().
1909
1910 2011-07-04  Pavel Feldman  <pfeldman@google.com>
1911
1912         Web Inspector: Enable settings screen with settings for console and elements panels.
1913         https://bugs.webkit.org/show_bug.cgi?id=62853
1914
1915         Reviewed by Yury Semikhatsky.
1916
1917         * English.lproj/localizedStrings.js:
1918         * inspector/front-end/HelpScreen.js:
1919         (WebInspector.HelpScreen.prototype.hide):
1920         * inspector/front-end/SettingsScreen.js:
1921         (WebInspector.SettingsScreen):
1922         (WebInspector.SettingsScreen.prototype._createRadioSetting.clickListener):
1923         (WebInspector.SettingsScreen.prototype._createRadioSetting.get for):
1924         * inspector/front-end/ShortcutsScreen.js:
1925         (WebInspector.ShortcutsScreen.prototype.hide):
1926         * inspector/front-end/StylesSidebarPane.js:
1927         (WebInspector.StylesSidebarPane.prototype._colorFormatSettingChanged):
1928         (WebInspector.StylesSidebarPane.prototype._updateColorFormatFilter.get var):
1929         (WebInspector.StylesSidebarPane.prototype._updateColorFormatFilter):
1930         (WebInspector.StylesSidebarPane.prototype._changeSetting):
1931         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.):
1932         * inspector/front-end/inspector.css:
1933         (#counters):
1934         * inspector/front-end/inspector.js:
1935         (WebInspector._createGlobalStatusBarItems):
1936         (WebInspector._toggleSettings):
1937         (WebInspector._showShortcutsScreen):
1938         (WebInspector._hideShortcutsScreen):
1939         (WebInspector._showSettingsScreen.onhide):
1940         (WebInspector._showSettingsScreen):
1941         (WebInspector._hideSettingsScreen):
1942         (WebInspector.documentKeyDown):
1943
1944 2011-07-05  Shinya Kawanaka  <shinyak@google.com>
1945
1946         Reviewed by Kent Tamura.
1947
1948         The default step is used when attribute step of input[type='number'] is "any".
1949         https://bugs.webkit.org/show_bug.cgi?id=57723
1950
1951         When step is "any", 0 was chosen as step, but this is not intuitive.
1952         So changed to use the default step.
1953
1954         * html/HTMLInputElement.cpp:
1955         (WebCore::HTMLInputElement::getAllowedValueStep):
1956           Calls getAllowedValueStepWithDecimalPlaces with RejectAny.
1957         (WebCore::HTMLInputElement::getAllowedValueStepWithDecimalPlaces):
1958           Takes a new arugument AnyStepHandling. If it is AnyIsDefaultStep, this method
1959           allows "step" attribute to take a value "any" to use the default step as step value.
1960           Otherwise, INVALID_STATE_ERR will be returned if "step" is "any".
1961         (WebCore::HTMLInputElement::applyStep): ditto.
1962         (WebCore::HTMLInputElement::stepUp):
1963           Calls applyStep with RejectAny.
1964         (WebCore::HTMLInputElement::stepDown): ditto.
1965         (WebCore::HTMLInputElement::stepUpFromRenderer):
1966           Removes a check that step is "any". It is checked in getAllowedValueStepWithDecimalPlaces.
1967         * html/HTMLInputElement.h:
1968
1969 2011-07-04  Dominic Cooney   <dominicc@chromium.org>
1970
1971         Simplify <progress> element's isDeterminate logic.
1972         https://bugs.webkit.org/show_bug.cgi?id=63889
1973
1974         Reviewed by Hajime Morita.
1975
1976         Covered by existing tests
1977         fast/dom/HTMLProgressElement/indeterminate-progress-*.html
1978
1979         * html/HTMLProgressElement.cpp:
1980         (WebCore::HTMLProgressElement::position): don't duplicate isDeterminate
1981         (WebCore::HTMLProgressElement::isDeterminate): remove redundant tests
1982         (WebCore::HTMLProgressElement::didElementStateChange): fix formatting
1983         * html/HTMLProgressElement.h:
1984
1985 2011-07-04  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1986
1987         Reviewed by Kent Tamura.
1988
1989         [EFL] Add hasOwnDisabledStateHandlingFor() to RenderThemeEfl
1990         https://bugs.webkit.org/show_bug.cgi?id=63884
1991
1992         As MediaControlRootElement decides whether it will display timeline
1993         according to the return value of RenderTheme's hasOwnDisabledStateHandlingFor(),
1994         RenderThemeEfl has to implement this function.
1995
1996         Existing tests cover the visibility of the controls.
1997
1998         * platform/efl/RenderThemeEfl.h:
1999         (WebCore::RenderThemeEfl::hasOwnDisabledStateHandlingFor):
2000
2001 2011-07-04  Kent Tamura  <tkent@chromium.org>
2002
2003         REGRESSION (r87067): Text overflows from short height text field.
2004         https://bugs.webkit.org/show_bug.cgi?id=61768
2005
2006         Reviewed by Dimitri Glazkov.
2007
2008         Since r87067, the RenderStyle for the inner text element is reset
2009         by the value update, but the renderer for the inner text element
2010         keeps to have metrics calculated by the previous style. So
2011         RenderTextControlSingleLine::layout() didn't set a desired height
2012         to the renderer for the inner text element.
2013
2014         This patch changes the style creation code so that it has the
2015         desired height initially.
2016
2017         Test: fast/forms/textfield-overflow-by-value-update.html
2018
2019         * rendering/RenderTextControlSingleLine.cpp:
2020         (WebCore::RenderTextControlSingleLine::RenderTextControlSingleLine):
2021         Initialize m_desiredInnerTextHeight.
2022         (WebCore::RenderTextControlSingleLine::layout):
2023         Update m_desiredInnerTextHeight.
2024         (WebCore::RenderTextControlSingleLine::styleDidChange):
2025         Reset m_desiredInnerTextHeight.
2026         (WebCore::RenderTextControlSingleLine::createInnerTextStyle):
2027         Sets the height if m_desiredInnerTextHeight has a concrete value.
2028         * rendering/RenderTextControlSingleLine.h:
2029         Declare m_desiredInnerTextHeight.
2030
2031 2011-07-04  MORITA Hajime  <morrita@google.com>
2032
2033         Accessing ShadowRoot.nodeList causes an assertion failure.
2034         http://webkit.org/b/63798
2035         
2036         The TreeScope destructor did clear the reference to TreeScope, 
2037         then the Node destructor accessing treeScope(), which results 
2038         an inconsistent state during the NodeList cache cleanup.
2039
2040         This change clears NodeList cache during the TreeScope destructor.
2041         The Node destructor no longer does problematic NodeList cache
2042         manipulation.
2043
2044         Test: fast/dom/shadow/shadow-root-node-list.html
2045
2046         Reviewed by Dimitri Glazkov.
2047         
2048         * dom/Node.cpp:
2049         (WebCore::Node::~Node):
2050         (WebCore::Node::clearRareData):
2051         * dom/Node.h:
2052         * dom/TreeScope.cpp:
2053         (WebCore::TreeScope::~TreeScope):
2054
2055 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
2056
2057         ResourceLoadNotifier::dispatchWillSendRequest should not compare StringImpl directly
2058         https://bugs.webkit.org/show_bug.cgi?id=63873
2059
2060         Reviewed by Alexey Proskuryakov.
2061
2062         * loader/ResourceLoadNotifier.cpp:
2063         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
2064
2065 2011-07-04  Sheriff Bot  <webkit.review.bot@gmail.com>
2066
2067         Unreviewed, rolling out r90373.
2068         http://trac.webkit.org/changeset/90373
2069         https://bugs.webkit.org/show_bug.cgi?id=63917
2070
2071         Breaks Qt Linux Release minimal (Requested by vsevik on
2072         #webkit).
2073
2074         * WebCore.exp.in:
2075         * inspector/InspectorController.cpp:
2076         * inspector/InspectorController.h:
2077         * inspector/InspectorInstrumentation.cpp:
2078         (WebCore::InspectorInstrumentation::didReceiveContentLengthImpl):
2079         * inspector/InspectorInstrumentation.h:
2080         (WebCore::InspectorInstrumentation::didReceiveContentLength):
2081         * inspector/InspectorResourceAgent.cpp:
2082         (WebCore::InspectorResourceAgent::didReceiveResponse):
2083         (WebCore::InspectorResourceAgent::didReceiveContentLength):
2084         (WebCore::InspectorResourceAgent::didFinishLoading):
2085         (WebCore::InspectorResourceAgent::setInitialXHRContent):
2086         (WebCore::InspectorResourceAgent::getResourceContent):
2087         * inspector/InspectorResourceAgent.h:
2088         * inspector/NetworkResourcesData.cpp:
2089         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
2090         (WebCore::NetworkResourcesData::ResourceData::content):
2091         (WebCore::NetworkResourcesData::ResourceData::appendContent):
2092         (WebCore::NetworkResourcesData::ResourceData::purgeContent):
2093         (WebCore::NetworkResourcesData::NetworkResourcesData):
2094         (WebCore::NetworkResourcesData::responseReceived):
2095         (WebCore::NetworkResourcesData::addResourceContent):
2096         (WebCore::NetworkResourcesData::data):
2097         (WebCore::NetworkResourcesData::clear):
2098         (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
2099         (WebCore::NetworkResourcesData::ensureFreeSpace):
2100         * inspector/NetworkResourcesData.h:
2101         (WebCore::NetworkResourcesData::ResourceData::hasContent):
2102         (WebCore::NetworkResourcesData::ResourceData::setIsContentPurged):
2103         (WebCore::NetworkResourcesData::ResourceData::textEncodingName):
2104         (WebCore::NetworkResourcesData::ResourceData::setTextEncodingName):
2105         * inspector/front-end/Resource.js:
2106         * inspector/front-end/ResourcePreviewView.js:
2107         (WebInspector.ResourcePreviewView.prototype.contentLoaded):
2108         (WebInspector.ResourcePreviewView.prototype._createInnerView):
2109         * inspector/front-end/ResourceView.js:
2110         (WebInspector.ResourceView.hasTextContent):
2111         * loader/DocumentThreadableLoader.cpp:
2112         (WebCore::DocumentThreadableLoader::didReceiveData):
2113         * loader/FrameLoader.cpp:
2114         (WebCore::FrameLoader::willLoadMediaElementURL):
2115         (WebCore::FrameLoader::commitProvisionalLoad):
2116         (WebCore::FrameLoader::loadResourceSynchronously):
2117         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
2118         * loader/ResourceLoadNotifier.cpp:
2119         (WebCore::ResourceLoadNotifier::didReceiveData):
2120         (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
2121         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
2122         * loader/ResourceLoadNotifier.h:
2123         * loader/appcache/ApplicationCacheGroup.cpp:
2124         (WebCore::ApplicationCacheGroup::didReceiveData):
2125         * testing/Internals.cpp:
2126         * testing/Internals.h:
2127         * testing/Internals.idl:
2128
2129 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
2130
2131         Web Inspector: Show content for plugin requests in network panel.
2132         https://bugs.webkit.org/show_bug.cgi?id=30080
2133
2134         Reviewed by Pavel Feldman.
2135
2136         Tests: http/tests/inspector/network/network-content-replacement-embed.html
2137                http/tests/inspector/network/network-content-replacement-xhr.html
2138                http/tests/inspector/network/network-embed.html
2139
2140         * WebCore.exp.in:
2141         * inspector/InspectorController.cpp:
2142         (WebCore::InspectorController::setResourcesDataSizeLimitsFromInternals):
2143         * inspector/InspectorController.h:
2144         * inspector/InspectorInstrumentation.cpp:
2145         (WebCore::InspectorInstrumentation::didReceiveDataImpl):
2146         * inspector/InspectorInstrumentation.h:
2147         (WebCore::InspectorInstrumentation::didReceiveData):
2148         * inspector/InspectorResourceAgent.cpp:
2149         (WebCore::InspectorResourceAgent::didReceiveResponse):
2150         (WebCore::InspectorResourceAgent::didReceiveData):
2151         (WebCore::InspectorResourceAgent::didFinishLoading):
2152         (WebCore::InspectorResourceAgent::setInitialXHRContent):
2153         (WebCore::InspectorResourceAgent::setResourcesDataSizeLimitsFromInternals):
2154         (WebCore::InspectorResourceAgent::getResourceContent):
2155         * inspector/InspectorResourceAgent.h:
2156         * inspector/NetworkResourcesData.cpp:
2157         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
2158         (WebCore::NetworkResourcesData::ResourceData::setContent):
2159         (WebCore::NetworkResourcesData::ResourceData::purgeContent):
2160         (WebCore::NetworkResourcesData::ResourceData::createDecoder):
2161         (WebCore::NetworkResourcesData::ResourceData::dataLength):
2162         (WebCore::NetworkResourcesData::ResourceData::appendData):
2163         (WebCore::NetworkResourcesData::ResourceData::decodeDataToContent):
2164         (WebCore::NetworkResourcesData::NetworkResourcesData):
2165         (WebCore::NetworkResourcesData::responseReceived):
2166         (WebCore::NetworkResourcesData::setResourceContent):
2167         (WebCore::NetworkResourcesData::maybeAddResourceData):
2168         (WebCore::NetworkResourcesData::maybeDecodeDataToContent):
2169         (WebCore::NetworkResourcesData::data):
2170         (WebCore::NetworkResourcesData::clear):
2171         (WebCore::NetworkResourcesData::setResourcesDataSizeLimits):
2172         (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
2173         (WebCore::NetworkResourcesData::ensureFreeSpace):
2174         * inspector/NetworkResourcesData.h:
2175         (WebCore::NetworkResourcesData::ResourceData::hasContent):
2176         (WebCore::NetworkResourcesData::ResourceData::content):
2177         (WebCore::NetworkResourcesData::ResourceData::decoder):
2178         (WebCore::NetworkResourcesData::ResourceData::buffer):
2179         (WebCore::NetworkResourcesData::ResourceData::setBuffer):
2180         (WebCore::NetworkResourcesData::ResourceData::hasData):
2181         * inspector/front-end/Resource.js:
2182         (WebInspector.Resource.prototype.get contentEncoded):
2183         * inspector/front-end/ResourcePreviewView.js:
2184         (WebInspector.ResourcePreviewView.prototype.contentLoaded):
2185         (WebInspector.ResourcePreviewView.prototype._createEmptyView):
2186         (WebInspector.ResourcePreviewView.prototype._createPreviewView):
2187         * inspector/front-end/ResourceView.js:
2188         (WebInspector.ResourceView.hasTextContent):
2189         * loader/DocumentThreadableLoader.cpp:
2190         (WebCore::DocumentThreadableLoader::didReceiveData):
2191         * loader/FrameLoader.cpp:
2192         (WebCore::FrameLoader::willLoadMediaElementURL):
2193         (WebCore::FrameLoader::commitProvisionalLoad):
2194         (WebCore::FrameLoader::loadResourceSynchronously):
2195         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
2196         * loader/ResourceLoadNotifier.cpp:
2197         (WebCore::ResourceLoadNotifier::didReceiveData):
2198         (WebCore::ResourceLoadNotifier::dispatchDidReceiveData):
2199         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
2200         * loader/ResourceLoadNotifier.h:
2201         * loader/appcache/ApplicationCacheGroup.cpp:
2202         (WebCore::ApplicationCacheGroup::didReceiveData):
2203         * testing/Internals.cpp:
2204         (WebCore::Internals::setInspectorResourcesDataSizeLimits):
2205         * testing/Internals.h:
2206         * testing/Internals.idl:
2207
2208 2011-07-04  Jeff Timanus  <twiz@chromium.org>
2209
2210         Reviewed by Stephen White.
2211
2212         Prevent calls to GrapicsContext3D::deleteTexture with id 0 in DrawingBuffer::clear().
2213         https://bugs.webkit.org/show_bug.cgi?id=63756
2214
2215         * platform/graphics/gpu/DrawingBuffer.cpp:
2216         (WebCore::DrawingBuffer::clear):
2217
2218 2011-07-04  Martin Robinson  <mrobinson@igalia.com>
2219
2220         Reviewed by Andreas Kling.
2221
2222         [GTK] r90148 did not apply to X11 platforms in WebKit1
2223         https://bugs.webkit.org/show_bug.cgi?id=63862
2224
2225         Correct the guard for an X11 specific piece of code. TARGET(X11) not
2226         defined for the GTK+ port.
2227
2228         No new tests. This is covered by an existing test.
2229
2230         * plugins/npapi.cpp: Correct the X11 guard.
2231         (NPN_InvalidateRect):
2232
2233 2011-07-04  Pavel Feldman  <pfeldman@google.com>
2234
2235         Web Inspector: implement settings panel.
2236         https://bugs.webkit.org/show_bug.cgi?id=63907
2237
2238         Reviewed by Yury Semikhatsky.
2239
2240         * English.lproj/localizedStrings.js:
2241         * WebCore.gypi:
2242         * WebCore.vcproj/WebCore.vcproj:
2243         * inspector/front-end/BreakpointsSidebarPane.js:
2244         (WebInspector.XHRBreakpointsSidebarPane.prototype._saveBreakpoints):
2245         (WebInspector.EventListenerBreakpointsSidebarPane.prototype._saveBreakpoints):
2246         * inspector/front-end/ConsoleView.js:
2247         (WebInspector.ConsoleView):
2248         (WebInspector.ConsoleView.prototype._handleContextMenuEvent.monitoringXHRItemAction):
2249         (WebInspector.ConsoleView.prototype._handleContextMenuEvent.get preserveLogItemAction):
2250         (WebInspector.ConsoleView.prototype._monitoringXHREnabledSettingChanged):
2251         (WebInspector.ConsoleView.prototype._registerShortcuts):
2252         * inspector/front-end/DOMBreakpointsSidebarPane.js:
2253         (WebInspector.DOMBreakpointsSidebarPane.prototype._saveBreakpoints):
2254         * inspector/front-end/DebuggerPresentationModel.js:
2255         (WebInspector.DebuggerPresentationModel.prototype._saveBreakpoints):
2256         * inspector/front-end/ElementsPanel.js:
2257         (WebInspector.ElementsPanel.prototype._contextMenuEventFired):
2258         (WebInspector.ElementsPanel.prototype._domWordWrapSettingChanged):
2259         (WebInspector.ElementsPanel.prototype._registerShortcuts):
2260         * inspector/front-end/EventListenersSidebarPane.js:
2261         (WebInspector.EventListenersSidebarPane.prototype):
2262         ():
2263         * inspector/front-end/HelpScreen.js:
2264         (WebInspector.HelpScreen):
2265         (WebInspector.HelpScreen.prototype.show):
2266         (WebInspector.HelpScreen.prototype.hide):
2267         (WebInspector.HelpScreen.prototype._onKeyDown):
2268         * inspector/front-end/NetworkItemView.js:
2269         * inspector/front-end/NetworkPanel.js:
2270         * inspector/front-end/Panel.js:
2271         (WebInspector.Panel.prototype.saveSidebarWidth):
2272         * inspector/front-end/ProfilesPanel.js:
2273         * inspector/front-end/ResourcesPanel.js:
2274         (WebInspector.BaseStorageTreeElement.prototype.onselect):
2275         (WebInspector.StorageCategoryTreeElement.prototype.onexpand):
2276         (WebInspector.StorageCategoryTreeElement.prototype.set oncollapse):
2277         * inspector/front-end/ScriptsPanel.js:
2278         (WebInspector.ScriptsPanel.prototype._sourceFileAdded.get if):
2279         (WebInspector.ScriptsPanel.prototype._setPauseOnExceptions.callback):
2280         (WebInspector.ScriptsPanel.prototype._createSidebarButtonAndRegisterShortcuts):
2281         * inspector/front-end/Settings.js:
2282         (WebInspector.Settings):
2283         (WebInspector.Settings.prototype.installApplicationSetting):
2284         (WebInspector.Setting):
2285         (WebInspector.Setting.prototype.addChangeListener):
2286         (WebInspector.Setting.prototype.removeChangeListener):
2287         (WebInspector.Setting.prototype.get var):
2288         (WebInspector.Setting.prototype):
2289         (WebInspector.Setting.prototype.set if):
2290         * inspector/front-end/SettingsScreen.js: Added.
2291         (WebInspector.SettingsScreen):
2292         (WebInspector.SettingsScreen.prototype._appendSection):
2293         (WebInspector.SettingsScreen.prototype._columnElement):
2294         (WebInspector.SettingsScreen.prototype._createCheckboxSetting.get listener):
2295         (WebInspector.SettingsScreen.prototype._createRadioSetting):
2296         * inspector/front-end/ShortcutsScreen.js: Renamed from Source/WebCore/inspector/front-end/ShortcutsHelp.js.
2297         (WebInspector.ShortcutsScreen):
2298         * inspector/front-end/StylesSidebarPane.js:
2299         (WebInspector.StylesSidebarPane.prototype.registerShortcuts):
2300         * inspector/front-end/WatchExpressionsSidebarPane.js:
2301         * inspector/front-end/WebKit.qrc:
2302         * inspector/front-end/helpScreen.css:
2303         (.help-window-main):
2304         (body.attached .help-window-main):
2305         (.help-window-caption):
2306         (body.attached .help-window-caption):
2307         (.help-content):
2308         (.help-close-button):
2309         (body.attached .help-close-button):
2310         (body.attached .help-content):
2311         (.help-table):
2312         (body.platform-mac .help-key):
2313         (.help-combine-keys):
2314         (.help-content p):
2315         (.help-content fieldset):
2316         (.help-content fieldset p):
2317         (.help-content p.help-section):
2318         (.help-section-title):
2319         (.help-content input[type=checkbox]):
2320         * inspector/front-end/inspector.css:
2321         (button.settings-status-bar-item):
2322         (.settings-status-bar-item .glyph):
2323         * inspector/front-end/inspector.html:
2324         * inspector/front-end/inspector.js:
2325         (WebInspector._createGlobalStatusBarItems):
2326         (WebInspector._toggleAttach):
2327         (WebInspector._toggleSettings):
2328         (WebInspector._registerShortcuts):
2329         (WebInspector.documentKeyDown):
2330
2331 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
2332
2333         Web Inspector: Resources loaded to Resources Panel from InspectorPageAgent do not have mime type set.
2334         https://bugs.webkit.org/show_bug.cgi?id=63701
2335
2336         Pass cachedResource/documentLoader mimeType from InspectorPageAgent to frontend.
2337
2338         Reviewed by Yury Semikhatsky.
2339
2340         Test: http/tests/inspector/resource-tree/resource-tree-mimetype.html
2341
2342         * inspector/Inspector.json:
2343         * inspector/InspectorPageAgent.cpp:
2344         (WebCore::InspectorPageAgent::buildObjectForFrame):
2345         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
2346         * inspector/front-end/ResourceTreeModel.js:
2347         (WebInspector.ResourceTreeModel.prototype._addFramesRecursively):
2348         (WebInspector.ResourceTreeModel.prototype._createResource):
2349
2350 2011-07-04  Yury Semikhatsky  <yurys@chromium.org>
2351
2352         Web Inspector: repeated message counter should be aligned with other message icons
2353         https://bugs.webkit.org/show_bug.cgi?id=63901
2354
2355         Reviewed by Pavel Feldman.
2356
2357         * inspector/front-end/inspector.css:
2358         (.console-message .bubble):
2359
2360 2011-07-04  Alexander Pavlov  <apavlov@chromium.org>
2361
2362         Reviewed by Pavel Feldman.
2363
2364         Web Inspector: Adding new CSS rules should be more discoverable in the UI
2365         https://bugs.webkit.org/show_bug.cgi?id=63803
2366
2367         * inspector/front-end/StylesSidebarPane.js:
2368         (WebInspector.StylesSidebarPane.prototype._createNewRule):
2369
2370 2011-07-04  Danilo Cesar Lemes de Paula  <danilo.cesar@collabora.co.uk>
2371
2372         [Qt] Fixing build with --media-stream flag enabled
2373         https://bugs.webkit.org/show_bug.cgi?id=63831
2374
2375         Reviewed by Benjamin Poulain.
2376
2377         * features.pri: Adding support to ENABLE_MEDIA_STREAM flag.
2378
2379 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
2380
2381         Reviewed by Yury Semikhatsky.
2382
2383         Web Inspector: Update network resource url from response data.
2384         https://bugs.webkit.org/show_bug.cgi?id=63736
2385
2386         * inspector/Inspector.json:
2387         * inspector/InspectorResourceAgent.cpp:
2388         (WebCore::buildObjectForResourceResponse):
2389         * inspector/front-end/NetworkManager.js:
2390         (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
2391
2392 2011-07-04  Andrey Kosyakov  <caseq@chromium.org>
2393
2394         Reviewed by Yury Semikhatsky.
2395
2396         Web Inspector: [Extensions API] audit formatter names should begin with create
2397         https://bugs.webkit.org/show_bug.cgi?id=63802
2398
2399         * inspector/front-end/ExtensionAPI.js:
2400         (WebInspector.injectedExtensionAPI.AuditResultImpl):
2401
2402 2011-07-03  Dominic Cooney  <dominicc@chromium.org>
2403
2404         The value property of an indeterminate progress element should be zero
2405         https://bugs.webkit.org/show_bug.cgi?id=63861
2406
2407         Reviewed by Kent Tamura.
2408
2409         Test: fast/dom/HTMLProgressElement/set-progress-properties.html
2410
2411         * html/HTMLProgressElement.cpp:
2412         (WebCore::HTMLProgressElement::value):
2413
2414 2011-07-03  Robert Hogan  <robert@webkit.org>
2415
2416         Restore scroll position on page reloads scheduled by <meta http-equiv="refresh" content="XX"/>
2417         https://bugs.webkit.org/show_bug.cgi?id=62482
2418
2419         If a <meta http-equiv="refresh"> directive schedules a page reload rather than
2420         a redirect restore the scroll position after the reload. Do the same on location.reload().
2421
2422         Reviewed by Adam Barth.
2423
2424         Tests: http/tests/navigation/scrollstate-after-http-equiv-refresh-fragment-identifier-2.html
2425                http/tests/navigation/scrollstate-after-http-equiv-refresh-fragment-identifier.html
2426                http/tests/navigation/scrollstate-after-http-equiv-refresh.html
2427                http/tests/navigation/scrollstate-after-location-reload.html
2428
2429         * loader/FrameLoader.cpp:
2430         (WebCore::FrameLoader::loadURL):
2431         Only make the load FrameLoadTypeSame if it has not already been set as FrameLoadTypeReload*.
2432         FrameLoadTypeReload* loads are set through http-equiv refreshes, manual reloads, or location.reload()
2433         and honour the user's scroll position in the frame. A FrameLoadTypeSame is for when the frame is loading
2434         the same page again, e.g. by clicking a link.
2435
2436         * loader/NavigationScheduler.cpp:
2437         (WebCore::ScheduledRedirect::fire): Tell FrameLoader::changeLocation() if this is a reload.
2438
2439 2011-07-03  Dirk Schulze  <krit@webkit.org>
2440
2441         SVGAnimateTransform accumulate=sum restarts on every repeat
2442         https://bugs.webkit.org/show_bug.cgi?id=63876
2443
2444         Reviewed by Nikolas Zimmermann.
2445         
2446         We applied transforms from previous animation repeats to a transform list. The problem is, that we calculated the current
2447         transform based on the percentage of the current repeat count. This causes an animation starting from scale level 0
2448         on every repeat. Now I add the repeat count to the current percentage, so that the distance calculation starts from 100% on
2449         the first repeat, from 200% on the second and so on.
2450
2451         Test: svg/animations/svgtransform-animation-1.html
2452
2453         * svg/SVGAnimateTransformElement.cpp:
2454         (WebCore::SVGAnimateTransformElement::calculateAnimatedValue):
2455
2456 2011-07-03  Sheriff Bot  <webkit.review.bot@gmail.com>
2457
2458         Unreviewed, rolling out r90342.
2459         http://trac.webkit.org/changeset/90342
2460         https://bugs.webkit.org/show_bug.cgi?id=63875
2461
2462         Newly added tests fail on Mac, GTK, and Win7 (Requested by
2463         abarth on #webkit).
2464
2465         * loader/FrameLoader.cpp:
2466         (WebCore::FrameLoader::loadURL):
2467         * loader/NavigationScheduler.cpp:
2468
2469 2011-07-03  Robert Hogan  <robert@webkit.org>
2470
2471         Restore scroll position on page reloads scheduled by <meta http-equiv="refresh" content="XX"/>
2472         https://bugs.webkit.org/show_bug.cgi?id=62482
2473
2474         If a <meta http-equiv="refresh"> directive schedules a page reload rather than
2475         a redirect restore the scroll position after the reload. Do the same on location.reload().
2476
2477         Reviewed by Adam Barth.
2478
2479         Tests: http/tests/navigation/scrollstate-after-http-equiv-refresh-fragment-identifier-2.html
2480                http/tests/navigation/scrollstate-after-http-equiv-refresh-fragment-identifier.html
2481                http/tests/navigation/scrollstate-after-http-equiv-refresh.html
2482                http/tests/navigation/scrollstate-after-location-reload.html
2483
2484         * loader/FrameLoader.cpp:
2485         (WebCore::FrameLoader::loadURL):
2486         Only make the load FrameLoadTypeSame if it has not already been set as FrameLoadTypeReload*.
2487         FrameLoadTypeReload* loads are set through http-equiv refreshes, manual reloads, or location.reload()
2488         and honour the user's scroll position in the frame. A FrameLoadTypeSame is for when the frame is loading
2489         the same page again, e.g. by clicking a link.
2490
2491         * loader/NavigationScheduler.cpp:
2492         (WebCore::ScheduledRedirect::fire): Tell FrameLoader::changeLocation() if this is a reload.
2493
2494 2011-04-02  Robert Hogan  <robert@webkit.org>
2495
2496         Reviewed by Benjamin Poulain.
2497
2498         [Qt] Support third-party cookie policy for Qt clients
2499         https://bugs.webkit.org/show_bug.cgi?id=45455
2500
2501         Identifying third-party cookies is facilitated by API new to QUrl from
2502         Qt 4.8: QUrl::topLevelDomain(). This API uses the Mozilla public suffix
2503         list to determine the top-level registry-controlled domain of the Url.
2504
2505         See also: http://gitorious.org/qt/qt/merge_requests/1205
2506                    (commit 154402f56dcf8303a6ce601a52215226af8d31ba)
2507                   http://bugreports.qt.nokia.com/browse/QTBUG-13601
2508
2509         Test: http/tests/cookies/strict-third-party-cookie-blocking.html
2510
2511         * WebCore.pro:
2512         * platform/network/qt/ResourceRequestQt.cpp:
2513         (WebCore::ResourceRequest::toNetworkRequest):
2514         * platform/qt/CookieJarQt.cpp:
2515         (WebCore::setCookies):
2516         (WebCore::cookies):
2517         * platform/qt/ThirdPartyCookiesQt.cpp: Added.
2518         (WebCore::cookieJar):
2519         (WebCore::isFirstPartyCookie):
2520         (WebCore::cookieAllowed):
2521         (WebCore::allowThirdPartyCookies):
2522         * platform/qt/ThirdPartyCookiesQt.h: Added.
2523
2524 2011-07-03  Vsevolod Vlasov  <vsevik@chromium.org>
2525
2526         Reviewed by Alexey Proskuryakov.
2527
2528         Web Inspector: Preflight OPTIONS requests are not shown on network panel for asynchronous XHRs.
2529         https://bugs.webkit.org/show_bug.cgi?id=63712
2530
2531         Added InspectorInstrumentation calls to preflight OPTIONS requests callbacks in DocumentThreadableLoader.
2532
2533         * loader/DocumentThreadableLoader.cpp:
2534         (WebCore::DocumentThreadableLoader::DocumentThreadableLoader):
2535         (WebCore::DocumentThreadableLoader::didReceiveResponse):
2536         (WebCore::DocumentThreadableLoader::didReceiveData):
2537         (WebCore::DocumentThreadableLoader::didFinishLoading):
2538         (WebCore::DocumentThreadableLoader::didFail):
2539         (WebCore::DocumentThreadableLoader::loadRequest):
2540         * loader/DocumentThreadableLoader.h:
2541
2542 2011-06-23  Robert Hogan  <robert@webkit.org>
2543
2544         Reviewed by Simon Hausmann.
2545
2546         [Qt] Windowless Plugins : <input> cursor blinks even after transferring focus to plugin
2547         https://bugs.webkit.org/show_bug.cgi?id=30355
2548
2549         Test: plugins/mouse-click-plugin-clears-selection.html
2550
2551         PluginView needs to use page->focusController()->setFocusedNode() when focusing a plugin
2552         in order to clear the FrameSelection in the currently focused node. In its platform-specific
2553         code Chromium already does this (WebPluginContainerImpl.cpp).
2554
2555         * WebCore.exp.in: Add symbol for FocusController::setFocusedNode
2556         * plugins/PluginView.cpp:
2557         (WebCore::PluginView::focusPluginElement): Using FocusController::setFocusedNode() makes
2558                                                    the call to FocusController:setFocusedFrame() and Document::setFocusedNode()
2559                                                    redundant, since it calls both.
2560
2561 2011-07-01  Michael Nordman  <michaeln@google.com>
2562
2563         Reviewed by Darin Fisher.
2564
2565         [Chromium] FileSystem API can be used to learn about installed software on the user's computer.
2566         Added a new MIMETypeRegistry method to return a type based on a well known set of mappings
2567         without consulting the OS/registry.
2568         https://bugs.webkit.org/show_bug.cgi?id=63220
2569
2570         No new tests, existing layout tests that invoke file.type apply.
2571
2572         * fileapi/File.cpp: Refactored the factory methods.
2573         (WebCore::createBlobDataForFileWithType):
2574         (WebCore::createBlobDataForFile):
2575         (WebCore::createBlobDataForFileSystemFile):
2576         (WebCore::File::File):
2577         * platform/MIMETypeRegistry.cpp: Added getWellKnownMIMETypeForExtension() method.
2578         (WebCore::mediaMIMETypeMap):
2579         (WebCore::findMimeType):
2580         (WebCore::MIMETypeRegistry::getWellKnownMIMETypeForExtension):
2581         * platform/MIMETypeRegistry.h:
2582         * platform/chromium/MIMETypeRegistryChromium.cpp: Added getWellKnownMIMETypeForExtension() method.
2583         (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
2584         (WebCore::MIMETypeRegistry::getWellKnownMIMETypeForExtension):
2585         (WebCore::findMimeType):
2586         * platform/chromium/PlatformBridge.h:
2587
2588 2011-07-01  Tim Horton  <timothy_horton@apple.com>
2589
2590         Reviewed by Darin Adler.
2591
2592         SVG data:image/svg+xml;base64 URLs inside CSS throw mime type warning
2593         https://bugs.webkit.org/show_bug.cgi?id=54325
2594         
2595         Add image/svg+xml to the list of acceptable MIME types for the Image type.
2596
2597         * inspector/front-end/inspector.js:
2598         (WebInspector):
2599
2600 2011-07-01  Tim Horton  <timothy_horton@apple.com>
2601
2602         Reviewed by Darin Adler.
2603
2604         Errors encountered within SVG documents should be reported to the console
2605         https://bugs.webkit.org/show_bug.cgi?id=62599
2606
2607         Add SVGElement::reportAttributeParsingError, which will
2608         write a Web Inspector console message if passed an SVGParsingError
2609         and the attribute which was being applied, only in the case where
2610         there is actually an error.
2611
2612         Include the SVG document's URI when writing to the Web Inspector
2613         console, so that the UI displays both the filename and the line number.
2614
2615         * svg/SVGDocumentExtensions.cpp:
2616         (WebCore::reportMessage):
2617         * svg/SVGElement.cpp:
2618         (WebCore::SVGElement::reportAttributeParsingError):
2619         * svg/SVGElement.h:
2620
2621 2011-07-01  Scott Byer  <scottbyer@chromium.org>
2622
2623         Reviewed by Adam Barth.
2624
2625         Smooth scrolling fixes
2626         https://bugs.webkit.org/show_bug.cgi?id=63770
2627
2628         Tests: Chromium webkit_unit_tests ScrollAnimatorNoneTest.ScrollWheelTrace and .LinuxTrackPadTrace
2629
2630         Fix issues found in manual testing; distill the traces into unit tests. Fix the issues the tests exposed in the
2631         scroll animation code.
2632
2633         * platform/ScrollAnimatorNone.cpp:
2634         (WebCore::ScrollAnimatorNone::PerAxisData::updateDataFromParameters):
2635         (WebCore::ScrollAnimatorNone::scroll):
2636
2637 2011-07-01  Levi Weintraub  <leviw@chromium.org>
2638
2639         Switch primary virtual layout functions to new layout types
2640         https://bugs.webkit.org/show_bug.cgi?id=63852
2641
2642         Reviewed by Eric Seidel.
2643
2644         Switching the primary overloaded layout functions over to the new layout unit abstraction.
2645
2646         No new tests, no functionality changes.
2647
2648         * html/shadow/MediaControlElements.cpp:
2649         (WebCore::RenderMediaVolumeSliderContainer::layout):
2650         * page/FrameView.cpp:
2651         (WebCore::FrameView::layout):
2652         * rendering/AutoTableLayout.cpp:
2653         (WebCore::AutoTableLayout::layout):
2654         * rendering/FixedTableLayout.cpp:
2655         (WebCore::FixedTableLayout::layout):
2656         * rendering/RenderBox.cpp:
2657         (WebCore::RenderBox::layout):
2658         * rendering/RenderFrameSet.cpp:
2659         (WebCore::RenderFrameSet::layout):
2660         * rendering/RenderMedia.cpp:
2661         (WebCore::RenderMedia::layout):
2662         * rendering/RenderRubyRun.cpp:
2663         (WebCore::RenderRubyRun::layout):
2664         * rendering/RenderScrollbarPart.cpp:
2665         (WebCore::RenderScrollbarPart::layout):
2666         * rendering/RenderSlider.cpp:
2667         (WebCore::RenderSlider::layout):
2668         * rendering/RenderTable.cpp:
2669         (WebCore::RenderTable::layout):
2670         * rendering/RenderTableRow.cpp:
2671         (WebCore::RenderTableRow::layout):
2672         * rendering/RenderTableSection.cpp:
2673         (WebCore::RenderTableSection::layout):
2674         * rendering/RenderTextControlSingleLine.cpp:
2675         (WebCore::RenderTextControlSingleLine::layout):
2676         * rendering/RenderView.cpp:
2677         (WebCore::RenderView::layout):
2678         * rendering/RenderView.h:
2679         (WebCore::RenderView::layoutDelta):
2680         (WebCore::RenderView::addLayoutDelta):
2681         * rendering/mathml/RenderMathMLRoot.cpp:
2682         (WebCore::RenderMathMLRoot::layout):
2683         * rendering/mathml/RenderMathMLRow.cpp:
2684         (WebCore::RenderMathMLRow::layout):
2685         * rendering/mathml/RenderMathMLSquareRoot.cpp:
2686         (WebCore::RenderMathMLSquareRoot::layout):
2687         * rendering/mathml/RenderMathMLSubSup.cpp:
2688         (WebCore::RenderMathMLSubSup::layout):
2689         * rendering/mathml/RenderMathMLUnderOver.cpp:
2690         (WebCore::RenderMathMLUnderOver::layout):
2691
2692 2011-07-01  Sam Weinig  <sam@webkit.org>
2693
2694         Reduce parser nesting cap to 512
2695         https://bugs.webkit.org/show_bug.cgi?id=63856
2696
2697         Reviewed by Dan Bernstein.
2698
2699         Given Firefox's cap of 200, our cap of 2048 seemed a little excessive. Lower
2700         the nesting cap to 512 to cover more cases where rending recursion was biting us.
2701
2702         * page/Settings.h:
2703         Reduce the nesting cap to 512.
2704
2705 2011-07-01  Darin Adler  <darin@apple.com>
2706
2707         Add change accidentally left out of last commit.
2708
2709         * rendering/RenderLayerBacking.cpp:
2710         (WebCore::RenderLayerBacking::updateContentsScale): Multiply in the
2711         backing scale.
2712
2713 2011-07-01  Darin Adler  <darin@apple.com>
2714
2715         Consider backing scale when setting up graphics layers
2716         https://bugs.webkit.org/show_bug.cgi?id=63848
2717
2718         Reviewed by Simon Fraser.
2719
2720         * platform/graphics/ca/GraphicsLayerCA.cpp:
2721         (WebCore::GraphicsLayerCA::clampedContentsScaleForScale):
2722         Increased the maximum scale since scale factor can now include
2723         both page contents scale and backing scale.
2724
2725         * rendering/RenderLayerBacking.cpp:
2726         (WebCore::RenderLayerBacking::createGraphicsLayer): Multiply in the
2727         backing scale as well as the page contents scale.
2728         (WebCore::RenderLayerBacking::updateForegroundLayer): Ditto.
2729         (WebCore::RenderLayerBacking::updateMaskLayer): Ditto.
2730         (WebCore::RenderLayerBacking::pageContentsScale): Added.
2731         (WebCore::RenderLayerBacking::backingScale): Added.
2732         * rendering/RenderLayerBacking.h: Added new private functions.
2733
2734 2011-07-01  Adele Peterson  <adele@apple.com>
2735
2736         Reviewed by Darin Adler.
2737
2738         WebCore part of fix for https://bugs.webkit.org/show_bug.cgi?id=63851
2739         <rdar://problem/8981062> Crash when loading a document in an editable WebView that has a subframe with an unstyled body
2740
2741         No new tests.  I tried to make a test in DumpRenderTree with an editable WebView, 
2742         but was unsuccessful in getting the crash to happen in that instance.
2743
2744         * editing/Editor.cpp: (WebCore::Editor::applyEditingStyleToElement): Add a nil check that exits early, in addition to the ASSERT.
2745
2746 2011-07-01  Levi Weintraub  <leviw@chromium.org>
2747
2748         Switch overflow and collapsedMargins to new layout types
2749         https://bugs.webkit.org/show_bug.cgi?id=63840
2750
2751         Reviewed by Eric Seidel.
2752
2753         Switching overflow and collapsedMargins over to the new layout unit abstraction.
2754
2755         Also removing an unused function: blockDirectionOverflow
2756
2757         No new tests, no functionality changes.
2758
2759         * rendering/RenderBlock.cpp:
2760         (WebCore::RenderBlock::collapsedMarginBeforeForChild):
2761         (WebCore::RenderBlock::collapsedMarginAfterForChild):
2762         * rendering/RenderBlock.h:
2763         (WebCore::RenderBlock::collapsedMarginBefore):
2764         (WebCore::RenderBlock::collapsedMarginAfter):
2765         * rendering/RenderBox.cpp:
2766         (WebCore::RenderBox::addOverflowFromChild):
2767         (WebCore::RenderBox::addLayoutOverflow):
2768         (WebCore::RenderBox::addVisualOverflow):
2769         * rendering/RenderBox.h:
2770         (WebCore::RenderBox::layoutOverflowRect):
2771         (WebCore::RenderBox::minYLayoutOverflow):
2772         (WebCore::RenderBox::maxYLayoutOverflow):
2773         (WebCore::RenderBox::minXLayoutOverflow):
2774         (WebCore::RenderBox::maxXLayoutOverflow):
2775         (WebCore::RenderBox::maxLayoutOverflow):
2776         (WebCore::RenderBox::logicalLeftLayoutOverflow):
2777         (WebCore::RenderBox::logicalRightLayoutOverflow):
2778         (WebCore::RenderBox::visualOverflowRect):
2779         (WebCore::RenderBox::minYVisualOverflow):
2780         (WebCore::RenderBox::maxYVisualOverflow):
2781         (WebCore::RenderBox::minXVisualOverflow):
2782         (WebCore::RenderBox::maxXVisualOverflow):
2783         (WebCore::RenderBox::logicalLeftVisualOverflow):
2784         (WebCore::RenderBox::logicalRightVisualOverflow):
2785         (WebCore::RenderBox::addOverflowFromChild):
2786         (WebCore::RenderBox::collapsedMarginBefore):
2787         (WebCore::RenderBox::collapsedMarginAfter):
2788         * rendering/RenderOverflow.h:
2789         (WebCore::RenderOverflow::RenderOverflow):
2790         (WebCore::RenderOverflow::minYLayoutOverflow):
2791         (WebCore::RenderOverflow::maxYLayoutOverflow):
2792         (WebCore::RenderOverflow::minXLayoutOverflow):
2793         (WebCore::RenderOverflow::maxXLayoutOverflow):
2794         (WebCore::RenderOverflow::minYVisualOverflow):
2795         (WebCore::RenderOverflow::maxYVisualOverflow):
2796         (WebCore::RenderOverflow::minXVisualOverflow):
2797         (WebCore::RenderOverflow::maxXVisualOverflow):
2798         (WebCore::RenderOverflow::setMinYLayoutOverflow):
2799         (WebCore::RenderOverflow::setMaxYLayoutOverflow):
2800         (WebCore::RenderOverflow::setMinXLayoutOverflow):
2801         (WebCore::RenderOverflow::setMaxXLayoutOverflow):
2802         (WebCore::RenderOverflow::setMinYVisualOverflow):
2803         (WebCore::RenderOverflow::setMaxYVisualOverflow):
2804         (WebCore::RenderOverflow::setMinXVisualOverflow):
2805         (WebCore::RenderOverflow::setMaxXVisualOverflow):
2806         (WebCore::RenderOverflow::layoutOverflowRect):
2807         (WebCore::RenderOverflow::visualOverflowRect):
2808         (WebCore::RenderOverflow::move):
2809         (WebCore::RenderOverflow::addLayoutOverflow):
2810         (WebCore::RenderOverflow::addVisualOverflow):
2811         (WebCore::RenderOverflow::setLayoutOverflow):
2812         (WebCore::RenderOverflow::setVisualOverflow):
2813         (WebCore::RenderOverflow::resetLayoutOverflow):
2814
2815 2011-07-01  Nate Chapin  <japhet@chromium.org>
2816
2817         Ensure WorkerScriptLoader::notifyFinished() doesn't re-enter.
2818         https://bugs.webkit.org/show_bug.cgi?id=63835
2819
2820         Reviewed by Dmitry Titov.
2821
2822         Test: fast/workers/worker-finish-crash.html
2823
2824         * workers/WorkerScriptLoader.cpp:
2825         (WebCore::WorkerScriptLoader::WorkerScriptLoader):
2826         (WebCore::WorkerScriptLoader::notifyFinished):
2827         * workers/WorkerScriptLoader.h:
2828
2829 2011-07-01  Adrienne Walker  <enne@google.com>
2830
2831         [chromium] Upload root layer textures first so that it is less likely to be skipped
2832         https://bugs.webkit.org/show_bug.cgi?id=63850
2833
2834         Reviewed by James Robinson.
2835
2836         This is a tiny follow-on patch to bug 63760.  If the root layer is not
2837         uploaded first, then it may not have enough space to fit into texture
2838         memory and might be skipped, leaving a blue background.
2839
2840         * platform/graphics/chromium/LayerRendererChromium.cpp:
2841         (WebCore::LayerRendererChromium::updateLayers):
2842
2843 2011-07-01  Mihai Parparita  <mihaip@chromium.org>
2844
2845         Reviewed by Darin Fisher.
2846
2847         location.replace with a hash change does not update the history entry
2848         https://bugs.webkit.org/show_bug.cgi?id=63777
2849
2850         location.replace('#foo') would not update the HistoryItem with the
2851         new URL, thus navigating back to the page would use the previous
2852         URL, even though it had been replaced. Make
2853         HistoryController::updateForSameDocumentNavigation mirror 
2854         HistoryController::replaceState.
2855
2856         Test: fast/history/location-replace-hash.html
2857
2858         * loader/HistoryController.cpp:
2859         (WebCore::HistoryController::updateForSameDocumentNavigation):
2860
2861 2011-07-01  Ryosuke Niwa  <rniwa@webkit.org>
2862
2863         Reviewed by Ojan Vafai.
2864
2865         Move m_isDirectional from FrameSelection to VisibleSelection
2866         https://bugs.webkit.org/show_bug.cgi?id=63473
2867
2868         Move m_isDirectional from FrameSelection to VisibleSelection.
2869
2870         Also fixed a bug that WebKit does not preserve non-directional selection after undo.
2871
2872         Test: editing/selection/directionality-after-undo-replace.html
2873
2874         * WebCore.exp.in: Updated the signature of setSelection.
2875         * editing/FrameSelection.cpp:
2876         (WebCore::FrameSelection::FrameSelection): Removed the call to setIsDirectional.
2877         (WebCore::shouldAlwaysUseDirectionalSelection): Added.
2878         (WebCore::FrameSelection::setSelection): No longer takes DirectionalityPolicy.
2879         Calls setIsDirectional(true) when the platform doesn't support non-directional selection.
2880         Passes align and granularity to setSelection of the base end point as expected.
2881         No longer updates granularity when updating the selection of a different frame.
2882         (WebCore::FrameSelection::willBeModified): Calls VisibleSelection::isDirectional().
2883         (WebCore::FrameSelection::modify): No longer calls trialFrameSelection.setIsDirectional
2884         because the directionality is passed from m_selection automatically.
2885         Also calls shouldAlwaysUseDirectionalSelection.
2886         * editing/FrameSelection.h: Remove m_isDirectional. Make all boolean bit fields.
2887         (WebCore::FrameSelection::setSelection): No longer takes DirectionalityPolicy.
2888         * editing/VisibleSelection.cpp:
2889         (WebCore::VisibleSelection::VisibleSelection): Initializes m_isDirectional to true.
2890         This should be changed to false to fix the bug 60529.
2891         * editing/VisibleSelection.h:
2892         (WebCore::VisibleSelection::isDirectional): Added.
2893         (WebCore::VisibleSelection::setIsDirectional): Added.
2894         * page/EventHandler.cpp:
2895         (WebCore::setNonDirectionalSelectionIfNeeded): Creates a non-directional selection instead of
2896         calling setSelection with MakeNonDirectionalSelection.
2897         (WebCore::EventHandler::handleMousePressEventSingleClick): Remove the call to setIsDirectional
2898         because it already calls setNonDirectionalSelectionIfNeeded.
2899
2900 2011-07-01  Tony Chang  <tony@chromium.org>
2901
2902         cleanup of flexbox and marquee data naming in StyleRareNonInheritedData
2903         https://bugs.webkit.org/show_bug.cgi?id=63827
2904
2905         Reviewed by Ojan Vafai.
2906
2907         * rendering/style/RenderStyle.cpp:
2908         (WebCore::RenderStyle::RenderStyle):
2909         (WebCore::RenderStyle::diff):
2910         * rendering/style/RenderStyle.h:
2911         (WebCore::InheritedFlags::boxAlign):
2912         (WebCore::InheritedFlags::boxFlex):
2913         (WebCore::InheritedFlags::boxFlexGroup):
2914         (WebCore::InheritedFlags::boxLines):
2915         (WebCore::InheritedFlags::boxOrdinalGroup):
2916         (WebCore::InheritedFlags::boxOrient):
2917         (WebCore::InheritedFlags::boxPack):
2918         (WebCore::InheritedFlags::marqueeIncrement):
2919         (WebCore::InheritedFlags::marqueeSpeed):
2920         (WebCore::InheritedFlags::marqueeLoopCount):
2921         (WebCore::InheritedFlags::marqueeBehavior):
2922         (WebCore::InheritedFlags::marqueeDirection):
2923         (WebCore::InheritedFlags::setBoxAlign):
2924         (WebCore::InheritedFlags::setBoxFlex):
2925         (WebCore::InheritedFlags::setBoxFlexGroup):
2926         (WebCore::InheritedFlags::setBoxLines):
2927         (WebCore::InheritedFlags::setBoxOrdinalGroup):
2928         (WebCore::InheritedFlags::setBoxOrient):
2929         (WebCore::InheritedFlags::setBoxPack):
2930         (WebCore::InheritedFlags::setMarqueeIncrement):
2931         (WebCore::InheritedFlags::setMarqueeSpeed):
2932         (WebCore::InheritedFlags::setMarqueeDirection):
2933         (WebCore::InheritedFlags::setMarqueeBehavior):
2934         (WebCore::InheritedFlags::setMarqueeLoopCount):
2935         * rendering/style/StyleRareNonInheritedData.cpp:
2936         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
2937         (WebCore::StyleRareNonInheritedData::operator==):
2938         * rendering/style/StyleRareNonInheritedData.h:
2939             flexibleBox -> m_deprecatedFlexibleBox and marquee to m_marquee
2940
2941 2011-07-01  Mike Reed  <reed@google.com>
2942
2943         Stop using deprecated SkDeviceFactory API
2944         https://bugs.webkit.org/show_bug.cgi?id=63488
2945
2946         Reviewed by James Robinson.
2947
2948         No new tests. Check-point for removing Factory API from Skia
2949
2950         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
2951         (WebCore::LayerTextureUpdaterSkPicture::createFrameBuffer):
2952         * platform/graphics/skia/PlatformContextSkia.cpp:
2953         (WebCore::PlatformContextSkia::setSharedGraphicsContext3D):
2954
2955 2011-07-01  Jeffrey Pfau  <jpfau@apple.com>
2956
2957         Reviewed by Adam Barth.
2958
2959         Move XMLDocumentParser to new folder xml/parser/
2960         https://bugs.webkit.org/show_bug.cgi?id=63666
2961
2962         * CMakeLists.txt:
2963         * GNUmakefile.am:
2964         * GNUmakefile.list.am:
2965         * WebCore.gyp/WebCore.gyp:
2966         * WebCore.gypi:
2967         * WebCore.pri:
2968         * WebCore.pro:
2969         * WebCore.vcproj/WebCore.vcproj:
2970         * WebCore.vcproj/WebCoreCommon.vsprops:
2971         * WebCore.vcproj/copyForwardingHeaders.cmd:
2972         * WebCore.xcodeproj/project.pbxproj:
2973         * xml/parser/XMLDocumentParser.cpp:
2974         (WebCore::XMLDocumentParser::pushCurrentNode):
2975         (WebCore::XMLDocumentParser::popCurrentNode):
2976         (WebCore::XMLDocumentParser::clearCurrentNodeStack):
2977         (WebCore::XMLDocumentParser::insert):
2978         (WebCore::XMLDocumentParser::append):
2979         (WebCore::XMLDocumentParser::handleError):
2980         (WebCore::XMLDocumentParser::enterText):
2981         (WebCore::toString):
2982         (WebCore::XMLDocumentParser::exitText):
2983         (WebCore::XMLDocumentParser::detach):
2984         (WebCore::XMLDocumentParser::end):
2985         (WebCore::XMLDocumentParser::finish):
2986         (WebCore::XMLDocumentParser::finishWasCalled):
2987         (WebCore::createXHTMLParserErrorHeader):
2988         (WebCore::XMLDocumentParser::insertErrorMessageBlock):
2989         (WebCore::XMLDocumentParser::notifyFinished):
2990         (WebCore::XMLDocumentParser::isWaitingForScripts):
2991         (WebCore::XMLDocumentParser::pauseParsing):
2992         (WebCore::XMLDocumentParser::parseDocumentFragment):
2993         * xml/parser/XMLDocumentParser.h:
2994         (WebCore::XMLParserContext::context):
2995         (WebCore::XMLParserContext::XMLParserContext):
2996         (WebCore::XMLDocumentParser::create):
2997         (WebCore::XMLDocumentParser::setIsXHTMLDocument):
2998         (WebCore::XMLDocumentParser::isXHTMLDocument):
2999         (WebCore::XMLDocumentParser::setIsXHTMLMPDocument):
3000         (WebCore::XMLDocumentParser::isXHTMLMPDocument):
3001         (WebCore::XMLDocumentParser::wellFormed):
3002         (WebCore::XMLDocumentParser::context):
3003         * xml/parser/XMLDocumentParserLibxml2.cpp:
3004         (WebCore::PendingCallbacks::~PendingCallbacks):
3005         (WebCore::PendingCallbacks::create):
3006         (WebCore::PendingCallbacks::appendStartElementNSCallback):
3007         (WebCore::PendingCallbacks::appendEndElementNSCallback):
3008         (WebCore::PendingCallbacks::appendCharactersCallback):
3009         (WebCore::PendingCallbacks::appendProcessingInstructionCallback):
3010         (WebCore::PendingCallbacks::appendCDATABlockCallback):
3011         (WebCore::PendingCallbacks::appendCommentCallback):
3012         (WebCore::PendingCallbacks::appendInternalSubsetCallback):
3013         (WebCore::PendingCallbacks::appendErrorCallback):
3014         (WebCore::PendingCallbacks::callAndRemoveFirstCallback):
3015         (WebCore::PendingCallbacks::isEmpty):
3016         (WebCore::PendingCallbacks::PendingCallbacks):
3017         (WebCore::PendingCallbacks::PendingCallback::~PendingCallback):
3018         (WebCore::PendingCallbacks::PendingStartElementNSCallback::~PendingStartElementNSCallback):
3019         (WebCore::PendingCallbacks::PendingStartElementNSCallback::call):
3020         (WebCore::PendingCallbacks::PendingEndElementNSCallback::call):
3021         (WebCore::PendingCallbacks::PendingCharactersCallback::~PendingCharactersCallback):
3022         (WebCore::PendingCallbacks::PendingCharactersCallback::call):
3023         (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::~PendingProcessingInstructionCallback):
3024         (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::call):
3025         (WebCore::PendingCallbacks::PendingCDATABlockCallback::~PendingCDATABlockCallback):
3026         (WebCore::PendingCallbacks::PendingCDATABlockCallback::call):
3027         (WebCore::PendingCallbacks::PendingCommentCallback::~PendingCommentCallback):
3028         (WebCore::PendingCallbacks::PendingCommentCallback::call):
3029         (WebCore::PendingCallbacks::PendingInternalSubsetCallback::~PendingInternalSubsetCallback):
3030         (WebCore::PendingCallbacks::PendingInternalSubsetCallback::call):
3031         (WebCore::matchFunc):
3032         (WebCore::OffsetBuffer::OffsetBuffer):
3033         (WebCore::OffsetBuffer::readOutBytes):
3034         (WebCore::switchToUTF16):
3035         (WebCore::shouldAllowExternalLoad):
3036         (WebCore::openFunc):
3037         (WebCore::readFunc):
3038         (WebCore::writeFunc):
3039         (WebCore::closeFunc):
3040         (WebCore::errorFunc):
3041         (WebCore::XMLParserContext::createStringParser):
3042         (WebCore::XMLParserContext::createMemoryParser):
3043         (WebCore::XMLDocumentParser::supportsXMLVersion):
3044         (WebCore::XMLDocumentParser::XMLDocumentParser):
3045         (WebCore::XMLParserContext::~XMLParserContext):
3046         (WebCore::XMLDocumentParser::~XMLDocumentParser):
3047         (WebCore::XMLDocumentParser::doWrite):
3048         (WebCore::toString):
3049         (WebCore::toAtomicString):
3050         (WebCore::handleElementNamespaces):
3051         (WebCore::handleElementAttributes):
3052         (WebCore::XMLDocumentParser::startElementNs):
3053         (WebCore::XMLDocumentParser::endElementNs):
3054         (WebCore::XMLDocumentParser::characters):
3055         (WebCore::XMLDocumentParser::error):
3056         (WebCore::XMLDocumentParser::processingInstruction):
3057         (WebCore::XMLDocumentParser::cdataBlock):
3058         (WebCore::XMLDocumentParser::comment):
3059         (WebCore::XMLDocumentParser::startDocument):
3060         (WebCore::XMLDocumentParser::endDocument):
3061         (WebCore::XMLDocumentParser::internalSubset):
3062         (WebCore::getParser):
3063         (WebCore::hackAroundLibXMLEntityBug):
3064         (WebCore::startElementNsHandler):
3065         (WebCore::endElementNsHandler):
3066         (WebCore::charactersHandler):
3067         (WebCore::processingInstructionHandler):
3068         (WebCore::cdataBlockHandler):
3069         (WebCore::commentHandler):
3070         (WebCore::warningHandler):
3071         (WebCore::fatalErrorHandler):
3072         (WebCore::normalErrorHandler):
3073         (WebCore::sharedXHTMLEntity):
3074         (WebCore::getXHTMLEntity):
3075         (WebCore::getEntityHandler):
3076         (WebCore::startDocumentHandler):
3077         (WebCore::endDocumentHandler):
3078         (WebCore::internalSubsetHandler):
3079         (WebCore::externalSubsetHandler):
3080         (WebCore::ignorableWhitespaceHandler):
3081         (WebCore::XMLDocumentParser::initializeParserContext):
3082         (WebCore::XMLDocumentParser::doEnd):
3083         (WebCore::xmlDocPtrForString):
3084         (WebCore::XMLDocumentParser::lineNumber):
3085         (WebCore::XMLDocumentParser::columnNumber):
3086         (WebCore::XMLDocumentParser::textPosition):
3087         (WebCore::XMLDocumentParser::textPositionOneBased):
3088         (WebCore::XMLDocumentParser::stopParsing):
3089         (WebCore::XMLDocumentParser::resumeParsing):
3090         (WebCore::XMLDocumentParser::appendFragmentSource):
3091         (WebCore::attributesStartElementNsHandler):
3092         (WebCore::parseAttributes):
3093         * xml/parser/XMLDocumentParserQt.cpp:
3094         (WebCore::EntityResolver::resolveUndeclaredEntity):
3095         (WebCore::XMLDocumentParser::supportsXMLVersion):
3096         (WebCore::XMLDocumentParser::XMLDocumentParser):
3097         (WebCore::XMLDocumentParser::~XMLDocumentParser):
3098         (WebCore::XMLDocumentParser::doWrite):
3099         (WebCore::XMLDocumentParser::initializeParserContext):
3100         (WebCore::XMLDocumentParser::doEnd):
3101         (WebCore::XMLDocumentParser::lineNumber):
3102         (WebCore::XMLDocumentParser::columnNumber):
3103         (WebCore::XMLDocumentParser::textPosition):
3104         (WebCore::XMLDocumentParser::textPositionOneBased):
3105         (WebCore::XMLDocumentParser::stopParsing):
3106         (WebCore::XMLDocumentParser::resumeParsing):
3107         (WebCore::XMLDocumentParser::appendFragmentSource):
3108         (WebCore::attributesStartElementNsHandler):
3109         (WebCore::parseAttributes):
3110         (WebCore::prefixFromQName):
3111         (WebCore::handleElementNamespaces):
3112         (WebCore::handleElementAttributes):
3113         (WebCore::XMLDocumentParser::parse):
3114         (WebCore::XMLDocumentParser::startDocument):
3115         (WebCore::XMLDocumentParser::parseStartElement):
3116         (WebCore::XMLDocumentParser::parseEndElement):
3117         (WebCore::XMLDocumentParser::parseCharacters):
3118         (WebCore::XMLDocumentParser::parseProcessingInstruction):
3119         (WebCore::XMLDocumentParser::parseCdata):
3120         (WebCore::XMLDocumentParser::parseComment):
3121         (WebCore::XMLDocumentParser::endDocument):
3122         (WebCore::XMLDocumentParser::hasError):
3123         (WebCore::XMLDocumentParser::parseDtd):
3124         * xml/parser/XMLDocumentParserScope.cpp:
3125         (WebCore::XMLDocumentParserScope::XMLDocumentParserScope):
3126         (WebCore::XMLDocumentParserScope::~XMLDocumentParserScope):
3127
3128 2011-07-01  Vangelis Kokkevis  <vangelis@chromium.org>
3129
3130         Reviewed by James Robinson.
3131
3132         [chromium] Reserve all tile textures at layer update time to guarantee
3133         that they will be available at draw time.
3134         https://bugs.webkit.org/show_bug.cgi?id=63760
3135
3136         In addition, this patch unreserves textures used by RenderSurface's
3137         right after the RenderSurface has been used to free up memory for
3138         subsequent RenderSurfaces.
3139         
3140         This patch also "fixes" the pages that display a blue background when
3141         running out of texture memory as the root layer tiles get reserved first
3142         and are guaranteed to get textures.
3143
3144         * platform/graphics/chromium/ContentLayerChromium.cpp:
3145         (WebCore::ContentLayerChromium::ContentLayerChromium):
3146         (WebCore::ContentLayerChromium::visibleLayerRect):
3147         (WebCore::ContentLayerChromium::setIsMask):
3148         * platform/graphics/chromium/ContentLayerChromium.h:
3149         * platform/graphics/chromium/ImageLayerChromium.cpp:
3150         (WebCore::ImageLayerChromium::paintContentsIfDirty):
3151         * platform/graphics/chromium/LayerRendererChromium.cpp:
3152         (WebCore::LayerRendererChromium::paintLayerContents):
3153         (WebCore::LayerRendererChromium::drawLayer):
3154         (WebCore::LayerRendererChromium::initializeSharedObjects):
3155         * platform/graphics/chromium/LayerTexture.cpp:
3156         (WebCore::LayerTexture::unreserve):
3157         * platform/graphics/chromium/LayerTexture.h:
3158         * platform/graphics/chromium/LayerTilerChromium.cpp:
3159         (WebCore::LayerTilerChromium::prepareToUpdate):
3160         (WebCore::LayerTilerChromium::updateRect):
3161         (WebCore::LayerTilerChromium::drawTiles):
3162         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
3163         (WebCore::RenderSurfaceChromium::releaseContentsTexture):
3164         * platform/graphics/chromium/RenderSurfaceChromium.h:
3165         * platform/graphics/chromium/TextureManager.cpp:
3166         (WebCore::TextureManager::unprotectTexture):
3167         * platform/graphics/chromium/TextureManager.h:
3168
3169 2011-07-01  Jungshik Shin  <jshin@chromium.org>
3170
3171         Reviewed by Alexey Proskuryakov.
3172
3173         Allow generic font family settings per script code.
3174         https://bugs.webkit.org/show_bug.cgi?id=20797
3175
3176         Make generic font family getters/setters accept an additional
3177         argument (script code). It has a default value so that if an embedder
3178         does not have/want a per-script font family setting, call-sites
3179         don't have to be changed.
3180         This is to prepare for fixing bug 10874 (font selection is not
3181         language-dependent) and bug 18085.
3182
3183         uscript.h has been updated to that of ICU 3.6 (the version of ICU on
3184         Mac OS 10.5)
3185
3186         There should be no change in layout and no new layout test
3187         is added.
3188
3189         * WebCore.exp.in:
3190         * icu/unicode/uscript.h: updated to ICU 4.6
3191         * page/Settings.cpp:
3192         (WebCore::setGenericFontFamilyMap): helper to set generic family per script
3193         (WebCore::getGenericFontFamilyForScript): helper function used by getters for fooFontFamily.
3194         (WebCore::Settings::standardFontFamily):
3195         (WebCore::Settings::setStandardFontFamily):
3196         (WebCore::Settings::fixedFontFamily):
3197         (WebCore::Settings::setFixedFontFamily):
3198         (WebCore::Settings::serifFontFamily):
3199         (WebCore::Settings::setSerifFontFamily):
3200         (WebCore::Settings::sansSerifFontFamily):
3201         (WebCore::Settings::setSansSerifFontFamily):
3202         (WebCore::Settings::cursiveFontFamily):
3203         (WebCore::Settings::setCursiveFontFamily):
3204         (WebCore::Settings::fantasyFontFamily):
3205         (WebCore::Settings::setFantasyFontFamily):
3206         * page/Settings.h: setter and getter for FooFontFamily have a new optional argument, scriptCode.
3207
3208 2011-07-01  Tony Chang  <tony@chromium.org>
3209
3210         Reviewed by Ojan Vafai.
3211
3212         rename StyleFlexibleBoxData to StyleDeprecatedFlexibleBoxData
3213         https://bugs.webkit.org/show_bug.cgi?id=63773
3214
3215         We will have a similar struct to hold CSS3 flexible box data, so
3216         this makes way for the new class.
3217         I will rename the member variable in RenderStyle.h in a follow up
3218         change.
3219
3220         * CMakeLists.txt:
3221         * GNUmakefile.list.am:
3222         * WebCore.gypi:
3223         * WebCore.order:
3224         * WebCore.pro:
3225         * WebCore.vcproj/WebCore.vcproj:
3226         * WebCore.xcodeproj/project.pbxproj:
3227         * rendering/style/RenderStyle.h:
3228         * rendering/style/StyleAllInOne.cpp:
3229         * rendering/style/StyleDeprecatedFlexibleBoxData.cpp:
3230         (WebCore::StyleDeprecatedFlexibleBoxData::StyleDeprecatedFlexibleBoxData):
3231         (WebCore::StyleDeprecatedFlexibleBoxData::operator==):
3232         * rendering/style/StyleDeprecatedFlexibleBoxData.h:
3233         (WebCore::StyleDeprecatedFlexibleBoxData::create):
3234         (WebCore::StyleDeprecatedFlexibleBoxData::copy):
3235         (WebCore::StyleDeprecatedFlexibleBoxData::operator!=):
3236         * rendering/style/StyleRareNonInheritedData.h:
3237
3238 2011-07-01  Hans Wennborg  <hans@chromium.org>
3239
3240         Reviewed by Tony Chang.
3241
3242         IndexedDB: Fix constants for webkitIDBTransaction.READ_WRITE/READ_ONLY
3243         https://bugs.webkit.org/show_bug.cgi?id=63754
3244
3245         Fix values for the webkitIDBTransaction.READ_WRITE/READ_ONLY
3246         constants. Douglas Stockwell pointed out that these were reverse
3247         of what the spec says.
3248
3249         * storage/IDBTransaction.h:
3250         * storage/IDBTransaction.idl:
3251
3252 2011-07-01  Levi Weintraub  <leviw@chromium.org>
3253
3254         Reviewed by Eric Seidel.
3255
3256         Switch positionForPoint to new layout types
3257         https://bugs.webkit.org/show_bug.cgi?id=63774
3258
3259         Switching positionForPoint functions to new layout unit abstraction.
3260
3261         No new tests, no functionality changes.
3262
3263         * rendering/RenderBR.cpp:
3264         (WebCore::RenderBR::positionForPoint):
3265         * rendering/RenderBR.h:
3266         * rendering/RenderBlock.cpp:
3267         (WebCore::RenderBlock::positionForPoint):
3268         * rendering/RenderBlock.h:
3269         * rendering/RenderBox.cpp:
3270         (WebCore::RenderBox::positionForPoint):
3271         * rendering/RenderBox.h:
3272         * rendering/RenderFileUploadControl.cpp:
3273         (WebCore::RenderFileUploadControl::positionForPoint):
3274         * rendering/RenderFileUploadControl.h:
3275         * rendering/RenderInline.cpp:
3276         (WebCore::RenderInline::positionForPoint):
3277         * rendering/RenderInline.h:
3278         * rendering/RenderObject.cpp:
3279         (WebCore::RenderObject::positionForPoint):
3280         * rendering/RenderReplaced.cpp:
3281         (WebCore::RenderReplaced::positionForPoint):
3282         * rendering/RenderReplaced.h:
3283         * rendering/RenderText.cpp:
3284         (WebCore::RenderText::positionForPoint):
3285         * rendering/RenderText.h:
3286         * rendering/RenderTextControlSingleLine.cpp:
3287         (WebCore::RenderTextControlInnerBlock::positionForPoint):
3288         * rendering/RenderTextControlSingleLine.h:
3289         * rendering/svg/RenderSVGInlineText.cpp:
3290         (WebCore::RenderSVGInlineText::positionForPoint):
3291         * rendering/svg/RenderSVGInlineText.h:
3292         * rendering/svg/RenderSVGText.cpp:
3293         (WebCore::RenderSVGText::positionForPoint):
3294         * rendering/svg/RenderSVGText.h:
3295
3296 2011-07-01  Andrew Scherkus  <scherkus@chromium.org>
3297
3298         Reviewed by Darin Fisher.
3299
3300         Re-enable WTF_USE_WEBAUDIO_FFMPEG for Chromium
3301         https://bugs.webkit.org/show_bug.cgi?id=63783
3302
3303         * WebCore.gyp/WebCore.gyp:
3304
3305 2011-07-01  Patrick Gansterer  <paroga@webkit.org>
3306
3307         Reviewed by Daniel Bates.
3308
3309         [CMake] Don't compile unused bindings
3310         https://bugs.webkit.org/show_bug.cgi?id=63741
3311
3312         * UseJSC.cmake: Added IF (ENABLE_XXX) around files.
3313
3314 2011-07-01  Joone Hur  <joone.hur@collabora.co.uk>
3315
3316         Reviewed by Martin Robinson.
3317
3318         [GTK] Add DeviceOrientation feature
3319         https://bugs.webkit.org/show_bug.cgi?id=63720
3320
3321         Add DeviceMotionClientGtk.cpp and DeviceOrientationClientGtk.cpp to WebKitGtk+ build.
3322
3323         * GNUmakefile.am: Add DeviceMotionClientGtk.cpp, DeviceOrientationClientGtk.cpp.
3324
3325 2011-07-01  Kentaro Hara  <haraken@google.com>
3326
3327         Reviewed by Kent Tamura.
3328
3329         Disallow clicking an [X] button in 'search' input forms when 'disabled' attribute or 'readonly' attribute is set.
3330         https://bugs.webkit.org/show_bug.cgi?id=63709
3331
3332         Ignore a cancel button event on a 'search' input form if 'disabled' attribute or
3333         'readonly' attribute is set to the input form.
3334
3335         Test: fast/forms/search-disabled-readonly.html
3336
3337         * html/shadow/TextControlInnerElements.cpp:
3338         (WebCore::SearchFieldCancelButtonElement::defaultEventHandler):
3339
3340 2011-06-30  Mikhail Naganov  <mnaganov@chromium.org>
3341
3342         Reviewed by Yury Semikhatsky.
3343
3344         Web Inspector: [Chromium] Fix heap snapshots in a remote debugging session from Safari.
3345         https://bugs.webkit.org/show_bug.cgi?id=63703
3346
3347         * inspector/front-end/HeapSnapshotWorker.js:
3348         (.Function.prototype.bind.return.bound):
3349         (.Function.prototype.bind):
3350
3351 2011-07-01  Dirk Schulze  <krit@webkit.org>
3352
3353         Reviewed by Nikolas Zimmermann.
3354
3355         SVGAnimatedLengthListAnimator does not take additive="sum" into accout
3356         https://bugs.webkit.org/show_bug.cgi?id=63705
3357
3358         Added support for additive animations to SVGAnimatedLengthListAnimator. Don't clear the animatedList if not
3359         necessary.
3360
3361         SVGLength unit gets animated as well now. We used to take the unit of 'from' all the time.
3362
3363         Tests: svg/animations/svglength-animation-unitType.html
3364                svg/animations/svglengthlist-animation-5.html
3365
3366         * svg/SVGAnimatedLength.cpp:
3367         (WebCore::SVGAnimatedLengthAnimator::calculateAnimatedValue): Code clean-up and support for unit animation.
3368         * svg/SVGAnimatedLengthList.cpp: Add support for additive animations.
3369         (WebCore::SVGAnimatedLengthListAnimator::calculateAnimatedValue):
3370         * svg/SVGLength.cpp:
3371         (WebCore::SVGLength::SVGLength):
3372         (WebCore::SVGLength::setValue): New setValue that gets the LengthType and UnitType as argument for supporting animations of units as well.
3373         * svg/SVGLength.h:
3374
3375 2011-07-01  Dirk Schulze  <krit@webkit.org>
3376
3377         Reviewed by Nikolas Zimmermann.
3378
3379         SVGAnimatedType should support SVGAnimatedInteger animation
3380         https://bugs.webkit.org/show_bug.cgi?id=63789
3381         
3382         Follow up of "SVGAnimation should use direct unit animation for SVGLength": https://bugs.webkit.org/show_bug.cgi?id=61368
3383         This patch continues the conversion to the new concept of SVGAnimatorFactory with SVGAnimatedInteger.
3384         
3385         SVGAnimatedInteger is used for some attributes of SVG filter effects. The animation of those attributes work after this patch.
3386
3387         Test: svg/animations/svginteger-animation-1.html
3388
3389         * CMakeLists.txt: Added file to build system.
3390         * GNUmakefile.list.am: Ditto.
3391         * WebCore.gypi: Ditto.
3392         * WebCore.pro: Ditto.
3393         * WebCore.xcodeproj/project.pbxproj: Ditto.
3394         * svg/SVGAllInOne.cpp: Ditto.
3395         * svg/SVGAnimateElement.cpp: Make use of AnimatedInteger.
3396         (WebCore::SVGAnimateElement::determineAnimatedAttributeType):
3397         (WebCore::SVGAnimateElement::calculateAnimatedValue):
3398         (WebCore::SVGAnimateElement::calculateFromAndToValues):
3399         (WebCore::SVGAnimateElement::calculateFromAndByValues):
3400         (WebCore::SVGAnimateElement::resetToBaseValue):
3401         (WebCore::SVGAnimateElement::applyResultsToTarget):
3402         (WebCore::SVGAnimateElement::calculateDistance):
3403         * svg/SVGAnimatedInteger.cpp: Added. The new animator for SVGAnimatedInteger.
3404         (WebCore::SVGAnimatedIntegerAnimator::SVGAnimatedIntegerAnimator):
3405         (WebCore::SVGAnimatedIntegerAnimator::constructFromString):
3406         (WebCore::SVGAnimatedIntegerAnimator::calculateFromAndToValues):
3407         (WebCore::SVGAnimatedIntegerAnimator::calculateFromAndByValues):
3408         (WebCore::SVGAnimatedIntegerAnimator::calculateAnimatedValue):
3409         (WebCore::SVGAnimatedIntegerAnimator::calculateDistance):
3410         * svg/SVGAnimatedInteger.h:
3411         (WebCore::SVGAnimatedIntegerAnimator::~SVGAnimatedIntegerAnimator):
3412         * svg/SVGAnimatedType.cpp: Added handler for AnimatedInteger.
3413         (WebCore::SVGAnimatedType::~SVGAnimatedType):
3414         (WebCore::SVGAnimatedType::createInteger):
3415         (WebCore::SVGAnimatedType::integer):
3416         (WebCore::SVGAnimatedType::valueAsString):
3417         (WebCore::SVGAnimatedType::setValueAsString):
3418         * svg/SVGAnimatedType.h:
3419         * svg/SVGAnimatorFactory.h:
3420         (WebCore::SVGAnimatorFactory::create):
3421
3422 2011-06-30  Eugene Klyuchnikov  <eustas.bug@gmail.com>
3423
3424         Reviewed by Pavel Feldman.
3425
3426         WebInspector: Performance / memory allocation issue in WebInspector.TextEditorModel.prototype._replaceTabsIfNeeded
3427         https://bugs.webkit.org/show_bug.cgi?id=40447
3428
3429         Test: inspector/editor/text-editor-model-replace-tabs.html
3430
3431         * inspector/front-end/TextEditorModel.js:
3432         (WebInspector.TextEditorModel.prototype._replaceTabsIfNeeded): avoid looped production of tail substrings 
3433
3434 2011-06-30  Kent Tamura  <tkent@chromium.org>
3435
3436         Reviewed by Tony Chang.
3437
3438         [Chromium] Input type="range" slider thumb is rendered upside down on Mac OS X.
3439         https://bugs.webkit.org/show_bug.cgi?id=63697
3440
3441         http://trac.webkit.org/changeset/86261 added a thumb flipping code
3442         for Mac-WebKit2. Chromium also needs it.
3443
3444         * rendering/RenderThemeMac.mm:
3445         (WebCore::RenderThemeMac::paintSliderThumb): Always flip vertically on Chromium.
3446
3447 2011-06-30  Kenichi Ishibashi  <bashi@chromium.org>
3448
3449         Reviewed by Simon Fraser.
3450
3451         [Chromium] -webkit-text-stroke doesn't affect with non-zero width border property
3452         https://bugs.webkit.org/show_bug.cgi?id=63698
3453
3454         Restore the stroke style when it is modified in RenderObject::drawLineForBoxSide() to show text stroke correctly.
3455
3456         Test: platform/chromium/fast/text/text-stroke-with-border.html
3457
3458         * rendering/RenderObject.cpp:
3459         (WebCore::RenderObject::drawLineForBoxSide): Save/restore the stroke style.
3460
3461 2011-06-30  Gwang Yoon Hwang  <ryumiel@company100.net>
3462
3463         Reviewed by Nate Chapin.
3464
3465         [V8] Add ENABLE(INSPECTOR) guards around v8 custom bindings.
3466         https://bugs.webkit.org/show_bug.cgi?id=63442
3467
3468         No new tests needed.
3469
3470         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
3471         * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
3472
3473 2011-06-30  Levi Weintraub  <leviw@chromium.org>
3474
3475         Reviewed by Eric Seidel.
3476
3477         Remove positionForCoordinates
3478         https://bugs.webkit.org/show_bug.cgi?id=63765
3479
3480         Removing positionForCoordinate. We should always use positionForPoint. Also cleaning up
3481         RenderBox's implementation of positionForPoint.
3482
3483         No new tests, there should be no functionality changes.
3484
3485         * accessibility/AccessibilityRenderObject.cpp:
3486         (WebCore::AccessibilityRenderObject::stringValue): Removing dead, or at least untested, code and
3487         adding an ASSERT_NOT_REACHED.