parseHTMLInteger shouldn't upconvert 8-bit string
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-07-13  Ryosuke Niwa  <rniwa@webkit.org>
2
3         parseHTMLInteger shouldn't upconvert 8-bit string
4         https://bugs.webkit.org/show_bug.cgi?id=118629
5
6         Reviewed by Sam Weinig.
7
8         Merge https://chromium.googlesource.com/chromium/blink/+/e0ebab23e0c16b49dc90c9c39b8bbbf4f243a01e.
9
10         * html/parser/HTMLParserIdioms.cpp:
11         (WebCore::parseHTMLInteger):
12
13 2013-07-12  Eric Carlson  <eric.carlson@apple.com>
14
15         [iOS] TextTrackRepresentation not cleared when captions are disabled
16         https://bugs.webkit.org/show_bug.cgi?id=118623
17
18         Reviewed by Dean Jackson.
19
20         * html/shadow/MediaControlElements.cpp:
21         (WebCore::MediaControlTextTrackContainerElement::updateDisplay): Do not return immediately
22             when captions are disabled so the necessary cleanup happens.
23
24 2013-07-12  Brent Fulgham  <bfulgham@apple.com>
25
26         [Windows] Attempt to satisfy the Open Source Windows bots.
27
28         * DerivedSources.make: Restore the HAVE_AVCF macro detection.
29         * config.h: Return to using HAVE_AVCF to activate AVFoundation code.
30
31 2013-07-12  peavo@outlook.com  <peavo@outlook.com>
32
33         [WinCairo] Compile fix.
34         https://bugs.webkit.org/show_bug.cgi?id=118461
35
36         Reviewed by Brent Fulgham.
37
38         * config.h: Only enable AVFOUNDATION for Windows if CoreGraphics is used.
39
40 2013-07-12  Oleg Beletski  <oleg.beletski@gmail.com>
41
42         [EFL] --minimal build fails while linking libwebcore_efl.so
43         https://bugs.webkit.org/show_bug.cgi?id=118549
44
45         Reviewed by Christophe Dumez.
46
47         * CMakeLists.txt:
48         Moving file plugins/PluginPackage.cpp to ENABLE_NETSCAPE_PLUGIN_API block.
49
50 2013-07-12  Allan Sandfeld Jensen  <allan.jensen@digia.com>
51
52         Insufficient viewport repaints when FrameView::paintsEntireContents
53         https://bugs.webkit.org/show_bug.cgi?id=118562
54
55         Reviewed by Simon Fraser.
56
57         When the frameview paints entire content, the visualOverflowRect of RenderView
58         should be the same as the layoutOverflowRect.
59
60         This affects the requested repaints on resize of the frameview.
61
62         * rendering/RenderView.cpp:
63         (WebCore::RenderView::visualOverflowRect):
64         * rendering/RenderView.h:
65
66 2013-07-10  Roger Fong  <roger_fong@apple.com>
67
68         Plugins that don't support snapshotting should not all autostart.
69         https://bugs.webkit.org/show_bug.cgi?id=118572
70         <rdar://problem/14324391>.
71
72         Reviewed by Dean Jackson.
73
74         Test: plugins/snapshotting/quicktime-plugin-snapshotted.html
75
76         * html/HTMLPlugInImageElement.cpp:
77         (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot): Pass in information about whether or not a snapshot exists
78         to the shadow dom.
79         * plugins/PluginViewBase.h:
80         (WebCore::PluginViewBase::shouldNotAddLayer): This method determines whether or not we should add the plugin's layer to the tree.
81         It should not be added if the plugin is in it's snapshotted state but does not actually support snapshotting.
82         * rendering/RenderLayerBacking.cpp:
83         (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration): We should only add the layer to the tree when the plugin
84         is actually playing. Otherwise we run into an issue where the contents of the layer initially appear on the screen briefly 
85         on page load before we display the substitute for a plugin that doesn't support snapshotting.
86
87 2013-07-11  Dan Bernstein  <mitz@apple.com>
88
89         [mac] No API for getting the page visibility state of a WebView
90         https://bugs.webkit.org/show_bug.cgi?id=118578
91
92         Reviewed by Simon Fraser.
93
94         * WebCore.exp.in: Export WebCore::Page::visibilityState().
95
96 2013-07-11  Mario Sanchez Prada  <mario.prada@samsung.com>
97
98         [GTK] Layout Test accessibility/deleting-iframe-destroys-axcache.html, platform/gtk/accessibility/replaced-objects-in-anonymous-blocks.html are failing
99         https://bugs.webkit.org/show_bug.cgi?id=118552
100
101         Reviewed by Chris Fleizach.
102
103         Do not assume always that we have a RenderText renderer when
104         calling to toRenderText(), since we might be executing that part
105         of the code due to have requested to include all the children.
106
107         * accessibility/AccessibilityRenderObject.cpp:
108         (WebCore::AccessibilityRenderObject::textUnderElement): Add
109         missing guard for RenderText, needed after r152537.
110
111 2013-07-11  Andrei Bucur  <abucur@adobe.com>
112
113         [CSS Regions] In a region chain with auto-height regions, lines get their length based only on the first region
114         https://bugs.webkit.org/show_bug.cgi?id=118531
115
116         Reviewed by Alexandru Chiculita.
117
118         When computing the height a flow thread it's possible to overflow the maximum LayoutUnit and obtain a negative value.
119         This leads to invalid results during layout when computing the region range and the RenderBoxRegion info for the
120         descendant boxes of the flow thread.
121     
122         This issue appears especially during the auto-height algorithm because it initializes the auto-height regions
123         height with the LayoutUnit::max() / 2 value. Summing two such regions overflows and results in a negative value.
124
125         The fix clamps the maximum height of the flow thread to LayoutUnit::max() / 2. This doesn't affect the auto-height
126         algorithm because regionAtBlockOffset() will still return the correct values as the auto-height regions content
127         is established and their height updated.
128
129         Tests: fast/regions/autoheight-correct-region-for-lines-2.html
130                fast/regions/autoheight-correct-region-for-lines.html
131
132         * rendering/RenderBlock.cpp:
133         (WebCore::RenderBlock::updateRegionsAndShapesBeforeChildLayout):
134         * rendering/RenderFlowThread.cpp:
135         (WebCore::RenderFlowThread::computeLogicalHeight):
136         (WebCore::RenderFlowThread::setRegionRangeForBox):
137         (WebCore::RenderFlowThread::updateRegionsFlowThreadPortionRect):
138         * rendering/RenderFlowThread.h:
139         * rendering/RenderRegion.cpp:
140         (WebCore::RenderRegion::maxPageLogicalHeight):
141
142 2013-07-11  Timothy Hatcher  <timothy@apple.com>
143
144         Revert r152267 and soft link WebInspectorUI.framework again.
145
146         https://bugs.webkit.org/show_bug.cgi?id=118544
147
148         Reviewed by David Kilzer.
149
150         * platform/mac/SoftLinking.h: Rename SOFT_LINK_STAGED_FRAMEWORK_OPTIONAL
151         to SOFT_LINK_STAGED_FRAMEWORK and ASSERT since we don't want to silently
152         fail anymore when using this macro.
153
154 2013-07-11  Jae Hyun Park  <jae.park@company100.net>
155
156         [Coordinated Graphics] Parameter of commitSceneState should be const
157         https://bugs.webkit.org/show_bug.cgi?id=118564
158
159         Reviewed by Noam Rosenthal.
160
161         Parameter of commitSceneState should be const as there should not be any
162         modifications to the passed CoordinatedGraphicsState.
163
164         * platform/graphics/texmap/coordinated/CompositingCoordinator.h:
165
166 2013-07-11  Radu Stavila  <stavila@adobe.com>
167
168         NamedFlowCollection getters should follow the same pattern as HTMLCollection
169         https://bugs.webkit.org/show_bug.cgi?id=118561
170
171         Reviewed by Christophe Dumez.
172
173         Modified item and namedItem methods from DOMNamedFlowCollection to return null instead of undefined.
174         https://www.w3.org/Bugs/Public/show_bug.cgi?id=22617
175         Completely removed the TreatReturnedNullObjectAs attribute as it was only used by the DOMNamedFlowCollection interface.
176
177         Test: fast/regions/webkit-named-flow-collection-empty-getters.html
178
179         * bindings/scripts/CodeGeneratorJS.pm:
180         (GenerateImplementationFunctionCall):
181         * bindings/scripts/IDLAttributes.txt:
182         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
183         (WebDOMTestObj::treatReturnedNullObjectAsUndefined):
184         * bindings/scripts/test/CPP/WebDOMTestObj.h:
185         * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
186         (webkit_dom_test_obj_treat_returned_null_object_as_undefined):
187         * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
188         * bindings/scripts/test/JS/JSTestObj.cpp:
189         (WebCore::jsTestObjPrototypeFunctionTreatReturnedNullObjectAsUndefined):
190         * bindings/scripts/test/JS/JSTestObj.h:
191         * bindings/scripts/test/ObjC/DOMTestObj.h:
192         * bindings/scripts/test/ObjC/DOMTestObj.mm:
193         (-[DOMTestObj treatReturnedNullObjectAsUndefined]):
194         * bindings/scripts/test/TestObj.idl:
195         * dom/DOMNamedFlowCollection.idl:
196
197 2013-07-11  Andreas Kling  <akling@apple.com>
198
199         Revert r149313: Don't check for @media rules affected by viewport changes in every layout.
200         <rdar://problem/14277905>
201
202         Rubber-stamped by Antti Koivisto.
203
204         This changed caused more harm than good. setFrameRect() is not the only path in FrameView
205         that can cause media queries to need invalidation.
206
207         * page/FrameView.cpp:
208         (WebCore::FrameView::setFrameRect):
209         (WebCore::FrameView::layout):
210
211 2013-07-11  Kangil Han  <kangil.han@samsung.com>
212
213         Introduce isHTMLTitleElement and toHTMLTitleElement
214         https://bugs.webkit.org/show_bug.cgi?id=118558
215
216         Reviewed by Andreas Kling.
217
218         To enhance readability, this patch introduces isHTMLTitleElement and toHTMLTitleElement.
219         This also helps out to reduce duplicated use of static_cast.
220
221         * dom/Document.cpp:
222         (WebCore::Document::setTitle):
223         (WebCore::Document::removeTitle):
224         * editing/ReplaceSelectionCommand.cpp:
225         (WebCore::removeHeadContents):
226         * html/HTMLTitleElement.h:
227         (WebCore::isHTMLTitleElement):
228         (WebCore::toHTMLTitleElement):
229
230 2013-07-11  Patrick Gansterer  <paroga@webkit.org>
231
232         Remove unused Windows CE files
233         https://bugs.webkit.org/show_bug.cgi?id=118557
234
235         Reviewed by Andreas Kling.
236
237         * platform/wince/CursorWinCE.cpp: Removed.
238         * platform/wince/PasteboardWinCE.cpp: Removed.
239         * platform/wince/SearchPopupMenuWinCE.cpp: Removed.
240
241 2013-07-11  Christophe Dumez  <ch.dumez@sisa.samsung.com>
242
243         Get rid of SVGPathSeg* special casing in the bindings generator
244         https://bugs.webkit.org/show_bug.cgi?id=118525
245
246         Reviewed by Kentaro Hara.
247
248         Have one header per SVGPathSeg* type so that we no longer need special casing
249         for them in the JSC bindings generator.
250
251         No new tests, no behavior change.
252
253         * GNUmakefile.list.am:
254         * Target.pri:
255         * WebCore.vcxproj/WebCore.vcxproj:
256         * WebCore.vcxproj/WebCore.vcxproj.filters:
257         * WebCore.xcodeproj/project.pbxproj:
258         * bindings/js/JSSVGPathSegCustom.cpp:
259         * bindings/scripts/CodeGeneratorJS.pm:
260         (AddIncludesForType):
261         (NativeToJSValue):
262         * svg/SVGPathElement.cpp:
263         * svg/SVGPathSegArc.h:
264         * svg/SVGPathSegArcAbs.h: Added.
265         (WebCore::SVGPathSegArcAbs::create):
266         (WebCore::SVGPathSegArcAbs::SVGPathSegArcAbs):
267         (WebCore::SVGPathSegArcAbs::pathSegType):
268         (WebCore::SVGPathSegArcAbs::pathSegTypeAsLetter):
269         * svg/SVGPathSegArcRel.h: Added.
270         (WebCore::SVGPathSegArcRel::create):
271         (WebCore::SVGPathSegArcRel::SVGPathSegArcRel):
272         (WebCore::SVGPathSegArcRel::pathSegType):
273         (WebCore::SVGPathSegArcRel::pathSegTypeAsLetter):
274         * svg/SVGPathSegCurvetoCubic.h:
275         * svg/SVGPathSegCurvetoCubicAbs.h: Added.
276         (WebCore::SVGPathSegCurvetoCubicAbs::create):
277         (WebCore::SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs):
278         (WebCore::SVGPathSegCurvetoCubicAbs::pathSegType):
279         (WebCore::SVGPathSegCurvetoCubicAbs::pathSegTypeAsLetter):
280         * svg/SVGPathSegCurvetoCubicRel.h: Added.
281         (WebCore::SVGPathSegCurvetoCubicRel::create):
282         (WebCore::SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel):
283         (WebCore::SVGPathSegCurvetoCubicRel::pathSegType):
284         (WebCore::SVGPathSegCurvetoCubicRel::pathSegTypeAsLetter):
285         * svg/SVGPathSegCurvetoCubicSmooth.h:
286         * svg/SVGPathSegCurvetoCubicSmoothAbs.h: Copied from Source/WebCore/svg/SVGPathSegCurvetoCubicSmooth.h.
287         (WebCore::SVGPathSegCurvetoCubicSmoothAbs::create):
288         (WebCore::SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs):
289         (WebCore::SVGPathSegCurvetoCubicSmoothAbs::pathSegType):
290         (WebCore::SVGPathSegCurvetoCubicSmoothAbs::pathSegTypeAsLetter):
291         * svg/SVGPathSegCurvetoCubicSmoothRel.h: Copied from Source/WebCore/svg/SVGPathSegCurvetoCubicSmooth.h.
292         (WebCore::SVGPathSegCurvetoCubicSmoothRel::create):
293         (WebCore::SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel):
294         (WebCore::SVGPathSegCurvetoCubicSmoothRel::pathSegType):
295         (WebCore::SVGPathSegCurvetoCubicSmoothRel::pathSegTypeAsLetter):
296         * svg/SVGPathSegCurvetoQuadratic.h:
297         * svg/SVGPathSegCurvetoQuadraticAbs.h: Copied from Source/WebCore/svg/SVGPathSegCurvetoQuadratic.h.
298         (WebCore::SVGPathSegCurvetoQuadraticAbs::create):
299         (WebCore::SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs):
300         (WebCore::SVGPathSegCurvetoQuadraticAbs::pathSegType):
301         (WebCore::SVGPathSegCurvetoQuadraticAbs::pathSegTypeAsLetter):
302         * svg/SVGPathSegCurvetoQuadraticRel.h: Copied from Source/WebCore/svg/SVGPathSegCurvetoQuadratic.h.
303         (WebCore::SVGPathSegCurvetoQuadraticRel::create):
304         (WebCore::SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel):
305         (WebCore::SVGPathSegCurvetoQuadraticRel::pathSegType):
306         (WebCore::SVGPathSegCurvetoQuadraticRel::pathSegTypeAsLetter):
307         * svg/SVGPathSegCurvetoQuadraticSmoothAbs.h: Copied from Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h.
308         (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::create):
309         (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs):
310         (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::pathSegType):
311         (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::pathSegTypeAsLetter):
312         * svg/SVGPathSegCurvetoQuadraticSmoothRel.h: Renamed from Source/WebCore/svg/SVGPathSegCurvetoQuadraticSmooth.h.
313         (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::create):
314         (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel):
315         (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::pathSegType):
316         (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::pathSegTypeAsLetter):
317         * svg/SVGPathSegLinetoAbs.h: Copied from Source/WebCore/svg/SVGPathSegLineto.h.
318         (WebCore::SVGPathSegLinetoAbs::create):
319         (WebCore::SVGPathSegLinetoAbs::SVGPathSegLinetoAbs):
320         (WebCore::SVGPathSegLinetoAbs::pathSegType):
321         (WebCore::SVGPathSegLinetoAbs::pathSegTypeAsLetter):
322         * svg/SVGPathSegLinetoHorizontal.h:
323         * svg/SVGPathSegLinetoHorizontalAbs.h: Copied from Source/WebCore/svg/SVGPathSegLinetoHorizontal.h.
324         (WebCore::SVGPathSegLinetoHorizontalAbs::create):
325         (WebCore::SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs):
326         (WebCore::SVGPathSegLinetoHorizontalAbs::pathSegType):
327         (WebCore::SVGPathSegLinetoHorizontalAbs::pathSegTypeAsLetter):
328         * svg/SVGPathSegLinetoHorizontalRel.h: Copied from Source/WebCore/svg/SVGPathSegLinetoHorizontal.h.
329         (WebCore::SVGPathSegLinetoHorizontalRel::create):
330         (WebCore::SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel):
331         (WebCore::SVGPathSegLinetoHorizontalRel::pathSegType):
332         (WebCore::SVGPathSegLinetoHorizontalRel::pathSegTypeAsLetter):
333         * svg/SVGPathSegLinetoRel.h: Renamed from Source/WebCore/svg/SVGPathSegLineto.h.
334         (WebCore::SVGPathSegLinetoRel::create):
335         (WebCore::SVGPathSegLinetoRel::SVGPathSegLinetoRel):
336         (WebCore::SVGPathSegLinetoRel::pathSegType):
337         (WebCore::SVGPathSegLinetoRel::pathSegTypeAsLetter):
338         * svg/SVGPathSegLinetoVertical.h:
339         * svg/SVGPathSegLinetoVerticalAbs.h: Copied from Source/WebCore/svg/SVGPathSegLinetoVertical.h.
340         (WebCore::SVGPathSegLinetoVerticalAbs::create):
341         (WebCore::SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs):
342         (WebCore::SVGPathSegLinetoVerticalAbs::pathSegType):
343         (WebCore::SVGPathSegLinetoVerticalAbs::pathSegTypeAsLetter):
344         * svg/SVGPathSegLinetoVerticalRel.h: Copied from Source/WebCore/svg/SVGPathSegLinetoVertical.h.
345         (WebCore::SVGPathSegLinetoVerticalRel::create):
346         (WebCore::SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel):
347         (WebCore::SVGPathSegLinetoVerticalRel::pathSegType):
348         (WebCore::SVGPathSegLinetoVerticalRel::pathSegTypeAsLetter):
349         * svg/SVGPathSegListBuilder.cpp:
350         * svg/SVGPathSegMovetoAbs.h: Copied from Source/WebCore/svg/SVGPathSegMoveto.h.
351         (WebCore::SVGPathSegMovetoAbs::create):
352         (WebCore::SVGPathSegMovetoAbs::SVGPathSegMovetoAbs):
353         (WebCore::SVGPathSegMovetoAbs::pathSegType):
354         (WebCore::SVGPathSegMovetoAbs::pathSegTypeAsLetter):
355         * svg/SVGPathSegMovetoRel.h: Renamed from Source/WebCore/svg/SVGPathSegMoveto.h.
356         (WebCore::SVGPathSegMovetoRel::create):
357         (WebCore::SVGPathSegMovetoRel::SVGPathSegMovetoRel):
358         (WebCore::SVGPathSegMovetoRel::pathSegType):
359         (WebCore::SVGPathSegMovetoRel::pathSegTypeAsLetter):
360
361 2013-07-11  Patrick Gansterer  <paroga@webkit.org>
362
363         Build fix for WinCE after r152426.
364
365         * config.h:
366
367 2013-07-11  Fabienne Semeria   <fsemeria@nds.com>
368
369         [Qt] memory leak in WebCore::FontCache::getLastResortFallbackFont
370         https://bugs.webkit.org/show_bug.cgi?id=118532
371
372         Reviewed by Allan Sandfeld Jensen.
373
374         * platform/graphics/qt/FontCacheQt.cpp:
375         (WebCore::FontCache::getLastResortFallbackFont):
376
377 2013-07-11  Mario Sanchez Prada  <mario.prada@samsung.com>
378
379         [ATK] Refactor code for translating offsets between WebCore a11y and ATK
380         https://bugs.webkit.org/show_bug.cgi?id=118179
381
382         Reviewed by Chris Fleizach.
383
384         Encapsulate better and make more clear the translation of offsets
385         between our ATK implementation and WebCore's accessibility layer.
386
387         Values for offsets can differ sometimes between those two worlds
388         due to some extra flattening we need to do in ATK based ports to
389         properly expose the accessibility hierarchy to ATs, which
390         sometimes means adding extra text elements in the exposed text
391         through the AtkText interface (e.g. list items markers).
392
393         * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
394         (offsetAdjustmentForListItem): Helper function to refactor code
395         needed to translate offsets from WebCore to ATK worlds. Currently
396         related to considering list item markers in LTR text only.
397         (webCoreOffsetToAtkOffset): Convenience function for code
398         readability purposes. It just calls offsetAdjustmentForListItem.
399         (atkOffsetToWebCoreOffset): Likewise.
400         (getSelectionOffsetsForObject): Use webCoreOffsetToAtkOffset.
401         (webkitAccessibleTextGetCaretOffset): Use webCoreOffsetToAtkOffset
402         to translate an offset from WebCore to ATK before returning it.
403         (webkitAccessibleTextSetSelection): Use atkOffsetToWebCoreOffset
404         to translate an offset from WebCore to ATK before using it.
405         (webkitAccessibleTextSetCaretOffset): Likewise.
406
407 2013-07-10  Sam Weinig  <sam@webkit.org>
408
409         Range.getClientRects() not working correctly for partially contained vertically styled text nodes
410         <rdar://problem/14305675>
411         https://bugs.webkit.org/show_bug.cgi?id=118447
412
413         Reviewed by David Hyatt.
414
415         Original patch by Mac Murrett, tweaked by me.
416
417         Test: fast/dom/Range/getClientRects-vertical.html
418
419         * rendering/RenderText.cpp:
420         (WebCore::localQuadForTextBox):
421         Use the physical accessors rather than the logical ones to get the correct metrics.
422
423 2013-07-10  Christophe Dumez  <ch.dumez@sisa.samsung.com>
424
425         Reduce number of header includes in SVG
426         https://bugs.webkit.org/show_bug.cgi?id=118474
427
428         Reviewed by Rob Buis.
429
430         Reduce number of header includes in SVG. In particular, SVGAnimatedPropertyMacros.h
431         no longer brings SVGElement.h header include. This means that the SVGElement
432         class can now have animated properties.
433
434         This patch is a prerequirement to merge SVGStyledElement into SVGElement.
435
436         No new tests, no behavior change.
437
438         * CMakeLists.txt:
439         * GNUmakefile.list.am:
440         * Target.pri:
441         * WebCore.vcxproj/WebCore.vcxproj:
442         * WebCore.vcxproj/WebCore.vcxproj.filters:
443         * WebCore.xcodeproj/project.pbxproj:
444         * svg/GradientAttributes.h:
445         * svg/SVGAllInOne.cpp:
446         * svg/SVGAnimateMotionElement.cpp:
447         * svg/SVGAnimateMotionElement.h:
448         * svg/SVGAnimatedTypeAnimator.cpp: Added.
449         (WebCore::SVGElementAnimatedProperties::SVGElementAnimatedProperties):
450         (WebCore::SVGAnimatedTypeAnimator::SVGAnimatedTypeAnimator):
451         (WebCore::SVGAnimatedTypeAnimator::~SVGAnimatedTypeAnimator):
452         (WebCore::SVGAnimatedTypeAnimator::calculateFromAndToValues):
453         (WebCore::SVGAnimatedTypeAnimator::calculateFromAndByValues):
454         (WebCore::SVGAnimatedTypeAnimator::findAnimatedPropertiesForAttributeName):
455         * svg/SVGAnimatedTypeAnimator.h:
456         * svg/SVGAnimationElement.h:
457         * svg/SVGCursorElement.cpp:
458         * svg/SVGDocumentExtensions.h:
459         * svg/SVGElement.cpp:
460         * svg/SVGElementInstanceList.cpp:
461         * svg/SVGElementInstanceList.h:
462         * svg/SVGElementRareData.h:
463         * svg/SVGFEImageElement.cpp:
464         * svg/SVGFilterElement.cpp:
465         * svg/SVGFitToViewBox.h:
466         * svg/SVGFontData.cpp:
467         * svg/SVGFontData.h:
468         * svg/SVGFontElement.h:
469         * svg/SVGForeignObjectElement.cpp:
470         * svg/SVGGlyphMap.h:
471         * svg/SVGGradientElement.cpp:
472         * svg/SVGMPathElement.cpp:
473         * svg/SVGMPathElement.h:
474         * svg/SVGPathBlender.cpp:
475         * svg/SVGPathBlender.h:
476         * svg/SVGPathBuilder.cpp:
477         * svg/SVGPathBuilder.h:
478         * svg/SVGPathParser.cpp:
479         * svg/SVGPathParser.h:
480         * svg/SVGPathSegListBuilder.h:
481         * svg/SVGPathTraversalStateBuilder.cpp:
482         * svg/SVGPathTraversalStateBuilder.h:
483         * svg/SVGPathUtilities.h:
484         * svg/SVGPatternElement.cpp:
485         * svg/SVGPointList.h:
486         * svg/SVGScriptElement.cpp:
487         * svg/SVGStyledElement.h:
488         * svg/SVGTests.h:
489         * svg/SVGTextElement.h:
490         * svg/SVGTextPathElement.cpp:
491         * svg/SVGTransformable.h:
492         * svg/SVGURIReference.cpp:
493         * svg/SVGURIReference.h:
494         * svg/SVGVKernElement.cpp:
495         * svg/SVGVKernElement.h:
496         * svg/SVGZoomAndPan.h:
497         * svg/properties/SVGAnimatedProperty.cpp: Added.
498         (WebCore::SVGAnimatedProperty::SVGAnimatedProperty):
499         (WebCore::SVGAnimatedProperty::~SVGAnimatedProperty):
500         (WebCore::SVGAnimatedProperty::commitChange):
501         (WebCore::SVGAnimatedProperty::animatedPropertyCache):
502         * svg/properties/SVGAnimatedProperty.h:
503         * svg/properties/SVGAnimatedPropertyMacros.h:
504         (WebCore::SVGSynchronizableAnimatedProperty::synchronize):
505         * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
506         * svg/properties/SVGListProperty.h:
507
508 2013-07-10  Dominique Leuenberger  <dimstar@opensuse.org>
509
510         Fix build against GTK+ 2.0
511         https://bugs.webkit.org/show_bug.cgi?id=117895
512
513         Reviewed by Martin Robinson.
514
515         GTK2 build fails for undefined GDK_IS_X11_DISPLAY
516         GTK 2.0 does define GDK_WINDOWING_X11,but GDK_IS_X11_DISPLAY is not
517         present in GTK+ 2.0. A dummy defines is sufficient, as GTK 2.0 is not
518         that multiple backend aware anyway...
519
520         * platform/gtk/GtkVersioning.h: Define GDK_IS_X11_DISPLAY for GTK+ 2.0
521           and compatibility for gtk_widget_get_preferred_size()
522         * plugins/gtk/gtk2xtbin.c: Include config.h
523
524 2013-07-10  Tim Horton  <timothy_horton@apple.com>
525
526         Deferring layer flushes can cause painting without layout being done
527         https://bugs.webkit.org/show_bug.cgi?id=118493
528
529         Reviewed by Simon Fraser.
530
531         r147797 added a mechanism for the TileController to inform RenderLayerCompositor
532         that it had performed an action (setNeedsDisplay, etc.) that would cause CoreAnimation
533         to call back into us to paint in this runloop, and that it shouldn't throttle the next
534         layer flush.
535
536         However, if tiles were created and left unparented (because the TileController was
537         out-of-window), when they are later parented, we failed to inform RenderLayerCompositor
538         that they were about to call back for painting, and so it would happily throttle the
539         next layer flush, and layout would be out of date, and garbage and corruption could result.
540
541         To resolve this, rework the logic surrounding parenting existing-but-unparented tiles
542         to ensure that they get added to the TileController's dirtyRect.
543
544         No new tests; the bug only reproduces under specific timing circumstances, and
545         manifests itself as an assertion failure or garbage on the screen, so it's quite
546         hard to make a workable test.
547
548         * platform/graphics/ca/mac/TileController.mm:
549         (WebCore::TileController::revalidateTiles):
550         - Factor out the code to parent unparented tiles so that it is shared between the
551             created-new-tile and reparenting-existing-tile cases.
552         - Keep track of whether we updated the frame of a pre-existing tile.
553         - If the tile is dirty and needed to be parented (because either it's new
554             or hadn't been parented before), add it to the dirty rect list.
555         - If the tile changed size, add it to the dirty rect list.
556
557         (WebCore::TileController::ensureTilesForRect):
558         Ditto everything from revalidateTiles.
559
560         (WebCore::TileController::createTileLayer):
561         - Explicitly mark fresh tiles as needing display, so that we can depend on
562             [WebTileLayer needsDisplay] in revalidateTiles to tell us that it's dirty.
563
564 2013-07-10  Eric Carlson  <eric.carlson@apple.com>
565
566         [Mac] every enabled text track should be listed in the track menu
567         https://bugs.webkit.org/show_bug.cgi?id=118477
568
569         Reviewed by Jer Noble.
570
571         Test: media/video-controls-captions-trackmenu-includes-enabled-track.html
572
573         * html/shadow/MediaControlElements.cpp:
574         (WebCore::MediaControlClosedCaptionsTrackListElement::updateDisplay): Don't select the
575             "Off" menu item if a track is enabled.
576
577         * page/CaptionUserPreferencesMediaAF.cpp:
578         (WebCore::CaptionUserPreferencesMediaAF::sortedTrackListForMenu): Always include a track
579             that is showing in the menu. Add more diagnostic logging.
580
581 2013-07-10  Christophe Dumez  <ch.dumez@sisa.samsung.com>
582
583         Remove ElementTimeControl and expose SVGAnimationElement
584         https://bugs.webkit.org/show_bug.cgi?id=118349
585
586         Reviewed by Rob Buis.
587
588         Remove ElementTimeControl IDL interface and move its attributes
589         to the SVGAnimationElement IDL interface as per the latest SVG2
590         specification:
591         https://svgwg.org/svg2-draft/animate.html#InterfaceSVGAnimationElement
592
593         Also remove [NoInterfaceObject] IDL extended attribute from
594         SVGAnimationElement as it is not present in the specification.
595
596         This is one step towards removing IDL multiple inheritance in SVG and
597         complying with the latest SVG2 specification.
598
599         No new tests, covered by existing test cases.
600
601         * DerivedSources.make:
602         * GNUmakefile.list.am:
603         * WebCore.vcxproj/WebCore.vcxproj:
604         * WebCore.vcxproj/WebCore.vcxproj.filters:
605         * WebCore.xcodeproj/project.pbxproj:
606         * bindings/scripts/CodeGeneratorObjC.pm:
607         * svg/ElementTimeControl.h: Removed.
608         * svg/ElementTimeControl.idl: Removed.
609         * svg/SVGAnimationElement.h:
610         * svg/SVGAnimationElement.idl:
611
612 2013-07-10  Arnaud Renevier  <a.renevier@sisa.samsung.com>
613
614         Web Inspector: "Always enable" profiling does not work
615         https://bugs.webkit.org/show_bug.cgi?id=118487
616
617         Enable profiler when loading panel if profiler is enabled in inspector
618         settings.
619
620         Reviewed by Timothy Hatcher.
621
622         * inspector/front-end/ProfilesPanel.js:
623
624 2013-07-09  Roger Fong  <roger_fong@apple.com>
625
626         HTMLPluginElement's state should be Playing before firing mouse click event.
627         https://bugs.webkit.org/show_bug.cgi?id=118398.
628         <rdar://problem/14262126>
629
630         Reviewed by Dean Jackson.
631
632         Test: plugins/snapshotting/plugin-receives-click-event.html
633
634         * html/HTMLPlugInImageElement.cpp:
635         (WebCore::HTMLPlugInImageElement::simulatedMouseClickTimerFired):
636         The defaultEventHandler returns early if the state is not Playing.
637         This is because we only want the plugin to deal with user interaction normally if the
638         plugin is actually enabled (not being snapshotted).
639         When we click on the snapshotted plugin to start it, we mimic what would happen to the plugin
640         normally by dispatching another click event on top of where we just clicked.
641         However, we were sending the click event before setting the state to Playing which meant that our
642         simulated click was not being handled. 
643         We should be setting this state before sending the click, not after.
644
645 2013-07-10  Nick Diego Yamane  <nick.yamane@openbossa.org>
646
647         Fix a bug in MediaStreamDescriptor::removeVideoComponent
648         https://bugs.webkit.org/show_bug.cgi?id=118446
649
650         Reviewed by Eric Carlson.
651
652         MediaStreamDescriptor::removeVideoComponent is currently trying to
653         remove the 'videoComponent' from the wrong vector.
654
655         * platform/mediastream/MediaStreamDescriptor.h:
656         (WebCore::MediaStreamDescriptor::removeVideoComponent):
657
658 2013-07-10  Mario Sanchez Prada  <mario.prada@samsung.com>
659
660         AX: Allow requesting the full plain text for an object with textUnderElement()
661         https://bugs.webkit.org/show_bug.cgi?id=105214
662
663         Reviewed by Chris Fleizach.
664
665         Allow specifying different function modes for textUnderElement(),
666         so we can effectively ask for the "normal" result (e.g to retrieve
667         test to be exposed as the 'title') or for the full text under the
668         element (without omitting any child in the subtree). This is
669         needed for the implementation of atk_text_get_text() in GTK/EFL.
670
671         * accessibility/AccessibilityObject.h: Add new enumeration to
672         specify the different modes for textUnderElement().
673         (WebCore::AccessibilityObject::textUnderElement): Added parameter.
674
675         * accessibility/AccessibilityNodeObject.cpp:
676         (WebCore::shouldUseAccessiblityObjectInnerText): Always return
677         'true' when using the "include all children" mode.
678         (WebCore::AccessibilityNodeObject::textUnderElement): Updated call
679         to shouldUseAccessiblityObjectInnerText().
680         * accessibility/AccessibilityNodeObject.h:
681
682         * accessibility/AccessibilityRenderObject.cpp:
683         (WebCore::AccessibilityRenderObject::textUnderElement): Removed
684         GTK specific code and expand the usage of text iterators beyond
685         text render objects, using it also when in the "include all
686         children" mode.
687         * accessibility/AccessibilityRenderObject.h:
688
689         * accessibility/atk/AccessibilityObjectAtk.cpp:
690         (WebCore::AccessibilityObject::getLengthForTextRange): Updated
691         call to textUnderElement(), preserving the previous behavior.
692
693         * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
694         (webkitAccessibleTextGetText): Updated call to textUnderElement(),
695         using the "include all children" mode.
696
697 2013-07-10  Sergio Correia  <sergio.correia@openbossa.org>
698
699         Remove the meshType from CoordinatedCustomFilterOperation
700         https://bugs.webkit.org/show_bug.cgi?id=118529
701
702         Reviewed by Noam Rosenthal.
703
704         Following the removal of the meshType from CustomFilterOperation in r149153,
705         remove also the meshType from CoordinatedCustomFilterOperation.
706
707         No new tests, no new functionality.
708
709         * platform/graphics/texmap/coordinated/CoordinatedCustomFilterOperation.h:
710         (WebCore::CoordinatedCustomFilterOperation::create): Remove unused meshType parameter.
711         (WebCore::CoordinatedCustomFilterOperation::CoordinatedCustomFilterOperation): Ditto.
712  Ditto.
713 2013-07-10  James Craig  <james@cookiecrook.com>
714
715         AX: AccessibilityNodeObject::supportsRequiredAttribute() should switch on CellRole
716         https://bugs.webkit.org/show_bug.cgi?id=117817
717
718         Reviewed by Chris Fleizach.
719
720         CellRole supports the required attribute now for accessibility, according to ARIA spec. 
721         Updated existing test coverage.
722
723         * accessibility/AccessibilityNodeObject.cpp:
724         (WebCore::AccessibilityNodeObject::supportsRequiredAttribute):
725
726 2013-07-10  Csaba Osztrogonác  <ossy@webkit.org>
727
728         REGRESSION(r151957): WebGL textures do not show
729         https://bugs.webkit.org/show_bug.cgi?id=118464
730
731         Reviewed by Christophe Dumez.
732
733         After r151957 decoder.frameIsCompleteAtIndex(0) doesn't trigger image decoding,
734         we have to call decoder.createFrameAtIndex(0) explicitly to ensure it.
735
736         * platform/graphics/cairo/GraphicsContext3DCairo.cpp:
737         (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
738         * platform/graphics/efl/GraphicsContext3DEfl.cpp:
739         (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
740
741 2013-07-10  Karol Świniarski  <k.swiniarsk2@samsung.com>
742
743         Change recently ratified extensions prefixes from WEBKIT_WEBGL_ to WEBGL_
744         https://bugs.webkit.org/show_bug.cgi?id=117786
745
746         Reviewed by Dean Jackson.
747
748         According to WebGL's revision 10, extensions should be named: WEBGL_lose_context,
749         WEBGL_depth_texture, WEBGL_compressed_texture_s3tc.
750
751         No new tests. Covered by existing tests:
752         LayoutTests/webgl/conformance/extensions/get-extension.html
753         LayoutTests/webgl/conformance/context/context-lost.html
754         LayoutTests/webgl/conformance/extensions/webgl-depth-texture.html
755         LayoutTests/webgl/conformance/extensions/webgl-compressed-texture-s3tc.html
756
757         * html/canvas/WebGLRenderingContext.cpp:
758         (WebCore::WebGLRenderingContext::getExtension):
759         (WebCore::WebGLRenderingContext::getSupportedExtensions):
760
761 2013-07-09  Byungwoo Lee  <bw80.lee@samsung.com>
762
763         Unreviewed build fix.
764
765         * svg/SVGImageElement.cpp:
766         (WebCore::SVGImageElement::SVGImageElement):
767
768 2013-07-09  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
769
770         Introduce isSVGFontElement() and isSVGImageElement(), use them
771         https://bugs.webkit.org/show_bug.cgi?id=118504
772
773         Reviewed by Benjamin Poulain.
774
775         Let's use isFoo() to enhance readibility in svg element classes along with html's.
776
777         No new tests, there is no behavior changes.
778
779         * loader/cache/CachedFont.cpp:
780         (WebCore::CachedFont::getSVGFontById):
781         * rendering/HitTestResult.cpp:
782         (WebCore::HitTestResult::absoluteImageURL):
783         * svg/SVGAnimateMotionElement.cpp:
784         (WebCore::SVGAnimateMotionElement::hasValidAttributeType):
785         * svg/SVGElement.cpp:
786         (WebCore::SVGElement::viewportElement):
787         * svg/SVGFontElement.cpp:
788         (WebCore::SVGFontElement::SVGFontElement):
789         * svg/SVGFontElement.h:
790         (WebCore::toSVGFontElement):
791         (WebCore::isSVGFontElement):
792         * svg/SVGFontFaceElement.cpp:
793         (WebCore::SVGFontFaceElement::associatedFontElement):
794         (WebCore::SVGFontFaceElement::rebuildFontFace):
795         * svg/SVGGlyphElement.cpp:
796         (WebCore::SVGGlyphElement::invalidateGlyphCache):
797         * svg/SVGHKernElement.cpp:
798         (WebCore::SVGHKernElement::insertedInto):
799         (WebCore::SVGHKernElement::removedFrom):
800         * svg/SVGImageElement.cpp:
801         (WebCore::SVGImageElement::SVGImageElement):
802         * svg/SVGImageElement.h:
803         (WebCore::toSVGImageElement):
804         (WebCore::isSVGImageElement):
805         * svg/SVGLocatable.cpp:
806         (WebCore::isViewportElement):
807         * svg/SVGVKernElement.cpp:
808         (WebCore::SVGVKernElement::insertedInto):
809         (WebCore::SVGVKernElement::removedFrom):
810
811 2013-07-09  Ryuan Choi  <ryuan.choi@samsung.com>
812
813         [EFL] Add ewk_view_device_pixel_ratio_set
814         https://bugs.webkit.org/show_bug.cgi?id=118521
815
816         Reviewed by Gyuyoung Kim.
817
818         No new tests, covered by existing tests.
819
820         * dom/ViewportArguments.cpp: Remove PLATFORM(EFL) not to use deprecatedTargetDPI
821         * dom/ViewportArguments.h: Ditto.
822         * platform/efl/EflScreenUtilities.cpp: Removed getDPI() which is not used anymore.
823         * platform/efl/EflScreenUtilities.h: Ditto.
824
825 2013-07-09  James Craig  <james@cookiecrook.com>
826
827         @readonly and @aria-readonly="false" are not exposed correctly to accessibility
828         https://bugs.webkit.org/show_bug.cgi?id=118475
829
830         Reviewed by Chris Fleizach.
831
832         Account for implicit and explicit @readonly/@aria-readonly mismatches. Updated existing test coverage.
833
834         * accessibility/AccessibilityRenderObject.cpp:
835         (WebCore::AccessibilityRenderObject::canSetValueAttribute):
836
837 2013-07-09  Jer Noble  <jer.noble@apple.com>
838
839         Reviewed by Simon Fraser.
840
841         Remember the scroll position and restore after exiting full-screen mode.
842         https://bugs.webkit.org/show_bug.cgi?id=61956
843
844         No new tests, adds a client callback used by WebKit and WebKit2 win.
845
846         * platform/graphics/win/FullScreenController.cpp:
847         (FullScreenController::enterFullScreen):
848         (FullScreenController::exitFullScreen):
849         * platform/graphics/win/FullScreenControllerClient.h:
850
851 2013-07-09  Jeff Miller  <jeffm@apple.com>
852
853         AuthenticationMac.mm does not handle NSURLAuthenticationMethodNegotiate in WebCore::mac()
854         https://bugs.webkit.org/show_bug.cgi?id=118518
855
856         Reviewed by Alexey Proskuryakov.
857
858         * platform/network/mac/AuthenticationMac.mm:
859         (WebCore::mac):
860         Map ProtectionSpaceAuthenticationSchemeNegotiate to NSURLAuthenticationMethodNegotiate.
861
862 2013-07-09  Jeff Miller  <jeffm@apple.com>
863
864         AuthenticationMac.mm does not handle NSURLAuthenticationMethodNegotiate
865         https://bugs.webkit.org/show_bug.cgi?id=118517
866
867         Reviewed by Brady Eidson.
868
869         * platform/network/mac/AuthenticationMac.mm:
870         (WebCore::core):
871         Map "NSURLAuthenticationMethodNegotiate" to ProtectionSpaceAuthenticationSchemeNegotiate.
872
873 2013-07-09  peavo@outlook.com  <peavo@outlook.com>
874
875         [Windows] Compile fix.
876         https://bugs.webkit.org/show_bug.cgi?id=106558
877
878         Reviewed by Brent Fulgham.
879
880         On Windows, dispatch.h needs to be included before certain CFNetwork headers.
881
882         * WebCorePrefix.h: Include dispatch.h.
883
884 2013-07-09  Mark Lam  <mark.lam@apple.com>
885
886         Fix 30% JSBench regression (caused by adding column numbers to stack traces).
887         https://bugs.webkit.org/show_bug.cgi?id=118481.
888
889         Reviewed by Mark Hahnenberg and Geoffrey Garen.
890
891         Test: fast/js/line-column-numbers.html
892
893         Updated the bindings to use StackFrame::computeLineAndColumn(). The old
894         StackFrame::line() and StackFrame::column() has been removed. The new
895         algorithm always computes the 2 values together anyway. Hence it is more
896         efficient to return them as a pair instead of doing the same computation
897         twice for each half of the result.
898
899         * bindings/js/ScriptCallStackFactory.cpp:
900         (WebCore::createScriptCallStack):
901         (WebCore::createScriptCallStackFromException):
902         * bindings/js/ScriptSourceCode.h:
903         (WebCore::ScriptSourceCode::ScriptSourceCode):
904
905 2013-07-09  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
906
907         Use toSVGFontElement() instead of static_cast<SVGFontElement*>
908         https://bugs.webkit.org/show_bug.cgi?id=118496
909
910         Reviewed by Andreas Kling.
911
912         As a step to change static_cast with toXXX, static_cast<SVGFontElement*> can
913         be changed with toSVGFontElement().
914
915         Blink merge from https://src.chromium.org/viewvc/blink?view=rev&revision=153761
916
917         * svg/SVGFontElement.h:
918         (WebCore::toSVGFontElement):
919         * svg/SVGFontFaceElement.cpp:
920         (WebCore::SVGFontFaceElement::rebuildFontFace):
921         * svg/SVGGlyphElement.cpp:
922         (WebCore::SVGGlyphElement::invalidateGlyphCache):
923         * svg/SVGHKernElement.cpp:
924         (WebCore::SVGHKernElement::insertedInto):
925         (WebCore::SVGHKernElement::removedFrom):
926         * svg/SVGVKernElement.cpp:
927         (WebCore::SVGVKernElement::insertedInto):
928         (WebCore::SVGVKernElement::removedFrom):
929
930 2013-07-09  Christophe Dumez  <ch.dumez@sisa.samsung.com>
931
932         Remove support for [PassThisToCallback] extended attribute
933         https://bugs.webkit.org/show_bug.cgi?id=118391
934
935         Reviewed by Kentaro Hara.
936
937         The [PassThisToCallback] Webkit-specific IDL extended attribute is supported
938         by the JSC bindings generator but is no longer used. The attribute is not
939         even documented.
940
941         We can therefore drop support for this from the generator to simplify the
942         code.
943
944         No new tests, no behavior change.
945
946         * bindings/scripts/CodeGeneratorJS.pm:
947         (GenerateCallbackImplementation):
948         * bindings/scripts/IDLAttributes.txt:
949         * bindings/scripts/test/JS/JSTestCallback.cpp:
950         (WebCore::JSTestCallback::callbackRequiresThisToPass):
951         * bindings/scripts/test/TestCallback.idl:
952
953 2013-07-09  Praveen R Jadhav  <praveen.j@samsung.com>
954
955         Update Exception handling in WebAudio.
956         https://bugs.webkit.org/show_bug.cgi?id=118405.
957
958         Reviewed by Chris Rogers.
959
960         AudioBufferSourceNode, OscillatorNode and AnalyserNode don't
961         propagate exception mentioned in WebAudio spec.
962         Code updated to throw DOM exception as expected.
963
964         Tests: webaudio/analyser-exception.html
965                webaudio/audiobuffersource-exception.html
966
967         * Modules/webaudio/AnalyserNode.cpp:
968         (WebCore::AnalyserNode::setFftSize):
969         (WebCore::AnalyserNode::setMinDecibels):
970         (WebCore::AnalyserNode::setMaxDecibels):
971         (WebCore::AnalyserNode::setSmoothingTimeConstant):
972         * Modules/webaudio/AnalyserNode.h:
973         * Modules/webaudio/AnalyserNode.idl:
974         * Modules/webaudio/AudioBufferSourceNode.cpp:
975         (WebCore::AudioBufferSourceNode::startGrain):
976         (WebCore::AudioBufferSourceNode::noteGrainOn):
977         * Modules/webaudio/AudioBufferSourceNode.h:
978         * Modules/webaudio/AudioBufferSourceNode.idl:
979         * Modules/webaudio/AudioContext.cpp:
980         (WebCore::AudioContext::createBuffer):
981         (WebCore::AudioContext::createScriptProcessor):
982         (WebCore::AudioContext::createPeriodicWave):
983         * Modules/webaudio/AudioScheduledSourceNode.cpp:
984         (WebCore::AudioScheduledSourceNode::start):
985         (WebCore::AudioScheduledSourceNode::stop):
986         (WebCore::AudioScheduledSourceNode::noteOn):
987         (WebCore::AudioScheduledSourceNode::noteOff):
988         * Modules/webaudio/AudioScheduledSourceNode.h:
989         * Modules/webaudio/OscillatorNode.idl:
990
991 2013-07-08  Martin Robinson  <mrobinson@igalia.com>
992
993         [CSS Grid Layout] Rename grid-{rows|columns} to grid-definition-{rows|columns}
994         https://bugs.webkit.org/show_bug.cgi?id=103336
995
996         Reviewed by Tony Chang.
997
998         Rename -webkit-grid-{rows|columns} to -webkit-grid-definition-{rows|columns}.
999         The latest version of the spec has renamed these properties.
1000
1001         * css/CSSComputedStyleDeclaration.cpp:
1002         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Handle the new names.
1003         * css/CSSParser.cpp:
1004         (WebCore::CSSParser::parseValue): Ditto.
1005         * css/CSSProperty.cpp:
1006         (WebCore::CSSProperty::isInheritedProperty): Ditto.
1007         * css/CSSPropertyNames.in: Add support for the new names.
1008         * css/StyleResolver.cpp:
1009         (WebCore::StyleResolver::applyProperty): Handle the new names.
1010
1011 2013-07-08  Enrica Casucci  <enrica@apple.com>
1012
1013         DeleteSelectionCommand does not handle correctly deletion with two consecutive BR element.
1014         https://bugs.webkit.org/show_bug.cgi?id=118457
1015         <rdar://problem/14160912>
1016
1017         Reviewed by Simon Fraser.
1018
1019         In DeleteSelectionCommand::handleSpecialCareBRDelete we did not
1020         handle correctly the case where we had <br><br> in the markup and
1021         nothing was being deleted. We should consider this like
1022         the case where the <br> is on the line by itself and remove it.
1023
1024         Test: editing/deleting/delete-image-followed-by-two-br.html
1025
1026         * editing/DeleteSelectionCommand.cpp:
1027         (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete):
1028
1029 2013-07-08  Radu Stavila  <stavila@adobe.com>
1030
1031         NamedFlowCollection getters should return undefined when there's no NamedFlow
1032         https://bugs.webkit.org/show_bug.cgi?id=118463
1033
1034         Reviewed by Christophe Dumez.
1035
1036         Added new TreatReturnedNullObjectAs attribute for generated methods and set it to Undefined
1037         for the item and namedItem methods of DOMNamedFlowCollection.
1038
1039         Test: fast/regions/webkit-named-flow-collection-undefined.html
1040
1041         * bindings/scripts/CodeGeneratorJS.pm:
1042         (GenerateImplementationFunctionCall):
1043         * bindings/scripts/IDLAttributes.txt:
1044         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
1045         (WebDOMTestObj::treatReturnedNullObjectAsUndefined):
1046         * bindings/scripts/test/CPP/WebDOMTestObj.h:
1047         * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
1048         (webkit_dom_test_obj_treat_returned_null_object_as_undefined):
1049         * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
1050         * bindings/scripts/test/JS/JSTestObj.cpp:
1051         (WebCore::jsTestObjPrototypeFunctionTreatReturnedNullObjectAsUndefined):
1052         * bindings/scripts/test/JS/JSTestObj.h:
1053         * bindings/scripts/test/ObjC/DOMTestObj.h:
1054         * bindings/scripts/test/ObjC/DOMTestObj.mm:
1055         (-[DOMTestObj treatReturnedNullObjectAsUndefined]):
1056         * bindings/scripts/test/TestObj.idl:
1057         * dom/DOMNamedFlowCollection.idl:
1058
1059 2013-07-06 Changhun Kang <temoochin@company100.net>
1060
1061         Remove unused variables in FocusCandidate.
1062         https://bugs.webkit.org/show_bug.cgi?id=118449
1063
1064         Reviewed by Antonio Gomes.
1065
1066         The variables for parent in FocusCandidate are not used anymore.
1067
1068         No new tests. No change in behavior.
1069
1070         * page/SpatialNavigation.cpp:
1071         (WebCore::FocusCandidate::FocusCandidate):
1072         * page/SpatialNavigation.h:
1073         (WebCore::FocusCandidate::FocusCandidate):
1074
1075 2013-07-08  Chris Fleizach  <cfleizach@apple.com>
1076
1077         AX: iOS: SVG paths are not offset by the parent bounding box
1078         https://bugs.webkit.org/show_bug.cgi?id=118433
1079
1080         The path for SVG shapes is in terms of its parent's view space. We need to offset
1081         the path by that amount so that it's in the right location.
1082
1083         Reviewed by Tim Horton.
1084
1085         * accessibility/AccessibilityRenderObject.cpp:
1086         (WebCore::AccessibilityRenderObject::elementPath):
1087
1088 2013-07-08  Carlos Garcia Campos  <cgarcia@igalia.com>
1089
1090         Unreviewed. Fix make distcheck.
1091
1092         * GNUmakefile.list.am: Add missing header files.
1093
1094 2013-07-08  Ruth Fong  <ruth_fong@apple.com>
1095
1096         Fix TextTrackCue::cueIndex() to handle the null case of TextTrack::cues(() properly
1097         https://bugs.webkit.org/show_bug.cgi?id=117815
1098         <rdar://problem/14211041>
1099
1100         Reviewed by Eric Carlson.
1101
1102         Merge https://src.chromium.org/viewvc/blink?revision=153206&view=revision
1103         
1104         No new tests, only behavior change is preventing a crash in the release build.
1105         cueIndex() is only used for sorting cues, so returning an invalidCueIndex in the case
1106         where track()->cues() is null makes sense and won't modify behavior.
1107
1108         * html/track/TextTrackCue.cpp:
1109         (WebCore::TextTrackCue::cueIndex):
1110
1111 2013-07-08  Commit Queue  <commit-queue@webkit.org>
1112
1113         Unreviewed, rolling out r152416.
1114         http://trac.webkit.org/changeset/152416
1115         https://bugs.webkit.org/show_bug.cgi?id=118476
1116
1117         Wrong fix for the bug (Requested by ap on #webkit).
1118
1119         * platform/text/TextEncodingRegistry.cpp:
1120         (WebCore::newTextCodec):
1121
1122 2013-07-08  Andreas Kling  <akling@apple.com>
1123
1124         REGRESSION(r125294): A style rule with more than 8192 selectors can cause style corruption.
1125         <http://webkit.org/b/118369>
1126         <rdar://problem/14291428>
1127
1128         Reviewed by Antti Koivisto.
1129
1130         Add a semi-hard cap of 8192 selectors per CSS rule. Rules with longer selector lists will be split into
1131         multiple rules (with 8192 selectors per rule.) The style properties are shared behind the scenes
1132         so it's all pretty efficient.
1133
1134         This does generate a different CSSOM for gigantic selector lists, I've added a test to document this.
1135         Note that setting CSSStyleRule.selectorText with over 8192 selectors will now fail, the splitting into
1136         multiple rules only happens when parsing full style sheets.
1137
1138         Test: fast/css/rule-selector-overflow.html
1139
1140         * css/CSSSelectorList.cpp:
1141         (WebCore::CSSSelectorList::selectorCount):
1142
1143             Add a helper to count the number of selectors in a list (not the number of raw selector components.)
1144
1145         * css/RuleSet.h:
1146         * css/CSSStyleRule.cpp:
1147         (WebCore::CSSStyleRule::setSelectorText):
1148
1149             Add RuleData::maximumSelectorCount constant and cap CSSStyleRule.selectorText to that many selectors.
1150
1151         * css/CSSSelectorList.h:
1152         (WebCore::CSSSelectorList::adoptSelectorArray):
1153         * css/StyleRule.cpp:
1154         (WebCore::StyleRule::create):
1155         (WebCore::StyleRule::splitIntoMultipleRulesWithMaximumSelectorCount):
1156         * css/StyleRule.h:
1157         (WebCore::StyleRule::parserAdoptSelectorArray):
1158         * css/StyleSheetContents.cpp:
1159         (WebCore::StyleSheetContents::parserAppendRule):
1160
1161             The meat of this change. Split rules with >8K selectors into multiple rules with 8K selectors in each.
1162
1163         * css/StyleRule.h:
1164         (WebCore::toStyleRule):
1165
1166             Added a toStyleRule() helper for good measure.
1167
1168 2013-07-08  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1169
1170         Introduce DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER() macro
1171         https://bugs.webkit.org/show_bug.cgi?id=118408
1172
1173         Reviewed by Philip Rogers.
1174
1175         Split DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER() macro into separate
1176         DECLARE and DEFINE macros to reduce the number of header includes in
1177         SVG.
1178
1179         No new tests, no behavior change.
1180
1181         * dom/EventTarget.h:
1182         * svg/SVGElementInstance.cpp:
1183         (WebCore::SVGElementInstance::create):
1184         (WebCore::SVGElementInstance::toNode):
1185         (WebCore::SVGElementInstance::ownerDocument):
1186         * svg/SVGElementInstance.h:
1187
1188 2013-07-08  Jae Hyun Park  <jae.park@company100.net>
1189
1190         [Coordinated Graphics] Rename variables in UpdateAtlas
1191         https://bugs.webkit.org/show_bug.cgi?id=118403
1192
1193         Reviewed by Noam Rosenthal.
1194
1195         As of r149292, non-composited contents layer was removed from
1196         CoordinatedGraphics. So, the variables should be renamed for
1197         clarification.
1198
1199         * platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:
1200         (WebCore::CompositingCoordinator::releaseInactiveAtlasesTimerFired):
1201
1202 2013-07-08  Ádám Kallai  <kadam@inf.u-szeged.hu>
1203
1204         [Qt] Incremental build fix after r145712.
1205         https://bugs.webkit.org/show_bug.cgi?id=112576.
1206
1207         Reviewed by Jocelyn Turcotte.
1208
1209         * DerivedSources.pri: Added dependence to INSPECTOR_JSON.
1210         * inspector/front-end/WebKit.qrc: Added missing JS file.
1211
1212 2013-07-08  Kihong Kwon  <kihong.kwon@samsung.com>
1213
1214         vibrate function have to return boolean value.
1215         https://bugs.webkit.org/show_bug.cgi?id=118288
1216
1217         Reviewed by Gyuyoung Kim.
1218
1219         According to latest Vibration API which is LC, vibrate() needs to return boolean value
1220         and exception code is removed also. In addition, remove condition for canceling vibration
1221         can be called when visibility state is hidden.
1222         http://www.w3.org/TR/vibration/
1223
1224         No new tests. vibration/navigator-vibration.html is changed.
1225
1226         * Modules/vibration/NavigatorVibration.cpp:
1227         (WebCore::NavigatorVibration::vibrate):
1228         * Modules/vibration/NavigatorVibration.h:
1229         * Modules/vibration/NavigatorVibration.idl:
1230         * Modules/vibration/Vibration.cpp:
1231         (WebCore::Vibration::vibrate):
1232         * Modules/vibration/Vibration.h:
1233
1234 2013-07-07  Kangil Han  <kangil.han@samsung.com>
1235
1236         Adopt is/toHTMLTableElement for code cleanup
1237         https://bugs.webkit.org/show_bug.cgi?id=118393
1238
1239         Reviewed by Andreas Kling.
1240
1241         To enhance readability, this patch adopts is/toHTMLTableElement.
1242         This also helps out to reduce duplicated use of static_cast.
1243
1244         * accessibility/AccessibilityRenderObject.cpp:
1245         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
1246         * accessibility/AccessibilityTable.cpp:
1247         (WebCore::AccessibilityTable::isDataTable):
1248         (WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
1249         (WebCore::AccessibilityTable::title):
1250         * accessibility/atk/WebKitAccessibleInterfaceTable.cpp:
1251         (webkitAccessibleTableGetCaption):
1252         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
1253         (webkitAccessibleGetDescription):
1254         * css/StyleResolver.cpp:
1255         (WebCore::StyleResolver::adjustRenderStyle):
1256         * dom/Position.cpp:
1257         (WebCore::endsOfNodeAreVisuallyDistinctPositions):
1258         * editing/DeleteSelectionCommand.cpp:
1259         (WebCore::DeleteSelectionCommand::handleGeneralDelete):
1260         * editing/InsertLineBreakCommand.cpp:
1261         (WebCore::InsertLineBreakCommand::doApply):
1262         * editing/htmlediting.cpp:
1263         (WebCore::isNonTableCellHTMLBlockElement):
1264         * editing/markup.cpp:
1265         (WebCore::ancestorToRetainStructureAndAppearanceForBlock):
1266         * html/FTPDirectoryDocument.cpp:
1267         (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
1268         (WebCore::FTPDirectoryDocumentParser::createBasicDocument):
1269         * html/HTMLFormElement.cpp:
1270         (WebCore::HTMLFormElement::rendererIsNeeded):
1271         * html/HTMLTableElement.h:
1272         (WebCore::isHTMLTableElement):
1273         (WebCore::toHTMLTableElement):
1274         * html/HTMLTablePartElement.cpp:
1275         (WebCore::HTMLTablePartElement::findParentTable):
1276         * html/HTMLTableRowElement.cpp:
1277         (WebCore::HTMLTableRowElement::rowIndex):
1278         * html/HTMLTableRowsCollection.cpp:
1279         (WebCore::HTMLTableRowsCollection::HTMLTableRowsCollection):
1280         (WebCore::HTMLTableRowsCollection::virtualItemAfter):
1281         * html/parser/HTMLElementStack.cpp:
1282         (WebCore::HTMLNames::isScopeMarker):
1283         (WebCore::HTMLNames::isTableScopeMarker):
1284         * html/parser/HTMLTreeBuilder.cpp:
1285         (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately):
1286         (WebCore::HTMLTreeBuilder::processCharacterBuffer):
1287         * platform/mac/HTMLConverter.mm:
1288         (-[WebHTMLConverter _computedStringForNode:property:]):
1289         * rendering/RenderObject.cpp:
1290         (WebCore::RenderObject::offsetParent):
1291         * rendering/RenderTable.cpp:
1292         (WebCore::RenderTable::convertStyleLogicalWidthToComputedWidth):
1293         (WebCore::RenderTable::convertStyleLogicalHeightToComputedHeight):
1294
1295 2013-07-06  Rob Buis  <rbuis@rim.com>
1296
1297         createElement("image") creates an HTMLImageElement, although this hack should exist in parser only
1298         https://bugs.webkit.org/show_bug.cgi?id=88360
1299
1300         Reviewed by Sam Weinig.
1301
1302         Create a HTMLElement when using createElement('image'), but keep the HTML5 parser constructing HTMLImageelement for it.
1303
1304         * html/HTMLTagNames.in:
1305
1306 2013-07-06  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1307
1308         Stop hardcoding interfaces that have indexed getters returning strings
1309         https://bugs.webkit.org/show_bug.cgi?id=118414
1310
1311         Reviewed by Kentaro Hara.
1312
1313         Stop hardcoding the names of interfaces that have indexed getters returning
1314         strings in the bindings generator. Now that we use the latest Web IDL indexed
1315         getter, more information is provided in the IDL files and the generator is
1316         able to figure out if the indexed getter is returning a DOMString on its own.
1317
1318         No new tests, no behavior change.
1319
1320         * bindings/scripts/CodeGeneratorJS.pm:
1321         (GenerateGetOwnPropertySlotBody):
1322         (GenerateImplementation):
1323
1324 2013-07-05  Tim Horton  <timothy_horton@apple.com>
1325
1326         Tons of crashes on bots after r152425
1327         https://bugs.webkit.org/show_bug.cgi?id=118440
1328         <rdar://problem/14366772>
1329
1330         Reviewed by Sam Weinig.
1331
1332         Null-check the frame's page and early return. It's OK to do this
1333         because it only happens when we're being torn down.
1334
1335         * page/FrameView.cpp:
1336         (WebCore::FrameView::minimumScrollPosition):
1337         (WebCore::FrameView::maximumScrollPosition):
1338
1339 2013-07-05  Tim Horton  <timothy_horton@apple.com>
1340
1341         Fix r152265: FrameView's pagination mode is only one of two, and the logic was totally wrong
1342         https://bugs.webkit.org/show_bug.cgi?id=118439
1343         <rdar://problem/14366120>
1344
1345         Reviewed by Anders Carlsson.
1346
1347         * page/FrameView.cpp:
1348         (WebCore::FrameView::maximumScrollPosition):
1349         - Test both Page and FrameView's pagination modes.
1350         - *Don't* clamp negatives to zero if we are paginated with scroll offset set,
1351             like the original changelog claimed, but the code did the opposite.
1352         - Don't clamp in *all* pagination modes; with 'direction: RTL' it's still possible
1353             to have a negative maximum position in LTR/TB pagination modes.
1354
1355 2013-07-05  Sam Weinig  <sam@webkit.org>
1356
1357         WKPageFindStringMatches with kWKFindOptionsBackwards still doesn't work
1358         <rdar://problem/13881024>
1359         https://bugs.webkit.org/show_bug.cgi?id=118436
1360
1361         Reviewed by Tim Horton.
1362
1363         * page/Page.cpp:
1364         (WebCore::Page::findStringMatchingRanges):
1365         - When searching backwards, use END_TO_START rather than START_TO_END.
1366         - If there is no selection and we are searching backwards, we now select the last item,
1367           not the first.
1368
1369 2013-07-05  Tullio Lucena  <tullio.lucena@openbossa.org>
1370
1371         Nix upstreaming - Adding Nix render theme files
1372         https://bugs.webkit.org/show_bug.cgi?id=118368
1373
1374         Reviewed by Benjamin Poulain.
1375
1376         All files related to render theme stuff.
1377
1378         No new tests. They will be uploaded on another patch during the upstreaming process.
1379
1380         * platform/nix/RenderThemeNix.cpp: Added.
1381         * platform/nix/RenderThemeNix.h: Added.
1382         * platform/nix/ScrollbarThemeNix.cpp: Added.
1383         * platform/nix/ScrollbarThemeNix.h: Added.
1384
1385 2013-07-05  Brent Fulgham  <bfulgham@apple.com>
1386
1387         [Windows] Identify OS-level at build-time.
1388         https://bugs.webkit.org/show_bug.cgi?id=118428
1389
1390         Reviewed by Anders Carlsson.
1391
1392         * DerivedSources.make: Activate legible output features if present.
1393         * WebCorePrefix.h: Activate MSVC 2010 workarounds for CGFloat if
1394         building with VS2010.
1395         * config.h: Activate legible output features if present.
1396
1397 2013-07-05  Tim Horton  <timothy_horton@apple.com>
1398
1399         [wk2] Add API to lock the scroll position at the top or bottom of the page
1400         https://bugs.webkit.org/show_bug.cgi?id=118429
1401         <rdar://problem/14120323>
1402
1403         Reviewed by Anders Carlsson.
1404
1405         Test (API): WebKit2.ScrollPinningBehaviors
1406
1407         * WebCore.exp.in:
1408         Expose FrameView::setScrollPinningBehavior.
1409
1410         * page/FrameView.cpp:
1411         (WebCore::FrameView::FrameView):
1412         Our pinning behavior should be DoNotPin by default.
1413
1414         * page/FrameView.cpp:
1415         (WebCore::FrameView::minimumScrollPosition):
1416         (WebCore::FrameView::maximumScrollPosition):
1417         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
1418         (WebCore::ScrollingTreeScrollingNodeMac::minimumScrollPosition):
1419         (WebCore::ScrollingTreeScrollingNodeMac::maximumScrollPosition):
1420         Fix the minimum scroll position's vertical location to the maximum if
1421         we're pinned to the bottom, and vice-versa if we're pinned to the top.
1422
1423         (WebCore::FrameView::setScrollPinningBehavior): Added.
1424         If scroll pinning behavior has changed, inform ScrollingCoordinator
1425         and update scrollbars (which will also re-pin the scroll position).
1426
1427         * page/FrameView.h:
1428         Override minimumScrollPosition, add setScrollPinningBehavior,
1429         and storage for m_scrollPinningBehavior.
1430
1431         * page/scrolling/ScrollingCoordinator.h:
1432         (WebCore::ScrollingCoordinator::setScrollPinningBehavior): Added.
1433
1434         * page/scrolling/ScrollingTree.cpp:
1435         (WebCore::ScrollingTree::ScrollingTree):
1436         Our pinning behavior should be DoNotPin by default.
1437
1438         (WebCore::ScrollingTree::setScrollPinningBehavior):
1439         (WebCore::ScrollingTree::scrollPinningBehavior):
1440         Getter/setter for m_scrollPinningBehavior, scrolling-thread-safe.
1441
1442         * page/scrolling/ScrollingTree.h:
1443         * page/scrolling/mac/ScrollingCoordinatorMac.h:
1444         * page/scrolling/mac/ScrollingCoordinatorMac.mm:
1445         (WebCore::ScrollingCoordinatorMac::setScrollPinningBehavior):
1446         Inform ScrollingTree of the scroll pinning behavior change.
1447         
1448         * platform/ScrollTypes.h:
1449         Add ScrollPinningBehavior enum.
1450
1451 2013-07-05  Zalan Bujtas  <zalan@apple.com>
1452
1453         iframe constrained by max-width in full screen
1454         https://bugs.webkit.org/show_bug.cgi?id=118250
1455
1456         Reviewed by Antti Koivisto.
1457
1458         Ensure that contents inside iframe can go full screen properly.
1459
1460         Set max-width and max-height values to the default 'none', so that iframes are not
1461         constrained when entering full screen.
1462
1463         Test: fullscreen/full-screen-iframe-with-max-width-height.html
1464
1465         * css/fullscreen.css:
1466         (iframe:-webkit-full-screen):
1467
1468 2013-07-05  Eric Carlson  <eric.carlson@apple.com>
1469
1470         [Mac] .webkitClosedCaptionsVisible doesn't work with "Automatic" caption mode
1471         https://bugs.webkit.org/show_bug.cgi?id=118319
1472
1473         Reviewed by Jer Noble.
1474
1475         Track when captions are enabled with the old 'webkitClosedCaptionsVisible' attribute and
1476         consider that when determining which track should be enabled.
1477
1478         Test: media/track/track-legacyapi-with-automatic-mode.html
1479
1480         * html/HTMLMediaElement.cpp:
1481         (WebCore::HTMLMediaElement::HTMLMediaElement): Initialize m_webkitLegacyClosedCaptionOverride.
1482         (WebCore::HTMLMediaElement::setWebkitClosedCaptionsVisible): Set m_webkitLegacyClosedCaptionOverride.
1483         (WebCore::HTMLMediaElement::webkitClosedCaptionsVisible): Return m_webkitLegacyClosedCaptionOverride.
1484         * html/HTMLMediaElement.h:
1485
1486         * page/CaptionUserPreferencesMediaAF.cpp:
1487         (WebCore::CaptionUserPreferencesMediaAF::textTrackSelectionScore): Don't apply "automatic"
1488             logic when captions were enabled with .webkitClosedCaptionsVisible.
1489
1490 2013-07-05  Benjamin Dupont   <bdupont@nds.com>
1491
1492         Segmentation fault occurred when ICU data library doesn't embed the expected encoding.
1493         https://bugs.webkit.org/show_bug.cgi?id=118410
1494
1495         Reviewed by Allan Sandfeld Jensen.
1496
1497         * platform/text/TextEncodingRegistry.cpp:
1498         (WebCore::newTextCodec):
1499
1500 2013-07-05  Denis Nomiyama  <d.nomiyama@samsung.com>
1501
1502         [GTK] fast/text/font-kerning.html fails
1503         https://bugs.webkit.org/show_bug.cgi?id=76048
1504
1505         Reviewed by Martin Robinson.
1506
1507         Added kerning to the list of features for hb_shade() according to FontDescription::kerning().
1508         Removed font-kerning.html from gtk/TestExpectations, which was failing before this fix.
1509
1510         * platform/graphics/harfbuzz/HarfBuzzFace.cpp:
1511         (WebCore):
1512         * platform/graphics/harfbuzz/HarfBuzzFace.h:
1513         (HarfBuzzFace):
1514         * platform/graphics/harfbuzz/HarfBuzzShaper.cpp:
1515         (WebCore::HarfBuzzShaper::setFontFeatures):
1516
1517 2013-07-05  Gwang Yoon Hwang  <ryumiel@company100.net>
1518
1519         Build fix GTK after r152404.
1520         https://bugs.webkit.org/show_bug.cgi?id=118407
1521
1522         Reviewed by Christophe Dumez.
1523
1524         * GNUmakefile.list.am:
1525
1526 2013-07-04  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1527
1528         Have SVGTextContentElement inherit SVGGraphicsElement
1529         https://bugs.webkit.org/show_bug.cgi?id=118351
1530
1531         Reviewed by Dirk Schulze.
1532
1533         Have SVGTextContentElement inherit SVGGraphicsElement instead of
1534         SVGStyledElement in order to match the latest SVG2 specification:
1535         https://svgwg.org/svg2-draft/text.html#InterfaceSVGTextContentElement
1536
1537         This patch also removes the SVGTransformable and SVGLocatable IDL
1538         interfaces as they are no longer needed (were merged into
1539         SVGGraphicsElement in the latest specification).
1540
1541         This is one step towards getting rid of multiple inheritance in
1542         SVG, and complying with the latest SVG2 specification.
1543
1544         No new tests, covered by existing tests.
1545
1546         * DerivedSources.make:
1547         * WebCore.xcodeproj/project.pbxproj:
1548         * bindings/scripts/CodeGeneratorJS.pm:
1549         (GetGnuVTableOffsetForType):
1550         * bindings/scripts/CodeGeneratorObjC.pm:
1551         * svg/SVGAnimateMotionElement.cpp:
1552         (WebCore::SVGAnimateMotionElement::hasValidAttributeType):
1553         * svg/SVGElement.cpp:
1554         (WebCore::SVGElement::getBoundingBox):
1555         * svg/SVGLocatable.idl: Removed.
1556         * svg/SVGTextContentElement.cpp:
1557         (WebCore::SVGTextContentElement::SVGTextContentElement):
1558         (WebCore::SVGTextContentElement::isSupportedAttribute):
1559         (WebCore::SVGTextContentElement::isPresentationAttribute):
1560         (WebCore::SVGTextContentElement::collectStyleForPresentationAttribute):
1561         (WebCore::SVGTextContentElement::parseAttribute):
1562         (WebCore::SVGTextContentElement::svgAttributeChanged):
1563         * svg/SVGTextContentElement.h:
1564         * svg/SVGTextContentElement.idl:
1565         * svg/SVGTextElement.cpp:
1566         (WebCore::SVGTextElement::SVGTextElement):
1567         (WebCore::SVGTextElement::animatedLocalTransform):
1568         * svg/SVGTextElement.h:
1569         * svg/SVGTextElement.idl:
1570         * svg/SVGTransformable.idl: Removed.
1571
1572 2013-07-03  Gavin Barraclough  <barraclough@apple.com>
1573
1574         Remove PageThrottler::m_activeThrottleBlockers
1575         https://bugs.webkit.org/show_bug.cgi?id=118375
1576
1577         Reviewed by Mark Rowe.
1578
1579         This is simply m_activityTokens.size().
1580
1581         Also, fold preventThrottling into addActivityToken & allowThrottling into removeActivityToken
1582         (these should no longer be called directly, and should not be public).
1583
1584         * page/PageThrottler.cpp:
1585         (WebCore::PageThrottler::PageThrottler):
1586             - removed m_activeThrottleBlockers
1587         (WebCore::PageThrottler::startThrottleHysteresisTimer):
1588             - m_activeThrottleBlockers -> m_activityTokens.size()
1589         (WebCore::PageThrottler::throttleHysteresisTimerFired):
1590             - m_activeThrottleBlockers -> m_activityTokens.size()
1591         (WebCore::PageThrottler::addActivityToken):
1592             - added functionality from preventThrottling
1593         (WebCore::PageThrottler::removeActivityToken):
1594             - added functionality from allowThrottling
1595         * page/PageThrottler.h:
1596             - removed preventThrottling, allowThrottling, and m_activeThrottleBlockers.
1597
1598 2013-07-01  Antti Koivisto  <antti@apple.com>
1599
1600         Take document height into account when determining when it is considered visually non-empy
1601         https://bugs.webkit.org/show_bug.cgi?id=118272
1602
1603         Reviewed by Darin Adler.
1604
1605         The current visually non-empy mechanism takes into account only the amount of contents in renderers. 
1606         Add a simple layout dependency so that we don't consider page non-empty until the document height
1607         exceed a (low) height threshold (or the load completes).
1608
1609         * page/FrameView.cpp:
1610         (WebCore::FrameView::performPostLayoutTasks):
1611         
1612             Don't send layout callbacks until we have actually some content.
1613
1614         (WebCore::FrameView::qualifiesAsVisuallyNonEmpty):
1615         (WebCore::FrameView::updateIsVisuallyNonEmpty):
1616         
1617             Factor into functions.
1618
1619         * page/FrameView.h:
1620         (WebCore::FrameView::incrementVisuallyNonEmptyCharacterCount):
1621         (WebCore::FrameView::incrementVisuallyNonEmptyPixelCount):
1622         * rendering/RenderEmbeddedObject.cpp:
1623         (WebCore::RenderEmbeddedObject::RenderEmbeddedObject):
1624         * rendering/RenderHTMLCanvas.cpp:
1625         (WebCore::RenderHTMLCanvas::RenderHTMLCanvas):
1626         
1627              The size is not known but the estimate provided here is always bigger than the threshold so
1628              the functionality is unchanged.
1629
1630 2013-07-04  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1631
1632         Unreviewed build fix after r152399.
1633
1634         Add missing header include for SVGNames.h.
1635
1636         * svg/SVGImageElement.h:
1637
1638 2013-07-04  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1639
1640         Change static_cast<SVGImageElement*> with toSVGImageElement
1641         https://bugs.webkit.org/show_bug.cgi?id=118387
1642
1643         Reviewed by Andreas Kling.
1644
1645         As a step to change static_cast with toXXX, static_cast<SVGImageElement*> can
1646         be changed with toSVGImageElement().
1647
1648         Blink merge from https://src.chromium.org/viewvc/blink?view=rev&revision=153557
1649
1650         * rendering/svg/RenderSVGImage.cpp:
1651         (WebCore::RenderSVGImage::updateImageViewport):
1652         (WebCore::RenderSVGImage::layout):
1653         (WebCore::RenderSVGImage::paintForeground):
1654         * svg/SVGImageElement.h:
1655         (WebCore::toSVGImageElement):
1656         * svg/SVGImageLoader.cpp:
1657         (WebCore::SVGImageLoader::dispatchLoadEvent):
1658
1659 2013-07-04  Brian Holt  <brian.holt@samsung.com>
1660
1661         [GTK] Leak: Free PangoFontDescription* in RenderThemeGtk3
1662         https://bugs.webkit.org/show_bug.cgi?id=118386
1663
1664         Reviewed by Carlos Garcia Campos.
1665
1666         Free PangoFontDescription* allocated by gtk_style_context_get (transfer full).
1667
1668         * platform/gtk/RenderThemeGtk3.cpp:
1669         (WebCore::spinButtonArrowSize):
1670
1671 2013-07-04  Brian Holt  <brian.holt@samsung.com>
1672
1673         [ATK] Leak: AtkAttributeSet* should be freed
1674         https://bugs.webkit.org/show_bug.cgi?id=118307
1675
1676         Reviewed by Christophe Dumez.
1677
1678         Use AtkAttributeSet* instead of GSList*.
1679
1680         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
1681         (webkitAccessibleGetObjectLocale):
1682
1683 2013-07-04  Mario Sanchez Prada  <mario.prada@samsung.com>
1684
1685         [ATK] Do not expose '\n' for wrapped lines with ATK_TEXT_BOUNDARY_CHAR
1686         https://bugs.webkit.org/show_bug.cgi?id=118359
1687
1688         Reviewed by Carlos Garcia Campos.
1689
1690         Do not expose a '\n' character for every visual line break.
1691
1692         * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
1693         (webkitAccessibleTextGetChar): Removed wrong code.
1694
1695 2013-07-04  Patrick Gansterer  <paroga@webkit.org>
1696
1697         Port FileSystemWin.cpp to WinCE
1698         https://bugs.webkit.org/show_bug.cgi?id=117935
1699
1700         Reviewed by Brent Fulgham.
1701
1702         Add #if !OS(WINCE) around a few lines of the code, so it can be used by the WinCE port too.
1703
1704         * PlatformWinCE.cmake:
1705         * platform/win/FileSystemWin.cpp:
1706         (WebCore::storageDirectory):
1707         * platform/wince/FileSystemWinCE.cpp: Removed.
1708
1709 2013-07-04  Balazs Kelemen  <b.kelemen@samsung.com>
1710
1711         [GStreamer] support preload="metadata"
1712         https://bugs.webkit.org/show_bug.cgi?id=116817
1713
1714         Reviewed by Eric Carlson.
1715
1716         Add appropriate behavior for preload="metadata". Delay enabling download buffering
1717         until playback is started in this case. This behavior fits with the standard quite
1718         well and this is the most exact match we can get (at least without adding too much
1719         extra complexity). What matters mostly is that we can avoid loading the media
1720         before playback but we have the first frame and the metadata.
1721
1722         Test: media/video-load-preload-metadata.html
1723
1724         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1725         (WebCore::MediaPlayerPrivateGStreamer::prepareToPlay): Set |m_preload| to |Auto|
1726         so we will start download buffering if we did not start it yet.
1727         (WebCore::MediaPlayerPrivateGStreamer::play): Ditto.
1728         (MediaPlayerPrivateGStreamer::setDownloadBuffering): Only start download
1729         buffering if |m_preload == Auto|. Also make sure we don't clear the download
1730         flag once we started downloading because it would result in not well defined
1731         behavior and it does not really makes sense.
1732         (MediaPlayerPrivateGStreamer::setPreload): Set download buffering accordingly.
1733
1734 2013-07-03  Jae Hyun Park  <jae.park@company100.net>
1735
1736         [Coordinated Graphics] Don't use && operator in ASSERT
1737         https://bugs.webkit.org/show_bug.cgi?id=118377
1738
1739         Reviewed by Noam Rosenthal.
1740
1741         We don't use && opeartor in ASSERT because it's impossible to know which
1742         condition caused the assertion.
1743
1744         * platform/graphics/texmap/coordinated/CoordinatedBackingStore.cpp:
1745         (WebCore::CoordinatedBackingStoreTile::swapBuffers):
1746         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
1747         (WebCore::CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer):
1748
1749 2013-07-03  KyungTae Kim  <ktf.kim@samsung.com>
1750
1751         [EFL] Support some more editing keyboard events
1752         https://bugs.webkit.org/show_bug.cgi?id=118346
1753
1754         Reviewed by Gyuyoung Kim.
1755
1756         For editable contents, support the shortcuts for copy, page, cut, select all, undo and redo.
1757
1758         * platform/efl/EflKeyboardUtilities.cpp:
1759
1760 2013-07-03  Chris Fleizach  <cfleizach@apple.com>
1761
1762         AX: Items the img aria role aren't inserting an object replacement character
1763         https://bugs.webkit.org/show_bug.cgi?id=118259
1764
1765         Reviewed by Tim Horton.
1766
1767         VoiceOver relies on object replacement characters being emitted when asking for selected text.
1768         This has worked if a real <img> is used, but if role="img" is used on a <div>, for example,
1769         no emission is performed, which leads to missed elements in text.
1770
1771         Test: platform/mac/accessibility/aria-image-emits-object-replacement.html
1772
1773         * editing/TextIterator.cpp:
1774         (WebCore::isRendererReplacedElement):
1775         (WebCore::TextIterator::advance):
1776
1777 2013-07-03  Kangil Han  <kangil.han@samsung.com>
1778
1779         Adopt is/toHTMLMapElement for code cleanup
1780         https://bugs.webkit.org/show_bug.cgi?id=118235
1781
1782         Reviewed by Andreas Kling.
1783
1784         To enhance readability, this patch adopts is/toHTMLMapElement.
1785         This also helps out to reduce duplicated use of static_cast.
1786
1787         * accessibility/AccessibilityRenderObject.cpp:
1788         (WebCore::AccessibilityRenderObject::getDocumentLinks):
1789         (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
1790         * dom/DocumentOrderedMap.cpp:
1791         (WebCore::keyMatchesMapName):
1792         (WebCore::keyMatchesLowercasedMapName):
1793         * dom/TreeScope.cpp:
1794         (WebCore::TreeScope::getImageMap):
1795         * html/HTMLAreaElement.cpp:
1796         (WebCore::HTMLAreaElement::imageElement):
1797         * html/HTMLMapElement.h:
1798         (WebCore::isHTMLMapElement):
1799         (WebCore::toHTMLMapElement):
1800
1801 2013-07-03  Brent Fulgham  <bfulgham@apple.com>
1802
1803         [Windows] Unreviewed build correction after r15283.
1804
1805         * WebCorePrefix.h: Remove include directive for CGFloat.h, as it
1806         is not present in all Windows build environments.
1807
1808 2013-07-03  Brent Fulgham  <bfulgham@apple.com>
1809
1810         [Windows] Exclude unsupported QuartzCore Features.
1811         https://bugs.webkit.org/show_bug.cgi?id=118374
1812
1813         Reviewed by Anders Carlsson.
1814
1815         * WebCore.vcxproj/WebCoreCG.props: Exclude a few non-Windows
1816         concepts from the QuartzCore headers.
1817
1818 2013-07-03  Gavin Barraclough  <barraclough@apple.com>
1819
1820         Simplify PageThrottler ownership.
1821         https://bugs.webkit.org/show_bug.cgi?id=118372
1822
1823         Reviewed by Sam Weinig.
1824
1825         * page/Page.cpp:
1826         (WebCore::Page::~Page):
1827             - 'clearPage' method removed - just clear the own pointer.
1828         * page/Page.h:
1829             - make m_pageThrottler an OwnPtr.
1830         * page/PageThrottler.cpp:
1831         (WebCore::PageThrottler::~PageThrottler):
1832             - moved 'setThrottled(false)' from 'clearPage' (removed).
1833         (WebCore::PageThrottler::throttlePage):
1834         (WebCore::PageThrottler::unthrottlePage):
1835             - no need to check 'm_page'
1836         * page/PageThrottler.h:
1837         (WebCore::PageThrottler::create):
1838             - create a PassOwnPtr, not PassRefPtr.
1839
1840 2013-07-03  Brent Fulgham  <bfulgham@apple.com>
1841
1842         [Windows] Updates to support changes in CoreGraphics libraries.
1843         https://bugs.webkit.org/show_bug.cgi?id=118373
1844
1845         Reviewed by Anders Carlsson.
1846
1847         * WebCorePrefix.h: Include definitions for isnan/round/roundf for versions of
1848         Visual Studio that do not provide them natively.
1849
1850 2013-07-03  Gordon Sheridan  <gordon_sheridan@apple.com>
1851
1852         Implement mechanism to detect (partially) hidden blocked plugins.
1853         https://bugs.webkit.org/show_bug.cgi?id=117998
1854
1855         Reviewed by Dean Jackson.
1856
1857         * rendering/RenderEmbeddedObject.cpp:
1858         (WebCore::RenderEmbeddedObject::replacementTextRect):
1859         Added private method for calculating the size of the replacement text for blocked plugins.
1860
1861         (WebCore::RenderEmbeddedObject::isReplacementObscured):
1862         Added public method to determine if the EMBED element used for a blocked plugin is inaccessible to the user.
1863         * rendering/RenderEmbeddedObject.h:
1864         Declare the two new methods mentioned above.
1865
1866         * WebCore.exp.in:
1867         Export RenderEmbeddedObject::isReplacementObscured().
1868
1869 2013-07-03  Jessie Berlin  <jberlin@apple.com>
1870
1871         Speculative build fix after r152340.
1872
1873         * WebCore.exp.in:
1874
1875 2013-07-03  Kangil Han  <kangil.han@samsung.com>
1876
1877         Append overloading function for isFooElement
1878         https://bugs.webkit.org/show_bug.cgi?id=118334
1879
1880         Reviewed by Antti Koivisto.
1881
1882         Node::hasTagName needs additional isElementNode() check when it is triggered.
1883         So conversion from Element* to Node* in isFooElement should be avoided.
1884         Therefore, to support both Node* and Element* as an argument of isFooElement,
1885         this patch appends overloading inline function.
1886
1887         * css/CSSStyleSheet.cpp:
1888         (WebCore::isAcceptableCSSStyleSheetParent):
1889         * css/StyleScopeResolver.cpp:
1890         (WebCore::StyleScopeResolver::scopeFor):
1891         * dom/Node.cpp:
1892         (WebCore::Node::numberOfScopedHTMLStyleChildren):
1893         * html/HTMLAnchorElement.h:
1894         (WebCore::isHTMLAnchorElement):
1895         * html/HTMLAreaElement.h:
1896         (WebCore::isHTMLAreaElement):
1897         * html/HTMLAudioElement.h:
1898         (WebCore::isHTMLAudioElement):
1899         * html/HTMLFormElement.h:
1900         (WebCore::isHTMLFormElement):
1901         * html/HTMLImageElement.h:
1902         (WebCore::isHTMLImageElement):
1903         * html/HTMLInputElement.h:
1904         (WebCore::isHTMLInputElement):
1905         * html/HTMLLabelElement.h:
1906         (WebCore::isHTMLLabelElement):
1907         * html/HTMLOptGroupElement.h:
1908         (WebCore::isHTMLOptGroupElement):
1909         * html/HTMLOptionElement.h:
1910         (WebCore::isHTMLOptionElement):
1911         * html/HTMLStyleElement.h:
1912         (WebCore::isHTMLStyleElement):
1913         (WebCore::toHTMLStyleElement):
1914         * html/HTMLTextAreaElement.h:
1915         (WebCore::isHTMLTextAreaElement):
1916
1917 2013-07-03  Balazs Kelemen  <b.kelemen@samsung.com>
1918
1919         Gif: zero filling should use memset instead of setRGBA for every pixel
1920         https://bugs.webkit.org/show_bug.cgi?id=118350
1921
1922         Reviewed by Allan Sandfeld Jensen.
1923
1924         No new tests. Actually it is not covered by existing tests. Surprisingly we haven't got pixel
1925         tests for animated images. Given that this patch is pretty trivial I don't think it's worth the
1926         cost to start introducing such tests.
1927         I added a manual test: animated-gif-dispose-background.html.
1928
1929         GIFImageDecoder::initializeFrameBuffer use a loop to fill a subrect with tranparent pixels.
1930         This is extremely ineffecient. The use case for this code path is not frequent on the web
1931         but it's still better to fix it.
1932
1933         * platform/image-decoders/ImageDecoder.cpp:
1934         (WebCore::ImageFrame::zeroFillFrameRect):
1935         * platform/image-decoders/ImageDecoder.h:
1936         * platform/image-decoders/gif/GIFImageDecoder.cpp:
1937         (WebCore::GIFImageDecoder::initFrameBuffer):
1938         Fixed indentation in addition.
1939
1940 2013-07-03  Przemyslaw Szymanski  <p.szymanski3@samsung.com>
1941
1942         TextureUnit code optimization
1943         https://bugs.webkit.org/show_bug.cgi?id=117868
1944
1945         Reviewed by Noam Rosenthal.
1946
1947         According to OpenGL ES 2.0 specification it is not possible to use both
1948         texture2D and textureCubeMap in one texture unit.
1949         This patch reduces amount of code, slightly increases rendering performance
1950         and makes WebKit more consistent with OpenGL.
1951
1952         No new tests. Covered by existing tests:
1953         LayoutTests/webgl/conformance/textures/tex-image-webgl.html
1954         LayoutTests/webgl/conformance/textures/texture-complete.html
1955
1956         * html/canvas/WebGLRenderingContext.cpp:
1957         (WebCore::WebGLRenderingContext::~WebGLRenderingContext):
1958         (WebCore::WebGLRenderingContext::reshape):
1959         (WebCore::WebGLRenderingContext::bindTexture):
1960         (WebCore::WebGLRenderingContext::deleteTexture):
1961         (WebCore::WebGLRenderingContext::getParameter):
1962         (WebCore::WebGLRenderingContext::handleNPOTTextures):
1963         (WebCore::WebGLRenderingContext::validateTextureBinding):
1964         (WebCore::WebGLRenderingContext::restoreCurrentTexture2D):
1965         * html/canvas/WebGLRenderingContext.h:
1966
1967 2013-07-03  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1968
1969         Stop inheriting SVGFilterPrimitiveStandardAttributes in SVG
1970         https://bugs.webkit.org/show_bug.cgi?id=118305
1971
1972         Reviewed by Kentaro Hara.
1973
1974         Stop inheriting SVGFilterPrimitiveStandardAttributes in SVG and use
1975         Web IDL implements instead to get rid of multiple inheritance and
1976         follow the latest specification:
1977         - http://www.w3.org/TR/filter-effects/#DOMInterfaces
1978
1979         No new tests, no behavior change.
1980
1981         * CMakeLists.txt:
1982         * DerivedSources.pri:
1983         * GNUmakefile.list.am:
1984         * svg/SVGFEBlendElement.idl:
1985         * svg/SVGFEColorMatrixElement.idl:
1986         * svg/SVGFEComponentTransferElement.idl:
1987         * svg/SVGFECompositeElement.idl:
1988         * svg/SVGFEConvolveMatrixElement.idl:
1989         * svg/SVGFEDiffuseLightingElement.idl:
1990         * svg/SVGFEDisplacementMapElement.idl:
1991         * svg/SVGFEDropShadowElement.idl:
1992         * svg/SVGFEFloodElement.idl:
1993         * svg/SVGFEGaussianBlurElement.idl:
1994         * svg/SVGFEImageElement.idl:
1995         * svg/SVGFEMergeElement.idl:
1996         * svg/SVGFEMorphologyElement.idl:
1997         * svg/SVGFEOffsetElement.idl:
1998         * svg/SVGFESpecularLightingElement.idl:
1999         * svg/SVGFETileElement.idl:
2000         * svg/SVGFETurbulenceElement.idl:
2001
2002 2013-07-03  Zalan Bujtas  <zalan@apple.com>
2003
2004         H&R Block 2010 Help window can not be reopened.
2005         https://bugs.webkit.org/show_bug.cgi?id=118342
2006
2007         Reviewed by Antti Koivisto.
2008
2009         http://trac.webkit.org/changeset/118916 changed the window.focus() behaviour so that
2010         only the opener can (re)focus() a particular window.
2011         H&R Block app relies on the relaxed window.focus() rules.
2012
2013         * WebCore.exp.in:
2014         * platform/RuntimeApplicationChecks.cpp:
2015         (WebCore::applicationIsHRBlock):
2016         * platform/RuntimeApplicationChecks.h:
2017
2018 2013-07-03  Zan Dobersek  <zdobersek@igalia.com>
2019
2020         Further build fixing for build configurations that disable CSS regions support.
2021
2022         * dom/PseudoElement.h: Wrap shouldMoveToFlowThread override into the ENABLE(CSS_REGIONS) build guard.
2023
2024 2013-07-03  Zan Dobersek  <zdobersek@igalia.com>
2025
2026         Unreviewed build fix after r152320 and r152345 for build configurations that enable
2027         SVG support but disable CSS regions support.
2028
2029         * svg/SVGElement.cpp: Wrap shouldMoveToFlowThread override into the ENABLE(CSS_REGIONS) build guard.
2030         * svg/SVGElement.h: Ditto.
2031
2032 2013-07-03  Radu Stavila  <stavila@adobe.com>
2033
2034         [CSS Regions] Improve implementation of elements in region being flowed to another flow thread
2035         https://bugs.webkit.org/show_bug.cgi?id=118300
2036
2037         Based on patch by Zoltán Árvai <zarvai@inf.u-szeged.hu>
2038
2039         Reviewed by Csaba Osztrogonác.
2040
2041         Fixed CSS_REGIONS guard.
2042
2043         * dom/Element.h:
2044         * dom/NodeRenderingContext.cpp:
2045         (WebCore::NodeRenderingContext::elementInsideRegionNeedsRenderer):
2046         (WebCore::NodeRenderingContext::moveToFlowThreadIfNeeded):
2047
2048 2013-07-03  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2049
2050         Move SVGTests attributes parsing to SVGGraphicsElement
2051         https://bugs.webkit.org/show_bug.cgi?id=118292
2052
2053         Reviewed by Darin Adler.
2054
2055         Move SVGTests attributes parsing to SVGGraphicsElement instead of doing
2056         this in each of its subclasses. SVGGraphicsElement is now the one
2057         subclassing SVGTests after r152167.
2058
2059         No new tests, no behavior change.
2060
2061         * svg/SVGAElement.cpp:
2062         (WebCore::SVGAElement::isSupportedAttribute):
2063         (WebCore::SVGAElement::parseAttribute):
2064         * svg/SVGCircleElement.cpp:
2065         (WebCore::SVGCircleElement::isSupportedAttribute):
2066         (WebCore::SVGCircleElement::parseAttribute):
2067         (WebCore::SVGCircleElement::svgAttributeChanged):
2068         * svg/SVGClipPathElement.cpp:
2069         (WebCore::SVGClipPathElement::isSupportedAttribute):
2070         (WebCore::SVGClipPathElement::parseAttribute):
2071         * svg/SVGEllipseElement.cpp:
2072         (WebCore::SVGEllipseElement::isSupportedAttribute):
2073         (WebCore::SVGEllipseElement::parseAttribute):
2074         (WebCore::SVGEllipseElement::svgAttributeChanged):
2075         * svg/SVGForeignObjectElement.cpp:
2076         (WebCore::SVGForeignObjectElement::isSupportedAttribute):
2077         (WebCore::SVGForeignObjectElement::parseAttribute):
2078         (WebCore::SVGForeignObjectElement::svgAttributeChanged):
2079         * svg/SVGGElement.cpp:
2080         (WebCore::SVGGElement::isSupportedAttribute):
2081         (WebCore::SVGGElement::parseAttribute):
2082         (WebCore::SVGGElement::svgAttributeChanged):
2083         * svg/SVGGraphicsElement.cpp:
2084         (WebCore::SVGGraphicsElement::isSupportedAttribute):
2085         (WebCore::SVGGraphicsElement::parseAttribute):
2086         (WebCore::SVGGraphicsElement::svgAttributeChanged):
2087         * svg/SVGImageElement.cpp:
2088         (WebCore::SVGImageElement::isSupportedAttribute):
2089         (WebCore::SVGImageElement::parseAttribute):
2090         (WebCore::SVGImageElement::svgAttributeChanged):
2091         * svg/SVGLineElement.cpp:
2092         (WebCore::SVGLineElement::isSupportedAttribute):
2093         (WebCore::SVGLineElement::parseAttribute):
2094         (WebCore::SVGLineElement::svgAttributeChanged):
2095         * svg/SVGPathElement.cpp:
2096         (WebCore::SVGPathElement::isSupportedAttribute):
2097         (WebCore::SVGPathElement::parseAttribute):
2098         (WebCore::SVGPathElement::svgAttributeChanged):
2099         * svg/SVGPolyElement.cpp:
2100         (WebCore::SVGPolyElement::isSupportedAttribute):
2101         (WebCore::SVGPolyElement::parseAttribute):
2102         (WebCore::SVGPolyElement::svgAttributeChanged):
2103         * svg/SVGRectElement.cpp:
2104         (WebCore::SVGRectElement::isSupportedAttribute):
2105         (WebCore::SVGRectElement::parseAttribute):
2106         (WebCore::SVGRectElement::svgAttributeChanged):
2107         * svg/SVGSVGElement.cpp:
2108         (WebCore::SVGSVGElement::parseAttribute):
2109         (WebCore::SVGSVGElement::svgAttributeChanged): Fall back to calling
2110         SVGGraphicsElement::svgAttributeChanged() instead of
2111         SVGStyledElement::svgAttributeChanged() as SVGGraphicsElement is the
2112         parent class and it takes care of parsing SVGTests attributes now.
2113         * svg/SVGUseElement.cpp:
2114         (WebCore::SVGUseElement::isSupportedAttribute):
2115         (WebCore::SVGUseElement::parseAttribute):
2116         (WebCore::SVGUseElement::svgAttributeChanged):
2117
2118 2013-07-02  Ryosuke Niwa  <rniwa@webkit.org>
2119
2120         Modernize QualifiedName by wrapping gNameCache in a function and using more early exits
2121         https://bugs.webkit.org/show_bug.cgi?id=118299
2122
2123         Reviewed by Andreas Kling.
2124
2125         Did cleanups.
2126
2127         * dom/QualifiedName.cpp:
2128         (WebCore::qualifiedNameCache): Added to wrap gNameCache.
2129         (WebCore::QualifiedName::QualifiedName):
2130         (WebCore::QualifiedName::QualifiedNameImpl::~QualifiedNameImpl):
2131         (WebCore::QualifiedName::toString): Use early exit and StringBuilder.
2132         (WebCore::QualifiedName::init): Use early exit.
2133
2134 2013-07-02  Simon Fraser  <simon.fraser@apple.com>
2135
2136         Don't set z-index: 0 on lots of elements with -webkit-overflow-scrolling: touch
2137         https://bugs.webkit.org/show_bug.cgi?id=118337
2138
2139         Reviewed by Benjamin Poulain.
2140
2141         -webkit-overflow-scrolling: touch is an inherited property that, on iOS, controls
2142         the behavior of overflow scrolling content, and causes overflow scrolling elements
2143         to become CSS stacking contexts.
2144
2145         However, the code was too aggressive in setting style->setZIndex(0), doing so
2146         for any element with overflow != hidden. Since the default for overflow is visible,
2147         that meant almost every element.
2148
2149         Previously, this didn't really matter. However, since r125693, any renderer with non-auto
2150         z-index gets a RenderLayer, and that RenderLayer will become a stacking context. The result
2151         was too many RenderLayers and incorrect stacking context behavior.
2152
2153         Fix by ensuring that -webkit-overflow-scrolling: touch  only affects elements which
2154         are actually scrollable.
2155
2156         Also move the code that does this to below the code that adjust overflow style
2157         for different elements.
2158
2159         * css/StyleResolver.cpp:
2160         (WebCore::isScrollableOverflow):
2161         (WebCore::StyleResolver::adjustRenderStyle):
2162
2163 2013-07-02  Commit Queue  <commit-queue@webkit.org>
2164
2165         Unreviewed, rolling out r152318.
2166         http://trac.webkit.org/changeset/152318
2167         https://bugs.webkit.org/show_bug.cgi?id=118333
2168
2169         This patch broke media/track/track-automatic-subtitles.html on
2170         Mac (Requested by dfarler on #webkit).
2171
2172         * page/CaptionUserPreferencesMediaAF.cpp:
2173         (WebCore::CaptionUserPreferencesMediaAF::textTrackSelectionScore):
2174
2175 2013-07-02  Ruth Fong  <ruth_fong@apple.com>
2176
2177         Change event should not be dispatched by clicking a scrollbar of select listbox
2178         https://bugs.webkit.org/show_bug.cgi?id=118019
2179         <rdar://problem/14297760>
2180
2181         Reviewed by Dean Jackson.
2182
2183         Test: fast/forms/select/listbox-click-on-scrollbar.html
2184
2185         Merge the following:
2186         http://src.chromium.org/viewvc/blink?view=revision&revision=151689
2187         https://chromium.googlesource.com/chromium/blink/+/492549b0fcaa58a85aa0797446b62985a263704f
2188
2189         Previously, a select element with the multiple attribute would dispatch
2190         an onChanged event when the scrollbar is clicked. This patch corrects this
2191         issue by only calling listBoxOnChange(), which fires the onChanged event,
2192         when an actual option is clicked.
2193
2194         * html/HTMLSelectElement.cpp:
2195         (WebCore::HTMLSelectElement::childrenChanged): Updated to clear the list
2196         of selected items when when an <option> element is added to/deleted from its <select> element.
2197         (Without this addition, if a option was selected, and then JavaScript was used to modify
2198         the <select> element, and then the scrollbar was clicked, an onChanged event would fire
2199         because it remembers the previously selected option.)
2200
2201         (WebCore::HTMLSelectElement::listBoxOnChange):
2202
2203         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Updated to
2204         only call listBoxOnChange() if at least one option is selected.
2205
2206 2013-07-02  Alex Christensen  <achristensen@apple.com>
2207
2208         Preparing Windows WebGL build system.
2209         https://bugs.webkit.org/show_bug.cgi?id=118325
2210
2211         Reviewed by Brent Fulgham.
2212
2213         * WebCore.vcxproj/WebCore.vcxproj: Added EGL files, removed unused GraphicsContext3DOpenGL.cpp.
2214         * WebCore.vcxproj/WebCore.vcxproj.filters: Added EGL filter and files, removed unused GraphicsContext3DOpenGL.cpp.
2215
2216 2013-07-02  Jessie Berlin  <jberlin@apple.com>
2217
2218         The callback for WKPageGetPlugInInformation needs info about whether or not there are any
2219         non-playing instances of the plug-in on the page
2220         https://bugs.webkit.org/show_bug.cgi?id=118330
2221
2222         Reviewed by Anders Carlsson.
2223
2224         * WebCore.exp.in:
2225         Expose a symbol so it can be used in WebKit2.
2226
2227 2013-07-02  Alex Christensen  <achristensen@apple.com>
2228
2229         Added getProcAddress implementation for Windows in OpenGLShims.
2230         https://bugs.webkit.org/show_bug.cgi?id=118312
2231
2232         Reviewed by Brent Fulgham.
2233
2234         * platform/graphics/OpenGLShims.cpp:
2235         (WebCore::getProcAddress): Added for Windows.
2236
2237 2013-07-02  Jer Noble  <jer.noble@apple.com>
2238
2239         media/unsupported-rtsp.html is failing
2240         https://bugs.webkit.org/show_bug.cgi?id=118327
2241
2242         Reviewed by Eric Carlson.
2243
2244         Fixes the media/unsupported-rtsp.html test.
2245
2246         Set the contentType field of contentInformationRequest in order to trigger AVFoundation to
2247         notice that loading failed and generate an error.
2248
2249         * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm:
2250         (WebCore::WebCoreAVFResourceLoader::notifyFinished):
2251
2252 2013-07-02  Alex Christensen  <achristensen@apple.com>
2253
2254         Fixed compile error in non-X11 platforms using EGL.
2255         https://bugs.webkit.org/show_bug.cgi?id=118323
2256
2257         Reviewed by Brent Fulgham.
2258
2259         * platform/graphics/egl/GLContextEGL.cpp:
2260         (WebCore::GLContextEGL::createPixmapContext): Put all X11-specific code into #if PLATFORM(X11).
2261
2262 2013-07-02  Radu Stavila  <stavila@adobe.com>
2263
2264         [CSS Regions] Improve implementation of elements in region being flowed to another flow thread
2265         https://bugs.webkit.org/show_bug.cgi?id=118300
2266
2267         Reviewed by David Hyatt.
2268
2269         Methods that must be const have been turned back into const. Code has been better organized.
2270         Performance is better. Tests have been added to.
2271
2272         * dom/Element.cpp:
2273         (WebCore::Element::detach):
2274         (WebCore::Element::setIsInsideRegion):
2275         (WebCore::Element::isInsideRegion):
2276         (WebCore::Element::shouldMoveToFlowThread):
2277         * dom/Element.h:
2278         * dom/ElementRareData.h:
2279         (WebCore::ElementRareData::isInsideRegion):
2280         (WebCore::ElementRareData::setIsInsideRegion):
2281         (WebCore::ElementRareData::ElementRareData):
2282         * dom/Node.cpp:
2283         (WebCore::Node::isRegisteredWithNamedFlow):
2284         * dom/Node.h:
2285         * dom/NodeRenderingContext.cpp:
2286         (WebCore::NodeRenderingContext::parentRenderer):
2287         (WebCore::NodeRenderingContext::shouldCreateRenderer):
2288         (WebCore::NodeRenderingContext::elementInsideRegionNeedsRenderer):
2289         (WebCore::NodeRenderingContext::moveToFlowThreadIfNeeded):
2290         (WebCore::NodeRenderingContext::createRendererForElementIfNeeded):
2291         * dom/NodeRenderingContext.h:
2292         * dom/PseudoElement.h:
2293         * dom/Text.cpp:
2294         (WebCore::Text::textRendererIsNeeded):
2295         * dom/Text.h:
2296         * rendering/FlowThreadController.cpp:
2297         (WebCore::FlowThreadController::unregisterNamedFlowContentNode):
2298         (WebCore::FlowThreadController::isContentNodeRegisteredWithAnyNamedFlow):
2299         * rendering/FlowThreadController.h:
2300         * rendering/RenderObject.h:
2301         * rendering/RenderRegion.h:
2302         * svg/SVGElement.cpp:
2303         (WebCore::SVGElement::shouldMoveToFlowThread):
2304         * svg/SVGElement.h:
2305
2306 2013-07-02  Eric Carlson  <eric.carlson@apple.com>
2307
2308         [Mac] .webkitClosedCaptionsVisible doesn't work with "Automatic" caption mode
2309         https://bugs.webkit.org/show_bug.cgi?id=118319
2310
2311         Reviewed by Darin Adler.
2312
2313         Test: media/track/track-legacyapi-with-automatic-mode.html
2314
2315         * page/CaptionUserPreferencesMediaAF.cpp:
2316         (WebCore::CaptionUserPreferencesMediaAF::textTrackSelectionScore): Don't apply "automatic"
2317             logic when captions were enabled with .webkitClosedCaptionsVisible.
2318
2319 2013-07-02  Anders Carlsson  <andersca@apple.com>
2320
2321         Always flip the coordinate system before drawing NSViews from Widget::paint
2322         https://bugs.webkit.org/show_bug.cgi?id=118318
2323         <rdar://problem/13895483>
2324
2325         Reviewed by Beth Dakin.
2326
2327         Undo the change that would not flip on 10.9; turns out the bug was in AppKit. Also remove the
2328         _hasCanDrawSubviewsIntoLayerOrAncestor workaround since drawing works correctly now.
2329
2330         Also, pass flipped:NO when creating the NSGraphicsContext to indicate that the graphics context
2331         is unflipped as far as AppKit knows (since we flipped it earlier).
2332
2333         * platform/mac/WidgetMac.mm:
2334         (WebCore::Widget::paint):
2335
2336 2013-06-26  Robert Hogan  <robert@webkit.org>
2337
2338         empty inlines should not affect line-wrapping
2339         https://bugs.webkit.org/show_bug.cgi?id=25638
2340
2341         Reviewed by David Hyatt.
2342
2343         Don't break on empty inlines if we're in the middle of a word. I took this opportunity to
2344         refactor the series of checks we perform to establish if we can break at the current position.
2345
2346         Test: fast/text/whitespace/inline-whitespace-wrapping-11.html
2347
2348         * rendering/RenderBlockLineLayout.cpp:
2349         (WebCore::textBeginsWithBreakablePosition):
2350         (WebCore::canBreakAtThisPosition):
2351         (WebCore::RenderBlock::LineBreaker::nextSegmentBreak):
2352
2353 2013-07-02  Jae Hyun Park  <jae.park@company100.net>
2354
2355         Implement CoordinatedSurface for Threaded Coordinated Graphics
2356         https://bugs.webkit.org/show_bug.cgi?id=109661
2357
2358         Reviewed by Noam Rosenthal.
2359
2360         This is a preparation patch for Threaded Coordianted Graphics.
2361
2362         This patch implements ThreadSafeCoordinatedSurface using ImageBuffer as a
2363         backend. Also, this patch moves common implementation to CoordinatedSurface to
2364         prevent duplication of code.
2365
2366         * platform/graphics/texmap/coordinated/CoordinatedSurface.cpp:
2367         (WebCore::CoordinatedSurface::CoordinatedSurface):
2368         * platform/graphics/texmap/coordinated/CoordinatedSurface.h:
2369         (WebCore::CoordinatedSurface::size):
2370         (WebCore::CoordinatedSurface::flags):
2371         * platform/graphics/texmap/coordinated/ThreadSafeCoordinatedSurface.cpp: Added.
2372         (WebCore::ThreadSafeCoordinatedSurface::create):
2373         (WebCore::ThreadSafeCoordinatedSurface::ThreadSafeCoordinatedSurface):
2374         (WebCore::ThreadSafeCoordinatedSurface::~ThreadSafeCoordinatedSurface):
2375         (WebCore::ThreadSafeCoordinatedSurface::paintToSurface):
2376         (WebCore::ThreadSafeCoordinatedSurface::copyToTexture):
2377         * platform/graphics/texmap/coordinated/ThreadSafeCoordinatedSurface.h: Added.
2378
2379 2013-07-02  Geoffrey Garen  <ggaren@apple.com>
2380
2381         plainText() is O(N^2)
2382         https://bugs.webkit.org/show_bug.cgi?id=118282
2383         <rdar://problem/14284360>
2384
2385         Reviewed by Alexey Proskuryakov.
2386
2387         * editing/TextIterator.cpp:
2388         (WebCore::plainText): Linear growth for a vector data type is O(N^2).
2389         Don't do that. Luckily, StringBuilder does the right thing automatically,
2390         so we can just delete code.
2391
2392 2013-07-02  Tim Horton  <timothy_horton@apple.com>
2393
2394         constrainScrollPositionForOverhang needs to handle scrollOrigin correctly
2395         https://bugs.webkit.org/show_bug.cgi?id=118176
2396         <rdar://problem/14301271>
2397
2398         Reviewed by Anders Carlsson.
2399
2400         Test: compositing/geometry/fixed-position-flipped-writing-mode.html
2401
2402         WebCore makes use of constrainScrollPositionForOverhang not only for
2403         constraining fixed- and sticky-positioned elements to the viewport, but
2404         also for clamping the tile cache's visible rect.
2405
2406         Therefore, constrainScrollPositionForOverhang needs to correctly take
2407         the scrollOrigin into account. The easiest way I saw to do this was to
2408         reimplement the function in terms of a pair of rect intersections
2409         between a virtual scrollable "viewport" and the document (with a bit
2410         of complication from headers and footers).
2411
2412         The first intersection is performed, then if the viewport doesn't fit,
2413         it is pushed down and to the right, from the origin. Next, we intersect
2414         again, this time pushing the rect up by the amount it overflowed the document
2415         rect from the bottom right. This performs effectively the same constraint
2416         as previously, but handles the scrollOrigin correctly and is also somewhat
2417         easier to read and understand (with pictures).
2418
2419         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
2420         (WebCore::ScrollingTreeScrollingNodeMac::setScrollLayerPosition):
2421         Subtract the scrollOrigin out of the offset passed to scrollOffsetForFixedPosition,
2422         it's expecting an offset without the origin included.
2423
2424         * platform/ScrollableArea.cpp:
2425         (WebCore::ScrollableArea::constrainScrollPositionForOverhang):
2426         Reimplement the function as described above.
2427
2428 2013-07-02  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2429
2430         Remove SVGStyledLocatableElement class
2431         https://bugs.webkit.org/show_bug.cgi?id=118283
2432
2433         Reviewed by Dirk Schulze.
2434
2435         Remove SVGStyledLocatableElement class and have SVGGraphicsElement
2436         inherit SVGStyledElement directly instead. SVGStyledLocatableElement
2437         is no longer needed and according to the specification, SVGGraphicsElement
2438         should inherit SVGStyledElement (actually SVGElement once we merge
2439         SVGStyledElement into SVGElement).
2440
2441         No new tests, no behavior change.
2442
2443         * CMakeLists.txt:
2444         * GNUmakefile.list.am:
2445         * Target.pri:
2446         * WebCore.order:
2447         * WebCore.vcxproj/WebCore.vcxproj:
2448         * WebCore.vcxproj/WebCore.vcxproj.filters:
2449         * WebCore.xcodeproj/project.pbxproj:
2450         * bindings/scripts/CodeGeneratorJS.pm:
2451         (GetGnuVTableOffsetForType):
2452         * svg/SVGAllInOne.cpp:
2453         * svg/SVGElement.cpp:
2454         (WebCore::SVGElement::getBoundingBox):
2455         * svg/SVGElement.h:
2456         * svg/SVGGraphicsElement.cpp:
2457         (WebCore::SVGGraphicsElement::SVGGraphicsElement):
2458         (WebCore::SVGGraphicsElement::parseAttribute):
2459         (WebCore::SVGGraphicsElement::svgAttributeChanged):
2460         * svg/SVGGraphicsElement.h:
2461         * svg/SVGLocatable.cpp:
2462         (WebCore::SVGLocatable::getTransformToElement):
2463         * svg/SVGStyledElement.cpp:
2464         (WebCore::SVGStyledElement::localCoordinateSpaceTransform):
2465         * svg/SVGStyledLocatableElement.cpp: Removed.
2466         * svg/SVGStyledLocatableElement.h: Removed.
2467
2468 2013-07-02  peavo@outlook.com  <peavo@outlook.com>
2469
2470         [Curl] Crash after download.
2471         https://bugs.webkit.org/show_bug.cgi?id=118303
2472
2473         Reviewed by Brent Fulgham.
2474
2475         We need to make sure that the Curl easy handle is removed from the Curl multi handle before it's freed.
2476
2477         * platform/network/curl/CurlDownload.cpp:
2478         (CurlDownloadManager::updateHandleList): Use addToCurl() and removeFromCurl() methods.
2479         (CurlDownloadManager::addToCurl): Add method to add easy handle to multi handle.
2480         (CurlDownloadManager::removeFromCurl): Add method to remove easy handle from multi handle, and then delete the handle.
2481         (CurlDownloadManager::downloadThread): Use removeFromCurl() method.
2482         (CurlDownload::~CurlDownload):
2483         * platform/network/curl/CurlDownload.h: Avoid deleting Curl easy handle in destructor.
2484
2485 2013-07-02  Radu Stavila  <stavila@adobe.com>
2486
2487         [CSSRegions] No other SVG elements except the SVGRoot must have RegionInfo objects attached
2488         https://bugs.webkit.org/show_bug.cgi?id=118295
2489
2490         Reviewed by Antti Koivisto.
2491
2492         Only the SVGRoot element can be collected in a named flow. As such, no SVG element below the root should
2493         be attached to a RenderBoxRegionInfo object.
2494
2495         A larger patch's test (https://bugs.webkit.org/show_bug.cgi?id=118300) is failing because of this.
2496         This change will be covered by that test.
2497
2498         * rendering/RenderBoxModelObject.h:
2499         (WebCore::RenderBoxModelObject::canHaveBoxInfoInRegion):
2500         * rendering/RenderObject.h:
2501         (WebCore::RenderObject::isRenderSVGBlock):
2502         * rendering/svg/RenderSVGBlock.h:
2503
2504 2013-07-02  Kangil Han  <kangil.han@samsung.com>
2505
2506         is/toHTMLStyleElement should use Element* for its argument
2507         https://bugs.webkit.org/show_bug.cgi?id=118286
2508
2509         Reviewed by Andreas Kling.
2510
2511         To reduce unnecessary call of isElementNode(), this patch replaces argument
2512         of is/toHTMLStyleElement from Node* to Element*. Plus, use Element::hasTagName
2513         in collectActiveStyleSheets function for minor code refactoring since
2514         its cost is cheaper than Node::hasTagName.
2515
2516         * css/CSSStyleSheet.cpp:
2517         (WebCore::isAcceptableCSSStyleSheetParent):
2518         * css/StyleScopeResolver.cpp:
2519         (WebCore::StyleScopeResolver::scopeFor):
2520         * dom/DocumentStyleSheetCollection.cpp:
2521         (WebCore::DocumentStyleSheetCollection::collectActiveStyleSheets):
2522         * dom/Node.cpp:
2523         (WebCore::Node::numberOfScopedHTMLStyleChildren):
2524         * html/HTMLStyleElement.h:
2525         (WebCore::isHTMLStyleElement):
2526         (WebCore::toHTMLStyleElement):
2527
2528 2013-07-02  Ryosuke Niwa  <rniwa@webkit.org>
2529
2530         Unexpose EditingPropertiesToInclude in EditingStyle.h after r151772
2531         https://bugs.webkit.org/show_bug.cgi?id=118271
2532
2533         Reviewed by Andreas Kling.
2534
2535         Don't expose EditingPropertiesToInclude in EditingStyle.h and do other cleanups as described below.
2536
2537         No new tests since there should be no behavioral change.
2538
2539         * editing/EditingStyle.cpp:
2540         (WebCore::copyEditingProperties): Use newly defined numAllEditingProperties and numInheritableEditingProperties
2541         instead of a magic number of 2.
2542         (WebCore::copyPropertiesFromComputedStyle): Renamed from editingStyleFromComputedStyle. It now takes ComputedStyleExtractor and
2543         PropertiesToInclude instead of Node* and EditingPropertiesToInclude and handles AllProperties. Also added a helper that takes Node*.
2544         (WebCore::EditingStyle::init): Calls copyPropertiesFromComputedStyle. Unfortunately, we need to special-case EditingPropertiesInEffect
2545         and not set background-color and text-decoration. This is required probably due to a bug elsewhere.
2546         (WebCore::EditingStyle::removeStyleAddedByNode):
2547         (WebCore::EditingStyle::removeStyleConflictingWithStyleOfNode):
2548         (WebCore::extractEditingProperties): Renamed from EditingStyle::removeAllButEditingProperties; takes PropertiesToInclude instead of
2549         EditingPropertiesToInclude since the only caller of this function, EditingStyle::mergeInlineAndImplicitStyleOfElement, was converting
2550         the type.
2551         (WebCore::EditingStyle::mergeInlineAndImplicitStyleOfElement):
2552         * editing/EditingStyle.h:
2553
2554 2013-07-02  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2555
2556         Introduce toSVGInlineTextBox
2557         https://bugs.webkit.org/show_bug.cgi?id=118289
2558
2559         Reviewed by Andreas Kling.
2560
2561         As a step to change static_cast with toXXX, static_cast<SVGInlineTextBox*> can
2562         be changed with toSVGInlineTextBox().
2563
2564         Blink merge from https://src.chromium.org/viewvc/blink?view=rev&revision=153345
2565
2566         * rendering/svg/RenderSVGInlineText.cpp:
2567         (WebCore::RenderSVGInlineText::positionForPoint):
2568         * rendering/svg/SVGInlineFlowBox.cpp:
2569         (WebCore::SVGInlineFlowBox::paintSelectionBackground):
2570         (WebCore::SVGInlineFlowBox::paint):
2571         (WebCore::SVGInlineFlowBox::computeTextMatchMarkerRectForRenderer):
2572         * rendering/svg/SVGInlineTextBox.h:
2573         (WebCore::toSVGInlineTextBox):
2574         * rendering/svg/SVGRenderTreeAsText.cpp:
2575         (WebCore::writeSVGInlineTextBoxes):
2576         * rendering/svg/SVGRootInlineBox.cpp:
2577         (WebCore::SVGRootInlineBox::paint):
2578         (WebCore::SVGRootInlineBox::layoutCharactersInTextBoxes):
2579         (WebCore::SVGRootInlineBox::layoutChildBoxes):
2580         (WebCore::reverseInlineBoxRangeAndValueListsIfNeeded):
2581         * rendering/svg/SVGTextQuery.cpp:
2582         (WebCore::SVGTextQuery::collectTextBoxesInFlowBox):
2583
2584 2013-07-02  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2585
2586         Simplify SVGTextContentElement::elementFromRenderer()
2587         https://bugs.webkit.org/show_bug.cgi?id=118284
2588
2589         Reviewed by Andreas Kling.
2590
2591         Simplify SVGTextContentElement::elementFromRenderer() by leveraging
2592         SVGElement::isTextContent() methods instead of explicitly checking
2593         for tag names.
2594
2595         No new tests, no behavior change.
2596
2597         * svg/SVGTextContentElement.cpp:
2598         (WebCore::SVGTextContentElement::elementFromRenderer):
2599
2600 2013-07-02  Csaba Osztrogonác  <ossy@webkit.org>
2601
2602         Fix cast-align warnings in WebCore/platform/graphics/texmap/TextureMapperGL.cpp
2603         https://bugs.webkit.org/show_bug.cgi?id=118249
2604
2605         Reviewed by Allan Sandfeld Jensen.
2606
2607         * platform/graphics/texmap/TextureMapperGL.cpp:
2608         (WebCore::BitmapTextureGL::updateContents):
2609
2610 2013-07-02  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2611
2612         [Qt][WK1] Support WebGL with EGL on Linux
2613         https://bugs.webkit.org/show_bug.cgi?id=118251
2614
2615         Reviewed by Kenneth Rohde Christiansen.
2616
2617         Let GraphicsContext3D work without a GraphicsSurface.
2618
2619         * Target.pri:
2620         * platform/graphics/OpenGLShims.cpp:
2621         (WebCore::getProcAddress):
2622         * platform/graphics/qt/GraphicsContext3DQt.cpp:
2623         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
2624         (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
2625
2626 2013-07-02  Catalin Badea  <badea@adobe.com>
2627
2628         [CSS-Regions] OverrideLogicalHeight used by both regions and flexbox
2629         https://bugs.webkit.org/show_bug.cgi?id=118057
2630
2631         Reviewed by David Hyatt.
2632
2633         Remove the use of overrideLogicalContentHeight() from regions and
2634         use a local variable instead. The change was needed to avoid
2635         overlapping with flexbox containers.
2636
2637         Test: fast/regions/autoheight-flexbox.html
2638
2639         * rendering/RenderFlowThread.cpp:
2640         (WebCore::RenderFlowThread::validateRegions):
2641         (WebCore::RenderFlowThread::layout):
2642         (WebCore::RenderFlowThread::applyBreakAfterContent):
2643         (WebCore::RenderFlowThread::initializeRegionsComputedAutoHeight):
2644         (WebCore::RenderFlowThread::updateRegionsFlowThreadPortionRect):
2645         (WebCore::RenderFlowThread::addForcedRegionBreak):
2646         * rendering/RenderFlowThread.h:
2647         * rendering/RenderRegion.cpp:
2648         (WebCore::RenderRegion::RenderRegion):
2649         (WebCore::RenderRegion::pageLogicalHeight):
2650         (WebCore::RenderRegion::logicalHeightOfAllFlowThreadContent):
2651         (WebCore::RenderRegion::updateRegionHasAutoLogicalHeightFlag):
2652         (WebCore::RenderRegion::layoutBlock):
2653         (WebCore::RenderRegion::updateLogicalHeight):
2654         * rendering/RenderRegion.h:
2655         (WebCore::RenderRegion::computedAutoHeight):
2656         (WebCore::RenderRegion::setComputedAutoHeight):
2657         (WebCore::RenderRegion::clearComputedAutoHeight):
2658         (WebCore::RenderRegion::hasComputedAutoHeight):
2659         * rendering/RenderView.cpp:
2660
2661 2013-07-01  Alex Christensen  <achristensen@apple.com>
2662
2663         Windows should be included in the list of platforms that can use OpenGL ES 2.
2664         https://bugs.webkit.org/show_bug.cgi?id=118264
2665
2666         Reviewed by Dean Jackson.
2667
2668         * platform/graphics/GraphicsContext3D.h: Added PLATFORM(WIN) to platforms using OpenGL ES 2.
2669
2670 2013-07-01  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
2671
2672         [GTK] Remove unsupported AC backends
2673         https://bugs.webkit.org/show_bug.cgi?id=117362
2674
2675         Reviewed by Martin Robinson.
2676
2677         * GNUmakefile.am:
2678         * GNUmakefile.list.am:
2679         * Source/WebCore/platform/graphics/PlatformLayer.h: Removed mentions of clutter
2680         and the texmap cairo backend.
2681         * platform/graphics/clutter/DrawingBufferClutter.cpp: Removed.
2682         * platform/graphics/clutter/GraphicsContext3DClutter.cpp: Removed.
2683         * platform/graphics/clutter/GraphicsContext3DPrivate.cpp: Removed.
2684         * platform/graphics/clutter/GraphicsContext3DPrivate.h: Removed.
2685         * platform/graphics/clutter/GraphicsLayerActor.cpp: Removed.
2686         * platform/graphics/clutter/GraphicsLayerActor.h: Removed.
2687         * platform/graphics/clutter/GraphicsLayerClutter.cpp: Removed.
2688         * platform/graphics/clutter/GraphicsLayerClutter.h: Removed.
2689         * platform/graphics/clutter/PlatformClutterAnimation.cpp: Removed.
2690         * platform/graphics/clutter/PlatformClutterAnimation.h: Removed.
2691         * platform/graphics/clutter/PlatformClutterLayerClient.h: Removed.
2692         * platform/graphics/clutter/TransformationMatrixClutter.cpp: Removed.
2693         * Source/WebCore/platform/graphics/transforms/TransformationMatrix.h: Removed cogl
2694         matrix type conversion.
2695
2696 2013-07-01  Alex Christensen  <achristensen@apple.com>
2697
2698         DrawingBuffer constructor and destructor were not defined for Windows.
2699         I moved duplicate code from Cairo and Qt to DrawingBuffer.cpp to be used by Qt, Cairo, and Windows.
2700         https://bugs.webkit.org/show_bug.cgi?id=118262
2701
2702         Reviewed by Dean Jackson.
2703
2704         * platform/graphics/cairo/DrawingBufferCairo.cpp: Removed duplicate DrawingBuffer constructor and destructor.
2705         * platform/graphics/gpu/DrawingBuffer.cpp:
2706         (WebCore::DrawingBuffer::DrawingBuffer):
2707         (WebCore::DrawingBuffer::~DrawingBuffer): Moved from Cairo and Qt implementation.
2708         * platform/graphics/gpu/qt/DrawingBufferQt.cpp: Removed duplicate DrawingBuffer constructor and destructor.
2709
2710 2013-07-01  Alex Christensen  <achristensen@apple.com>
2711
2712         Fixed unreachable return when GLX or EGL are used with WebGL.
2713         https://bugs.webkit.org/show_bug.cgi?id=118263
2714
2715         Reviewed by Noam Rosenthal.
2716
2717         * platform/graphics/opengl/GLPlatformContext.cpp:
2718         (WebCore::createOffScreenContext): Fixed unreachable return.
2719
2720 2013-07-01  Tim Horton  <timothy_horton@apple.com>
2721
2722         Maximum scroll position can be negative in some cases
2723         https://bugs.webkit.org/show_bug.cgi?id=118175
2724         <rdar://problem/14301217>
2725
2726         Reviewed by Anders Carlsson.
2727
2728         Test (API): WebKit2.ResizeReversePaginatedWebView
2729
2730         * page/FrameView.cpp:
2731         (WebCore::FrameView::maximumScrollPosition):
2732         * page/FrameView.h:
2733         Override maximumScrollPosition() in FrameView and don't clamp to zero if
2734         a reverse pagination mode is enabled, as it is possible (and common) to
2735         have a negative maximum scroll position with reverse pagination.
2736
2737         * platform/ScrollView.cpp:
2738         (WebCore::ScrollView::updateScrollbars):
2739         Drive-by adoption of toIntSize().
2740
2741 2013-07-01  Alex Christensen  <achristensen@apple.com>
2742
2743         Removed all references to DrawingBuffer methods unused since the removal of Chromium:
2744         DrawingBuffer::prepareBackBuffer,
2745         DrawingBuffer::requiresCopyFromBackToFrontBuffer, and
2746         DrawingBuffer::clearPlatformLayer.
2747         https://bugs.webkit.org/show_bug.cgi?id=118257
2748
2749         Reviewed by Darin Adler.
2750
2751         * platform/graphics/blackberry/DrawingBufferBlackBerry.cpp:
2752         (WebCore::DrawingBuffer::platformLayer):
2753         * platform/graphics/cairo/DrawingBufferCairo.cpp:
2754         (WebCore::DrawingBuffer::paintCompositedResultsToCanvas):
2755         * platform/graphics/clutter/DrawingBufferClutter.cpp:
2756         (WebCore::DrawingBuffer::paintCompositedResultsToCanvas):
2757         * platform/graphics/gpu/DrawingBuffer.cpp:
2758         (WebCore::DrawingBuffer::clear):
2759         * platform/graphics/gpu/DrawingBuffer.h:
2760         * platform/graphics/gpu/mac/DrawingBufferMac.mm:
2761         (WebCore::DrawingBuffer::frontColorBuffer):
2762         * platform/graphics/gpu/qt/DrawingBufferQt.cpp:
2763         (WebCore::DrawingBuffer::paintCompositedResultsToCanvas):
2764
2765 2013-07-01  Jochen Eisinger  <jochen@chromium.org>
2766
2767         Remove support for consumable user gestures
2768         https://bugs.webkit.org/show_bug.cgi?id=118247
2769
2770         Reviewed by Geoffrey Garen.
2771
2772         The features was not enabled on any port, and is meanwhile broken, so we
2773         should delete it.
2774
2775         No new tests, just deleting dead code.
2776
2777         * accessibility/AccessibilityNodeObject.cpp:
2778         (WebCore::AccessibilityNodeObject::increment):
2779         (WebCore::AccessibilityNodeObject::decrement):
2780         * accessibility/AccessibilityObject.cpp:
2781         (WebCore::AccessibilityObject::press):
2782         * bindings/ScriptControllerBase.cpp:
2783         (WebCore::ScriptController::executeScript):
2784         * bindings/js/ScriptController.cpp:
2785         (WebCore::ScriptController::executeScriptInWorld):
2786         * dom/UserGestureIndicator.cpp:
2787         (WebCore::isDefinite):
2788         (WebCore::UserGestureIndicator::UserGestureIndicator):
2789         (WebCore::UserGestureIndicator::~UserGestureIndicator):
2790         * dom/UserGestureIndicator.h:
2791         (WebCore::UserGestureIndicator::processingUserGesture):
2792         * inspector/InspectorFrontendClientLocal.cpp:
2793         (WebCore::InspectorFrontendClientLocal::openInNewTab):
2794         * inspector/InspectorFrontendHost.cpp:
2795         (WebCore::FrontendMenuProvider::contextMenuItemSelected):
2796         * inspector/InspectorPageAgent.cpp:
2797         (WebCore::InspectorPageAgent::navigate):
2798         * loader/NavigationScheduler.cpp:
2799         (WebCore::ScheduledURLNavigation::fire):
2800         (WebCore::ScheduledURLNavigation::didStartTimer):
2801         (WebCore::ScheduledRedirect::fire):
2802         (WebCore::ScheduledRefresh::fire):
2803         (WebCore::ScheduledHistoryNavigation::fire):
2804         (WebCore::ScheduledFormSubmission::fire):
2805         (WebCore::ScheduledFormSubmission::didStartTimer):
2806         * page/DOMTimer.cpp:
2807         (WebCore::DOMTimer::DOMTimer):
2808         (WebCore::DOMTimer::fired):
2809         * page/DOMTimer.h:
2810         * page/DOMWindow.cpp:
2811         (WebCore::DOMWindow::showModalDialog):
2812         * page/EventHandler.cpp:
2813         (WebCore::EventHandler::clear):
2814         (WebCore::EventHandler::handleMousePressEvent):
2815         (WebCore::EventHandler::handleMouseReleaseEvent):
2816         * page/EventHandler.h:
2817         * rendering/HitTestResult.cpp:
2818         (WebCore::HitTestResult::toggleMediaFullscreenState):
2819         (WebCore::HitTestResult::enterFullscreenForVideo):
2820
2821 2013-07-01  Frédéric Wang  <fred.wang@free.fr>
2822
2823         Add Support for mspace element
2824         https://bugs.webkit.org/show_bug.cgi?id=115610
2825
2826         Reviewed by Chris Fleizach.
2827
2828         This patch adds basic support for the MathML mspace element. This is
2829         important to let people control spacing of mathematical formulas.
2830         Attributes width, height and depth are implemented. For the moment,
2831         only nonnegative width are accepted.
2832
2833         * CMakeLists.txt: add references to the RenderMathMLSpace files.
2834         * GNUmakefile.list.am: ditto.
2835         * Target.pri: ditto.
2836         * WebCore.vcxproj/WebCore.vcxproj: ditto.
2837         * WebCore.vcxproj/WebCore.vcxproj.filters: ditto.
2838         * WebCore.xcodeproj/project.pbxproj: ditto.
2839         * css/mathml.css:
2840         (mtable[columnlines="dashed"] > mtr > mtd + mtd): remove the obsolete linebreaking rule.
2841         * mathml/MathMLTextElement.cpp:
2842         (WebCore::MathMLTextElement::createRenderer): map mspaceTag to RenderMathMLSpace.
2843         * mathml/mathattrs.in: add width, height and depth attributes
2844         * mathml/mathtags.in: add mspace element
2845         * rendering/mathml/RenderMathMLBlock.cpp:
2846         (WebCore::parseMathMLLength): fix int to float conversion.
2847         * rendering/mathml/RenderMathMLBlock.h: declare isRenderMathMLSpace.
2848         (WebCore::RenderMathMLBlock::isRenderMathMLSpace):
2849         * rendering/mathml/RenderMathMLSpace.cpp: Added.
2850         (WebCore::RenderMathMLSpace::RenderMathMLSpace):
2851         (WebCore::RenderMathMLSpace::isChildAllowed):
2852         (WebCore::RenderMathMLSpace::computePreferredLogicalWidths):
2853         (WebCore::RenderMathMLSpace::updateFromElement):
2854         (WebCore::RenderMathMLSpace::updateLogicalWidth):
2855         (WebCore::RenderMathMLSpace::updateLogicalHeight):
2856         (WebCore::RenderMathMLSpace::layout):
2857         (WebCore::RenderMathMLSpace::styleDidChange):
2858         (WebCore::RenderMathMLSpace::firstLineBoxBaseline):
2859         * rendering/mathml/RenderMathMLSpace.h: Added.
2860         (WebCore::RenderMathMLSpace::isRenderMathMLSpace):
2861         (WebCore::RenderMathMLSpace::renderName):
2862         (WebCore::toRenderMathMLSpace):
2863
2864 2013-06-27  Jer Noble  <jer.noble@apple.com>
2865
2866         Audio in apps which embed WebViews is corrupted.
2867         https://bugs.webkit.org/show_bug.cgi?id=118163
2868
2869         Reviewed by Maciej Stachowiak.
2870
2871         Add a preference, which defaults to off, which controls whether the
2872         AudioSessionManager will switch to a large audio buffer setting for
2873         power-savings during <video> playback.
2874
2875         * WebCore.exp.in:
2876         * page/Settings.cpp:
2877         (WebCore::Settings::setLowPowerVideoAudioBufferSizeEnabled): Added.  Simple setter.
2878         * page/Settings.h:
2879         (WebCore::Settings::lowPowerVideoAudioBufferSizeEnabled): Added.  Simple getter.
2880         * platform/audio/mac/AudioSessionManagerMac.cpp:
2881         (AudioSessionManager::updateSessionState): Only set the large audio buffer
2882             size if lowPowerVideoAudioBufferSize is enabled.
2883
2884 2013-07-01  Brian Holt  <brian.holt@samsung.com>
2885
2886         [ATK] Leak: leaks in WebKitAccessibleInterfaceText
2887         https://bugs.webkit.org/show_bug.cgi?id=118248
2888
2889         Fixed memory leaks.
2890
2891         Reviewed by Christophe Dumez.
2892
2893         * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
2894         (getPangoLayoutForAtk):
2895         (webkitAccessibleTextGetText):
2896
2897 2013-07-01  Roger Fong  <roger_fong@apple.com>
2898
2899         Unreviewed. Make WebCore.make copy over QTMovieWin DLL's and PDB's.
2900         <rdar://problem/14321403>
2901
2902         * WebCore.vcxproj/WebCore.make:
2903
2904 2013-07-01  peavo@outlook.com  <peavo@outlook.com>
2905
2906         [Win] Crash when scrolling page with images.
2907         https://bugs.webkit.org/show_bug.cgi?id=117832
2908
2909         Reviewed by Brent Fulgham.
2910
2911         Avoid access violation by returning early from method if image frame doesn't have pixel data.
2912
2913         * platform/image-decoders/ImageDecoder.h:
2914         (WebCore::ImageFrame::hasPixelData): Added method to check if frame has pixel data.
2915         * platform/image-decoders/gif/GIFImageDecoder.cpp:
2916         (WebCore::GIFImageDecoder::haveDecodedRow): Early return if frame doesn't have pixel data.
2917
2918 2013-07-01  Noam Rosenthal  <noam@webkit.org>
2919
2920         Avoid calling RenderLayerBacking::resetContentsRect() if possible
2921         https://bugs.webkit.org/show_bug.cgi?id=118217
2922
2923         Reviewed by Simon Fraser.
2924
2925         Call resetContentsRect() only if the layer has a contentsLayer.
2926         Otherwise the contentsRect is redundant for the GraphicsLayer.
2927
2928         No new tests - optimization only. This is covered by plenty of existing
2929         tests in webgl/ and compositing/.
2930
2931         * platform/graphics/texmap/GraphicsLayerTextureMapper.h:
2932         (WebCore::GraphicsLayerTextureMapper::hasContentsLayer):
2933         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
2934             Added hasContentsLayer calls for TextureMapper/CoordinatedGraphics
2935
2936         * rendering/RenderLayerBacking.cpp:
2937         (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
2938
2939 2013-07-01  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2940
2941         [Qt] Avoid creating a QWindow for offscreen GraphicsContext3D
2942         https://bugs.webkit.org/show_bug.cgi?id=118244
2943
2944         Reviewed by Noam Rosenthal.
2945
2946         In Qt 5.0 we had to create invisible windows, but in Qt 5.1
2947         we can now create specific offscreen surfaces.
2948
2949         * platform/graphics/qt/GraphicsContext3DQt.cpp:
2950         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
2951
2952 2013-07-01  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2953
2954         [Qt] Remove long unused Qt4 forward definitions
2955
2956         Unreviewed cleanu-up.
2957
2958         * platform/graphics/GraphicsContext3D.h:
2959
2960 2013-07-01  Antti Koivisto  <antti@apple.com>
2961
2962         Use DeferrableOneShotTimer for deleting decoded data
2963         https://bugs.webkit.org/show_bug.cgi?id=118150
2964
2965         Reviewed by Andreas Kling.
2966
2967         Adam Barth pointed out that the virtual function for overriding the default delay doesn't work
2968         as expected from base class constructor.
2969
2970         * loader/cache/CachedResource.cpp:
2971         (WebCore::deadDecodedDataDeletionIntervalForResourceType):
2972         (WebCore::CachedResource::CachedResource):
2973
2974             Use static function instead of calling a virtual.
2975
2976         * loader/cache/CachedResource.h:
2977         * loader/cache/CachedScript.cpp:
2978         * loader/cache/CachedScript.h:
2979
2980 2013-07-01  Kangil Han  <kangil.han@samsung.com>
2981
2982         Adopt toHTMLTextAreaElement for code cleanup
2983         https://bugs.webkit.org/show_bug.cgi?id=118226
2984
2985         Reviewed by Andreas Kling.
2986
2987         To enhance readability, this patch adopts toHTMLTextAreaElement.
2988         This also helps out to reduce duplicated use of static_cast.
2989
2990         * accessibility/AccessibilityNodeObject.cpp:
2991         (WebCore::AccessibilityNodeObject::determineAccessibilityRole):
2992         (WebCore::AccessibilityNodeObject::isNativeTextControl):
2993         (WebCore::AccessibilityNodeObject::isReadOnly):
2994         (WebCore::AccessibilityNodeObject::text):
2995         * accessibility/AccessibilityRenderObject.cpp:
2996         (WebCore::AccessibilityRenderObject::setValue):
2997         * css/StyleResolver.cpp:
2998         (WebCore::StyleResolver::adjustRenderStyle):
2999         * editing/markup.cpp:
3000         (WebCore::StyledMarkupAccumulator::appendText):
3001         * html/HTMLFormControlElement.cpp:
3002         (WebCore::shouldAutofocus):
3003         * html/HTMLTextAreaElement.h:
3004         (WebCore::toHTMLTextAreaElement):
3005         * page/FocusController.cpp:
3006         (WebCore::clearSelectionIfNeeded):
3007         * rendering/HitTestResult.cpp:
3008         (WebCore::HitTestResult::isContentEditable):
3009         * rendering/RenderBox.cpp:
3010         (WebCore::RenderBox::sizesLogicalWidthToFitContent):
3011         * rendering/RenderTextControlMultiLine.cpp:
3012         (WebCore::RenderTextControlMultiLine::~RenderTextControlMultiLine):
3013         (WebCore::RenderTextControlMultiLine::preferredContentLogicalWidth):
3014         (WebCore::RenderTextControlMultiLine::computeControlLogicalHeight):
3015         * testing/Internals.cpp:
3016         (WebCore::Internals::wasLastChangeUserEdit):
3017
3018 2013-07-01  Kwang Yul Seo  <skyul@company100.net>
3019
3020         Add missing string headers that are used when LOG_DISABLED is 0.
3021         https://bugs.webkit.org/show_bug.cgi?id=118227
3022
3023         Reviewed by Andreas Kling.
3024
3025         Build fix for LOG_DISABLED=0.
3026
3027         No new tests, no behavior change.
3028
3029         * html/track/InbandTextTrack.cpp:
3030         * rendering/RenderLayerCompositor.cpp:
3031
3032 2013-06-29  Simon Fraser  <simon.fraser@apple.com>
3033
3034         Avoid calling into Objective-C every time we get the scrollbar width
3035         https://bugs.webkit.org/show_bug.cgi?id=118216
3036
3037         Reviewed by Geoffrey Garen.
3038
3039         Profiling shows that calling Scrollbar::isOverlayScrollbar() is somewhat
3040         expensive, because it calls down into Objective-C. Fix by caching in
3041         ScrollbarThemeMac whether we're using overlay scrollbars. We update this
3042         cache on creation, and when preferences change; ScrollAnimatorMac::updateScrollerStyle()
3043         is the function that gets called when the user changes the setting in System Preferences.
3044
3045         * platform/ScrollbarTheme.h:
3046         (WebCore::ScrollbarTheme::usesOverlayScrollbarsChanged):
3047         * platform/mac/ScrollAnimatorMac.mm:
3048         (WebCore::ScrollAnimatorMac::updateScrollerStyle):
3049         * platform/mac/ScrollbarThemeMac.h:
3050         * platform/mac/ScrollbarThemeMac.mm:
3051         (WebCore::ScrollbarThemeMac::preferencesChanged):
3052         (WebCore::ScrollbarThemeMac::usesOverlayScrollbars):
3053         (WebCore::ScrollbarThemeMac::usesOverlayScrollbarsChanged):
3054
3055 2013-06-29  Simon Fraser  <simon.fraser@apple.com>
3056
3057         Avoid calling isSimpleContainerCompositingLayer() an extra time
3058         https://bugs.webkit.org/show_bug.cgi?id=118218
3059
3060         Reviewed by Tim Horton.
3061
3062         containsPaintedContent() called isSimpleContainerCompositingLayer(), which
3063         is not particularly cheap. But the caller already has this information,
3064         so pass it in.
3065
3066         * rendering/RenderLayerBacking.cpp:
3067         (WebCore::RenderLayerBacking::updateDrawsContent):
3068         (WebCore::RenderLayerBacking::containsPaintedContent):
3069         * rendering/RenderLayerBacking.h:
3070
3071 2013-06-29  Simon Fraser  <simon.fraser@apple.com>
3072
3073         Avoid doing work in RenderBox::outlineBoundsForRepaint() when the repaintContainer is this
3074         https://bugs.webkit.org/show_bug.cgi?id=118215
3075
3076         Reviewed by Tim Horton.
3077
3078         When the RenderGeometryMap code path was added, RenderBox::outlineBoundsForRepaint()
3079         actually got slower if no coordinate mapping was needed. So avoid doing work when
3080         we can, including avoiding the FloatQuad construction.
3081
3082         Speeds up scrolling overflow:scroll areas with large numbers of layer children.
3083
3084         * rendering/RenderBox.cpp:
3085         (WebCore::RenderBox::outlineBoundsForRepaint):
3086
3087 2013-06-29  Kangil Han  <kangil.han@samsung.com>
3088
3089         Adopt is/toHTMLOptGroupElement for code cleanup
3090         https://bugs.webkit.org/show_bug.cgi?id=118213
3091
3092         Reviewed by Andreas Kling.
3093
3094         To enhance readability, this patch adopts is/toHTMLOptGroupElement.
3095         This also helps out to reduce duplicated use of static_cast.
3096
3097         * accessibility/AccessibilityListBoxOption.cpp:
3098         (WebCore::AccessibilityListBoxOption::isEnabled):
3099         (WebCore::AccessibilityListBoxOption::stringValue):
3100         (WebCore::AccessibilityListBoxOption::listBoxOptionParentNode):
3101         * css/SelectorChecker.cpp:
3102         (WebCore::SelectorChecker::checkOne):
3103         * css/StyleResolver.cpp:
3104         (WebCore::StyleResolver::canShareStyleWithElement):
3105         * html/HTMLOptGroupElement.h:
3106         (WebCore::isHTMLOptGroupElement):
3107         (WebCore::toHTMLOptGroupElement):
3108         * html/HTMLOptionElement.cpp:
3109         (WebCore::HTMLOptionElement::textIndentedToRespectGroupLabel):
3110         (WebCore::HTMLOptionElement::isDisabledFormControl):
3111         * html/HTMLSelectElement.cpp:
3112         (WebCore::HTMLSelectElement::childShouldCreateRenderer):
3113         (WebCore::HTMLSelectElement::recalcListItems):
3114         * html/parser/HTMLConstructionSite.cpp:
3115         (WebCore::hasImpliedEndTag):
3116         * html/parser/HTMLElementStack.cpp:
3117         (WebCore::HTMLNames::isSelectScopeMarker):
3118         * html/parser/HTMLTreeBuilder.cpp:
3119         (WebCore::HTMLTreeBuilder::processStartTag):
3120         (WebCore::HTMLTreeBuilder::processEndTag):
3121         * rendering/RenderListBox.cpp:
3122         (WebCore::RenderListBox::updateFromElement):
3123         (WebCore::RenderListBox::paintItemForeground):
3124         * rendering/RenderMenuList.cpp:
3125         (WebCore::RenderMenuList::itemText):
3126         (WebCore::RenderMenuList::itemIsEnabled):
3127         (WebCore::RenderMenuList::itemIsLabel):
3128
3129 2013-06-29  ChangSeok Oh  <changseok.oh@collabora.com>
3130
3131         Build fix for unguarded SVGGraphicsElement
3132         https://bugs.webkit.org/show_bug.cgi?id=118214
3133
3134         Reviewed by Christophe Dumez.
3135
3136         Add the SVG condition to SVGGraphicsElement.idl
3137
3138         No new tests required since no functionality changed.
3139
3140         * svg/SVGGraphicsElement.idl:
3141
3142 2013-06-29  Kangil Han  <kangil.han@samsung.com>
3143
3144         Adopt is/toHTMLOptionElement for code cleanup
3145         https://bugs.webkit.org/show_bug.cgi?id=118212
3146
3147         Reviewed by Andreas Kling.
3148
3149         To enhance readability, this patch adopts is/toHTMLOptionElement.
3150         This also helps out to reduce duplicated use of static_cast.
3151
3152         * accessibility/AccessibilityListBoxOption.cpp:
3153         (WebCore::AccessibilityListBoxOption::isSelected):
3154         (WebCore::AccessibilityListBoxOption::canSetSelectedAttribute):
3155         (WebCore::AccessibilityListBoxOption::stringValue):
3156         (WebCore::AccessibilityListBoxOption::listBoxOptionParentNode):
3157         * accessibility/AccessibilityMenuListOption.cpp:
3158         (WebCore::AccessibilityMenuListOption::setElement):
3159         (WebCore::AccessibilityMenuListOption::isEnabled):
3160         (WebCore::AccessibilityMenuListOption::isSelected):
3161         (WebCore::AccessibilityMenuListOption::setSelected):
3162         (WebCore::AccessibilityMenuListOption::stringValue):
3163         * accessibility/AccessibilityMenuListPopup.cpp:
3164         (WebCore::AccessibilityMenuListPopup::menuListOptionAccessibilityObject):
3165         * accessibility/AccessibilityRenderObject.cpp:
3166         (WebCore::AccessibilityRenderObject::accessibilityHitTest):
3167         * css/SelectorChecker.cpp:
3168         (WebCore::SelectorChecker::checkOne):
3169         * css/StyleResolver.cpp:
3170         (WebCore::StyleResolver::canShareStyleWithElement):
3171         * html/HTMLCollection.cpp:
3172         (WebCore::isMatchingElement):
3173         * html/HTMLOptionElement.cpp:
3174         (WebCore::HTMLOptionElement::index):
3175         * html/HTMLOptionElement.h:
3176         (WebCore::isHTMLOptionElement):
3177         (WebCore::toHTMLOptionElement):
3178         * html/HTMLOptionsCollection.cpp:
3179         (WebCore::HTMLOptionsCollection::add):
3180         * html/HTMLSelectElement.cpp:
3181         (WebCore::HTMLSelectElement::hasPlaceholderLabelOption):
3182         (WebCore::HTMLSelectElement::value):
3183         (WebCore::HTMLSelectElement::setValue):
3184         (WebCore::HTMLSelectElement::childShouldCreateRenderer):
3185         (WebCore::HTMLSelectElement::nextValidIndex):
3186         (WebCore::HTMLSelectElement::saveLastSelection):
3187         (WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex):
3188         (WebCore::HTMLSelectElement::updateListBoxSelection):
3189         (WebCore::HTMLSelectElement::listBoxOnChange):
3190         (WebCore::HTMLSelectElement::recalcListItems):
3191         (WebCore::HTMLSelectElement::selectedIndex):
3192         (WebCore::HTMLSelectElement::selectOption):
3193         (WebCore::HTMLSelectElement::optionToListIndex):
3194         (WebCore::HTMLSelectElement::listToOptionIndex):
3195         (WebCore::HTMLSelectElement::deselectItemsWithoutValidation):
3196         (WebCore::HTMLSelectElement::saveFormControlState):
3197         (WebCore::HTMLSelectElement::searchOptionsForValue):
3198         (WebCore::HTMLSelectElement::restoreFormControlState):
3199         (WebCore::HTMLSelectElement::appendFormData):
3200         (WebCore::HTMLSelectElement::reset):
3201         (WebCore::HTMLSelectElement::updateSelectedState):
3202         (WebCore::HTMLSelectElement::lastSelectedListIndex):
3203         (WebCore::HTMLSelectElement::optionAtIndex):
3204         (WebCore::HTMLSelectElement::accessKeySetSelectedIndex):
3205         (WebCore::HTMLSelectElement::length):
3206         * html/parser/HTMLConstructionSite.cpp:
3207         (WebCore::hasImpliedEndTag):
3208         * html/parser/HTMLElementStack.cpp:
3209         (WebCore::HTMLNames::isSelectScopeMarker):
3210         * html/parser/HTMLTreeBuilder.cpp:
3211         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
3212         (WebCore::HTMLTreeBuilder::processStartTag):
3213         (WebCore::HTMLTreeBuilder::processEndTag):
3214         * rendering/RenderListBox.cpp:
3215         (WebCore::RenderListBox::updateFromElement):
3216         (WebCore::RenderListBox::addFocusRingRects):
3217         (WebCore::RenderListBox::paintItemForeground):
3218         (WebCore::RenderListBox::paintItemBackground):
3219         * rendering/RenderMenuList.cpp:
3220         (WebCore::RenderMenuList::updateOptionsWidth):
3221         (WebCore::RenderMenuList::setTextFromOption):
3222         (WebCore::RenderMenuList::itemText):
3223         (WebCore::RenderMenuList::itemIsEnabled):
3224         (WebCore::RenderMenuList::itemIsSelected):
3225         * rendering/RenderTheme.cpp:
3226         (WebCore::RenderTheme::paintSliderTicks):
3227
3228 2013-06-29  Carlos Garcia Campos  <cgarcia@igalia.com>
3229
3230         REGRESSION(151586): multipart/x-mixed-replace images are broken
3231         https://bugs.webkit.org/show_bug.cgi?id=118169
3232
3233         Reviewed by Alexey Proskuryakov.
3234
3235         When loading multipart content the resource data will change as
3236         the next part is loaded, so we need to make a copy of the data
3237         before sending it to the resource.
3238
3239         * loader/SubresourceLoader.cpp:
3240         (WebCore::SubresourceLoader::didReceiveResponse):
3241
3242 2013-06-28  Eric Carlson  <eric.carlson@apple.com>
3243
3244         [Mac] adopt new AVFoundation caption API
3245         https://bugs.webkit.org/show_bug.cgi?id=118207
3246
3247         Reviewed by Dean Jackson.
3248
3249         No new tests, I was not able to come up with a reliable layout test.
3250
3251         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
3252         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
3253         (WebCore::MediaPlayerPrivateAVFoundationObjC::flushCues): New, call currentTrack->resetCueValues().
3254         (-[WebCoreAVFMovieObserver outputSequenceWasFlushed:]): New delegate method.
3255
3256 2013-06-28  Kangil Han  <kangil.han@samsung.com>
3257
3258         Adopt is/toHTMLImageElement for code cleanup
3259         https://bugs.webkit.org/show_bug.cgi?id=118182
3260
3261         Reviewed by Andreas Kling.
3262
3263         To enhance readability, this patch adopts is/toHTMLImageElement.
3264         This also helps out to reduce duplicated use of static_cast.
3265
3266         * accessibility/AccessibilityNodeObject.cpp:
3267         (WebCore::AccessibilityNodeObject::isNativeImage):
3268         * accessibility/AccessibilityRenderObject.cpp:
3269         (WebCore::AccessibilityRenderObject::url):
3270         * bindings/js/JSNodeCustom.cpp:
3271         (WebCore::isReachableFromDOM):
3272         * bridge/qt/qt_pixmapruntime.cpp:
3273         (JSC::Bindings::assignToHTMLImageElement):
3274         (JSC::Bindings::QtPixmapRuntime::toQt):
3275         * dom/Clipboard.cpp:
3276         (WebCore::Clipboard::setDragImage):
3277         * dom/Node.cpp:
3278         (WebCore::Node::enclosingLinkEventParentOrSelf):
3279         * editing/Editor.cpp:
3280         (WebCore::imageElementFromImageDocument):
3281         * html/HTMLAnchorElement.cpp:
3282         (WebCore::appendServerMapMousePosition):
3283         * html/HTMLImageElement.h:
3284         (WebCore::isHTMLImageElement):
3285         (WebCore::toHTMLImageElement):
3286         * html/HTMLMapElement.cpp:
3287         (WebCore::HTMLMapElement::imageElement):
3288         * html/HTMLNameCollection.cpp:
3289         (WebCore::WindowNameCollection::nodeMatchesIfNameAttributeMatch):
3290         (WebCore::DocumentNameCollection::nodeMatchesIfIdAttributeMatch):
3291         (WebCore::DocumentNameCollection::nodeMatchesIfNameAttributeMatch):
3292         (WebCore::DocumentNameCollection::nodeMatches):
3293         * page/DragController.cpp:
3294         (WebCore::DragController::draggableElement):
3295         * page/PageSerializer.cpp:
3296         (WebCore::PageSerializer::serializeFrame):
3297         * platform/gtk/PasteboardGtk.cpp:
3298         (WebCore::getURLForImageNode):
3299         * platform/mac/HTMLConverter.mm:
3300         (+[WebHTMLConverter editingAttributedStringFromRange:]):
3301         * rendering/HitTestResult.cpp:
3302         (WebCore::HitTestResult::altDisplayString):
3303         (WebCore::HitTestResult::absoluteImageURL):
3304         * rendering/RenderImage.cpp:
3305         (WebCore::RenderImage::paintIntoRect):
3306         (WebCore::RenderImage::imageMap):
3307         (WebCore::RenderImage::updateAltText):
3308         * rendering/RenderObject.cpp:
3309         (WebCore::RenderObject::shouldRespectImageOrientation):
3310
3311 2013-06-28  Gavin Barraclough  <barraclough@apple.com>
3312
3313         PageThrottler::shouldThrottleTimers is wrong.
3314         https://bugs.webkit.org/show_bug.cgi?id=118210
3315
3316         Reviewed by Anders Carlson.
3317
3318         m_throttleState == PageNotThrottledState
3319             -> page NOT throttled, so should NOT throttle timers
3320         m_throttleState != PageNotThrottledState
3321             -> page NOT NOT throttled, so should throttle timers
3322
3323         This needs cleaning up, but for now, 1 character fix.
3324
3325         * page/PageThrottler.h:
3326         (WebCore::PageThrottler::shouldThrottleTimers):
3327             == -> !=
3328
3329 2013-06-28  Ryosuke Niwa  <rniwa@webkit.org>
3330
3331         An element with -webkit-user-select: all should be selected on single click
3332         https://bugs.webkit.org/show_bug.cgi?id=117864
3333
3334         Reviewed by Darin Adler.
3335
3336         Set m_mouseDownMayStartSelect true even when the node cannot start selection
3337         if the node was inside an element with -webkit-user-select: all.
3338
3339         Test: editing/selection/user-select-all-with-single-click.html
3340
3341         * page/EventHandler.cpp:
3342         (WebCore::canMouseDownStartSelect):
3343
3344 2013-06-28  Ryosuke Niwa  <rniwa@webkit.org>
3345
3346         Remove unused attachChildrenLazily method and make attach/detachChildren private
3347         https://bugs.webkit.org/show_bug.cgi?id=118016
3348
3349         Reviewed by Darin Adler.
3350
3351         Merge https://chromium.googlesource.com/chromium/blink/+/009520dc31c9458e0cf71cf212fa5688c4ca68b0
3352
3353         No one should be manually trying to attach or detach all their children so there's
3354         no reason for these methods to be public.
3355
3356         In doing this I realized that attachChildrenLazily is not used and can be removed.
3357
3358         I also realized that we were detaching all our children before the ShadowRoots which
3359         is sad since the InsertionPoints will call detach() on them as well, and then when we
3360         call ContainerNode::detach at the end of Element::detach we'll go detach them again!
3361         This patch makes it so we only go through and detach them twice instead of three times.
3362         In the future we should figure out a way to only do this once.
3363
3364         * dom/ContainerNode.h:
3365         * dom/Element.cpp:
3366         (WebCore::Element::detach):
3367
3368 2013-06-28  Alexey Proskuryakov  <ap@apple.com>
3369
3370         [Mac] Crash when loading is stopped from -didReceiveResponse
3371         https://bugs.webkit.org/show_bug.cgi?id=118209
3372         <rdar://problem/14259249>
3373
3374         Reviewed by Brady Eidson.
3375
3376         Test: TestWebKitAPI/Tests/mac/StopLoadingFromDidReceiveResponse.mm.
3377
3378         * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::didReceiveResponse):
3379         Added yet another check for reachedTerminalState().
3380
3381 2013-06-28  Beth Dakin  <bdakin@apple.com>
3382
3383         Cached pages don't update their backing scale factor when it changes
3384         https://bugs.webkit.org/show_bug.cgi?id=118206
3385         -and-
3386         <rdar://problem/14261627>
3387
3388         Reviewed by Tim Horton.
3389
3390         It is not sufficient to mark pages in the PageCache as needing a full style
3391         recalc. We also need to ensure that the RenderLayerCompositors for the CachesPages
3392         get updated.
3393
3394         Keep track of whether device scale has been updated with
3395         m_needsDeviceScaleChanged. If that has been marked true, then restore() will call
3396         Frame::deviceOrPageScaleFactorChanged().
3397         * history/CachedPage.cpp:
3398         (WebCore::CachedPage::CachedPage):
3399         (WebCore::CachedPage::restore):
3400         * history/CachedPage.h:
3401         (WebCore::CachedPage::markForDeviceScaleChanged):
3402
3403         Propagate markForDeviceScaleChanged() to all of the CachedPages.
3404         * history/PageCache.cpp:
3405         (WebCore::PageCache::markPagesForDeviceScaleChanged):
3406         * history/PageCache.h:
3407
3408         Call PageCache::markPagesForDeviceScaleChanged()
3409         * page/Page.cpp:
3410         (WebCore::Page::setDeviceScaleFactor):
3411
3412 2013-06-28  Alex Christensen  <achristensen@apple.com>
3413
3414         Added template parameters to std::min to fix compile errors in Visual Studio x64.
3415         https://bugs.webkit.org/show_bug.cgi?id=118204
3416
3417         Reviewed by Geoffrey Garen.
3418
3419         * platform/win/PasteboardWin.cpp:
3420         (WebCore::Pasteboard::writeURLToDataObject): Added <unsigned> to std::min.
3421         (WebCore::createGlobalImageFileDescriptor): Added <int> to std::min.
3422
3423 2013-06-28  Alex Christensen  <achristensen@apple.com>
3424
3425         Added WebGL files to Windows build.
3426         https://bugs.webkit.org/show_bug.cgi?id=118200
3427
3428         Reviewed by Brent Fulgham.
3429
3430         * WebCore.vcxproj/WebCore.vcxproj: Added WebGL files, removed unused GraphicsContext3DOpenGLES.cpp.
3431         * WebCore.vcxproj/WebCore.vcxproj.filters: Added WebGL files, removed unused GraphicsContext3DOpenGLES.cpp.
3432         * platform/graphics/cairo/GLContext.cpp: Only include GLContextEGL.h or GLContextGLX.h if they're needed.
3433         * platform/graphics/cg/GraphicsContext3DCG.cpp: Only include GraphicsContext3DNEON.h if it's needed.
3434
3435 2013-06-28  Ryosuke Niwa  <rniwa@webkit.org>
3436
3437         -webkit-line-break: after-white-space sometimes truncates DOM on copy & paste
3438         https://bugs.webkit.org/show_bug.cgi?id=118164
3439
3440         Reviewed by Sam Weinig.
3441
3442         We can't assume that all subsequent ancestors contain exactly one child since they could have been
3443         added in the first if statement matching: currentNode->parentNode() != rootNode && isRemovableBlock(currentNode)
3444
3445         Exit early when we encounter such an ancestor since removing its ancestor (that contains multiple children
3446         some of which aren't in nodesToRemove) can clobber more nodes than we're allowed to remove.
3447
3448         Test: editing/pasteboard/simplfiying-markup-should-not-strip-content.html
3449
3450         * editing/SimplifyMarkupCommand.cpp:
3451         (WebCore::SimplifyMarkupCommand::doApply):
3452         (WebCore::SimplifyMarkupCommand::pruneSubsequentAncestorsToRemove):
3453
3454 2013-06-28  Gwang Yoon Hwang  <ryumiel@company100.net>
3455
3456         Coordinated Graphics: Separate CoordinatedLayerTreeHost into CoordinatedLayerTreeHost and CompositingCoordinator
3457         https://bugs.webkit.org/show_bug.cgi?id=104360
3458
3459         Reviewed by Noam Rosenthal.
3460
3461         The CoordinatedLayerTreeHost has too many responsibilities. It
3462         implements LayerTreeHost, GraphicsLayerClient,
3463         CoordinatedGraphicsLayerClient, CoordinatedImageBacking::Client,
3464         UpdateAtlas::Client, GraphicsLayerFactory and
3465         WebCustomFilterProgramProxyClient.
3466
3467         This refactoring reduces the responsibilities of CoordinatedLayerTreeHost.
3468
3469         This patch introduces a new class called CompositingCoordinator, which
3470         takes the responsibility of managing compositing resources in
3471         WebProcess.
3472
3473         CoordinatedLayerTreeHost is responsible only for the scheduling and
3474         IPC-specific stuff, which are relevant only for WebKit2.
3475
3476         No new tests, covered by existing tests.
3477
3478         * CMakeLists.txt:
3479         * Target.pri:
3480         * platform/graphics/texmap/coordinated/CompositingCoordinator.cpp: Added.
3481         (WebCore::CompositingCoordinator::create):
3482         (WebCore::CompositingCoordinator::~CompositingCoordinator):
3483         (WebCore::CompositingCoordinator::CompositingCoordinator):
3484         (WebCore::CompositingCoordinator::setRootCompositingLayer):
3485         (WebCore::CompositingCoordinator::sizeDidChange):
3486         (WebCore::CompositingCoordinator::flushPendingLayerChanges):
3487         (WebCore::CompositingCoordinator::syncDisplayState):
3488         (WebCore::CompositingCoordinator::nextAnimationServiceTime):
3489         (WebCore::CompositingCoordinator::clearPendingStateChanges):
3490         (WebCore::CompositingCoordinator::initializeRootCompositingLayerIfNeeded):
3491         (WebCore::CompositingCoordinator::createRootLayer):
3492         (WebCore::CompositingCoordinator::syncLayerState):
3493         (WebCore::CompositingCoordinator::createImageBackingIfNeeded):
3494         (WebCore::CompositingCoordinator::createImageBacking):
3495         (WebCore::CompositingCoordinator::updateImageBacking):
3496         (WebCore::CompositingCoordinator::clearImageBackingContents):
3497         (WebCore::CompositingCoordinator::removeImageBacking):
3498         (WebCore::CompositingCoordinator::flushPendingImageBackingChanges):
3499         (WebCore::CompositingCoordinator::notifyAnimationStarted):
3500         (WebCore::CompositingCoordinator::notifyFlushRequired):
3501         (WebCore::CompositingCoordinator::paintContents):
3502         (WebCore::CompositingCoordinator::createGraphicsLayer):
3503         (WebCore::CompositingCoordinator::deviceScaleFactor):
3504         (WebCore::CompositingCoordinator::pageScaleFactor):