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