Remove leftover cruft from scoped stylesheet implementation.
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-02-06  Andreas Kling  <akling@apple.com>
2
3         Remove leftover cruft from scoped stylesheet implementation.
4         <https://webkit.org/b/128139>
5
6         Kill some pointless non-null checks that were left behind by the
7         removed <style scoped> code. Also pruned outdated comments and
8         FIXME's about such scopes.
9
10         Reviewed by Antti Koivisto.
11
12         * css/ElementRuleCollector.cpp:
13         (WebCore::ElementRuleCollector::collectMatchingRules):
14         * css/RuleSet.cpp:
15         (WebCore::RuleSet::addChildRules):
16         (WebCore::RuleSet::addRulesFromSheet):
17         * css/RuleSet.h:
18         * css/StyleResolver.cpp:
19         (WebCore::StyleResolver::checkRegionStyle):
20
21 2014-02-05  Brent Fulgham  <bfulgham@apple.com>
22
23         Wheel events don't latch to inner scrollable elements 
24         https://bugs.webkit.org/show_bug.cgi?id=128225
25
26         Reviewed by Beth Dakin.
27
28         * page/EventHandler.cpp:
29         (WebCore::EventHandler::handleWheelEvent): Identify the case
30         where we have hit the end of a scroll, and treat that as a
31         valid 'handled' case. If the scroll event is just starting,
32         treat end-of-scroll as unhandled so the parent element can
33         handle things.
34         * page/WheelEventDeltaTracker.h:
35         (WebCore::WheelEventDeltaTracker::isFirstWheelEvent): Added.
36
37 2014-02-06  Commit Queue  <commit-queue@webkit.org>
38
39         Unreviewed, rolling out r163542.
40         http://trac.webkit.org/changeset/163542
41         https://bugs.webkit.org/show_bug.cgi?id=128324
42
43         Caused many assertion failures (Requested by ap on #webkit).
44
45         * bindings/js/JSEventListener.cpp:
46         (WebCore::JSEventListener::JSEventListener):
47         * bindings/js/JSEventListener.h:
48         (WebCore::JSEventListener::jsFunction):
49
50 2014-02-06  Frédéric Wang  <fred.wang@free.fr>
51
52         Do not draw multi-characters <mi> in italic.
53         https://bugs.webkit.org/show_bug.cgi?id=44208
54
55         Reviewed by Chris Fleizach.
56
57         This test prevents multi-char <mi> to be drawn in italic and prepare
58         further improvements to MathML token and mfenced elements (bugs 124838
59         and bug 99620).
60
61         Test: mathml/presentation/tokenElements-dynamic.html
62
63         * CMakeLists.txt:
64         * GNUmakefile.list.am:
65         * WebCore.vcxproj/WebCore.vcxproj:
66         * WebCore.vcxproj/WebCore.vcxproj.filters:
67         * WebCore.xcodeproj/project.pbxproj:
68         * css/mathml.css:
69         (mi, mo, mrow, mfenced, mfrac, msub, msup, msubsup, mmultiscripts, mprescripts, none, munder, mover, munderover, msqrt, mroot, merror, mphantom, mstyle, menclose):
70         * mathml/MathMLTextElement.cpp:
71         (WebCore::MathMLTextElement::didAttachRenderers):
72         (WebCore::MathMLTextElement::childrenChanged):
73         (WebCore::MathMLTextElement::createElementRenderer):
74         * rendering/RenderObject.h:
75         (WebCore::RenderObject::isRenderMathMLToken):
76         * rendering/mathml/RenderMathMLToken.cpp: Added.
77         (WebCore::RenderMathMLToken::RenderMathMLToken):
78         (WebCore::RenderMathMLToken::addChild):
79         (WebCore::RenderMathMLToken::createWrapperIfNeeded):
80         (WebCore::RenderMathMLToken::updateTokenContent):
81         (WebCore::RenderMathMLToken::updateStyle):
82         (WebCore::RenderMathMLToken::styleDidChange):
83         (WebCore::RenderMathMLToken::updateFromElement):
84         * rendering/mathml/RenderMathMLToken.h: Added.
85         (WebCore::RenderMathMLToken::element):
86         (WebCore::RenderMathMLToken>):
87
88 2014-02-06  Zoltan Horvath  <zoltan@webkit.org>
89
90         [CSS Shapes] Simplify BasicShapeInset creation
91         https://bugs.webkit.org/show_bug.cgi?id=128314
92
93         Reviewed by David Hyatt.
94
95         Introduce convertToLengthSize helper function in order to simplify and make BasicShapeInset more readable.
96
97         No new tests, no behavior change.
98
99         * css/BasicShapeFunctions.cpp:
100         (WebCore::convertToLengthSize):
101         (WebCore::basicShapeForValue):
102
103 2014-02-06  Anders Carlsson  <andersca@apple.com>
104
105         Try to fix the Windows build.
106
107         * loader/DocumentThreadableLoader.cpp:
108         (WebCore::DocumentThreadableLoader::didReceiveResponse):
109
110 2014-01-29  Sergio Villar Senin  <svillar@igalia.com>
111
112         [CSS Grid Layout] getComputedStyle() is wrong for grid-definition-{columns|rows}
113         https://bugs.webkit.org/show_bug.cgi?id=127033
114
115         Reviewed by Andreas Kling.
116
117         Tests: fast/css-grid-layout/non-grid-columns-rows-get-set-multiple.html
118                fast/css-grid-layout/non-grid-columns-rows-get-set.html
119                fast/css-grid-layout/non-grid-element-repeat-get-set.html
120                fast/css-grid-layout/non-named-grid-line-get-set.html
121
122         According to the specs getComputedStyle() should return the used
123         values instead of the resolved values for compatibility with early
124         implementations. This means that grid-definition-{columns|rows}
125         are now layout dependent as we need to compute the used values for
126         grid track sizes.
127
128         Updated the outcome of existing tests and added a bunch of new
129         ones that check the behavior of the different properties outside
130         grid containers.
131
132         * css/CSSComputedStyleDeclaration.cpp:
133         (WebCore::specifiedValueForGridTrackSize):
134         (WebCore::valueForGridTrackList):
135         (WebCore::isLayoutDependent):
136         (WebCore::ComputedStyleExtractor::propertyValue):
137         * rendering/RenderGrid.cpp:
138         (WebCore::RenderGrid::GridIterator::GridIterator):
139         (WebCore::RenderGrid::computedUsedBreadthOfGridTracks):
140         (WebCore::RenderGrid::computeUsedBreadthOfMinLength):
141         (WebCore::RenderGrid::computeUsedBreadthOfMaxLength):
142         (WebCore::RenderGrid::computeUsedBreadthOfSpecifiedLength):
143         (WebCore::RenderGrid::computeNormalizedFractionBreadth):
144         (WebCore::RenderGrid::gridTrackSize):
145         (WebCore::RenderGrid::minContentForChild):
146         (WebCore::RenderGrid::maxContentForChild):
147         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctions):
148         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctionsForItems):
149         (WebCore::RenderGrid::tracksAreWiderThanMinTrackBreadth):
150         (WebCore::RenderGrid::growGrid):
151         (WebCore::RenderGrid::autoPlacementMajorAxisDirection):
152         (WebCore::RenderGrid::autoPlacementMinorAxisDirection):
153         (WebCore::RenderGrid::layoutGridItems):
154         (WebCore::RenderGrid::resolveGridPositionsFromAutoPlacementPosition):
155         (WebCore::RenderGrid::resolveGridPositionsFromStyle):
156         (WebCore::RenderGrid::gridAreaBreadthForChild):
157         (WebCore::RenderGrid::populateGridPositions):
158         (WebCore::RenderGrid::findChildLogicalPosition):
159         * rendering/RenderGrid.h:
160
161 2014-02-06  Anders Carlsson  <andersca@apple.com>
162
163         Modernize CrossOriginPreflightResultCache
164         https://bugs.webkit.org/show_bug.cgi?id=128309
165
166         Reviewed by Antti Koivisto.
167
168         Use std::chrono::steady_clock instead of currentTime() for determining when
169         cache items expire, Use std::unique_ptr instead of OwnPtr, use NeverDestroyed,
170         get rid of unnecessary container typedefs now that we have auto. Finally,
171         de-indent the entire class declaration.
172
173         * loader/CrossOriginPreflightResultCache.cpp:
174         (WebCore::CrossOriginPreflightResultCache::CrossOriginPreflightResultCache):
175         (WebCore::parseAccessControlMaxAge):
176         (WebCore::CrossOriginPreflightResultCacheItem::parse):
177         (WebCore::CrossOriginPreflightResultCacheItem::allowsRequest):
178         (WebCore::CrossOriginPreflightResultCache::shared):
179         (WebCore::CrossOriginPreflightResultCache::appendEntry):
180         (WebCore::CrossOriginPreflightResultCache::canSkipPreflight):
181         * loader/CrossOriginPreflightResultCache.h:
182         (WebCore::CrossOriginPreflightResultCacheItem::CrossOriginPreflightResultCacheItem):
183         * loader/DocumentThreadableLoader.cpp:
184         (WebCore::DocumentThreadableLoader::didReceiveResponse):
185
186 2014-02-06  Gurpreet Kaur  <k.gurpreet@samsung.com>
187
188         Menclose with no notation attribute does not display anything.
189         https://bugs.webkit.org/show_bug.cgi?id=127889
190
191         Reviewed by Chris Fleizach.
192
193         Menclose with no notation attribute should behave same as menclose with
194         notation attribute with value as longdiv. By default the division
195         symbol should be displayed. For empty and invalid notation attribute
196         nothing should be displayed.
197
198         Tests: mathml/presentation/menclose-notation-default-longdiv.html
199                mathml/presentation/menclose-notation-invalid-empty.html
200
201         * mathml/MathMLMencloseElement.h:
202         * rendering/mathml/RenderMathMLMenclose.cpp:
203         (WebCore::RenderMathMLMenclose::computePreferredLogicalWidths):
204         (WebCore::RenderMathMLMenclose::paint):
205         Added style for menclose with no notation attribute and handled this
206         condition in paint also where for longdiv we are explicitly drawing
207         the division symbol.
208
209 2014-02-05  Mark Hahnenberg  <mhahnenberg@apple.com>
210
211         Heap::writeBarrier shouldn't be static
212         https://bugs.webkit.org/show_bug.cgi?id=127807
213
214         Reviewed by Geoffrey Garen.
215
216         Currently it looks up the Heap in which to fire the write barrier by using 
217         the cell passed to it. Almost every call site already has a reference to the 
218         VM or the Heap itself. It seems wasteful to look it up all over again.
219
220         * bindings/js/JSEventListener.cpp:
221         (WebCore::JSEventListener::JSEventListener):
222         * bindings/js/JSEventListener.h:
223         (WebCore::JSEventListener::jsFunction):
224
225 2014-02-06  Brady Eidson  <beidson@apple.com>
226
227         IDB: storage/indexeddb/mozilla/clear.html fails
228         <rdar://problem/15997155> and https://bugs.webkit.org/show_bug.cgi?id=128282
229
230         Reviewed by David Kilzer.
231
232         Covered by storage/indexeddb/mozilla/clear.html (and probably others)
233
234         Update the value deserializer to take into account whether or not there was an IDBKey:
235         * bindings/js/IDBBindingUtilities.cpp:
236         (WebCore::deserializeIDBValueBuffer):
237         * bindings/js/IDBBindingUtilities.h:
238
239         * Modules/indexeddb/IDBRequest.cpp:
240         (WebCore::IDBRequest::onSuccess): Call the new form of deserializeIDBValueBuffer.
241
242         * Modules/indexeddb/IDBDatabaseBackend.cpp:
243         (WebCore::IDBDatabaseBackend::clearObjectStore): Update logging.
244
245         * Modules/indexeddb/IDBTransaction.cpp:
246         (WebCore::IDBTransaction::setActive): Update logging.
247
248         * Modules/indexeddb/IDBTransactionBackend.cpp:
249         (WebCore::IDBTransactionBackend::commit): Fix ASSERTs to reflect multi-process worlds.
250
251 2014-02-06  Csaba Osztrogonác  <ossy@webkit.org>
252
253         Re-enable simple line layout on non-Mac platforms
254         https://bugs.webkit.org/show_bug.cgi?id=123338
255
256         Reviewed by Anders Carlsson.
257
258         * rendering/SimpleLineLayout.cpp:
259         (WebCore::SimpleLineLayout::canUseFor):
260
261 2014-02-06  Koop Mast <kwm@FreeBSD.org>
262
263         Use system default compiler instead of gcc, as final fall through.
264         https://bugs.webkit.org/show_bug.cgi?id=126773
265
266         Reviewed by Alexey Proskuryakov.
267
268         * dom/make_names.pl:
269
270 2014-02-06  Eric Carlson  <eric.carlson@apple.com>
271
272         No need to enterFullscreen() when already in fullscreen
273         https://bugs.webkit.org/show_bug.cgi?id=128276
274
275         Reviewed by Jer Noble.
276
277         No new tests, this is just cleanup.
278
279         * html/HTMLMediaElement.cpp:
280         (WebCore::HTMLMediaElement::updatePlayState): Don't call enterFullscreen() if already there.
281         (WebCore::HTMLMediaElement::enterFullscreen): Return early if m_isFullscreen is already true.
282
283 2014-02-06  Radu Stavila  <stavila@adobe.com>
284
285         [CSS Regions] Null dereference applying animation with CSS regions
286         https://bugs.webkit.org/show_bug.cgi?id=128218
287
288         Reviewed by Andrei Bucur.
289
290         The first issue (the null dereference) was caused by the checkForZoomChange method
291         not guarding against a null parentStyle parameter, as the checkForGenericFamilyChange 
292         method does, which in the crashing scenario is called just before the faulty
293         checkForZoomChange method.
294         The second issue was an assert which was caused by the fact that detaching is performed
295         in a certain situation if the element has a renderer or if it's inside a named flow.
296         However, when reattaching and asserting the element has no renderer, the 
297         "inside named flow" condition was no longer considered.
298
299         Test: fast/regions/animation-element-in-region-flowed-to-other-thread.html
300
301         * css/StyleResolver.cpp:
302         (WebCore::StyleResolver::checkForZoomChange):
303         * style/StyleResolveTree.cpp:
304         (WebCore::Style::attachChildren):
305
306 2014-02-06  László Langó  <llango.u-szeged@partner.samsung.com>
307
308         Create a HTMLUnknownElement when using createElement('image')
309         https://bugs.webkit.org/show_bug.cgi?id=125896
310
311         Reviewed by Antti Koivisto.
312
313         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/fd8a7b65f3300fb9245db24d5ed240c80b7f76ad
314
315         * html/HTMLTagNames.in:
316
317 2014-02-06  Youenn Fablet  <youennf@gmail.com>
318
319         [XHR] Ensure response return null when error flag is set for blob and arraybuffer
320         https://bugs.webkit.org/show_bug.cgi?id=127050
321
322         Reviewed by Alexey Proskuryakov.
323
324         Added a check in JSXMLHttpRequest::response to ensure response return null when error flag is set for blob and arraybuffer
325         This check also applies to document and json response types (no change in behavior for those types but code path change)
326         Added assertions in the related XMLHttpRequest blob and array buffer getters
327         Minor code clean-up.
328         The test cases check all four response types in case of timeout and abort
329
330         Tests: http/tests/xmlhttprequest/onabort-response-getters.html
331                http/tests/xmlhttprequest/ontimeout-response-getters.html
332
333         * bindings/js/JSXMLHttpRequestCustom.cpp:
334         (WebCore::JSXMLHttpRequest::response):
335         * xml/XMLHttpRequest.cpp:
336         (WebCore::XMLHttpRequest::didCacheResponseJSON):
337         (WebCore::XMLHttpRequest::responseXML):
338         (WebCore::XMLHttpRequest::responseBlob):
339         (WebCore::XMLHttpRequest::responseArrayBuffer):
340
341 2014-02-05  Gavin Barraclough  <barraclough@apple.com>
342
343         Change Page, FocusController to use ViewState
344         https://bugs.webkit.org/show_bug.cgi?id=126533
345
346         Reviewed by Tim Horton.
347
348         These classes currently maintain a set of separate fields to represent the view state;
349         combine these into a single field, and allow WebPage to send the combined update rather
350         than individual changes.
351
352         Maintain existing interface for WebKit1 clients.
353
354         * WebCore.exp.in:
355             - Added WebCore::setViewState, removed WebCore::setIsVisuallyIdle.
356         * page/FocusController.cpp:
357         (WebCore::FocusController::FocusController):
358             - Initialize combined m_viewState.
359         (WebCore::FocusController::setFocused):
360             - Calls setViewState.
361         (WebCore::FocusController::setFocusedInternal):
362             - setFocused -> setFocusedInternal.
363         (WebCore::FocusController::setViewState):
364             - Added, update all ViewState flags.
365         (WebCore::FocusController::setActive):
366             - Calls setViewState.
367         (WebCore::FocusController::setActiveInternal):
368             - setActive -> setActiveInternal.
369         (WebCore::FocusController::setContentIsVisible):
370             - Calls setViewState.
371         (WebCore::FocusController::setContentIsVisibleInternal):
372             - setContentIsVisible -> setContentIsVisibleInternal.
373         * page/FocusController.h:
374         (WebCore::FocusController::isActive):
375         (WebCore::FocusController::isFocused):
376         (WebCore::FocusController::contentIsVisible):
377             - Implemented in terms of ViewState.
378         * page/Page.cpp:
379         (WebCore::Page::Page):
380             - Initialize using PageInitialViewState.
381         (WebCore::Page::setIsInWindow):
382             - Calls setViewState.
383         (WebCore::Page::setIsInWindowInternal):
384             - setIsInWindow -> setIsInWindowInternal.
385         (WebCore::Page::setIsVisuallyIdleInternal):
386             - setIsVisuallyIdle -> setIsVisuallyIdleInternal.
387         (WebCore::Page::setViewState):
388             - Added, update all ViewState flags, including FocusController.
389         (WebCore::Page::setIsVisible):
390             - Calls setViewState.
391         (WebCore::Page::setIsVisibleInternal):
392             - setIsVisible -> setIsVisibleInternal.
393         (WebCore::Page::visibilityState):
394             - m_isVisible -> isVisible()
395         (WebCore::Page::hiddenPageCSSAnimationSuspensionStateChanged):
396             - m_isVisible -> isVisible()
397         * page/Page.h:
398         (WebCore::Page::isVisible):
399         (WebCore::Page::isInWindow):
400             - Implemented in terms of ViewState.
401         (WebCore::Page::scriptedAnimationsSuspended):
402             - Combined member fields into ViewState::Flags.
403
404 2014-02-05  Simon Fraser  <simon.fraser@apple.com>
405
406         Transfer the non-fast-scrollable region to the UI process for iOS
407         https://bugs.webkit.org/show_bug.cgi?id=128293
408
409         Reviewed by Benjamin Poulain.
410
411         Two main changes to support sending the non-fast scrollable region
412         to the UI process for iOS:
413         
414         1. Add ScrollingCoordinator::frameViewNonFastScrollableRegionChanged(),
415         which is called when we've updated the touch event region (this can happen
416         independenly of layout). When called we just scheduled a scrolling tree
417         commit with the new region.
418         
419         2. Avoid thinking that we have a new root node with every remote scrolling
420         transaction. This was a side-effect of reconstructing the scrolling state
421         tree in the UI process, and caused us to try to grab a nonFastScrollableRegion
422         from a node which never had one set.
423
424         * WebCore.exp.in:
425         * page/scrolling/AsyncScrollingCoordinator.cpp:
426         (WebCore::AsyncScrollingCoordinator::frameViewNonFastScrollableRegionChanged):
427         * page/scrolling/AsyncScrollingCoordinator.h:
428         * page/scrolling/ScrollingCoordinator.cpp:
429         (WebCore::ScrollingCoordinator::computeNonFastScrollableRegion):
430         * page/scrolling/ScrollingCoordinator.h:
431         (WebCore::ScrollingCoordinator::frameViewNonFastScrollableRegionChanged):
432         * page/scrolling/ScrollingStateTree.h:
433         (WebCore::ScrollingStateTree::setHasNewRootStateNode):
434         * page/scrolling/ScrollingTree.cpp:
435         (WebCore::ScrollingTree::commitNewTreeState):
436         (WebCore::ScrollingTree::isPointInNonFastScrollableRegion):
437         * page/scrolling/ScrollingTree.h:
438
439 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
440
441         [iOS] Synchronize the WKContentView and UIScrollView updates with the tiles being commited
442         https://bugs.webkit.org/show_bug.cgi?id=127886
443
444         Reviewed by Simon Fraser.
445
446         The updates of the views on the UIProcess side was completely disconnected
447         from the tiles updates from the DrawingArea. There is a non-negligible time
448         between the size/scale update and the new tiles coming, which causes
449         visual glitches.
450
451         There are three main cases where the tiles and content would be out of sync
452         with the UIViews:
453         -When loading a new page with different content width of a different viewport.
454         -When a page changes its viewport.
455         -When the viewport-constrainted viewport size changes.
456
457         To fix the issue, WKView is modified to maintain the old state of WKContentView
458         and UIScrollView until the new tiles are available.
459
460         Geometry/scale update are split in two phases:
461         1) A source (the page or the user) changes parameters of the geometry. The WebProcess updates
462            its layout accordingly.
463            At this point, the UIViews are unchanged and are left with the old parameters.
464         2) Eventually, new tiles come and commitLayerTree() is called on the drawing area proxy.
465            At that point, WKContentView and its UIScrollView are updated to match the committed
466            size and scale for the page.
467
468         * WebCore.exp.in:
469         * WebCore.xcodeproj/project.pbxproj:
470         * page/ViewportConfiguration.cpp: Added.
471         (WebCore::constraintsAreAllRelative):
472         (WebCore::ViewportConfiguration::ViewportConfiguration):
473         (WebCore::ViewportConfiguration::setDefaultConfiguration):
474         (WebCore::ViewportConfiguration::setContentsSize):
475         (WebCore::ViewportConfiguration::setMinimumLayoutSize):
476         (WebCore::ViewportConfiguration::setViewportArguments):
477         (WebCore::ViewportConfiguration::layoutSize):
478         (WebCore::ViewportConfiguration::initialScale):
479         (WebCore::ViewportConfiguration::minimumScale):
480         (WebCore::ViewportConfiguration::maximumScale):
481         (WebCore::ViewportConfiguration::allowsUserScaling):
482         (WebCore::viewportArgumentValueIsValid):
483         (WebCore::applyViewportArgument):
484         (WebCore::ViewportConfiguration::updateConfiguration):
485         (WebCore::ViewportConfiguration::layoutWidth):
486         (WebCore::ViewportConfiguration::layoutHeight):
487         * page/ViewportConfiguration.h: Added.
488         (WebCore::ViewportConfigurationConfiguration::ViewportConfigurationConfiguration):
489         (WebCore::ViewportConfiguration::defaultConfiguration):
490         (WebCore::ViewportConfiguration::contentsSize):
491         (WebCore::ViewportConfiguration::minimumLayoutSize):
492         (WebCore::ViewportConfiguration::viewportArguments):
493
494 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
495
496         SelectorCodeGenerator::generateElementHasTagName should match the local name before the namespace
497         https://bugs.webkit.org/show_bug.cgi?id=128167
498
499         Reviewed by Sam Weinig.
500
501         The local name is a stricter filter than the namespace, it should always run first.
502
503         * cssjit/SelectorCompiler.cpp:
504         (WebCore::SelectorCompiler::SelectorCodeGenerator::generateElementHasTagName):
505
506 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
507
508         Add HTMLNames::classAttr as a regular name in SVGElement::isAnimatableAttribute
509         https://bugs.webkit.org/show_bug.cgi?id=128166
510
511         Reviewed by Sam Weinig.
512
513         For historical reasons, classAttr was treated separately. There is no reasons for that anymore.
514
515         * svg/SVGElement.cpp:
516         (WebCore::SVGElement::isAnimatableAttribute):
517
518 2014-02-05  Simon Fraser  <simon.fraser@apple.com>
519
520         Support encoding and decoding of Regions
521         https://bugs.webkit.org/show_bug.cgi?id=128284
522
523         Reviewed by Anders Carlsson.
524
525         Region changes to make it encodable:
526         
527         Make Region::Span public and give it a default constructor.
528         Allow getting and setting of Shape internals, and a way to update
529         the Region bounds after changing the shape. Also add a way to test
530         for valid spans and segments.
531
532         * platform/graphics/Region.cpp:
533         (WebCore::Region::Shape::isValid):
534         (WebCore::Region::updateBoundsFromShape):
535         * platform/graphics/Region.h:
536         (WebCore::Region::isValid):
537         (WebCore::Region::Span::Span):
538         (WebCore::Region::shapeSegments):
539         (WebCore::Region::shapeSpans):
540         (WebCore::Region::setShapeSegments):
541         (WebCore::Region::setShapeSpans):
542         (WebCore::Region::Shape::segments):
543         (WebCore::Region::Shape::spans):
544         (WebCore::Region::Shape::setSegments):
545         (WebCore::Region::Shape::setSpans):
546
547 2014-02-05  Andreas Kling  <akling@apple.com>
548
549         Rebaseline the bindings tests after Oliver's hackery.
550
551         * bindings/scripts/test/JS/:
552
553 2014-02-05  Ryuan Choi  <ryuan.choi@samsung.com>
554
555         [EFL][GTK] Share plugin's implementation between EFL and Gtk ports.
556         https://bugs.webkit.org/show_bug.cgi?id=70592
557
558         Reviewed by Gyuyoung Kim.
559
560         Merge common logics of PluginViewGtk.cpp and PluginViewEfl.cpp to PluginViewX11.cpp.
561         So, this patch improves the windowless plugin support for the EFL port.
562
563         * GNUmakefile.am: Add include path for gtk2xtbin.h header file.
564         * GNUmakefile.list.am: Added PluginViewX11.cpp into source lists.
565         * PlatformEfl.cmake: Ditto.
566         * PlatformGTK.cmake: Ditto.
567         * plugins/PluginView.h: Added getRootWindow and getPluginDisply which implement platform specific code.
568         * plugins/efl/PluginViewEfl.cpp:
569         (WebCore::PluginView::getRootWindow):
570         (WebCore::PluginView::platformGetValueStatic): Turn on NPNVSupportsWindowless support.
571         (WebCore::PluginView::getPluginDisplay):
572         (WebCore::PluginView::platformStart):
573         * plugins/gtk/PluginViewGtk.cpp:
574         (WebCore::PluginView::getRootWindow):
575         (WebCore::setXButtonEventSpecificFields):
576         (WebCore::setXMotionEventSpecificFields):
577         (WebCore::setXCrossingEventSpecificFields):
578         (WebCore::PluginView::getPluginDisplay):
579         (WebCore::PluginView::platformStart):
580         * plugins/x11/PluginViewX11.cpp: Moved common logics from PluginViewGtk.cpp
581         (WebCore::PluginView::dispatchNPEvent):
582         (WebCore::PluginView::updatePluginWidget):
583         (WebCore::PluginView::handleFocusInEvent):
584         (WebCore::PluginView::invalidateRect):
585         (WebCore::PluginView::invalidateRegion):
586         (WebCore::PluginView::handleFocusOutEvent):
587         (WebCore::PluginView::initXEvent):
588         (WebCore::PluginView::paint):
589         (WebCore::PluginView::setParent):
590         (WebCore::PluginView::setNPWindowRect):
591         (WebCore::PluginView::setNPWindowIfNeeded):
592
593 2014-02-05  Anders Carlsson  <andersca@apple.com>
594
595         Fix a warning.
596
597         * platform/mac/ContentFilterMac.mm:
598         (WebCore::ContentFilter::ContentFilter):
599         Remove an unnecessary comparison.
600
601 2014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
602
603         Fix the !ENABLE(PAGE_VISIBILITY_API) build
604         https://bugs.webkit.org/show_bug.cgi?id=127907
605
606         Reviewed by Brent Fulgham.
607
608         * page/Page.cpp:
609         (WebCore::Page::setIsVisible):
610
611 2014-02-05  Oliver Hunt  <oliver@apple.com>
612
613         Change custom getter signature to make the base reference an object pointer
614         https://bugs.webkit.org/show_bug.cgi?id=128279
615
616         Reviewed by Geoffrey Garen.
617
618         Update everything to the new calling convention.
619
620         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
621         (WebCore::cssPropertyGetterPixelOrPosPrefixCallback):
622         (WebCore::cssPropertyGetterCallback):
623         * bindings/js/JSDOMBinding.cpp:
624         (WebCore::objectToStringFunctionGetter):
625         * bindings/js/JSDOMBinding.h:
626         * bindings/js/JSDOMMimeTypeArrayCustom.cpp:
627         (WebCore::JSDOMMimeTypeArray::nameGetter):
628         * bindings/js/JSDOMPluginArrayCustom.cpp:
629         (WebCore::JSDOMPluginArray::nameGetter):
630         * bindings/js/JSDOMPluginCustom.cpp:
631         (WebCore::JSDOMPlugin::nameGetter):
632         * bindings/js/JSDOMWindowCustom.cpp:
633         (WebCore::nonCachingStaticFunctionGetter):
634         (WebCore::childFrameGetter):
635         (WebCore::indexGetter):
636         (WebCore::namedItemGetter):
637         * bindings/js/JSHTMLAllCollectionCustom.cpp:
638         (WebCore::JSHTMLAllCollection::nameGetter):
639         * bindings/js/JSHTMLCollectionCustom.cpp:
640         (WebCore::JSHTMLCollection::nameGetter):
641         * bindings/js/JSHTMLDocumentCustom.cpp:
642         (WebCore::JSHTMLDocument::nameGetter):
643         * bindings/js/JSHTMLFormControlsCollectionCustom.cpp:
644         (WebCore::JSHTMLFormControlsCollection::nameGetter):
645         * bindings/js/JSHTMLFormElementCustom.cpp:
646         (WebCore::JSHTMLFormElement::nameGetter):
647         * bindings/js/JSHTMLFrameSetElementCustom.cpp:
648         (WebCore::JSHTMLFrameSetElement::nameGetter):
649         * bindings/js/JSHistoryCustom.cpp:
650         (WebCore::nonCachingStaticBackFunctionGetter):
651         (WebCore::nonCachingStaticForwardFunctionGetter):
652         (WebCore::nonCachingStaticGoFunctionGetter):
653         * bindings/js/JSLocationCustom.cpp:
654         (WebCore::nonCachingStaticReplaceFunctionGetter):
655         (WebCore::nonCachingStaticReloadFunctionGetter):
656         (WebCore::nonCachingStaticAssignFunctionGetter):
657         * bindings/js/JSNamedNodeMapCustom.cpp:
658         (WebCore::JSNamedNodeMap::nameGetter):
659         * bindings/js/JSPluginElementFunctions.cpp:
660         (WebCore::pluginElementPropertyGetter):
661         * bindings/js/JSPluginElementFunctions.h:
662         * bindings/js/JSRTCStatsResponseCustom.cpp:
663         (WebCore::JSRTCStatsResponse::nameGetter):
664         * bindings/js/JSStorageCustom.cpp:
665         (WebCore::JSStorage::nameGetter):
666         * bindings/js/JSStyleSheetListCustom.cpp:
667         (WebCore::JSStyleSheetList::nameGetter):
668         * bindings/scripts/CodeGeneratorJS.pm:
669         (GenerateHeader):
670         (GenerateImplementation):
671         * bridge/runtime_array.cpp:
672         (JSC::RuntimeArray::lengthGetter):
673         (JSC::RuntimeArray::indexGetter):
674         * bridge/runtime_array.h:
675         * bridge/runtime_method.cpp:
676         (JSC::RuntimeMethod::lengthGetter):
677         * bridge/runtime_method.h:
678         * bridge/runtime_object.cpp:
679         (JSC::Bindings::RuntimeObject::fallbackObjectGetter):
680         (JSC::Bindings::RuntimeObject::fieldGetter):
681         (JSC::Bindings::RuntimeObject::methodGetter):
682         * bridge/runtime_object.h:
683
684 2014-02-04  Andy Estes  <aestes@apple.com>
685
686         Buffer incoming data in ContentFilter when using NEFilterSource
687         https://bugs.webkit.org/show_bug.cgi?id=127979
688
689         Reviewed by Sam Weinig.
690
691         WebFilterEvaluator buffers incoming data and returns it to us as
692         replacement data if the load is allowed. NEFilterSource doesn't do
693         this, so we need to do our own buffering.
694
695         * platform/ContentFilter.h: Forward-declared NSMutableData and added
696         m_originalData.
697         * platform/mac/ContentFilterMac.mm:
698         (WebCore::ContentFilter::ContentFilter): Constructed m_originalData
699         with an initial capacity (if we know the expected content size).
700         (WebCore::ContentFilter::addData): Buffered incoming data if we are
701         using NEFilterSource.
702         (WebCore::ContentFilter::finishedAddingData):
703         (WebCore::ContentFilter::getReplacementData): Returned m_originalData
704         if the load wasn't blocked.
705
706 2014-02-05  Andreas Kling  <akling@apple.com>
707
708         Remove ENABLE(DIRECTORY_UPLOAD).
709         <https://webkit.org/b/128275>
710
711         This is a non-standard Chrome extension that none of the WebKit
712         ports have even been building.
713
714         Rubber-stamped by Ryosuke Niwa.
715
716         * Configurations/FeatureDefines.xcconfig:
717         * fileapi/File.cpp:
718         * fileapi/File.h:
719         * fileapi/File.idl:
720         * html/FileInputType.cpp:
721         (WebCore::FileInputType::handleDOMActivateEvent):
722         (WebCore::FileInputType::createFileList):
723         (WebCore::FileInputType::receiveDroppedFiles):
724         * html/FileInputType.h:
725         * html/HTMLAttributeNames.in:
726         * html/HTMLInputElement.cpp:
727         (WebCore::HTMLInputElement::parseAttribute):
728         * html/HTMLInputElement.idl:
729         * loader/EmptyClients.h:
730         * page/Chrome.cpp:
731         * page/Chrome.h:
732         * page/ChromeClient.h:
733         * platform/FileChooser.h:
734         * platform/network/FormData.cpp:
735         (WebCore::FormData::appendKeyValuePairItems):
736
737 2014-02-05  Brady Eidson  <beidson@apple.com>
738
739         IDB: storage/indexeddb/mozilla/autoincrement-indexes.html fails
740         https://bugs.webkit.org/show_bug.cgi?id=128257
741
742         Reviewed by Sam Weinig.
743
744         Tests: storage/indexeddb/mozilla/autoincrement-indexes.html
745
746         Add some IDBKeyData utility methods for WK2 to use:
747         * Modules/indexeddb/IDBKeyData.cpp:
748         (WebCore::IDBKeyData::setArrayValue):
749         (WebCore::IDBKeyData::setStringValue):
750         (WebCore::IDBKeyData::setDateValue):
751         (WebCore::IDBKeyData::setNumberValue):
752         * Modules/indexeddb/IDBKeyData.h:
753
754         * WebCore.exp.in:
755
756 2014-02-05  Andreas Kling  <akling@apple.com>
757
758         Turn on ENABLE(8BIT_TEXTRUN) for everyone.
759         <https://webkit.org/b/128273>
760
761         Reviewed by Anders Carlsson.
762
763         * platform/graphics/TextRun.h:
764         (WebCore::TextRun::TextRun):
765         (WebCore::TextRun::subRun):
766         * rendering/RenderBlock.cpp:
767         (WebCore::RenderBlock::constructTextRun):
768         * rendering/RenderBlock.h:
769
770 2014-02-05  Enrica Casucci  <enrica@apple.com>
771
772         WK2: Caret, selections and autocorrection bubbles are incorrectly positioned when inside an iframe.
773         https://bugs.webkit.org/show_bug.cgi?id=128264
774         <rdar://problem/15986954>
775
776         Reviewed by Simon Fraser.
777
778         Adding new exported function.
779
780         * WebCore.exp.in:
781
782 2014-02-05  Antti Koivisto  <antti@apple.com>
783
784         ElementRuleCollector should not use StyleResolver::State
785         https://bugs.webkit.org/show_bug.cgi?id=128247
786
787         Reviewed by Andreas Kling.
788         
789         Make ElementRuleCollector more reusable.
790
791         * css/ElementRuleCollector.cpp:
792         (WebCore::ElementRuleCollector::collectMatchingRules):
793         (WebCore::ElementRuleCollector::sortAndTransferMatchedRules):
794         (WebCore::ElementRuleCollector::matchAuthorRules):
795         (WebCore::ElementRuleCollector::matchUARules):
796         (WebCore::ElementRuleCollector::ruleMatches):
797         (WebCore::ElementRuleCollector::collectMatchingRulesForList):
798         (WebCore::ElementRuleCollector::matchAllRules):
799         * css/ElementRuleCollector.h:
800         (WebCore::ElementRuleCollector::ElementRuleCollector):
801         
802             Pass the objects that are actually needed rather than the entire State.
803
804 2014-02-05  Brent Fulgham  <bfulgham@apple.com>
805
806         [Mac] Correct copy/paste error in scrolling code.
807         https://bugs.webkit.org/show_bug.cgi?id=128258
808
809         Reviewed by Anders Carlsson.
810
811         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
812         (WebCore::ScrollingTreeScrollingNodeMac::pinnedInDirection): Use
813         'setWidth' when dealing with width metrics.
814
815 2014-02-05  Yuki Sekiguchi  <yuki.sekiguchi@access-company.com>
816
817         Ruby base oddly justify its text when the text is ideograph and it contains <br> on Mac.
818         https://bugs.webkit.org/show_bug.cgi?id=106417
819
820         Reviewed by David Hyatt.
821
822         Ruby base always justify even if a line have hard break.
823         Even if next leaf child is line break, InlineTextBox allow trailing expansion.
824         This make <br> expanded, and there is odd space at the end of the line.
825
826         Test: fast/text/ruby-justification-br.html
827
828         * rendering/InlineTextBox.h:
829         (WebCore::InlineTextBox::expansionBehavior):
830          - If next leaf child is line break, we should forbid trailing expansion.
831
832 2014-02-05  Andreas Kling  <akling@apple.com>
833
834         FrameLoader::stateMachine() should return a reference.
835         <https://webkit.org/b/128263>
836
837         There is always a FrameLoaderStateMatchine, so return it by
838         reference since it can never be null.
839
840         Reviewed by Anders Carlsson.
841
842         * history/PageCache.cpp:
843         (WebCore::logCanCachePageDecision):
844         * loader/DocumentLoader.cpp:
845         (WebCore::DocumentLoader::finishedLoading):
846         (WebCore::DocumentLoader::commitData):
847         (WebCore::DocumentLoader::maybeLoadEmpty):
848         * loader/DocumentWriter.cpp:
849         (WebCore::DocumentWriter::createDocument):
850         (WebCore::DocumentWriter::begin):
851         * loader/FrameLoader.cpp:
852         (WebCore::FrameLoader::prepareForHistoryNavigation):
853         * loader/FrameLoader.h:
854         (WebCore::FrameLoader::stateMachine):
855         * loader/HistoryController.cpp:
856         (WebCore::HistoryController::restoreScrollPositionAndViewState):
857         (WebCore::HistoryController::saveDocumentState):
858         * loader/NavigationScheduler.cpp:
859         (WebCore::NavigationScheduler::scheduleLocationChange):
860         (WebCore::NavigationScheduler::scheduleFormSubmission):
861         * loader/ProgressTracker.cpp:
862         (WebCore::ProgressTracker::incrementProgress):
863         * loader/cache/CachedResourceLoader.cpp:
864         (WebCore::CachedResourceLoader::storeResourceTimingInitiatorInformation):
865         * page/Frame.cpp:
866         (WebCore::Frame::injectUserScripts):
867         * page/FrameView.cpp:
868         (WebCore::FrameView::qualifiesAsVisuallyNonEmpty):
869
870 2014-02-04  Myles C. Maxfield  <mmaxfield@apple.com>
871
872         Move characterAt index checks from InlineIterator to RenderText
873         https://bugs.webkit.org/show_bug.cgi?id=128224
874
875         Reviewed by Simon Fraser.
876
877         Move characterAt index checks from InlineIterator to RenderText
878         so that all RenderText calls are covered. Few safe instances are
879         now covered with uncheckedCharacterAt.
880
881         Merged from Blink:
882         http://src.chromium.org/viewvc/blink?view=revision&revision=150830
883
884         Test: fast/text/character-at-crash.html
885
886         * rendering/InlineIterator.h:
887         (WebCore::InlineIterator::characterAt):
888         * rendering/RenderText.cpp:
889         (WebCore::RenderText::computePreferredLogicalWidths):
890         * rendering/RenderText.h:
891         (WebCore::RenderText::operator[]):
892         (WebCore::RenderText::uncheckedCharacterAt):
893         (WebCore::RenderText::characterAt):
894
895 2014-02-05  Andreas Kling  <akling@apple.com>
896
897         Remove leftover seamless iframe logic from containerForRepaint().
898         <https://webkit.org/b/128235>
899
900         The parent-flow-thread-in-different-document case is no longer
901         relevant after <iframe seamless> was removed.
902
903         Reviewed by David Hyatt.
904
905         * rendering/RenderObject.cpp:
906         (WebCore::RenderObject::containerForRepaint):
907
908 2014-02-05  Hans Muller  <hmuller@adobe.com>
909
910         [CSS Shapes] Dynamically created element with image valued shape-outside doesn't update automatically
911         https://bugs.webkit.org/show_bug.cgi?id=128187
912
913         Reviewed by Dean Jackson.
914
915         Corrected the way shape-outside handles the completion of an image load. Move
916         the shape-outside imageChanged() logic from RenderBlock to RenderBox and call
917         markShapeOutsideDependentsForLayout() instead of parent()->setNeedsLayoutAndPrefWidthsRecalc().
918         The latter did not deal with descendants of the shape element's siblings correctly and it
919         failed when the shape element was inserted dynamically. The markShapeOutsideDependentsForLayout()
920         method can't be called during layout, so the imageChanged() code checks for that. The only
921         scenario where imageChanged() can be called during layout (that I've discovered so far anyway)
922         is when an SVG Image is renderered  with drawImage(). The Shape::createRasterShape() does this,
923         and the corresponding imageChanged() notification can be safely ignored.
924
925         Test: fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html
926
927         * rendering/RenderBlock.cpp:
928         (WebCore::RenderBlock::imageChanged):
929         * rendering/RenderBox.cpp:
930         (WebCore::RenderBox::imageChanged):
931
932 2014-02-05  Andreas Kling  <akling@apple.com>
933
934         CTTE: ImageLoader is always owned by an Element.
935         <https://webkit.org/b/128254>
936
937         - Codify this by making the constructor take Element& or better.
938         - Make element() return Element&.
939         - Marked HTMLImageLoader and SVGImageLoader final.
940         - Made the ImageLoader constructor protected.
941
942         Reviewed by Sam Weinig.
943
944         * html/HTMLEmbedElement.cpp:
945         (WebCore::HTMLEmbedElement::parseAttribute):
946         * html/HTMLImageElement.cpp:
947         (WebCore::HTMLImageElement::HTMLImageElement):
948         * html/HTMLImageLoader.cpp:
949         (WebCore::HTMLImageLoader::HTMLImageLoader):
950         (WebCore::HTMLImageLoader::dispatchLoadEvent):
951         (WebCore::HTMLImageLoader::sourceURI):
952         (WebCore::HTMLImageLoader::notifyFinished):
953         * html/HTMLImageLoader.h:
954         * html/HTMLInputElement.cpp:
955         (WebCore::HTMLInputElement::imageLoader):
956         * html/HTMLObjectElement.cpp:
957         (WebCore::HTMLObjectElement::parseAttribute):
958         * html/HTMLPlugInImageElement.cpp:
959         (WebCore::HTMLPlugInImageElement::startLoadingImage):
960         * html/HTMLVideoElement.cpp:
961         (WebCore::HTMLVideoElement::didAttachRenderers):
962         (WebCore::HTMLVideoElement::parseAttribute):
963         * loader/ImageLoader.cpp:
964         (WebCore::ImageLoader::ImageLoader):
965         (WebCore::ImageLoader::~ImageLoader):
966         (WebCore::ImageLoader::updateFromElement):
967         (WebCore::ImageLoader::notifyFinished):
968         (WebCore::ImageLoader::renderImageResource):
969         (WebCore::ImageLoader::updatedHasPendingEvent):
970         (WebCore::ImageLoader::timerFired):
971         (WebCore::ImageLoader::dispatchPendingBeforeLoadEvent):
972         (WebCore::ImageLoader::dispatchPendingLoadEvent):
973         (WebCore::ImageLoader::dispatchPendingErrorEvent):
974         * loader/ImageLoader.h:
975         (WebCore::ImageLoader::element):
976         * svg/SVGImageElement.cpp:
977         (WebCore::SVGImageElement::SVGImageElement):
978         * svg/SVGImageLoader.cpp:
979         (WebCore::SVGImageLoader::SVGImageLoader):
980         (WebCore::SVGImageLoader::~SVGImageLoader):
981         (WebCore::SVGImageLoader::dispatchLoadEvent):
982         (WebCore::SVGImageLoader::sourceURI):
983         * svg/SVGImageLoader.h:
984
985 2014-02-05  Sergio Correia  <sergio.correia@openbossa.org>
986
987         SVG preserveAspectRatio=none is not honored.
988         https://bugs.webkit.org/show_bug.cgi?id=111402
989
990         Reviewed by Andreas Kling.
991
992         Previously, preserveAspectRatio=none had no effect on SVG images. This change fixes this so
993         we follow the special handling of preserveAspectRatio on images as defined in the spec:
994         http://www.w3.org/TR/SVG/single-page.html, 7.8 The ‘preserveAspectRatio’ attribute.
995
996         Images that depend on a container size (such as SVG images) require a call to
997         setContainerSizeForRenderer(...) to set this size. By passing the image's intrinsic size
998         as the container size, the non-uniform scaling defined in the spec will be achieved.
999
1000         Merged from Blink: https://chromiumcodereview.appspot.com/14964004
1001
1002         Test: svg/custom/image-with-preserveAspectRatio-none.html
1003
1004         * rendering/svg/RenderSVGImage.cpp:
1005         (WebCore::RenderSVGImage::updateImageViewport):
1006
1007 2014-02-05  Zoltan Horvath  <zoltan@webkit.org>
1008
1009         [CSS Shapes] Simplify CSSBasicShapeInset::cssText
1010         https://bugs.webkit.org/show_bug.cgi?id=127841
1011
1012         Reviewed by David Hyatt.
1013
1014         I introduced the updateCornerRadiusWidthAndHeight helper function, which makes the code of cssText method clearer.
1015
1016         No new tests, no behavior change.
1017
1018         * css/CSSBasicShapes.cpp:
1019         (WebCore::updateCornerRadiusWidthAndHeight): Add helper function.
1020         (WebCore::CSSBasicShapeInset::cssText):
1021
1022 2014-02-05  Zoltan Horvath  <zoltan@webkit.org>
1023
1024         [CSS Shapes] Simplify BasicShapeInset::path
1025         https://bugs.webkit.org/show_bug.cgi?id=127920
1026
1027         Reviewed by David Hyatt.
1028
1029         I introduced a new static helper function called floatSizeForLengthSize
1030         in order to simplify BasicShapeInset::path method.
1031
1032         No new tests, no behavior change.
1033
1034         * rendering/style/BasicShapes.cpp:
1035         (WebCore::floatSizeForLengthSize): New helper function.
1036         (WebCore::BasicShapeInset::path):
1037
1038 2014-02-05  Wojciech Bielawski  <w.bielawski@samsung.com>
1039
1040         XMLHttpRequest performs too many copies for ArrayBuffer results
1041         https://bugs.webkit.org/show_bug.cgi?id=117458
1042
1043         Reviewed by Alexey Proskuryakov.
1044
1045         Based on blink change: https://chromium.googlesource.com/chromium/blink/+/bed266aa5a43f7c080c87e527bd35e2b80ecc7b7
1046
1047         Add SharedBuffer::createArrayBuffer() and use it to create XMLHttpRequest's response in ArrayBuffer
1048         This cuts
1049             - two memsets (in ArrayBuffer::create and SharedBuffer::m_buffer::resize)
1050             - one copy (SharedBuffer::m_buffer to ArrayBufferContents::m_data)
1051             - one allocation (SharedBuffer::m_buffer)
1052
1053         No new tests. WebKit desn't provide test mechanism similar to blink's one.
1054
1055         * platform/SharedBuffer.cpp:
1056         (WebCore::SharedBuffer::createArrayBuffer):
1057         * platform/SharedBuffer.h:
1058         * xml/XMLHttpRequest.cpp:
1059         (WebCore::XMLHttpRequest::responseArrayBuffer):
1060
1061 2014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
1062
1063         Remove ENABLE(SVG) guards
1064         https://bugs.webkit.org/show_bug.cgi?id=127991
1065
1066         Reviewed by Sam Weinig.
1067
1068         * CMakeLists.txt:
1069         * Configurations/FeatureDefines.xcconfig:
1070         * DerivedSources.make:
1071         * GNUmakefile.am:
1072         * UseJSC.cmake:
1073         * WebCore.exp.in:
1074         * accessibility/AXObjectCache.cpp:
1075         (WebCore::createFromRenderer):
1076         * accessibility/AccessibilityNodeObject.cpp:
1077         (WebCore::AccessibilityNodeObject::alternativeText):
1078         (WebCore::AccessibilityNodeObject::accessibilityDescription):
1079         * accessibility/AccessibilityRenderObject.cpp:
1080         (WebCore::AccessibilityRenderObject::boundingBoxRect):
1081         (WebCore::AccessibilityRenderObject::supportsPath):
1082         (WebCore::AccessibilityRenderObject::elementPath):
1083         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
1084         (WebCore::AccessibilityRenderObject::remoteSVGRootElement):
1085         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
1086         (-[WebAccessibilityObjectWrapper isSVGGroupElement]):
1087         * bindings/gobject/GNUmakefile.am:
1088         * bindings/js/JSCSSValueCustom.cpp:
1089         (WebCore::toJS):
1090         * bindings/js/JSDocumentCustom.cpp:
1091         (WebCore::toJS):
1092         * bindings/js/JSElementCustom.cpp:
1093         (WebCore::toJSNewlyCreated):
1094         * bindings/js/JSExceptionBase.cpp:
1095         (WebCore::toExceptionBase):
1096         * bindings/js/JSNodeCustom.cpp:
1097         (WebCore::createWrapperInline):
1098         * bindings/js/JSSVGElementInstanceCustom.cpp:
1099         * bindings/js/JSSVGLengthCustom.cpp:
1100         * bindings/js/JSSVGPathSegCustom.cpp:
1101         * css/CSSComputedStyleDeclaration.cpp:
1102         (WebCore::ComputedStyleExtractor::propertyValue):
1103         * css/CSSComputedStyleDeclaration.h:
1104         * css/CSSCursorImageValue.cpp:
1105         (WebCore::resourceReferencedByCursorElement):
1106         (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
1107         (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed):
1108         (WebCore::CSSCursorImageValue::cachedImage):
1109         (WebCore::CSSCursorImageValue::removeReferencedElement):
1110         * css/CSSCursorImageValue.h:
1111         * css/CSSDefaultStyleSheets.cpp:
1112         (WebCore::CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement):
1113         * css/CSSFontSelector.cpp:
1114         * css/CSSParser.cpp:
1115         (WebCore::CSSParser::parseValue):
1116         (WebCore::CSSParser::parseClipPath):
1117         (WebCore::CSSParser::parseShadow):
1118         (WebCore::CSSParser::parseFilter):
1119         (WebCore::CSSParser::realLex):
1120         * css/CSSParser.h:
1121         * css/CSSPrimitiveValueMappings.h:
1122         * css/CSSStyleSheet.cpp:
1123         (WebCore::isAcceptableCSSStyleSheetParent):
1124         * css/CSSValue.cpp:
1125         (WebCore::CSSValue::equals):
1126         (WebCore::CSSValue::cssText):
1127         (WebCore::CSSValue::destroy):
1128         (WebCore::CSSValue::cloneForCSSOM):
1129         * css/CSSValue.h:
1130         (WebCore::CSSValue::isSubtypeExposedToCSSOM):
1131         * css/CSSValueKeywords.in:
1132         * css/DeprecatedStyleBuilder.cpp:
1133         (WebCore::ApplyPropertyDisplay::isValidDisplayValue):
1134         (WebCore::ApplyPropertyClipPath::applyValue):
1135         * css/ElementRuleCollector.cpp:
1136         (WebCore::ElementRuleCollector::matchAllRules):
1137         * css/SVGCSSComputedStyleDeclaration.cpp:
1138         * css/SVGCSSParser.cpp:
1139         * css/SVGCSSPropertyNames.in:
1140         * css/SVGCSSStyleSelector.cpp:
1141         * css/StyleProperties.cpp:
1142         (WebCore::StyleProperties::getPropertyValue):
1143         * css/StylePropertyShorthand.cpp:
1144         (WebCore::markerShorthand):
1145         (WebCore::shorthandForProperty):
1146         (WebCore::matchingShorthandsForLonghand):
1147         * css/StylePropertyShorthand.h:
1148         * css/StyleResolver.cpp:
1149         (WebCore::StyleResolver::State::clear):
1150         (WebCore::StyleResolver::locateCousinList):
1151         (WebCore::StyleResolver::sharingCandidateHasIdenticalStyleAffectingAttributes):
1152         (WebCore::StyleResolver::canShareStyleWithElement):
1153         (WebCore::StyleResolver::locateSharedStyle):
1154         (WebCore::StyleResolver::adjustRenderStyle):
1155         (WebCore::isValidVisitedLinkProperty):
1156         (WebCore::StyleResolver::applyProperty):
1157         (WebCore::StyleResolver::loadPendingSVGDocuments):
1158         (WebCore::StyleResolver::createFilterOperations):
1159         (WebCore::StyleResolver::loadPendingResources):
1160         * css/StyleResolver.h:
1161         * dom/DOMExceptions.in:
1162         * dom/DOMImplementation.cpp:
1163         (WebCore::addString):
1164         (WebCore::isSupportedSVG11Feature):
1165         (WebCore::DOMImplementation::hasFeature):
1166         (WebCore::DOMImplementation::createDocument):
1167         * dom/Document.cpp:
1168         (WebCore::Document::commonTeardown):
1169         (WebCore::Document::createElement):
1170         (WebCore::Document::implicitClose):
1171         (WebCore::Document::hasSVGRootNode):
1172         * dom/Document.h:
1173         * dom/DocumentStyleSheetCollection.cpp:
1174         (WebCore::DocumentStyleSheetCollection::collectActiveStyleSheets):
1175         * dom/Element.cpp:
1176         (WebCore::Element::~Element):
1177         (WebCore::Element::synchronizeAllAttributes):
1178         (WebCore::Element::synchronizeAttribute):
1179         (WebCore::Element::boundsInRootViewSpace):
1180         (WebCore::Element::getBoundingClientRect):
1181         (WebCore::Element::removedFrom):
1182         (WebCore::Element::childShouldCreateRenderer):
1183         (WebCore::Element::fastAttributeLookupAllowed):
1184         (WebCore::Element::clearHasPendingResources):
1185         * dom/Element.h:
1186         * dom/ElementData.h:
1187         * dom/ElementRareData.h:
1188         (WebCore::ElementRareData::ElementRareData):
1189         * dom/EventDispatcher.cpp:
1190         (WebCore::eventTargetRespectingTargetRules):
1191         * dom/EventListenerMap.cpp:
1192         * dom/EventListenerMap.h:
1193         * dom/EventNames.in:
1194         * dom/EventTargetFactory.in:
1195         * dom/QualifiedName.cpp:
1196         * dom/ScriptElement.cpp:
1197         (WebCore::toScriptElementIfPossible):
1198         * dom/Text.cpp:
1199         (WebCore::isSVGText):
1200         (WebCore::Text::createTextRenderer):
1201         * history/CachedFrame.cpp:
1202         (WebCore::CachedFrameBase::restore):
1203         * html/HTMLAnchorElement.cpp:
1204         (WebCore::shouldProhibitLinks):
1205         * html/HTMLEmbedElement.idl:
1206         * html/HTMLFrameElement.idl:
1207         * html/HTMLFrameOwnerElement.cpp:
1208         (WebCore::HTMLFrameOwnerElement::getSVGDocument):
1209         * html/HTMLFrameOwnerElement.h:
1210         * html/HTMLIFrameElement.idl:
1211         * html/HTMLObjectElement.idl:
1212         * html/canvas/DOMPath.h:
1213         (WebCore::DOMPath::create):
1214         * html/canvas/DOMPath.idl:
1215         * html/parser/XSSAuditor.cpp:
1216         (WebCore::isSemicolonSeparatedAttribute):
1217         * inspector/DOMPatchSupport.cpp:
1218         (WebCore::DOMPatchSupport::patchDocument):
1219         * inspector/InspectorCSSAgent.cpp:
1220         (WebCore::InspectorCSSAgent::viaInspectorStyleSheet):
1221         * inspector/InspectorDOMAgent.cpp:
1222         (WebCore::InspectorDOMAgent::setOuterHTML):
1223         * inspector/InspectorOverlay.cpp:
1224         * inspector/InspectorStyleSheet.cpp:
1225         (WebCore::InspectorStyleSheet::inlineStyleSheetText):
1226         * loader/FrameLoader.cpp:
1227         * loader/ImageLoader.cpp:
1228         (WebCore::ImageLoader::renderImageResource):
1229         * loader/cache/CachedImage.cpp:
1230         (WebCore::CachedImage::didRemoveClient):
1231         (WebCore::CachedImage::imageForRenderer):
1232         (WebCore::CachedImage::setContainerSizeForRenderer):
1233         (WebCore::CachedImage::imageSizeForRenderer):
1234         (WebCore::CachedImage::createImage):
1235         * loader/cache/CachedImage.h:
1236         * loader/cache/CachedResource.cpp:
1237         (WebCore::defaultPriorityForResourceType):
1238         * loader/cache/CachedResource.h:
1239         * loader/cache/CachedResourceClient.h:
1240         * loader/cache/CachedResourceLoader.cpp:
1241         (WebCore::createResource):
1242         (WebCore::CachedResourceLoader::requestSVGDocument):
1243         (WebCore::CachedResourceLoader::checkInsecureContent):
1244         (WebCore::CachedResourceLoader::canRequest):
1245         * loader/cache/CachedResourceLoader.h:
1246         * loader/cache/CachedSVGDocument.cpp:
1247         * loader/cache/CachedSVGDocument.h:
1248         * loader/cache/CachedSVGDocumentClient.h:
1249         * loader/cache/CachedSVGDocumentReference.cpp:
1250         * loader/cache/CachedSVGDocumentReference.h:
1251         * page/EventHandler.cpp:
1252         (WebCore::EventHandler::EventHandler):
1253         (WebCore::EventHandler::clear):
1254         (WebCore::EventHandler::handleMousePressEvent):
1255         (WebCore::EventHandler::updateSelectionForMouseDrag):
1256         (WebCore::EventHandler::handleMouseMoveEvent):
1257         (WebCore::EventHandler::handleMouseReleaseEvent):
1258         (WebCore::instanceAssociatedWithShadowTreeElement):
1259         (WebCore::EventHandler::updateMouseEventTargetNode):
1260         * page/EventHandler.h:
1261         * page/Frame.cpp:
1262         (WebCore::Frame::setPageAndTextZoomFactors):
1263         * page/FrameView.cpp:
1264         (WebCore::FrameView::applyOverflowToViewport):
1265         (WebCore::FrameView::forceLayoutParentViewIfNeeded):
1266         (WebCore::FrameView::embeddedContentBox):
1267         (WebCore::FrameView::scrollToAnchor):
1268         * page/animation/CSSPropertyAnimation.cpp:
1269         (WebCore::blendFunc):
1270         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
1271         * platform/MIMETypeRegistry.cpp:
1272         (WebCore::initializeSupportedNonImageMimeTypes):
1273         * platform/graphics/TextRun.cpp:
1274         * platform/graphics/TextRun.h:
1275         (WebCore::TextRun::TextRun):
1276         * platform/graphics/WidthIterator.cpp:
1277         (WebCore::WidthIterator::advanceInternal):
1278         * platform/graphics/filters/FETile.cpp:
1279         (WebCore::FETile::platformApplySoftware):
1280         * platform/graphics/filters/FilterOperation.cpp:
1281         (WebCore::ReferenceFilterOperation::getOrCreateCachedSVGDocumentReference):
1282         * platform/graphics/filters/FilterOperation.h:
1283         * platform/gtk/PasteboardGtk.cpp:
1284         (WebCore::getURLForImageElement):
1285         * rendering/FilterEffectRenderer.cpp:
1286         (WebCore::FilterEffectRenderer::buildReferenceFilter):
1287         * rendering/HitTestLocation.cpp:
1288         * rendering/HitTestResult.cpp:
1289         (WebCore::HitTestResult::absoluteImageURL):
1290         (WebCore::HitTestResult::absoluteLinkURL):
1291         (WebCore::HitTestResult::isLiveLink):
1292         * rendering/InlineBox.h:
1293         * rendering/LogicalSelectionOffsetCaches.h:
1294         (WebCore::isContainingBlockCandidateForAbsolutelyPositionedObject):
1295         * rendering/PaintInfo.h:
1296         (WebCore::PaintInfo::applyTransform):
1297         * rendering/RenderBlockLineLayout.cpp:
1298         (WebCore::RenderBlockFlow::createLineBoxesFromBidiRuns):
1299         * rendering/RenderBoxModelObject.cpp:
1300         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
1301         * rendering/RenderElement.cpp:
1302         (WebCore::RenderElement::addChild):
1303         (WebCore::RenderElement::layerCreationAllowedForSubtree):
1304         (WebCore::RenderElement::styleDidChange):
1305         * rendering/RenderGeometryMap.cpp:
1306         (WebCore::canMapBetweenRenderers):
1307         * rendering/RenderImage.cpp:
1308         (WebCore::RenderImage::embeddedContentBox):
1309         * rendering/RenderLayer.cpp:
1310         (WebCore::RenderLayer::isTransparent):
1311         (WebCore::RenderLayer::setupClipPath):
1312         (WebCore::RenderLayer::calculateClipRects):
1313         * rendering/RenderLayer.h:
1314         * rendering/RenderLayerFilterInfo.cpp:
1315         (WebCore::RenderLayer::FilterInfo::~FilterInfo):
1316         * rendering/RenderLayerFilterInfo.h:
1317         * rendering/RenderNamedFlowThread.cpp:
1318         (WebCore::nextNodeInsideContentElement):
1319         * rendering/RenderObject.cpp:
1320         (WebCore::objectIsRelayoutBoundary):
1321         (WebCore::RenderObject::container):
1322         (WebCore::RenderObject::willBeRemovedFromTree):
1323         * rendering/RenderObject.h:
1324         (WebCore::RenderObject::canContainFixedPositionObjects):
1325         (WebCore::RenderObject::preservesNewline):
1326         * rendering/RenderTreeAsText.cpp:
1327         (WebCore::write):
1328         * rendering/RenderView.cpp:
1329         (WebCore::RenderView::layout):
1330         * rendering/RootInlineBox.cpp:
1331         (WebCore::RootInlineBox::alignBoxesInBlockDirection):
1332         * rendering/SimpleLineLayout.cpp:
1333         (WebCore::SimpleLineLayout::canUseFor):
1334         * rendering/line/BreakingContextInlineHeaders.h:
1335         (WebCore::BreakingContext::initializeForCurrentObject):
1336         (WebCore::BreakingContext::handleText):
1337         * rendering/style/RenderStyle.cpp:
1338         (WebCore::RenderStyle::RenderStyle):
1339         (WebCore::RenderStyle::inheritFrom):
1340         (WebCore::RenderStyle::copyNonInheritedFrom):
1341         (WebCore::RenderStyle::operator==):
1342         (WebCore::RenderStyle::inheritedNotEqual):
1343         (WebCore::RenderStyle::inheritedDataShared):
1344         (WebCore::RenderStyle::diff):
1345         * rendering/style/RenderStyle.h:
1346         * rendering/style/SVGRenderStyle.cpp:
1347         * rendering/style/SVGRenderStyle.h:
1348         * rendering/style/SVGRenderStyleDefs.cpp:
1349         * rendering/style/SVGRenderStyleDefs.h:
1350         * rendering/svg/RenderSVGBlock.cpp:
1351         * rendering/svg/RenderSVGBlock.h:
1352         * rendering/svg/RenderSVGContainer.cpp:
1353         * rendering/svg/RenderSVGContainer.h:
1354         * rendering/svg/RenderSVGEllipse.cpp:
1355         * rendering/svg/RenderSVGEllipse.h:
1356         * rendering/svg/RenderSVGForeignObject.cpp:
1357         * rendering/svg/RenderSVGForeignObject.h:
1358         * rendering/svg/RenderSVGGradientStop.cpp:
1359         * rendering/svg/RenderSVGGradientStop.h:
1360         * rendering/svg/RenderSVGHiddenContainer.cpp:
1361         * rendering/svg/RenderSVGHiddenContainer.h:
1362         * rendering/svg/RenderSVGImage.cpp:
1363         * rendering/svg/RenderSVGImage.h:
1364         * rendering/svg/RenderSVGInline.cpp:
1365         * rendering/svg/RenderSVGInline.h:
1366         * rendering/svg/RenderSVGInlineText.cpp:
1367         * rendering/svg/RenderSVGInlineText.h:
1368         * rendering/svg/RenderSVGModelObject.cpp:
1369         * rendering/svg/RenderSVGModelObject.h:
1370         * rendering/svg/RenderSVGPath.cpp:
1371         * rendering/svg/RenderSVGPath.h:
1372         * rendering/svg/RenderSVGRect.cpp:
1373         * rendering/svg/RenderSVGRect.h:
1374         * rendering/svg/RenderSVGResource.cpp:
1375         * rendering/svg/RenderSVGResource.h:
1376         * rendering/svg/RenderSVGResourceClipper.cpp:
1377         * rendering/svg/RenderSVGResourceClipper.h:
1378         * rendering/svg/RenderSVGResourceContainer.cpp:
1379         * rendering/svg/RenderSVGResourceContainer.h:
1380         * rendering/svg/RenderSVGResourceFilter.cpp:
1381         * rendering/svg/RenderSVGResourceFilter.h:
1382         * rendering/svg/RenderSVGResourceFilterPrimitive.cpp:
1383         * rendering/svg/RenderSVGResourceFilterPrimitive.h:
1384         * rendering/svg/RenderSVGResourceGradient.cpp:
1385         (WebCore::RenderSVGResourceGradient::applyResource):
1386         * rendering/svg/RenderSVGResourceGradient.h:
1387         * rendering/svg/RenderSVGResourceLinearGradient.cpp:
1388         * rendering/svg/RenderSVGResourceLinearGradient.h:
1389         * rendering/svg/RenderSVGResourceMarker.cpp:
1390         * rendering/svg/RenderSVGResourceMarker.h:
1391         * rendering/svg/RenderSVGResourceMasker.cpp:
1392         * rendering/svg/RenderSVGResourceMasker.h:
1393         * rendering/svg/RenderSVGResourcePattern.cpp:
1394         * rendering/svg/RenderSVGResourcePattern.h:
1395         * rendering/svg/RenderSVGResourceRadialGradient.cpp:
1396         * rendering/svg/RenderSVGResourceRadialGradient.h:
1397         * rendering/svg/RenderSVGResourceSolidColor.cpp:
1398         * rendering/svg/RenderSVGResourceSolidColor.h:
1399         * rendering/svg/RenderSVGRoot.cpp:
1400         * rendering/svg/RenderSVGRoot.h:
1401         * rendering/svg/RenderSVGShape.cpp:
1402         * rendering/svg/RenderSVGShape.h:
1403         * rendering/svg/RenderSVGTSpan.h:
1404         * rendering/svg/RenderSVGText.cpp:
1405         * rendering/svg/RenderSVGText.h:
1406         * rendering/svg/RenderSVGTextPath.cpp:
1407         * rendering/svg/RenderSVGTextPath.h:
1408         * rendering/svg/RenderSVGTransformableContainer.cpp:
1409         * rendering/svg/RenderSVGTransformableContainer.h:
1410         * rendering/svg/RenderSVGViewportContainer.cpp:
1411         * rendering/svg/RenderSVGViewportContainer.h:
1412         * rendering/svg/SVGInlineFlowBox.cpp:
1413         * rendering/svg/SVGInlineFlowBox.h:
1414         * rendering/svg/SVGInlineTextBox.cpp:
1415         * rendering/svg/SVGInlineTextBox.h:
1416         * rendering/svg/SVGMarkerData.h:
1417         * rendering/svg/SVGPathData.cpp:
1418         * rendering/svg/SVGPathData.h:
1419         * rendering/svg/SVGRenderSupport.cpp:
1420         * rendering/svg/SVGRenderSupport.h:
1421         * rendering/svg/SVGRenderTreeAsText.cpp:
1422         * rendering/svg/SVGRenderTreeAsText.h:
1423         * rendering/svg/SVGRenderingContext.cpp:
1424         * rendering/svg/SVGRenderingContext.h:
1425         * rendering/svg/SVGResources.cpp:
1426         * rendering/svg/SVGResources.h:
1427         * rendering/svg/SVGResourcesCache.cpp:
1428         * rendering/svg/SVGResourcesCache.h:
1429         * rendering/svg/SVGResourcesCycleSolver.cpp:
1430         * rendering/svg/SVGResourcesCycleSolver.h:
1431         * rendering/svg/SVGRootInlineBox.cpp:
1432         * rendering/svg/SVGRootInlineBox.h:
1433         * rendering/svg/SVGSubpathData.h:
1434         * rendering/svg/SVGTextChunk.cpp:
1435         * rendering/svg/SVGTextChunk.h:
1436         * rendering/svg/SVGTextChunkBuilder.cpp:
1437         * rendering/svg/SVGTextChunkBuilder.h:
1438         * rendering/svg/SVGTextFragment.h:
1439         * rendering/svg/SVGTextLayoutAttributes.cpp:
1440         * rendering/svg/SVGTextLayoutAttributes.h:
1441         * rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
1442         * rendering/svg/SVGTextLayoutAttributesBuilder.h:
1443         * rendering/svg/SVGTextLayoutEngine.cpp:
1444         * rendering/svg/SVGTextLayoutEngine.h:
1445         * rendering/svg/SVGTextLayoutEngineBaseline.cpp:
1446         * rendering/svg/SVGTextLayoutEngineBaseline.h:
1447         * rendering/svg/SVGTextLayoutEngineSpacing.cpp:
1448         * rendering/svg/SVGTextLayoutEngineSpacing.h:
1449         * rendering/svg/SVGTextMetrics.cpp:
1450         * rendering/svg/SVGTextMetrics.h:
1451         * rendering/svg/SVGTextMetricsBuilder.cpp:
1452         * rendering/svg/SVGTextMetricsBuilder.h:
1453         * rendering/svg/SVGTextQuery.cpp:
1454         * rendering/svg/SVGTextQuery.h:
1455         * svg/ColorDistance.cpp:
1456         * svg/ColorDistance.h:
1457         * svg/GradientAttributes.h:
1458         * svg/LinearGradientAttributes.h:
1459         * svg/PatternAttributes.h:
1460         * svg/RadialGradientAttributes.h:
1461         * svg/SVGAElement.cpp:
1462         * svg/SVGAElement.h:
1463         * svg/SVGAElement.idl:
1464         * svg/SVGAltGlyphDefElement.cpp:
1465         * svg/SVGAltGlyphDefElement.h:
1466         * svg/SVGAltGlyphDefElement.idl:
1467         * svg/SVGAltGlyphElement.cpp:
1468         * svg/SVGAltGlyphElement.h:
1469         * svg/SVGAltGlyphElement.idl:
1470         * svg/SVGAltGlyphItemElement.cpp:
1471         * svg/SVGAltGlyphItemElement.h:
1472         * svg/SVGAltGlyphItemElement.idl:
1473         * svg/SVGAngle.cpp:
1474         * svg/SVGAngle.h:
1475         * svg/SVGAngle.idl:
1476         * svg/SVGAnimateColorElement.cpp:
1477         * svg/SVGAnimateColorElement.h:
1478         * svg/SVGAnimateColorElement.idl:
1479         * svg/SVGAnimateElement.cpp:
1480         * svg/SVGAnimateElement.h:
1481         * svg/SVGAnimateElement.idl:
1482         * svg/SVGAnimateMotionElement.cpp:
1483         * svg/SVGAnimateMotionElement.h:
1484         * svg/SVGAnimateMotionElement.idl:
1485         * svg/SVGAnimateTransformElement.cpp:
1486         * svg/SVGAnimateTransformElement.h:
1487         * svg/SVGAnimateTransformElement.idl:
1488         * svg/SVGAnimatedAngle.cpp:
1489         * svg/SVGAnimatedAngle.h:
1490         * svg/SVGAnimatedAngle.idl:
1491         * svg/SVGAnimatedBoolean.cpp:
1492         * svg/SVGAnimatedBoolean.h:
1493         * svg/SVGAnimatedBoolean.idl:
1494         * svg/SVGAnimatedColor.cpp:
1495         * svg/SVGAnimatedColor.h:
1496         * svg/SVGAnimatedEnumeration.cpp:
1497         * svg/SVGAnimatedEnumeration.h:
1498         * svg/SVGAnimatedEnumeration.idl:
1499         * svg/SVGAnimatedInteger.cpp:
1500         * svg/SVGAnimatedInteger.h:
1501         * svg/SVGAnimatedInteger.idl:
1502         * svg/SVGAnimatedIntegerOptionalInteger.cpp:
1503         * svg/SVGAnimatedIntegerOptionalInteger.h:
1504         * svg/SVGAnimatedLength.cpp:
1505         * svg/SVGAnimatedLength.h:
1506         * svg/SVGAnimatedLength.idl:
1507         * svg/SVGAnimatedLengthList.cpp:
1508         * svg/SVGAnimatedLengthList.h:
1509         * svg/SVGAnimatedLengthList.idl:
1510         * svg/SVGAnimatedNumber.cpp:
1511         * svg/SVGAnimatedNumber.h:
1512         * svg/SVGAnimatedNumber.idl:
1513         * svg/SVGAnimatedNumberList.cpp:
1514         * svg/SVGAnimatedNumberList.h:
1515         * svg/SVGAnimatedNumberList.idl:
1516         * svg/SVGAnimatedNumberOptionalNumber.cpp:
1517         * svg/SVGAnimatedNumberOptionalNumber.h:
1518         * svg/SVGAnimatedPath.cpp:
1519         * svg/SVGAnimatedPath.h:
1520         * svg/SVGAnimatedPointList.cpp:
1521         * svg/SVGAnimatedPointList.h:
1522         * svg/SVGAnimatedPreserveAspectRatio.cpp:
1523         * svg/SVGAnimatedPreserveAspectRatio.h:
1524         * svg/SVGAnimatedPreserveAspectRatio.idl:
1525         * svg/SVGAnimatedRect.cpp:
1526         * svg/SVGAnimatedRect.h:
1527         * svg/SVGAnimatedRect.idl:
1528         * svg/SVGAnimatedString.cpp:
1529         * svg/SVGAnimatedString.h:
1530         * svg/SVGAnimatedString.idl:
1531         * svg/SVGAnimatedTransformList.cpp:
1532         * svg/SVGAnimatedTransformList.h:
1533         * svg/SVGAnimatedTransformList.idl:
1534         * svg/SVGAnimatedType.cpp:
1535         * svg/SVGAnimatedType.h:
1536         * svg/SVGAnimatedTypeAnimator.cpp:
1537         * svg/SVGAnimatedTypeAnimator.h:
1538         * svg/SVGAnimationElement.cpp:
1539         * svg/SVGAnimationElement.h:
1540         * svg/SVGAnimationElement.idl:
1541         * svg/SVGAnimatorFactory.h:
1542         * svg/SVGCircleElement.cpp:
1543         * svg/SVGCircleElement.h:
1544         * svg/SVGCircleElement.idl:
1545         * svg/SVGClipPathElement.cpp:
1546         * svg/SVGClipPathElement.h:
1547         * svg/SVGClipPathElement.idl:
1548         * svg/SVGColor.cpp:
1549         * svg/SVGColor.h:
1550         * svg/SVGColor.idl:
1551         * svg/SVGComponentTransferFunctionElement.cpp:
1552         * svg/SVGComponentTransferFunctionElement.h:
1553         * svg/SVGComponentTransferFunctionElement.idl:
1554         * svg/SVGCursorElement.cpp:
1555         * svg/SVGCursorElement.h:
1556         * svg/SVGCursorElement.idl:
1557         * svg/SVGDefsElement.cpp:
1558         * svg/SVGDefsElement.h:
1559         * svg/SVGDefsElement.idl:
1560         * svg/SVGDescElement.cpp:
1561         * svg/SVGDescElement.h:
1562         * svg/SVGDescElement.idl:
1563         * svg/SVGDocument.cpp:
1564         * svg/SVGDocument.h:
1565         * svg/SVGDocument.idl:
1566         * svg/SVGDocumentExtensions.cpp:
1567         * svg/SVGDocumentExtensions.h:
1568         * svg/SVGElement.cpp:
1569         * svg/SVGElement.h:
1570         * svg/SVGElement.idl:
1571         * svg/SVGElementInstance.cpp:
1572         * svg/SVGElementInstance.h:
1573         * svg/SVGElementInstance.idl:
1574         * svg/SVGElementInstanceList.cpp:
1575         * svg/SVGElementInstanceList.h:
1576         * svg/SVGElementInstanceList.idl:
1577         * svg/SVGEllipseElement.cpp:
1578         * svg/SVGEllipseElement.h:
1579         * svg/SVGEllipseElement.idl:
1580         * svg/SVGException.cpp:
1581         * svg/SVGException.h:
1582         * svg/SVGException.idl:
1583         * svg/SVGExternalResourcesRequired.cpp:
1584         * svg/SVGExternalResourcesRequired.h:
1585         * svg/SVGExternalResourcesRequired.idl:
1586         * svg/SVGFEBlendElement.cpp:
1587         * svg/SVGFEBlendElement.h:
1588         * svg/SVGFEBlendElement.idl:
1589         * svg/SVGFEColorMatrixElement.cpp:
1590         * svg/SVGFEColorMatrixElement.h:
1591         * svg/SVGFEColorMatrixElement.idl:
1592         * svg/SVGFEComponentTransferElement.cpp:
1593         * svg/SVGFEComponentTransferElement.h:
1594         * svg/SVGFEComponentTransferElement.idl:
1595         * svg/SVGFECompositeElement.cpp:
1596         * svg/SVGFECompositeElement.h:
1597         * svg/SVGFECompositeElement.idl:
1598         * svg/SVGFEConvolveMatrixElement.cpp:
1599         * svg/SVGFEConvolveMatrixElement.h:
1600         * svg/SVGFEConvolveMatrixElement.idl:
1601         * svg/SVGFEDiffuseLightingElement.cpp:
1602         * svg/SVGFEDiffuseLightingElement.h:
1603         * svg/SVGFEDiffuseLightingElement.idl:
1604         * svg/SVGFEDisplacementMapElement.cpp:
1605         * svg/SVGFEDisplacementMapElement.h:
1606         * svg/SVGFEDisplacementMapElement.idl:
1607         * svg/SVGFEDistantLightElement.cpp:
1608         * svg/SVGFEDistantLightElement.h:
1609         * svg/SVGFEDistantLightElement.idl:
1610         * svg/SVGFEDropShadowElement.cpp:
1611         * svg/SVGFEDropShadowElement.h:
1612         * svg/SVGFEDropShadowElement.idl:
1613         * svg/SVGFEFloodElement.cpp:
1614         * svg/SVGFEFloodElement.h:
1615         * svg/SVGFEFloodElement.idl:
1616         * svg/SVGFEFuncAElement.cpp:
1617         * svg/SVGFEFuncAElement.h:
1618         * svg/SVGFEFuncAElement.idl:
1619         * svg/SVGFEFuncBElement.cpp:
1620         * svg/SVGFEFuncBElement.h:
1621         * svg/SVGFEFuncBElement.idl:
1622         * svg/SVGFEFuncGElement.cpp:
1623         * svg/SVGFEFuncGElement.h:
1624         * svg/SVGFEFuncGElement.idl:
1625         * svg/SVGFEFuncRElement.cpp:
1626         * svg/SVGFEFuncRElement.h:
1627         * svg/SVGFEFuncRElement.idl:
1628         * svg/SVGFEGaussianBlurElement.cpp:
1629         * svg/SVGFEGaussianBlurElement.h:
1630         * svg/SVGFEGaussianBlurElement.idl:
1631         * svg/SVGFEImageElement.cpp:
1632         * svg/SVGFEImageElement.h:
1633         * svg/SVGFEImageElement.idl:
1634         * svg/SVGFELightElement.cpp:
1635         * svg/SVGFELightElement.h:
1636         * svg/SVGFEMergeElement.cpp:
1637         * svg/SVGFEMergeElement.h:
1638         * svg/SVGFEMergeElement.idl:
1639         * svg/SVGFEMergeNodeElement.cpp:
1640         * svg/SVGFEMergeNodeElement.h:
1641         * svg/SVGFEMergeNodeElement.idl:
1642         * svg/SVGFEMorphologyElement.cpp:
1643         * svg/SVGFEMorphologyElement.h:
1644         * svg/SVGFEMorphologyElement.idl:
1645         * svg/SVGFEOffsetElement.cpp:
1646         * svg/SVGFEOffsetElement.h:
1647         * svg/SVGFEOffsetElement.idl:
1648         * svg/SVGFEPointLightElement.cpp:
1649         * svg/SVGFEPointLightElement.h:
1650         * svg/SVGFEPointLightElement.idl:
1651         * svg/SVGFESpecularLightingElement.cpp:
1652         * svg/SVGFESpecularLightingElement.h:
1653         * svg/SVGFESpecularLightingElement.idl:
1654         * svg/SVGFESpotLightElement.cpp:
1655         * svg/SVGFESpotLightElement.h:
1656         * svg/SVGFESpotLightElement.idl:
1657         * svg/SVGFETileElement.cpp:
1658         * svg/SVGFETileElement.h:
1659         * svg/SVGFETileElement.idl:
1660         * svg/SVGFETurbulenceElement.cpp:
1661         * svg/SVGFETurbulenceElement.h:
1662         * svg/SVGFETurbulenceElement.idl:
1663         * svg/SVGFilterElement.cpp:
1664         * svg/SVGFilterElement.h:
1665         * svg/SVGFilterElement.idl:
1666         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
1667         * svg/SVGFilterPrimitiveStandardAttributes.h:
1668         * svg/SVGFilterPrimitiveStandardAttributes.idl:
1669         * svg/SVGFitToViewBox.cpp:
1670         * svg/SVGFitToViewBox.h:
1671         * svg/SVGFitToViewBox.idl:
1672         * svg/SVGFontElement.idl:
1673         * svg/SVGFontFaceElement.idl:
1674         * svg/SVGFontFaceFormatElement.idl:
1675         * svg/SVGFontFaceNameElement.cpp:
1676         * svg/SVGFontFaceNameElement.idl:
1677         * svg/SVGFontFaceSrcElement.idl:
1678         * svg/SVGFontFaceUriElement.idl:
1679         * svg/SVGForeignObjectElement.cpp:
1680         * svg/SVGForeignObjectElement.h:
1681         * svg/SVGForeignObjectElement.idl:
1682         * svg/SVGGElement.cpp:
1683         * svg/SVGGElement.h:
1684         * svg/SVGGElement.idl:
1685         * svg/SVGGlyphElement.idl:
1686         * svg/SVGGlyphRefElement.cpp:
1687         * svg/SVGGlyphRefElement.h:
1688         * svg/SVGGlyphRefElement.idl:
1689         * svg/SVGGradientElement.cpp:
1690         * svg/SVGGradientElement.h:
1691         * svg/SVGGradientElement.idl:
1692         * svg/SVGGraphicsElement.cpp:
1693         * svg/SVGGraphicsElement.h:
1694         * svg/SVGGraphicsElement.idl:
1695         * svg/SVGHKernElement.idl:
1696         * svg/SVGImageElement.cpp:
1697         * svg/SVGImageElement.h:
1698         * svg/SVGImageElement.idl:
1699         * svg/SVGImageLoader.cpp:
1700         * svg/SVGImageLoader.h:
1701         * svg/SVGLangSpace.cpp:
1702         * svg/SVGLangSpace.h:
1703         * svg/SVGLength.cpp:
1704         * svg/SVGLength.h:
1705         * svg/SVGLength.idl:
1706         * svg/SVGLengthContext.cpp:
1707         * svg/SVGLengthContext.h:
1708         * svg/SVGLengthList.cpp:
1709         * svg/SVGLengthList.h:
1710         * svg/SVGLengthList.idl:
1711         * svg/SVGLineElement.cpp:
1712         * svg/SVGLineElement.h:
1713         * svg/SVGLineElement.idl:
1714         * svg/SVGLinearGradientElement.cpp:
1715         * svg/SVGLinearGradientElement.h:
1716         * svg/SVGLinearGradientElement.idl:
1717         * svg/SVGLocatable.cpp:
1718         * svg/SVGLocatable.h:
1719         * svg/SVGMPathElement.cpp:
1720         * svg/SVGMPathElement.h:
1721         * svg/SVGMPathElement.idl:
1722         * svg/SVGMarkerElement.cpp:
1723         * svg/SVGMarkerElement.h:
1724         * svg/SVGMarkerElement.idl:
1725         * svg/SVGMaskElement.cpp:
1726         * svg/SVGMaskElement.h:
1727         * svg/SVGMaskElement.idl:
1728         * svg/SVGMatrix.h:
1729         * svg/SVGMatrix.idl:
1730         * svg/SVGMetadataElement.cpp:
1731         * svg/SVGMetadataElement.h:
1732         * svg/SVGMetadataElement.idl:
1733         * svg/SVGMissingGlyphElement.idl:
1734         * svg/SVGNumber.idl:
1735         * svg/SVGNumberList.cpp:
1736         * svg/SVGNumberList.h:
1737         * svg/SVGNumberList.idl:
1738         * svg/SVGPaint.cpp:
1739         * svg/SVGPaint.h:
1740         * svg/SVGPaint.idl:
1741         * svg/SVGParserUtilities.cpp:
1742         * svg/SVGParserUtilities.h:
1743         * svg/SVGParsingError.h:
1744         * svg/SVGPathBlender.cpp:
1745         * svg/SVGPathBlender.h:
1746         * svg/SVGPathBuilder.cpp:
1747         * svg/SVGPathBuilder.h:
1748         * svg/SVGPathByteStream.h:
1749         * svg/SVGPathByteStreamBuilder.cpp:
1750         * svg/SVGPathByteStreamBuilder.h:
1751         * svg/SVGPathByteStreamSource.cpp:
1752         * svg/SVGPathByteStreamSource.h:
1753         * svg/SVGPathConsumer.h:
1754         * svg/SVGPathElement.cpp:
1755         * svg/SVGPathElement.h:
1756         * svg/SVGPathElement.idl:
1757         * svg/SVGPathParser.cpp:
1758         * svg/SVGPathParser.h:
1759         * svg/SVGPathSeg.h:
1760         * svg/SVGPathSeg.idl:
1761         * svg/SVGPathSegArc.h:
1762         * svg/SVGPathSegArcAbs.h:
1763         * svg/SVGPathSegArcAbs.idl:
1764         * svg/SVGPathSegArcRel.h:
1765         * svg/SVGPathSegArcRel.idl:
1766         * svg/SVGPathSegClosePath.h:
1767         * svg/SVGPathSegClosePath.idl:
1768         * svg/SVGPathSegCurvetoCubic.h:
1769         * svg/SVGPathSegCurvetoCubicAbs.h:
1770         * svg/SVGPathSegCurvetoCubicAbs.idl:
1771         * svg/SVGPathSegCurvetoCubicRel.h:
1772         * svg/SVGPathSegCurvetoCubicRel.idl:
1773         * svg/SVGPathSegCurvetoCubicSmooth.h:
1774         * svg/SVGPathSegCurvetoCubicSmoothAbs.h:
1775         * svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
1776         * svg/SVGPathSegCurvetoCubicSmoothRel.h:
1777         * svg/SVGPathSegCurvetoCubicSmoothRel.idl:
1778         * svg/SVGPathSegCurvetoQuadratic.h:
1779         * svg/SVGPathSegCurvetoQuadraticAbs.h:
1780         * svg/SVGPathSegCurvetoQuadraticAbs.idl:
1781         * svg/SVGPathSegCurvetoQuadraticRel.h:
1782         * svg/SVGPathSegCurvetoQuadraticRel.idl:
1783         * svg/SVGPathSegCurvetoQuadraticSmoothAbs.h:
1784         * svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
1785         * svg/SVGPathSegCurvetoQuadraticSmoothRel.h:
1786         * svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
1787         * svg/SVGPathSegLinetoAbs.h:
1788         * svg/SVGPathSegLinetoAbs.idl:
1789         * svg/SVGPathSegLinetoHorizontal.h:
1790         * svg/SVGPathSegLinetoHorizontalAbs.h:
1791         * svg/SVGPathSegLinetoHorizontalAbs.idl:
1792         * svg/SVGPathSegLinetoHorizontalRel.h:
1793         * svg/SVGPathSegLinetoHorizontalRel.idl:
1794         * svg/SVGPathSegLinetoRel.h:
1795         * svg/SVGPathSegLinetoRel.idl:
1796         * svg/SVGPathSegLinetoVertical.h:
1797         * svg/SVGPathSegLinetoVerticalAbs.h:
1798         * svg/SVGPathSegLinetoVerticalAbs.idl:
1799         * svg/SVGPathSegLinetoVerticalRel.h:
1800         * svg/SVGPathSegLinetoVerticalRel.idl:
1801         * svg/SVGPathSegList.cpp:
1802         * svg/SVGPathSegList.h:
1803         * svg/SVGPathSegList.idl:
1804         * svg/SVGPathSegListBuilder.cpp:
1805         * svg/SVGPathSegListBuilder.h:
1806         * svg/SVGPathSegListSource.cpp:
1807         * svg/SVGPathSegListSource.h:
1808         * svg/SVGPathSegMovetoAbs.h:
1809         * svg/SVGPathSegMovetoAbs.idl:
1810         * svg/SVGPathSegMovetoRel.h:
1811         * svg/SVGPathSegMovetoRel.idl:
1812         * svg/SVGPathSegWithContext.h:
1813         * svg/SVGPathSource.h:
1814         * svg/SVGPathStringBuilder.cpp:
1815         * svg/SVGPathStringBuilder.h:
1816         * svg/SVGPathStringSource.cpp:
1817         * svg/SVGPathStringSource.h:
1818         * svg/SVGPathTraversalStateBuilder.cpp:
1819         * svg/SVGPathTraversalStateBuilder.h:
1820         * svg/SVGPathUtilities.cpp:
1821         * svg/SVGPathUtilities.h:
1822         * svg/SVGPatternElement.cpp:
1823         * svg/SVGPatternElement.h:
1824         * svg/SVGPatternElement.idl:
1825         * svg/SVGPoint.h:
1826         * svg/SVGPoint.idl:
1827         * svg/SVGPointList.cpp:
1828         * svg/SVGPointList.h:
1829         * svg/SVGPointList.idl:
1830         * svg/SVGPolyElement.cpp:
1831         * svg/SVGPolyElement.h:
1832         * svg/SVGPolygonElement.cpp:
1833         * svg/SVGPolygonElement.h:
1834         * svg/SVGPolygonElement.idl:
1835         * svg/SVGPolylineElement.cpp:
1836         * svg/SVGPolylineElement.h:
1837         * svg/SVGPolylineElement.idl:
1838         * svg/SVGPreserveAspectRatio.cpp:
1839         * svg/SVGPreserveAspectRatio.h:
1840         * svg/SVGPreserveAspectRatio.idl:
1841         * svg/SVGRadialGradientElement.cpp:
1842         * svg/SVGRadialGradientElement.h:
1843         * svg/SVGRadialGradientElement.idl:
1844         * svg/SVGRect.h:
1845         * svg/SVGRect.idl:
1846         * svg/SVGRectElement.cpp:
1847         * svg/SVGRectElement.h:
1848         * svg/SVGRectElement.idl:
1849         * svg/SVGRenderingIntent.h:
1850         * svg/SVGRenderingIntent.idl:
1851         * svg/SVGSVGElement.cpp:
1852         * svg/SVGSVGElement.h:
1853         * svg/SVGSVGElement.idl:
1854         * svg/SVGScriptElement.cpp:
1855         * svg/SVGScriptElement.h:
1856         * svg/SVGScriptElement.idl:
1857         * svg/SVGSetElement.cpp:
1858         * svg/SVGSetElement.h:
1859         * svg/SVGSetElement.idl:
1860         * svg/SVGStopElement.cpp:
1861         * svg/SVGStopElement.h:
1862         * svg/SVGStopElement.idl:
1863         * svg/SVGStringList.cpp:
1864         * svg/SVGStringList.h:
1865         * svg/SVGStringList.idl:
1866         * svg/SVGStyleElement.cpp:
1867         * svg/SVGStyleElement.h:
1868         * svg/SVGStyleElement.idl:
1869         * svg/SVGSwitchElement.cpp:
1870         * svg/SVGSwitchElement.h:
1871         * svg/SVGSwitchElement.idl:
1872         * svg/SVGSymbolElement.cpp:
1873         * svg/SVGSymbolElement.h:
1874         * svg/SVGSymbolElement.idl:
1875         * svg/SVGTRefElement.cpp:
1876         * svg/SVGTRefElement.h:
1877         * svg/SVGTRefElement.idl:
1878         * svg/SVGTSpanElement.cpp:
1879         * svg/SVGTSpanElement.h:
1880         * svg/SVGTSpanElement.idl:
1881         * svg/SVGTests.cpp:
1882         * svg/SVGTests.h:
1883         * svg/SVGTests.idl:
1884         * svg/SVGTextContentElement.cpp:
1885         * svg/SVGTextContentElement.h:
1886         * svg/SVGTextContentElement.idl:
1887         * svg/SVGTextElement.cpp:
1888         * svg/SVGTextElement.h:
1889         * svg/SVGTextElement.idl:
1890         * svg/SVGTextPathElement.cpp:
1891         * svg/SVGTextPathElement.h:
1892         * svg/SVGTextPathElement.idl:
1893         * svg/SVGTextPositioningElement.cpp:
1894         * svg/SVGTextPositioningElement.h:
1895         * svg/SVGTextPositioningElement.idl:
1896         * svg/SVGTitleElement.cpp:
1897         * svg/SVGTitleElement.h:
1898         * svg/SVGTitleElement.idl:
1899         * svg/SVGTransform.cpp:
1900         * svg/SVGTransform.h:
1901         * svg/SVGTransform.idl:
1902         * svg/SVGTransformDistance.cpp:
1903         * svg/SVGTransformDistance.h:
1904         * svg/SVGTransformList.cpp:
1905         * svg/SVGTransformList.h:
1906         * svg/SVGTransformList.idl:
1907         * svg/SVGTransformable.cpp:
1908         * svg/SVGTransformable.h:
1909         * svg/SVGURIReference.cpp:
1910         * svg/SVGURIReference.h:
1911         * svg/SVGURIReference.idl:
1912         * svg/SVGUnitTypes.h:
1913         * svg/SVGUnitTypes.idl:
1914         * svg/SVGUnknownElement.h:
1915         * svg/SVGUseElement.cpp:
1916         * svg/SVGUseElement.h:
1917         * svg/SVGUseElement.idl:
1918         * svg/SVGVKernElement.idl:
1919         * svg/SVGViewElement.cpp:
1920         * svg/SVGViewElement.h:
1921         * svg/SVGViewElement.idl:
1922         * svg/SVGViewSpec.cpp:
1923         * svg/SVGViewSpec.h:
1924         * svg/SVGViewSpec.idl:
1925         * svg/SVGZoomAndPan.cpp:
1926         * svg/SVGZoomAndPan.h:
1927         * svg/SVGZoomAndPan.idl:
1928         * svg/SVGZoomEvent.cpp:
1929         * svg/SVGZoomEvent.h:
1930         * svg/SVGZoomEvent.idl:
1931         * svg/animation/SMILTime.cpp:
1932         (WebCore::operator*):
1933         * svg/animation/SMILTime.h:
1934         * svg/animation/SMILTimeContainer.cpp:
1935         * svg/animation/SMILTimeContainer.h:
1936         * svg/animation/SVGSMILElement.cpp:
1937         * svg/animation/SVGSMILElement.h:
1938         * svg/graphics/SVGImage.cpp:
1939         * svg/graphics/SVGImage.h:
1940         * svg/graphics/SVGImageCache.cpp:
1941         * svg/graphics/SVGImageCache.h:
1942         * svg/graphics/SVGImageChromeClient.h:
1943         * svg/graphics/SVGImageForContainer.cpp:
1944         * svg/graphics/SVGImageForContainer.h:
1945         * svg/graphics/filters/SVGFEImage.cpp:
1946         * svg/graphics/filters/SVGFEImage.h:
1947         * svg/graphics/filters/SVGFilter.cpp:
1948         * svg/graphics/filters/SVGFilter.h:
1949         * svg/graphics/filters/SVGFilterBuilder.cpp:
1950         * svg/graphics/filters/SVGFilterBuilder.h:
1951         * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h:
1952         * svg/properties/SVGAnimatedListPropertyTearOff.h:
1953         * svg/properties/SVGAnimatedPathSegListPropertyTearOff.h:
1954         * svg/properties/SVGAnimatedProperty.cpp:
1955         * svg/properties/SVGAnimatedProperty.h:
1956         * svg/properties/SVGAnimatedPropertyDescription.h:
1957         * svg/properties/SVGAnimatedPropertyMacros.h:
1958         * svg/properties/SVGAnimatedPropertyTearOff.h:
1959         * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
1960         * svg/properties/SVGAnimatedTransformListPropertyTearOff.h:
1961         * svg/properties/SVGAttributeToPropertyMap.cpp:
1962         * svg/properties/SVGAttributeToPropertyMap.h:
1963         * svg/properties/SVGListProperty.h:
1964         * svg/properties/SVGListPropertyTearOff.h:
1965         * svg/properties/SVGPathSegListPropertyTearOff.cpp:
1966         * svg/properties/SVGPathSegListPropertyTearOff.h:
1967         * svg/properties/SVGProperty.h:
1968         * svg/properties/SVGPropertyInfo.cpp:
1969         * svg/properties/SVGPropertyInfo.h:
1970         * svg/properties/SVGPropertyTearOff.h:
1971         * svg/properties/SVGPropertyTraits.h:
1972         * svg/properties/SVGStaticListPropertyTearOff.h:
1973         * svg/properties/SVGStaticPropertyTearOff.h:
1974         * svg/properties/SVGStaticPropertyWithParentTearOff.h:
1975         * svg/properties/SVGTransformListPropertyTearOff.h:
1976         * svg/svgattrs.in:
1977         * svg/svgtags.in:
1978         * xml/XMLErrors.cpp:
1979         (WebCore::XMLErrors::insertErrorMessageBlock):
1980         * xml/parser/XMLDocumentParser.cpp:
1981
1982 2014-02-05  Zan Dobersek  <zdobersek@igalia.com>
1983
1984         Manage CalcExpressionNode and derived classes through std::unique_ptr instead of OwnPtr
1985         https://bugs.webkit.org/show_bug.cgi?id=128118
1986
1987         Reviewed by Darin Adler.
1988
1989         Replace uses of OwnPtr for CalcExpressionNode and derived classes with std::unique_ptr.
1990
1991         * css/CSSCalculationValue.cpp:
1992         (WebCore::CSSCalcPrimitiveValue::toCalcValue):
1993         (WebCore::CSSCalcBinaryOperation::toCalcValue):
1994         * css/CSSCalculationValue.h:
1995         * platform/CalculationValue.cpp:
1996         (WebCore::CalculationValue::create):
1997         * platform/CalculationValue.h:
1998         (WebCore::CalculationValue::CalculationValue):
1999         (WebCore::CalcExpressionBinaryOperation::CalcExpressionBinaryOperation):
2000         * platform/Length.cpp:
2001         (WebCore::Length::blendMixedTypes):
2002         * rendering/style/BasicShapes.cpp:
2003         (WebCore::BasicShapeCenterCoordinate::updateComputedLength):
2004
2005 2014-02-05  Zan Dobersek  <zdobersek@igalia.com>
2006
2007         Remove CLASS_IF_GCC workarounds
2008         https://bugs.webkit.org/show_bug.cgi?id=128207
2009
2010         Reviewed by Anders Carlsson.
2011
2012         Remove the CLASS_IF_GCC macro that was defined to 'class' when using the GCC compiler.
2013         The macro was then used in class friendship declarations for templated classes to avoid
2014         corner-case compiler failures on both GCC pre-4.7 and MSVC pre-2013. The problematic
2015         versions of both compilers are no longer supported, so this macro is good to go.
2016
2017         * bindings/generic/RuntimeEnabledFeatures.h:
2018
2019 2014-02-05  Ryuan Choi  <ryuan.choi@samsung.com>
2020
2021         MediaPlayerPrivateGStreamerBase should have virtual destructor
2022         https://bugs.webkit.org/show_bug.cgi?id=128238
2023
2024         Reviewed by Carlos Garcia Campos.
2025
2026         MediaPlayerPrivateGStreamer inherit MediaPlayerPrivateGStreamerBase.
2027         So MediaPlayerPrivateGStreamerBase should have virtual destructor.
2028
2029         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h: Made destructor as virtual.
2030
2031 2014-02-04  Andreas Kling  <akling@apple.com>
2032
2033         Remove <iframe seamless> support.
2034         <https://webkit.org/b/128213>
2035
2036         Seamless iframes were behind a runtime flag that we never enabled,
2037         and the only other engine that implemented them (Blink) recently
2038         removed them. Since the feature is very invasive, let's take it
2039         out for now.
2040
2041         Rubber-stamped by Antti Koivisto.
2042
2043         * Configurations/FeatureDefines.xcconfig:
2044         * accessibility/AccessibilityObject.h:
2045         * accessibility/AccessibilityRenderObject.cpp:
2046         (WebCore::AccessibilityRenderObject::parentObjectIfExists):
2047         (WebCore::AccessibilityRenderObject::parentObject):
2048         (WebCore::AccessibilityRenderObject::boundingBoxRect):
2049         (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
2050         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
2051         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
2052         (createAccessibilityRoleMap):
2053         * bindings/generic/RuntimeEnabledFeatures.cpp:
2054         (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
2055         * bindings/generic/RuntimeEnabledFeatures.h:
2056         * css/CSSComputedStyleDeclaration.cpp:
2057         (WebCore::ComputedStyleExtractor::propertyValue):
2058         * css/CSSSelector.cpp:
2059         (WebCore::CSSSelector::pseudoId):
2060         (WebCore::populatePseudoTypeByNameMap):
2061         (WebCore::CSSSelector::extractPseudoType):
2062         * css/CSSSelector.h:
2063         * css/SelectorChecker.cpp:
2064         (WebCore::SelectorChecker::checkOne):
2065         * css/StyleResolver.cpp:
2066         (WebCore::StyleResolver::adjustRenderStyle):
2067         * css/html.css:
2068         (iframe):
2069         * dom/Document.cpp:
2070         (WebCore::Document::scheduleStyleRecalc):
2071         (WebCore::Document::implicitOpen):
2072         (WebCore::Document::initSecurityContext):
2073         * dom/Document.h:
2074         * dom/DocumentStyleSheetCollection.cpp:
2075         (WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets):
2076         * dom/SecurityContext.cpp:
2077         (WebCore::SecurityContext::SecurityContext):
2078         * dom/SecurityContext.h:
2079         * html/HTMLAttributeNames.in:
2080         * html/HTMLIFrameElement.cpp:
2081         (WebCore::HTMLIFrameElement::HTMLIFrameElement):
2082         (WebCore::HTMLIFrameElement::isPresentationAttribute):
2083         (WebCore::HTMLIFrameElement::parseAttribute):
2084         * html/HTMLIFrameElement.h:
2085         * html/HTMLIFrameElement.idl:
2086         * loader/FrameLoader.cpp:
2087         (WebCore::FrameLoader::findFrameForNavigation):
2088         * page/FrameView.cpp:
2089         (WebCore::FrameView::calculateScrollbarModesForLayout):
2090         (WebCore::FrameView::isInChildFrameWithFrameFlattening):
2091         * page/Location.cpp:
2092         (WebCore::Location::setLocation):
2093         * rendering/RenderBox.h:
2094         (WebCore::RenderBox::stretchesToViewport):
2095         * rendering/RenderIFrame.cpp:
2096         (WebCore::RenderIFrame::shouldComputeSizeAsReplaced):
2097         (WebCore::RenderIFrame::isInlineBlockOrInlineTable):
2098         (WebCore::RenderIFrame::flattenFrame):
2099         (WebCore::RenderIFrame::layout):
2100         * rendering/RenderIFrame.h:
2101         * rendering/RenderView.cpp:
2102         (WebCore::RenderView::initializeLayoutState):
2103         (WebCore::RenderView::layout):
2104         * rendering/RenderView.h:
2105         * style/StyleResolveForDocument.cpp:
2106         (WebCore::Style::resolveForDocument):
2107         * style/StyleResolveTree.cpp:
2108         (WebCore::Style::resolveTree):
2109
2110 2014-02-04  Tim Horton  <timothy_horton@apple.com>
2111
2112         [iOS][wk2] Make development builds of WebKit work on device
2113         https://bugs.webkit.org/show_bug.cgi?id=128230
2114
2115         Reviewed by Anders Carlsson.
2116
2117         * platform/RuntimeApplicationChecksIOS.mm:
2118         (WebCore::applicationIsWebProcess):
2119         Add WebContent.Development as an additional name for the WebContent process.
2120
2121 2014-02-04  Brady Eidson  <beidson@apple.com>
2122
2123         IDB: indexeddb/mozilla/add-twice-failure.html fails
2124         <rdar://problem/15982569> and https://bugs.webkit.org/show_bug.cgi?id=128208
2125
2126         Reviewed by Tim Horton.
2127
2128         Covered specifically by indexeddb/mozilla/add-twice-failure.html and a handful of others.
2129
2130         * Modules/indexeddb/IDBRequest.cpp:
2131         (WebCore::IDBRequest::onError): Improve logging.
2132
2133         * Modules/indexeddb/IDBTransactionBackend.cpp:
2134         (WebCore::IDBTransactionBackend::abort): Improve logging.
2135
2136         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
2137         (WebCore::PutOperation::perform): Don’t abort the transaction when an error occurred.
2138
2139         * WebCore.exp.in:
2140
2141 2014-02-04  Yoav Weiss  <yoav@yoav.ws>
2142
2143         Use srcset's pixel density to determine intrinsic size
2144         https://bugs.webkit.org/show_bug.cgi?id=123832
2145
2146         Reviewed by Dean Jackson.
2147
2148         The patch is a port of a similar Blink patch: https://codereview.chromium.org/25105004
2149         According to the spec "When an img element has a current pixel density that is not 1.0,
2150         the element's image data must be treated as if its resolution, in device pixels per CSS pixels,
2151         was the current pixel density."
2152
2153         I've added that support using the following changes:
2154         - bestFitSourceForImageAttributes now returns the image candidate to HTMLImageElement.
2155         - HTMLImageElement passes the devicePixelRatio data to RenderImage, which stores it.
2156         - Bitmap images are scaled using the devicePixelRatio at RenderImageResource's intrinsicSize() and imageSize().
2157         - SVG images are scaled using the devicePixelRatio at RenderReplaced::computeAspectRatioInformationForRenderBox.
2158         - Canvas support added at CanvasRenderingContext2D::size.
2159
2160         Tests: fast/hidpi/image-srcset-intrinsic-size.html
2161                fast/hidpi/image-srcset-png-canvas.html
2162                fast/hidpi/image-srcset-png.html
2163                fast/hidpi/image-srcset-relative-svg-canvas-2x.html
2164                fast/hidpi/image-srcset-relative-svg.html
2165                fast/hidpi/image-srcset-space-left-nomodifier.html
2166                fast/hidpi/image-srcset-svg-canvas-2x.html
2167                fast/hidpi/image-srcset-svg-canvas.html
2168                fast/hidpi/image-srcset-svg.html
2169                fast/hidpi/image-srcset-svg2.html
2170
2171         * html/HTMLImageElement.cpp:
2172         (WebCore::HTMLImageElement::HTMLImageElement):
2173         (WebCore::HTMLImageElement::parseAttribute):
2174         (WebCore::HTMLImageElement::createRenderer):
2175         * html/HTMLImageElement.h:
2176         * html/canvas/CanvasRenderingContext2D.cpp:
2177         (WebCore::size):
2178         (WebCore::CanvasRenderingContext2D::drawImage):
2179         * html/parser/HTMLParserIdioms.cpp:
2180         (WebCore::compareByScaleFactor):
2181         (WebCore::parseImagesWithScaleFromSrcsetAttribute):
2182         (WebCore::bestFitSourceForImageAttributes):
2183         * html/parser/HTMLParserIdioms.h:
2184         (WebCore::ImageWithScale::ImageWithScale):
2185         (WebCore::ImageWithScale::imageURL):
2186         (WebCore::ImageWithScale::scaleFactor):
2187         * html/parser/HTMLPreloadScanner.cpp:
2188         (WebCore::TokenPreloadScanner::StartTagScanner::processAttributes):
2189         * rendering/RenderImage.cpp:
2190         (WebCore::RenderImage::RenderImage):
2191         * rendering/RenderImage.h:
2192         (WebCore::RenderImage::setImageDevicePixelRatio):
2193         (WebCore::RenderImage::imageDevicePixelRatio):
2194         * rendering/RenderImageResource.cpp:
2195         (WebCore::RenderImageResource::imageSize):
2196         (WebCore::RenderImageResource::intrinsicSize):
2197         (WebCore::RenderImageResource::getImageSize):
2198         * rendering/RenderImageResource.h:
2199         * rendering/RenderReplaced.cpp:
2200         (WebCore::RenderReplaced::computeAspectRatioInformationForRenderBox):
2201
2202 2014-02-04  Geoffrey Garen  <ggaren@apple.com>
2203
2204         Rolled out <http://trac.webkit.org/changeset/163280>:
2205
2206             Push DOM attributes into the prototype chain
2207             ​https://bugs.webkit.org/show_bug.cgi?id=127969
2208
2209         It caused performance regressions, and broken websites on iOS.
2210
2211         Reviewed by Geoffrey Garen.
2212
2213         * bindings/js/JSDOMBinding.h:
2214         (WebCore::getStaticValueSlotEntryWithoutCaching):
2215         * bindings/js/JSStorageCustom.cpp:
2216         (WebCore::JSStorage::nameGetter):
2217         (WebCore::JSStorage::deleteProperty):
2218         (WebCore::JSStorage::putDelegate):
2219         * bindings/scripts/CodeGeneratorJS.pm:
2220         (GenerateGetOwnPropertySlotBody):
2221         (InstanceOverridesGetOwnPropertySlot):
2222         (PrototypeOverridesGetOwnPropertySlot):
2223         (GenerateAttributesHashTable):
2224         (GenerateImplementation):
2225         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
2226         (WebCore::jsTestActiveDOMObjectConstructor):
2227         * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
2228         (WebCore::jsTestCustomNamedGetterConstructor):
2229         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
2230         (WebCore::JSTestEventConstructor::getOwnPropertySlot):
2231         (WebCore::jsTestEventConstructorConstructor):
2232         * bindings/scripts/test/JS/JSTestEventConstructor.h:
2233         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
2234         (WebCore::jsTestEventTargetConstructor):
2235         * bindings/scripts/test/JS/JSTestException.cpp:
2236         (WebCore::jsTestExceptionConstructor):
2237         * bindings/scripts/test/JS/JSTestException.h:
2238         * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
2239         (WebCore::JSTestGenerateIsReachable::getOwnPropertySlot):
2240         (WebCore::jsTestGenerateIsReachableConstructor):
2241         * bindings/scripts/test/JS/JSTestGenerateIsReachable.h:
2242         * bindings/scripts/test/JS/JSTestInterface.cpp:
2243         (WebCore::jsTestInterfaceConstructor):
2244         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
2245         (WebCore::JSTestMediaQueryListListenerPrototype::getOwnPropertySlot):
2246         (WebCore::JSTestMediaQueryListListener::getOwnPropertySlot):
2247         (WebCore::jsTestMediaQueryListListenerConstructor):
2248         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
2249         (WebCore::JSTestNamedConstructor::getOwnPropertySlot):
2250         (WebCore::jsTestNamedConstructorConstructor):
2251         * bindings/scripts/test/JS/JSTestNamedConstructor.h:
2252         * bindings/scripts/test/JS/JSTestNode.cpp:
2253         (WebCore::JSTestNode::getOwnPropertySlot):
2254         (WebCore::jsTestNodeConstructor):
2255         * bindings/scripts/test/JS/JSTestNode.h:
2256         * bindings/scripts/test/JS/JSTestObj.cpp:
2257         (WebCore::jsTestObjConstructor):
2258         * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
2259         (WebCore::JSTestOverloadedConstructors::getOwnPropertySlot):
2260         (WebCore::jsTestOverloadedConstructorsConstructor):
2261         * bindings/scripts/test/JS/JSTestOverloadedConstructors.h:
2262         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
2263         (WebCore::JSTestSerializedScriptValueInterface::getOwnPropertySlot):
2264         (WebCore::jsTestSerializedScriptValueInterfaceConstructor):
2265         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
2266         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
2267         (WebCore::JSTestTypedefsPrototype::getOwnPropertySlot):
2268         (WebCore::jsTestTypedefsConstructor):
2269         * bindings/scripts/test/JS/JSattribute.cpp:
2270         (WebCore::JSattribute::getOwnPropertySlot):
2271         (WebCore::jsattributeConstructor):
2272         * bindings/scripts/test/JS/JSattribute.h:
2273         * bindings/scripts/test/JS/JSreadonly.cpp:
2274         (WebCore::JSreadonly::getOwnPropertySlot):
2275         (WebCore::jsreadonlyConstructor):
2276         * bindings/scripts/test/JS/JSreadonly.h:
2277
2278 2014-02-04  Alexey Proskuryakov  <ap@apple.com>
2279
2280         WebCrypto HMAC verification uses a non-constant-time memcmp
2281         https://bugs.webkit.org/show_bug.cgi?id=128198
2282         <rdar://problem/15976961>
2283
2284         Reviewed by Oliver Hunt.
2285
2286         * crypto/mac/CryptoAlgorithmHMACMac.cpp: (WebCore::CryptoAlgorithmHMAC::platformVerify):
2287         Use a constant time memcmp.
2288
2289 2014-02-04  Simon Fraser  <simon.fraser@apple.com>
2290
2291         Add WK2 event handling path for iOS, and make Mac and iOS code more similar
2292         https://bugs.webkit.org/show_bug.cgi?id=128199
2293
2294         Reviewed by Sam Weinig.
2295
2296         EventHandlerIOS need some changes for WebKit2, where we have no native
2297         widget. Merge those changes from EventHandlerMac.
2298         
2299         Make a few drive-by changes to match EventHandlerMac behavior.
2300         
2301         Clean up EventHandlerMac, removing trailing whitespace and fixing
2302         the odd comment.
2303
2304         * page/ios/EventHandlerIOS.mm:
2305         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
2306         (WebCore::EventHandler::passMouseDownEventToWidget):
2307         (WebCore::EventHandler::passSubframeEventToSubframe):
2308         (WebCore::EventHandler::passWheelEventToWidget):
2309         (WebCore::EventHandler::mouseDown):
2310         (WebCore::EventHandler::mouseMoved):
2311         (WebCore::frameHasPlatformWidget):
2312         (WebCore::EventHandler::passMousePressEventToSubframe):
2313         (WebCore::EventHandler::passMouseMoveEventToSubframe):
2314         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
2315         * page/mac/EventHandlerMac.mm:
2316         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
2317         (WebCore::EventHandler::passMouseDownEventToWidget):
2318         (WebCore::findViewInSubviews):
2319         (WebCore::EventHandler::eventLoopHandleMouseUp):
2320         (WebCore::EventHandler::passWheelEventToWidget):
2321         (WebCore::EventHandler::mouseMoved):
2322
2323 2014-02-04  Benjamin Poulain  <bpoulain@apple.com>
2324
2325         [OSX] Limit progress bar's dimensions to ushort
2326         https://bugs.webkit.org/show_bug.cgi?id=128019
2327
2328         Wordaround a crash in Quartz until <rdar://problem/15855086> is fixed.
2329
2330         Reviewed by Sam Weinig.
2331
2332         * rendering/RenderThemeMac.mm:
2333         (WebCore::RenderThemeMac::progressBarRectForBounds):
2334
2335 2014-02-04  Anders Carlsson  <andersca@apple.com>
2336
2337         Rename StringImpl::getCharacters to StringImpl::characters
2338         https://bugs.webkit.org/show_bug.cgi?id=128205
2339
2340         Reviewed by Antti Koivisto.
2341
2342         Update for WTF changes.
2343
2344         * rendering/SimpleLineLayout.cpp:
2345         (WebCore::SimpleLineLayout::createTextRuns):
2346
2347 2014-02-04  Anders Carlsson  <andersca@apple.com>
2348
2349         Rename equalNonNull to equal and make it take const StringImpl& instead
2350         https://bugs.webkit.org/show_bug.cgi?id=128206
2351
2352         Reviewed by Andreas Kling.
2353
2354         * html/parser/HTMLParserIdioms.cpp:
2355         (WebCore::threadSafeEqual):
2356         (WebCore::threadSafeMatch):
2357
2358 2014-02-04  Anders Carlsson  <andersca@apple.com>
2359
2360         Rename String::getCharacters to String::characters
2361         https://bugs.webkit.org/show_bug.cgi?id=128196
2362
2363         Reviewed by Andreas Kling.
2364
2365         Update for WTF::String changes.
2366
2367         * dom/Document.cpp:
2368         (WebCore::canonicalizedTitle):
2369
2370 2014-02-04  Eric Carlson  <eric.carlson@apple.com>
2371
2372         Fix Release build after r163390.
2373
2374         * platform/audio/MediaSession.cpp: Add "#if !LOG_DISABLED" around logging-only function.
2375
2376 2014-02-04  Eric Carlson  <eric.carlson@apple.com>
2377
2378         Refine MediaSession interruptions
2379         https://bugs.webkit.org/show_bug.cgi?id=128125
2380
2381         Reviewed by Jer Noble.
2382
2383         Test: media/video-background-playback.html
2384
2385         * WebCore.exp.in: Export applicationWillEnterForeground and applicationWillEnterBackground for
2386             Internals.
2387
2388         * html/HTMLMediaElement.cpp:
2389         (WebCore::HTMLMediaElement::play): Ask the media session if playback is allowed instead of check
2390             to see if it is interrupted directly.
2391         (WebCore::HTMLMediaElement::pause): Ask the media session if pausing is allowed instead of check
2392             to see if it is interrupted directly.
2393         (WebCore::HTMLMediaElement::mediaType): Return media type based on media characteristics once
2394             the information is available.
2395         (WebCore::HTMLMediaElement::resumePlayback): New.
2396         * html/HTMLMediaElement.h:
2397
2398         * html/HTMLMediaSession.cpp:
2399         (WebCore::restrictionName): New, use for logging only.
2400         (WebCore::HTMLMediaSession::addBehaviorRestriction): Log  restriction changes.
2401         (WebCore::HTMLMediaSession::removeBehaviorRestriction): Ditto.
2402         * html/HTMLMediaSession.h:
2403
2404         * platform/audio/MediaSession.cpp:
2405         (WebCore::stateName): New, used for logging.
2406         (WebCore::MediaSession::MediaSession): Don't cache client media type because it can change.
2407         (WebCore::MediaSession::setState): Log state changes.
2408         (WebCore::MediaSession::beginInterruption): Remember the current state in case we want to use it
2409             to restore state when the interruption ends.
2410         (WebCore::MediaSession::endInterruption): Resume playback if appropriate.
2411         (WebCore::MediaSession::clientWillBeginPlayback): Track the client's playback state.
2412         (WebCore::MediaSession::clientWillPausePlayback): Ditto.
2413         (WebCore::MediaSession::mediaType): Ask client for state.
2414         * platform/audio/MediaSession.h:
2415
2416         * platform/audio/MediaSessionManager.cpp:
2417         (WebCore::MediaSessionManager::MediaSessionManager): m_interruptions -> m_interrupted.
2418         (WebCore::MediaSessionManager::beginInterruption): Don't assume interruptions are always balanced.
2419         (WebCore::MediaSessionManager::endInterruption): Ditto.
2420         (WebCore::MediaSessionManager::addSession): 
2421         (WebCore::MediaSessionManager::applicationWillEnterBackground): Interrupt client if it is not
2422             allowed to play in the background.
2423         (WebCore::MediaSessionManager::applicationWillEnterForeground): End client interruption if it
2424             was stopped by an interruption.
2425         * platform/audio/MediaSessionManager.h:
2426
2427         * platform/audio/ios/MediaSessionManagerIOS.h:
2428         * platform/audio/ios/MediaSessionManagerIOS.mm:
2429         (WebCore::MediaSessionManageriOS::~MediaSessionManageriOS): Clear the helper callback.
2430         (WebCore::MediaSessionManageriOS::resetRestrictions): Mark video as not allowed to play
2431             while the application is in the background. Register for application suspend/resume
2432             notifications.
2433         (-[WebMediaSessionHelper clearCallback]): Set _callback to nil.
2434         (-[WebMediaSessionHelper applicationWillEnterForeground:]): New, notify client of application 
2435             state change.
2436         (-[WebMediaSessionHelper applicationWillResignActive:]): Ditto.
2437
2438         * platform/audio/mac/AudioDestinationMac.h: Add resumePlayback.
2439
2440         * testing/Internals.cpp:
2441         (WebCore::Internals::applicationWillEnterForeground): New, simulate application context switch.
2442         (WebCore::Internals::applicationWillEnterBackground): Ditto.
2443         (WebCore::Internals::setMediaSessionRestrictions): Add "BackgroundPlaybackNotPermitted" restriction.
2444         * testing/Internals.h:
2445         * testing/Internals.idl:
2446
2447 2014-02-04  Andreas Kling  <akling@apple.com>
2448
2449         Remove CPP bindings generator.
2450         <https://webkit.org/b/128189>
2451
2452         Scrub out some leftover Blackberry gunk.
2453
2454         Reviewed by Anders Carlsson.
2455
2456         * Modules/webdatabase/SQLResultSet.idl:
2457         * bindings/cpp/WebDOMCString.cpp: Removed.
2458         * bindings/cpp/WebDOMCString.h: Removed.
2459         * bindings/cpp/WebDOMDOMWindowCustom.cpp: Removed.
2460         * bindings/cpp/WebDOMEventListenerCustom.cpp: Removed.
2461         * bindings/cpp/WebDOMEventTarget.cpp: Removed.
2462         * bindings/cpp/WebDOMEventTarget.h: Removed.
2463         * bindings/cpp/WebDOMHTMLCollectionCustom.cpp: Removed.
2464         * bindings/cpp/WebDOMHTMLDocumentCustom.cpp: Removed.
2465         * bindings/cpp/WebDOMHTMLOptionsCollectionCustom.cpp: Removed.
2466         * bindings/cpp/WebDOMNodeCustom.cpp: Removed.
2467         * bindings/cpp/WebDOMNodeFilterCustom.cpp: Removed.
2468         * bindings/cpp/WebDOMObject.h: Removed.
2469         * bindings/cpp/WebDOMString.cpp: Removed.
2470         * bindings/cpp/WebDOMString.h: Removed.
2471         * bindings/cpp/WebExceptionHandler.cpp: Removed.
2472         * bindings/cpp/WebExceptionHandler.h: Removed.
2473         * bindings/cpp/WebNativeEventListener.cpp: Removed.
2474         * bindings/cpp/WebNativeEventListener.h: Removed.
2475         * bindings/cpp/WebNativeNodeFilterCondition.cpp: Removed.
2476         * bindings/cpp/WebNativeNodeFilterCondition.h: Removed.
2477         * bindings/scripts/CodeGeneratorCPP.pm: Removed.
2478         * bindings/scripts/test/CPP/CPPTestSupplemental.cpp: Removed.
2479         * bindings/scripts/test/CPP/CPPTestSupplemental.h: Removed.
2480         * bindings/scripts/test/CPP/WebDOMFloat64Array.cpp: Removed.
2481         * bindings/scripts/test/CPP/WebDOMFloat64Array.h: Removed.
2482         * bindings/scripts/test/CPP/WebDOMTestActiveDOMObject.cpp: Removed.
2483         * bindings/scripts/test/CPP/WebDOMTestActiveDOMObject.h: Removed.
2484         * bindings/scripts/test/CPP/WebDOMTestCallback.cpp: Removed.
2485         * bindings/scripts/test/CPP/WebDOMTestCallback.h: Removed.
2486         * bindings/scripts/test/CPP/WebDOMTestCustomNamedGetter.cpp: Removed.
2487         * bindings/scripts/test/CPP/WebDOMTestCustomNamedGetter.h: Removed.
2488         * bindings/scripts/test/CPP/WebDOMTestEventConstructor.cpp: Removed.
2489         * bindings/scripts/test/CPP/WebDOMTestEventConstructor.h: Removed.
2490         * bindings/scripts/test/CPP/WebDOMTestEventTarget.cpp: Removed.
2491         * bindings/scripts/test/CPP/WebDOMTestEventTarget.h: Removed.
2492         * bindings/scripts/test/CPP/WebDOMTestException.cpp: Removed.
2493         * bindings/scripts/test/CPP/WebDOMTestException.h: Removed.
2494         * bindings/scripts/test/CPP/WebDOMTestGenerateIsReachable.cpp: Removed.
2495         * bindings/scripts/test/CPP/WebDOMTestGenerateIsReachable.h: Removed.
2496         * bindings/scripts/test/CPP/WebDOMTestImplements.cpp: Removed.
2497         * bindings/scripts/test/CPP/WebDOMTestImplements.h: Removed.
2498         * bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Removed.
2499         * bindings/scripts/test/CPP/WebDOMTestInterface.h: Removed.
2500         * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp: Removed.
2501         * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h: Removed.
2502         * bindings/scripts/test/CPP/WebDOMTestNamedConstructor.cpp: Removed.
2503         * bindings/scripts/test/CPP/WebDOMTestNamedConstructor.h: Removed.
2504         * bindings/scripts/test/CPP/WebDOMTestNode.cpp: Removed.
2505         * bindings/scripts/test/CPP/WebDOMTestNode.h: Removed.
2506         * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Removed.
2507         * bindings/scripts/test/CPP/WebDOMTestObj.h: Removed.
2508         * bindings/scripts/test/CPP/WebDOMTestOverloadedConstructors.cpp: Removed.
2509         * bindings/scripts/test/CPP/WebDOMTestOverloadedConstructors.h: Removed.
2510         * bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.cpp: Removed.
2511         * bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.h: Removed.
2512         * bindings/scripts/test/CPP/WebDOMTestSupplemental.cpp: Removed.
2513         * bindings/scripts/test/CPP/WebDOMTestSupplemental.h: Removed.
2514         * bindings/scripts/test/CPP/WebDOMTestTypedefs.cpp: Removed.
2515         * bindings/scripts/test/CPP/WebDOMTestTypedefs.h: Removed.
2516         * bindings/scripts/test/CPP/WebDOMattribute.cpp: Removed.
2517         * bindings/scripts/test/CPP/WebDOMattribute.h: Removed.
2518         * bindings/scripts/test/CPP/WebDOMreadonly.cpp: Removed.
2519         * bindings/scripts/test/CPP/WebDOMreadonly.h: Removed.
2520         * css/StyleSheet.idl:
2521         * dom/CustomEvent.idl:
2522         * dom/Document.idl:
2523         * dom/Event.idl:
2524         * dom/Node.idl:
2525         * dom/PopStateEvent.idl:
2526         * html/HTMLCanvasElement.idl:
2527         * html/HTMLInputElement.idl:
2528         * html/canvas/CanvasRenderingContext2D.idl:
2529         * page/DOMWindow.idl:
2530         * page/Location.idl:
2531         * workers/DedicatedWorkerGlobalScope.idl:
2532
2533 2014-02-04  Dan Bernstein  <mitz@apple.com>
2534
2535         iOS build fix.
2536
2537         * platform/graphics/cg/GraphicsContextCG.cpp:
2538         (WebCore::GraphicsContext::platformInit):
2539
2540 2014-02-03  Zan Dobersek  <zdobersek@igalia.com>
2541
2542         Manage MediaQuery and MediaQueryExp classes through std::unique_ptr instead of OwnPtr
2543         https://bugs.webkit.org/show_bug.cgi?id=128117
2544
2545         Reviewed by Darin Adler.
2546
2547         Replace uses of OwnPtr for the MediaQuery and MediaQueryExp classes with std::unique_ptr.
2548
2549         * css/CSSGrammar.y.in:
2550         * css/CSSParser.cpp:
2551         (WebCore::CSSParser::parseMediaQuery):
2552         * css/CSSParser.h:
2553         * css/MediaList.cpp:
2554         (WebCore::MediaQuerySet::parse):
2555         (WebCore::MediaQuerySet::add):
2556         (WebCore::MediaQuerySet::remove):
2557         (WebCore::MediaQuerySet::addMediaQuery):
2558         (WebCore::MediaList::item):
2559         (WebCore::reportMediaQueryWarningIfNeeded):
2560         * css/MediaList.h:
2561         (WebCore::MediaQuerySet::queryVector):
2562         * css/MediaQuery.cpp:
2563         (WebCore::MediaQuery::MediaQuery):
2564         * css/MediaQuery.h:
2565         (WebCore::MediaQuery::expressions):
2566         (WebCore::MediaQuery::copy):
2567         * css/MediaQueryEvaluator.cpp:
2568         (WebCore::MediaQueryEvaluator::eval):
2569         * css/MediaQueryExp.cpp:
2570         (WebCore::MediaQueryExp::MediaQueryExp):
2571         * css/MediaQueryExp.h:
2572         (WebCore::MediaQueryExp::copy):
2573
2574 2014-02-04  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
2575
2576         Remove SVG_DOM_OBJC_BINDINGS after r161638.
2577         https://bugs.webkit.org/show_bug.cgi?id=128182
2578
2579         Reviewed by Andreas Kling.
2580
2581         Removed ENABLE(SVG_DOM_OBJC_BINDINGS).
2582
2583         No tests required.
2584
2585         * bindings/objc/DOMUIKitExtensions.mm:
2586         (-[DOMNode boundingBoxes]):
2587         (-[DOMNode absoluteQuads]):
2588
2589 2014-02-04  Radu Stavila  <stavila@adobe.com>
2590
2591         REGRESSION (r159609): Images are corrupted when hovering over buttons @ github.com
2592         https://bugs.webkit.org/show_bug.cgi?id=127729
2593
2594         Reviewed by Antti Koivisto.
2595
2596         When clipping a rect, the RenderLayer would not properly save the context when
2597         the clipping rect is the same as the paint rect and the clipping rect
2598         has radius.
2599
2600         Test: fast/regions/repaint/hover-border-radius.html
2601
2602         * rendering/RenderLayer.cpp:
2603         (WebCore::RenderLayer::clipToRect):
2604         (WebCore::RenderLayer::restoreClip):
2605
2606 2014-02-04  Ryuan Choi  <ryuan.choi@samsung.com>
2607
2608         [CMAKE] Remove workaround for GCC 4.6
2609         https://bugs.webkit.org/show_bug.cgi?id=128176
2610
2611         Reviewed by Csaba Osztrogonác.
2612
2613         Since r162126, WebKit requires at least 4.7.
2614
2615         * CMakeLists.txt:
2616
2617 2014-02-04  Zan Dobersek  <zdobersek@igalia.com>
2618
2619         Manage RuleSet and RuleData classes through std::unique_ptr instead of OwnPtr
2620         https://bugs.webkit.org/show_bug.cgi?id=128116
2621
2622         Reviewed by Darin Adler.
2623
2624         Replace uses of OwnPtr for the RuleSet and RuleData classes with std::unique_ptr.
2625
2626         * css/CSSDefaultStyleSheets.cpp:
2627         (WebCore::CSSDefaultStyleSheets::loadFullDefaultStyle):
2628         (WebCore::CSSDefaultStyleSheets::loadSimpleDefaultStyle):
2629         (WebCore::CSSDefaultStyleSheets::viewSourceStyle):
2630         * css/DocumentRuleSets.cpp:
2631         (WebCore::DocumentRuleSets::initUserStyle):
2632         (WebCore::makeRuleSet):
2633         (WebCore::DocumentRuleSets::resetAuthorStyle):
2634         * css/DocumentRuleSets.h:
2635         * css/RuleSet.cpp:
2636         (WebCore::RuleSet::addToRuleSet):
2637         (WebCore::RuleSet::addRegionRule):
2638         * css/RuleSet.h:
2639         (WebCore::RuleSet::RuleSetSelectorPair::RuleSetSelectorPair):
2640
2641 2014-02-04  Commit Queue  <commit-queue@webkit.org>
2642
2643         Unreviewed, rolling out r163376.
2644         http://trac.webkit.org/changeset/163376
2645         https://bugs.webkit.org/show_bug.cgi?id=128184
2646
2647         Unexpected test failures. (Requested by eric_carlson on
2648         #webkit).
2649
2650         * WebCore.exp.in:
2651         * html/HTMLMediaElement.cpp:
2652         (WebCore::HTMLMediaElement::parseAttribute):
2653         * html/HTMLMediaElement.h:
2654         * html/HTMLMediaSession.cpp:
2655         (WebCore::HTMLMediaSession::addBehaviorRestriction):
2656         (WebCore::HTMLMediaSession::removeBehaviorRestriction):
2657         (WebCore::HTMLMediaSession::clientWillBeginPlayback):
2658         * html/HTMLMediaSession.h:
2659         * platform/audio/MediaSession.cpp:
2660         (WebCore::MediaSession::MediaSession):
2661         (WebCore::MediaSession::beginInterruption):
2662         (WebCore::MediaSession::endInterruption):
2663         * platform/audio/MediaSession.h:
2664         (WebCore::MediaSession::mediaType):
2665         (WebCore::MediaSession::setState):
2666         (WebCore::MediaSessionClient::beginInterruption):
2667         (WebCore::MediaSessionClient::endInterruption):
2668         * platform/audio/MediaSessionManager.cpp:
2669         (WebCore::MediaSessionManager::MediaSessionManager):
2670         (WebCore::MediaSessionManager::beginInterruption):
2671         (WebCore::MediaSessionManager::endInterruption):
2672         (WebCore::MediaSessionManager::addSession):
2673         * platform/audio/MediaSessionManager.h:
2674         * platform/audio/ios/MediaSessionManagerIOS.h:
2675         (WebCore::MediaSessionManageriOS::~MediaSessionManageriOS):
2676         * platform/audio/ios/MediaSessionManagerIOS.mm:
2677         (WebCore::MediaSessionManageriOS::resetRestrictions):
2678         (-[WebMediaSessionHelper initWithCallback:]):
2679         * platform/audio/mac/AudioDestinationMac.h:
2680         * testing/Internals.cpp:
2681         (WebCore::Internals::setMediaSessionRestrictions):
2682         * testing/Internals.h:
2683         * testing/Internals.idl:
2684
2685 2014-02-04  Eric Carlson  <eric.carlson@apple.com>
2686
2687         Refine MediaSession interruptions
2688         https://bugs.webkit.org/show_bug.cgi?id=128125
2689
2690         Reviewed by Jer Noble.
2691
2692         Test: media/video-background-playback.html
2693
2694         * WebCore.exp.in: Export applicationWillEnterForeground and applicationWillEnterBackground for
2695             Internals.
2696
2697         * html/HTMLMediaElement.cpp:
2698         (WebCore::HTMLMediaElement::play): Ask the media session if playback is allowed instead of check
2699             to see if it is interrupted directly.
2700         (WebCore::HTMLMediaElement::pause): Ask the media session if pausing is allowed instead of check
2701             to see if it is interrupted directly.
2702         (WebCore::HTMLMediaElement::mediaType): Return media type based on media characteristics once
2703             the information is available.
2704         (WebCore::HTMLMediaElement::resumePlayback): New.
2705         * html/HTMLMediaElement.h:
2706
2707         * html/HTMLMediaSession.cpp:
2708         (WebCore::restrictionName): New, use for logging only.
2709         (WebCore::HTMLMediaSession::addBehaviorRestriction): Log  restriction changes.
2710         (WebCore::HTMLMediaSession::removeBehaviorRestriction): Ditto.
2711         * html/HTMLMediaSession.h:
2712
2713         * platform/audio/MediaSession.cpp:
2714         (WebCore::stateName): New, used for logging.
2715         (WebCore::MediaSession::MediaSession): Don't cache client media type because it can change.
2716         (WebCore::MediaSession::setState): Log state changes.
2717         (WebCore::MediaSession::beginInterruption): Remember the current state in case we want to use it
2718             to restore state when the interruption ends.
2719         (WebCore::MediaSession::endInterruption): Resume playback if appropriate.
2720         (WebCore::MediaSession::clientWillBeginPlayback): Track the client's playback state.
2721         (WebCore::MediaSession::clientWillPausePlayback): Ditto.
2722         (WebCore::MediaSession::mediaType): Ask client for state.
2723         * platform/audio/MediaSession.h:
2724
2725         * platform/audio/MediaSessionManager.cpp:
2726         (WebCore::MediaSessionManager::MediaSessionManager): m_interruptions -> m_interrupted.
2727         (WebCore::MediaSessionManager::beginInterruption): Don't assume interruptions are always balanced.
2728         (WebCore::MediaSessionManager::endInterruption): Ditto.
2729         (WebCore::MediaSessionManager::addSession): 
2730         (WebCore::MediaSessionManager::applicationWillEnterBackground): Interrupt client if it is not
2731             allowed to play in the background.
2732         (WebCore::MediaSessionManager::applicationWillEnterForeground): End client interruption if it
2733             was stopped by an interruption.
2734         * platform/audio/MediaSessionManager.h:
2735
2736         * platform/audio/ios/MediaSessionManagerIOS.h:
2737         * platform/audio/ios/MediaSessionManagerIOS.mm:
2738         (WebCore::MediaSessionManageriOS::~MediaSessionManageriOS): Clear the helper callback.
2739         (WebCore::MediaSessionManageriOS::resetRestrictions): Mark video as not allowed to play
2740             while the application is in the background. Register for application suspend/resume
2741             notifications.
2742         (-[WebMediaSessionHelper clearCallback]): Set _callback to nil.
2743         (-[WebMediaSessionHelper applicationWillEnterForeground:]): New, notify client of application 
2744             state change.
2745         (-[WebMediaSessionHelper applicationWillResignActive:]): Ditto.
2746
2747         * platform/audio/mac/AudioDestinationMac.h: Add resumePlayback.
2748
2749         * testing/Internals.cpp:
2750         (WebCore::Internals::applicationWillEnterForeground): New, simulate application context switch.
2751         (WebCore::Internals::applicationWillEnterBackground): Ditto.
2752         (WebCore::Internals::setMediaSessionRestrictions): Add "BackgroundPlaybackNotPermitted" restriction.
2753         * testing/Internals.h:
2754         * testing/Internals.idl:
2755
2756 2014-02-04  Mihai Maerean  <mmaerean@adobe.com>
2757
2758         [CSS Regions] Fix Assert SHOULD NEVER BE REACHED in RenderLayer::enclosingElement()
2759         https://bugs.webkit.org/show_bug.cgi?id=123329
2760
2761         Reviewed by Mihnea Ovidenie.
2762
2763         The flowthread doesn't have an enclosing element, so when hitting the layer of the
2764         flowthread (e.g. the descent area of the RootInlineBox for the image flowed alone
2765         inside the flow thread) we're letting the hit testing continue so it will hit the region.
2766
2767         Tests: fast/regions/assert-hit-test-image.html
2768                fast/regions/auto-size/region-same-height-as-div-with-inline-child.html
2769
2770         * rendering/RenderLayer.cpp:
2771         (WebCore::RenderLayer::hitTestContents):
2772
2773 2014-02-04  Mihnea Ovidenie  <mihnea@adobe.com>
2774
2775         ASSERTION FAILED: !object || (object->isRenderBlock())
2776         https://bugs.webkit.org/show_bug.cgi?id=127687
2777
2778         Reviewed by Ryosuke Niwa.
2779
2780         Currently, when computing the visible position for a point inside a region,
2781         we transform the point into flow thread coordinates and delegate the processing
2782         to the first child of the flow thread which we incorrectly assume is a block.
2783         However, we can specify flow-into also on inline elements which leads to the
2784         assertion.
2785
2786         Instead of delegating the processing to the first child when the flow thread
2787         has children, delegate the computation of the visible position to the
2788         flow thread and avoid any assumption about the nature of the flow thread
2789         first child. If the flow thread does not have any children that should be
2790         rendered by the region, let the region behave like an ordinary element
2791         with no children.
2792
2793         Tests: fast/regions/selection/position-for-point-inline-content-node.html
2794                fast/regions/selection/selection-ended-in-empty-region.html
2795
2796         * rendering/RenderRegion.cpp:
2797         (WebCore::RenderRegion::positionForPoint):
2798
2799 2014-02-03  Andreas Kling  <akling@apple.com>
2800
2801         Remove stray vestige from ::-webkit-distributed selector.
2802         <https://webkit.org/b/128154>
2803
2804         Reviewed by Anders Carlsson.
2805
2806         * css/CSSSelector.cpp:
2807         (WebCore::CSSSelector::extractPseudoType):
2808
2809 2014-02-03  Andreas Kling  <akling@apple.com>
2810
2811         Remove the CSS @host rule.
2812         <https://webkit.org/b/128146>
2813
2814         The @host rule is no longer part of the spec, and besides this code
2815         was behind ENABLE(SHADOW_DOM) so nobody was building it.
2816
2817         Reviewed by Anders Carlsson.
2818
2819         * CMakeLists.txt:
2820         * DerivedSources.cpp:
2821         * DerivedSources.make:
2822         * GNUmakefile.list.am:
2823         * WebCore.vcxproj/WebCore.vcxproj:
2824         * WebCore.vcxproj/WebCore.vcxproj.filters:
2825         * WebCore.xcodeproj/project.pbxproj:
2826         * bindings/js/JSCSSRuleCustom.cpp:
2827         (WebCore::toJS):
2828         * bindings/objc/DOMCSS.mm:
2829         (kitClass):
2830         * css/CSSAllInOne.cpp:
2831         * css/CSSGrammar.y.in:
2832         * css/CSSHostRule.cpp: Removed.
2833         * css/CSSHostRule.h: Removed.
2834         * css/CSSHostRule.idl: Removed.
2835         * css/CSSParser.cpp:
2836         (WebCore::CSSParser::detectDashToken):
2837         (WebCore::CSSParser::detectAtToken):
2838         * css/CSSParser.h:
2839         * css/CSSRule.h:
2840         * css/CSSRule.idl:
2841         * css/InspectorCSSOMWrappers.cpp:
2842         (WebCore::InspectorCSSOMWrappers::collect):
2843         * css/StyleResolver.h:
2844         * css/StyleRule.cpp:
2845         (WebCore::StyleRuleBase::destroy):
2846         (WebCore::StyleRuleBase::copy):
2847         (WebCore::StyleRuleBase::createCSSOMWrapper):
2848         * css/StyleRule.h:
2849         * css/StyleSheetContents.cpp:
2850         (WebCore::childRulesHaveFailedOrCanceledSubresources):
2851         * inspector/InspectorStyleSheet.cpp:
2852         (flattenSourceData):
2853         (WebCore::asCSSRuleList):
2854
2855 2014-02-03  Zalan Bujtas  <zalan@apple.com>
2856
2857         Subpixel rendering: Do not query the scaling factor when the graphics context is invalid.
2858         https://bugs.webkit.org/show_bug.cgi?id=128131
2859
2860         Reviewed by Simon Fraser.
2861
2862         No existing context to test it.
2863
2864         * platform/graphics/GraphicsContext.h:
2865         * platform/graphics/cairo/GraphicsContextCairo.cpp:
2866         (WebCore::GraphicsContext::platformInit):
2867         * platform/graphics/cg/GraphicsContextCG.cpp:
2868         (WebCore::GraphicsContext::platformInit):
2869         * platform/graphics/wince/GraphicsContextWinCE.cpp:
2870         (WebCore::GraphicsContext::platformInit):
2871
2872 2014-02-03  Hunseop Jeong  <hs85.jeong@samsung.com>
2873
2874         [Cairo] GraphicsContext::m_pixelSnappingFactor is uninitialized
2875         https://bugs.webkit.org/show_bug.cgi?id=128102
2876
2877         Reviewed by Csaba Osztrogonác.
2878
2879         Initalize m_pixelSnappingFactor to 1
2880
2881         * platform/graphics/cairo/GraphicsContextCairo.cpp:
2882         (WebCore::GraphicsContext::GraphicsContext): Initialized pixelSnappingFactor to 1 and 
2883         fixed the coding style violation.
2884
2885 2014-02-03  Brian Burg  <bburg@apple.com>
2886
2887         Web Replay: upstream base input classes and the input cursor interface
2888         https://bugs.webkit.org/show_bug.cgi?id=128110
2889
2890         Reviewed by Joseph Pecoraro.
2891
2892         Add EventLoopInput, a base class for replay inputs that are handled
2893         as if they begin a new run loop. For example, navigations, user input,
2894         network callbacks, and asynchronous timers are modeled by inputs which
2895         derive from this base class.
2896
2897         Add the ability to set an InputCursor instance on a Document. This
2898         is the means for connecting a replay recording to a document context.
2899
2900         Add forwarding headers for some fundamental replay classes.
2901
2902         No new tests; no new functionality is exposed.
2903
2904         * ForwardingHeaders/replay/EmptyInputCursor.h: Added.
2905         * ForwardingHeaders/replay/InputCursor.h: Added.
2906         * ForwardingHeaders/replay/NondeterministicInput.h: Added.
2907         * WebCore.xcodeproj/project.pbxproj:
2908         * dom/Document.cpp:
2909         (WebCore::Document::Document):
2910         * dom/Document.h:
2911         (WebCore::Document::inputCursor):
2912         (WebCore::Document::setInputCursor):
2913         * replay/EventLoopInput.h: Added.
2914         (WebCore::ReplayPosition::ReplayPosition):
2915         (WebCore::ReplayPosition::index):
2916         (WebCore::ReplayPosition::time):
2917         (WebCore::EventLoopInputBase::EventLoopInputBase):
2918         (WebCore::EventLoopInputBase::~EventLoopInputBase):
2919         (WebCore::EventLoopInputBase::setPosition):
2920         (WebCore::EventLoopInputBase::position):
2921
2922 2014-02-03  Jinwoo Song  <jinwoo7.song@samsung.com>
2923
2924         Remove unused code in CSSParser.cpp
2925         https://bugs.webkit.org/show_bug.cgi?id=128135
2926
2927         Reviewed by Darin Adler.
2928
2929         * css/CSSParser.cpp:
2930         (WebCore::CSSParser::parseValue):
2931
2932 2014-02-03  Brent Fulgham  <bfulgham@apple.com>
2933
2934         [Mac] WK1 Clients Only Latch on Momentum Scroll
2935         https://bugs.webkit.org/show_bug.cgi?id=128133
2936
2937         Reviewed by Simon Fraser.
2938
2939         * platform/PlatformWheelEvent.h:
2940         (WebCore::PlatformWheelEvent::useLatchedEventElement): Update
2941         predicate to recognize the start and change phases of the wheel
2942         event as latchable (not just momentum start/change).
2943
2944 2014-02-03  Dean Jackson  <dino@apple.com>
2945
2946         Feature flag for shape-inside
2947         https://bugs.webkit.org/show_bug.cgi?id=128001
2948
2949         Reviewed by Simon Fraser.
2950
2951         Add CSS_SHAPE_INSIDE flag.
2952
2953         I wrapped everything that is specific to shape-inside in
2954         this flag. It is now possible to build with CSS Shapes enabled
2955         but shape-inside disabled. CSS_SHAPE_INSIDE is dependent on
2956         CSS_SHAPES, so disabling the latter should also disable the former.
2957
2958         * Configurations/FeatureDefines.xcconfig:
2959         * css/CSSComputedStyleDeclaration.cpp:
2960         (WebCore::ComputedStyleExtractor::propertyValue):
2961         * css/CSSParser.cpp:
2962         (WebCore::CSSParser::parseValue):
2963         (WebCore::CSSParser::parseShapeProperty):
2964         * css/CSSPropertyNames.in:
2965         * css/DeprecatedStyleBuilder.cpp:
2966         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
2967         * css/StyleResolver.cpp:
2968         (WebCore::StyleResolver::applyProperty):
2969         (WebCore::StyleResolver::loadPendingImages):
2970         * page/animation/CSSPropertyAnimation.cpp:
2971         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
2972         * rendering/LayoutState.cpp:
2973         (WebCore::LayoutState::LayoutState):
2974         * rendering/LayoutState.h:
2975         (WebCore::LayoutState::LayoutState):
2976         * rendering/RenderBlock.cpp:
2977         (WebCore::RenderBlock::styleDidChange):
2978         (WebCore::RenderBlock::updateShapesBeforeBlockLayout):
2979         (WebCore::RenderBlock::updateShapesAfterBlockLayout):
2980         * rendering/RenderBlock.h:
2981         * rendering/RenderBlockFlow.cpp:
2982         (WebCore::RenderBlockFlow::layoutBlockChild):
2983         (WebCore::RenderBlockFlow::computeLogicalLocationForFloat):
2984         * rendering/RenderBlockFlow.h:
2985         * rendering/RenderBlockLineLayout.cpp:
2986         (WebCore::RenderBlockFlow::computeInlineDirectionPositionsForLine):
2987         (WebCore::constructBidiRunsForLine):
2988         (WebCore::RenderBlockFlow::layoutRunsAndFloatsInRange):
2989         * rendering/RenderElement.cpp:
2990         (WebCore::RenderElement::~RenderElement):
2991         (WebCore::RenderElement::initializeStyle):
2992         (WebCore::RenderElement::setStyle):
2993         * rendering/RenderNamedFlowFragment.cpp:
2994         (WebCore::RenderNamedFlowFragment::createStyle):
2995         * rendering/RenderView.h:
2996         * rendering/SimpleLineLayout.cpp:
2997         (WebCore::SimpleLineLayout::canUseFor):
2998         * rendering/line/BreakingContextInlineHeaders.h:
2999         (WebCore::BreakingContext::handleText):
3000         (WebCore::BreakingContext::handleEndOfLine):
3001         * rendering/line/LineBreaker.cpp:
3002         (WebCore::LineBreaker::nextLineBreak):
3003         * rendering/line/LineWidth.cpp:
3004         (WebCore::LineWidth::LineWidth):
3005         (WebCore::LineWidth::updateAvailableWidth):
3006         (WebCore::LineWidth::fitBelowFloats):
3007         * rendering/line/LineWidth.h:
3008         * rendering/shapes/ShapeInsideInfo.cpp:
3009         * rendering/shapes/ShapeInsideInfo.h:
3010         * rendering/style/RenderStyle.cpp:
3011         (WebCore::RenderStyle::changeRequiresLayout):
3012         * rendering/style/RenderStyle.h:
3013         * rendering/style/StyleRareNonInheritedData.cpp:
3014         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
3015         (WebCore::StyleRareNonInheritedData::operator==):
3016         * rendering/style/StyleRareNonInheritedData.h:
3017
3018 2014-02-03  Radu Stavila  <stavila@adobe.com>
3019
3020         REGRESSION (r163018): Can’t scroll in <select> lists
3021         https://bugs.webkit.org/show_bug.cgi?id=128090
3022
3023         The regression was caused by the fact that a new method scrollWithWheelEventLocation() was added
3024         to RenderBox to replace the generic scroll() method for the particular case of scrolling using 
3025         the mouse wheel. This turned out to be a mistake because in the case of some elements, like select lists, 
3026         the scroll method was overriden and now the incorrect method was being called.
3027         The solution was to remove the new method and just add two default parameters to the generic
3028         scroll method.
3029
3030         Reviewed by Simon Fraser.
3031
3032         Test: fast/scrolling/scroll-select-list.html
3033
3034         * page/EventHandler.cpp:
3035         (WebCore::scrollNode):
3036         * rendering/RenderBox.cpp:
3037         (WebCore::RenderBox::scroll):
3038         * rendering/RenderBox.h:
3039         * rendering/RenderEmbeddedObject.cpp:
3040         (WebCore::RenderEmbeddedObject::scroll):
3041         * rendering/RenderEmbeddedObject.h:
3042         * rendering/RenderListBox.cpp:
3043         (WebCore::RenderListBox::scroll):
3044         * rendering/RenderListBox.h:
3045         * rendering/RenderTextControlSingleLine.cpp:
3046         (WebCore::RenderTextControlSingleLine::scroll):
3047         * rendering/RenderTextControlSingleLine.h:
3048
3049 2014-02-03  Chris Fleizach  <cfleizach@apple.com>
3050
3051         AX: WebKit should support @headers/@id for complex accessible web tables
3052         https://bugs.webkit.org/show_bug.cgi?id=128114
3053
3054         Reviewed by Darin Adler.
3055
3056         Expose the headers attribute for table cells to accessibility.
3057
3058         Test: platform/mac/accessibility/table-headers-attribute.html
3059
3060         * accessibility/AccessibilityTableCell.cpp:
3061         (WebCore::AccessibilityTableCell::columnHeaders):
3062
3063 2014-02-03  Andreas Kling  <akling@apple.com>
3064
3065         CTTE: RenderSVGGradientStop always has a SVGStopElement.
3066         <https://webkit.org/b/128107>
3067
3068         RenderSVGGradientStop is never anonymous and always has a
3069         corresponding SVGStopElement. Codify this by adding an element()
3070         overload that returns an SVGStopElement&.
3071
3072         Also added missing overrides and made most functions private.
3073
3074         Reviewed by Darin Adler.
3075
3076         * rendering/svg/RenderSVGGradientStop.cpp:
3077         (WebCore::RenderSVGGradientStop::styleDidChange):
3078         (WebCore::RenderSVGGradientStop::gradientElement):
3079         * rendering/svg/RenderSVGGradientStop.h:
3080         * rendering/svg/SVGRenderTreeAsText.cpp:
3081         (WebCore::writeSVGGradientStop):
3082
3083 2014-02-03  David Kilzer  <ddkilzer@apple.com>
3084
3085         Remove CachedImageManual class
3086         <http://webkit.org/b/128043>
3087
3088         Reviewed by Darin Adler.
3089
3090         Get rid of the CachedImageManual class by inlining its
3091         functionality into CachedImage.  This makes it possible to
3092         de-virtual-ize isManual() (renamed to isManuallyCached()) and to
3093         make CachedImage final.  The size of CachedImage does not
3094         increase because we turn an existing bool into a bitfield to add
3095         an m_isManuallyCached bit, and create a static CachedImageClient
3096         in MemoryCache.cpp as the "fake" client to keep the manually
3097         cached image alive in the cache.
3098
3099         * loader/cache/CachedImage.cpp:
3100         (WebCore::CachedImage::CachedImage): Set m_isManuallyCached
3101         bitfield.  For one overloaded constructor, move the
3102         CachedImageManual code into the CachedImage constructor.
3103         (WebCore::CachedImageManual::CachedImageManual): Remove.
3104         (WebCore::CachedImage::mustRevalidateDueToCacheHeaders): Move
3105         method from CachedImageManual to CachedImage, and put
3106         ManuallyCached behavior behind a check.
3107         * loader/cache/CachedImage.h: Update includes.  Make CachedImage
3108         final.  Add CachedImage::CacheBehaviorType enum when manually
3109         cached images are created.  Move CachedImageManual methods into
3110         CachedImage, remove addFakeClient() and removeFakeClient()
3111         methods (MemoryCache methods use addClient() and removeClient()
3112         with a static CachedImageClient), and remove the
3113         CachedImageManual class definition.  Change
3114         m_shouldPaintBrokenImage to a bitfield and add
3115         m_isManuallyCached bitfield.
3116
3117         * loader/cache/MemoryCache.cpp:
3118         (WebCore::MemoryCache::addImageToCache): Use std::unique_ptr and
3119         remove useless NULL check after calling CachedImage constructor.
3120         (WebCore::MemoryCache::removeImageFromCache):
3121         - Update to use CachedImage class instead of CachedImageManual.
3122
3123 2014-02-03  Zan Dobersek  <zdobersek@igalia.com>
3124
3125         Move the webdatabase module source code to std::unique_ptr
3126         https://bugs.webkit.org/show_bug.cgi?id=127278
3127
3128         Reviewed by Antti Koivisto.
3129
3130         Replace the majority of OwnPtr uses in the webdatabase module with std::unique_ptr.
3131         The only remaining uses are due to ScriptExecutionContext::Task subclasses.
3132
3133         * Modules/webdatabase/AbstractSQLTransactionBackend.h:
3134         * Modules/webdatabase/Database.cpp:
3135         * Modules/webdatabase/DatabaseTask.h:
3136         * Modules/webdatabase/DatabaseThread.cpp:
3137         (WebCore::DatabaseThread::DatabaseThread):
3138         * Modules/webdatabase/DatabaseThread.h:
3139         * Modules/webdatabase/DatabaseTracker.cpp:
3140         (WebCore::DatabaseTracker::addOpenDatabase):
3141         * Modules/webdatabase/DatabaseTracker.h:
3142         * Modules/webdatabase/OriginLock.cpp:
3143         * Modules/webdatabase/SQLStatement.cpp:
3144         * Modules/webdatabase/SQLStatement.h:
3145         * Modules/webdatabase/SQLStatementBackend.cpp:
3146         (WebCore::SQLStatementBackend::create):
3147         (WebCore::SQLStatementBackend::SQLStatementBackend):
3148         * Modules/webdatabase/SQLStatementBackend.h:
3149         * Modules/webdatabase/SQLTransaction.cpp:
3150         (WebCore::SQLTransaction::executeSQL):
3151         * Modules/webdatabase/SQLTransactionBackend.cpp:
3152         (WebCore::SQLTransactionBackend::doCleanup):
3153         (WebCore::SQLTransactionBackend::computeNextStateAndCleanupIfNeeded):
3154         (WebCore::SQLTransactionBackend::executeSQL):
3155         (WebCore::SQLTransactionBackend::openTransactionAndPreflight):
3156         (WebCore::SQLTransactionBackend::cleanupAfterTransactionErrorCallback):
3157         * Modules/webdatabase/SQLTransactionBackend.h:
3158         * Modules/webdatabase/SQLTransactionBackendSync.cpp:
3159         (WebCore::SQLTransactionBackendSync::SQLTransactionBackendSync):
3160         (WebCore::SQLTransactionBackendSync::begin):
3161         (WebCore::SQLTransactionBackendSync::commit):
3162         (WebCore::SQLTransactionBackendSync::rollback):
3163         * Modules/webdatabase/SQLTransactionBackendSync.h:
3164
3165 2014-02-03  Andreas Kling  <akling@apple.com>
3166
3167         CTTE: Grab bag of SVGRenderTreeAsText cleanups.
3168         <https://webkit.org/b/128099>
3169
3170         Made some of the DRT SVG functions take more specific types than
3171         RenderObject. Removed some redundant casts.
3172
3173         Reviewed by Anders Carlsson.
3174
3175         * rendering/RenderTreeAsText.cpp:
3176         (WebCore::write):
3177         * rendering/svg/SVGRenderTreeAsText.h:
3178         * rendering/svg/SVGRenderTreeAsText.cpp:
3179         (WebCore::writeSVGResourceContainer):
3180         (WebCore::writeSVGContainer):
3181
3182             Make writeSVGResourceContainer() and writeSVGContainer() take the
3183             final type instead of RenderObject.
3184
3185         (WebCore::writeStyle):
3186         (WebCore::writePositionAndStyle):
3187
3188             Make these take RenderElement instead of RenderObject.
3189
3190         (WebCore::writeChildren):
3191
3192             Use child renderer iterator.
3193
3194         (WebCore::writeResources):
3195
3196             Remove unnecessary cast.
3197
3198 2014-01-25  Darin Adler  <darin@apple.com>
3199
3200         Stop using Unicode.h
3201         https://bugs.webkit.org/show_bug.cgi?id=127633
3202
3203         Reviewed by Anders Carlsson.
3204
3205         * Modules/indexeddb/IDBKeyPath.cpp:
3206         * css/CSSFontFace.h:
3207         * css/CSSOMUtils.h:
3208         * css/CSSSegmentedFontFace.h:
3209         * css/CSSUnicodeRangeValue.h:
3210         * editing/Editor.cpp:
3211         * editing/SmartReplace.h:
3212         * html/parser/HTMLTokenizer.cpp:
3213         * loader/DocumentLoader.cpp:
3214         * page/ContextMenuController.cpp:
3215         * page/Settings.h:
3216         * platform/DateComponents.h:
3217         * platform/SharedBuffer.cpp:
3218         * platform/graphics/Color.h:
3219         * platform/graphics/FontCache.h:
3220         * platform/graphics/FontData.h:
3221         * platform/graphics/FontDescription.h:
3222         * platform/graphics/FontFastPath.cpp:
3223         * platform/graphics/FontGenericFamilies.h:
3224         * platform/graphics/FontGlyphs.cpp:
3225         * platform/graphics/GlyphMetricsMap.h:
3226         * platform/graphics/GlyphPage.h:
3227         * platform/graphics/GlyphPageTreeNode.cpp:
3228         * platform/graphics/GlyphPageTreeNode.h:
3229         * platform/graphics/SVGGlyph.cpp:
3230         * platform/graphics/WidthIterator.h:
3231         * platform/graphics/freetype/SimpleFontDataFreeType.cpp:
3232         * platform/graphics/harfbuzz/HarfBuzzShaper.cpp:
3233         * platform/graphics/mac/ComplexTextController.h:
3234         * platform/graphics/win/QTMovie.h:
3235         * platform/graphics/wince/FontWinCE.cpp:
3236         * platform/text/BidiContext.h:
3237         * platform/text/Hyphenation.h:
3238         * platform/text/LocaleToScriptMapping.h:
3239         * platform/text/TextBoundaries.cpp:
3240         * platform/text/TextBoundaries.h:
3241         * platform/text/TextBreakIterator.h:
3242         * platform/text/TextCodec.h:
3243         * platform/text/TextEncoding.h:
3244         * platform/text/TextEncodingRegistry.h:
3245         * platform/text/TextStream.h:
3246         * platform/text/icu/UTextProvider.h:
3247         * platform/text/icu/UTextProviderLatin1.h:
3248         * platform/text/icu/UTextProviderUTF16.h:
3249         * platform/text/wchar/TextBreakIteratorWchar.cpp:
3250         * platform/win/WebCoreTextRenderer.cpp:
3251         * rendering/RootInlineBox.cpp:
3252         * rendering/SimpleLineLayout.cpp:
3253         * rendering/SimpleLineLayoutFunctions.cpp:
3254         * rendering/break_lines.h:
3255         * svg/SVGFontData.cpp:
3256         Removed includes of <wtf/unicode/Unicode.h>, adding includes of
3257         ICU headers and <wtf/text/LChar.h> as needed to replace it.
3258
3259 2014-02-03  Jessie Berlin  <jberlin@apple.com>
3260
3261         Revert r163299 since it broke the ML 32-bit Release build
3262
3263         * html/HTMLAnchorElement.cpp:
3264         (WebCore::parsePortFromStringPosition):
3265         (WebCore::HTMLAnchorElement::hash):
3266         (WebCore::HTMLAnchorElement::setHash):
3267         (WebCore::HTMLAnchorElement::host):
3268         (WebCore::HTMLAnchorElement::setHost):
3269         (WebCore::HTMLAnchorElement::hostname):
3270         (WebCore::HTMLAnchorElement::setHostname):
3271         (WebCore::HTMLAnchorElement::pathname):
3272         (WebCore::HTMLAnchorElement::setPathname):
3273         (WebCore::HTMLAnchorElement::port):
3274         (WebCore::HTMLAnchorElement::setPort):
3275         (WebCore::HTMLAnchorElement::protocol):
3276         (WebCore::HTMLAnchorElement::setProtocol):
3277         (WebCore::HTMLAnchorElement::search):
3278         (WebCore::HTMLAnchorElement::origin):
3279         (WebCore::HTMLAnchorElement::setSearch):
3280         (WebCore::HTMLAnchorElement::toString):
3281         * html/HTMLAnchorElement.h:
3282         * html/HTMLAnchorElement.idl:
3283         * html/HTMLAreaElement.idl:
3284         * html/URLUtils.idl:
3285
3286 2014-02-03  Mihai Maerean  <mmaerean@adobe.com>
3287
3288         [CSS Regions] Fix selection and hover effect of content in region with overflow:hidden
3289         https://bugs.webkit.org/show_bug.cgi?id=127101
3290
3291         Reviewed by Mihnea Ovidenie.
3292
3293         RenderNamedFlowFragments are not hit candidates. The hit test algorithm will pick the
3294         parent layer, the one of the region.
3295
3296         Test: fast/regions/hover-overflow-hidden.html
3297
3298         * rendering/RenderLayer.cpp:
3299         (WebCore::isHitCandidate):
3300
3301 2014-02-02  Maciej Stachowiak  <mjs@apple.com>
3302
3303         Adopt URLUtils interface and template in HTMLAnchorElement and HTMLAreaElement
3304         https://bugs.webkit.org/show_bug.cgi?id=128067
3305
3306         Reviewed by Antti Koivisto.
3307
3308         Tests: fast/dom/HTMLAnchorElement/anchor-password.html
3309                fast/dom/HTMLAnchorElement/anchor-username.html
3310                fast/dom/HTMLAreaElement/area-password.html
3311                fast/dom/HTMLAreaElement/area-username.html
3312
3313         * html/HTMLAnchorElement.cpp:
3314         * html/HTMLAnchorElement.h:
3315         (WebCore::HTMLAnchorElement::setHref): Add version that takes
3316         (and ignores) ExceptionCode. This is needed because the URLUtil
3317         base interface is used for URL, which can throw an exception,
3318         and HTMLAnchorElement, which cannot.
3319         * html/HTMLAnchorElement.idl: implement URLUtils
3320         * html/HTMLAreaElement.idl: implement URLUtils
3321         * html/URLUtils.idl: Treat null as empty string for href
3322
3323 2014-02-03  Krzysztof Czech  <k.czech@samsung.com>
3324
3325         [ATK] Expose aria-controls through ATK_RELATION_CONTROLLER_FOR
3326         https://bugs.webkit.org/show_bug.cgi?id=127908
3327
3328         Reviewed by Chris Fleizach.
3329
3330         Based on w3c, aria-controls could be exposed through ATK_RELATION_CONTROLLER_FOR.
3331
3332         Test: accessibility/aria-controls.html
3333
3334         * accessibility/AccessibilityObject.h:
3335         (WebCore::AccessibilityObject::supportsARIAControls):
3336         (WebCore::AccessibilityObject::ariaControlsElements):
3337         * accessibility/AccessibilityRenderObject.cpp:
3338         (WebCore::AccessibilityRenderObject::supportsARIAFlowTo):
3339         (WebCore::AccessibilityRenderObject::supportsARIAControls):
3340         (WebCore::AccessibilityRenderObject::ariaControlsElements):
3341         * accessibility/AccessibilityRenderObject.h:
3342         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
3343         (setAtkRelationSetFromCoreObject):
3344
3345 2014-02-03  Andreas Kling  <akling@apple.com>
3346
3347         RenderSVGResource::removeClientFromCache() should take RenderElement&.
3348         <https://webkit.org/b/128097>
3349
3350         Text renderers never have resources associated with them.
3351         This is yet another step towards enforcing that at compile-time
3352         by making all the resource cache interfaces deal in RenderElement.
3353
3354         Also marked the RenderSVGResourceSolidColor class final.
3355
3356         Reviewed by Darin Adler.
3357
3358         * rendering/svg/RenderSVGResource.cpp:
3359         (WebCore::removeFromCacheAndInvalidateDependencies):
3360         (WebCore::RenderSVGResource::markForLayoutAndParentResourceInvalidation):
3361         * rendering/svg/RenderSVGResource.h:
3362         * rendering/svg/RenderSVGResourceClipper.cpp:
3363         (WebCore::RenderSVGResourceClipper::removeClientFromCache):
3364         * rendering/svg/RenderSVGResourceClipper.h:
3365         * rendering/svg/RenderSVGResourceFilter.cpp:
3366         (WebCore::RenderSVGResourceFilter::removeClientFromCache):
3367         * rendering/svg/RenderSVGResourceFilter.h:
3368         * rendering/svg/RenderSVGResourceGradient.cpp:
3369         (WebCore::RenderSVGResourceGradient::removeClientFromCache):
3370         * rendering/svg/RenderSVGResourceGradient.h:
3371         * rendering/svg/RenderSVGResourceMarker.cpp:
3372         (WebCore::RenderSVGResourceMarker::removeClientFromCache):
3373         * rendering/svg/RenderSVGResourceMarker.h:
3374         * rendering/svg/RenderSVGResourceMasker.cpp:
3375         (WebCore::RenderSVGResourceMasker::removeClientFromCache):
3376         * rendering/svg/RenderSVGResourceMasker.h:
3377         * rendering/svg/RenderSVGResourcePattern.cpp:
3378         (WebCore::RenderSVGResourcePattern::removeClientFromCache):
3379         * rendering/svg/RenderSVGResourcePattern.h:
3380         * rendering/svg/RenderSVGResourceSolidColor.h:
3381         * rendering/svg/SVGRenderSupport.cpp:
3382         (WebCore::invalidateResourcesOfChildren):
3383         (WebCore::SVGRenderSupport::layoutChildren):
3384         * rendering/svg/SVGResources.cpp:
3385         (WebCore::SVGResources::removeClientFromCache):
3386         * rendering/svg/SVGResources.h:
3387
3388 2014-02-03  Dan Bernstein  <mitz@apple.com>
3389
3390         More iOS build fixing.
3391
3392         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
3393         (-[WebAccessibilityObjectWrapper arrayOfTextForTextMarkers:attributed:]):
3394         * html/parser/HTMLTreeBuilder.cpp:
3395         (WebCore::HTMLTreeBuilder::linkifyPhoneNumbers):
3396         * page/ios/FrameIOS.mm:
3397         (WebCore::Frame::interpretationsForCurrentRoot):
3398
3399 2014-02-03  Darin Adler  <darin@apple.com>
3400
3401         Try to fix iOS build.
3402
3403         * html/BaseDateAndTimeInputType.cpp:
3404         (WebCore::BaseDateAndTimeInputType::parseToDateComponents):
3405         Use deprecatedCharacters.
3406
3407 2014-02-02  Darin Adler  <darin@apple.com>
3408
3409         Obey "delete this" comments, including deleting String::characters and friends
3410         https://bugs.webkit.org/show_bug.cgi?id=126865
3411
3412         Reviewed by Andreas Kling.
3413
3414         * CMakeLists.txt: Deleted HTMLParserErrorCodes.cpp.
3415         * GNUmakefile.list.am: Deleted HTMLParserErrorCodes.cpp/h, and HTMLParserQuirks.h.
3416         * WebCore.vcxproj/WebCore.vcxproj: Deleted HTMLParserErrorCodes.cpp/h.
3417         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
3418         * WebCore.xcodeproj/project.pbxproj: Ditto.
3419
3420         * html/HTMLParserErrorCodes.cpp: Removed.
3421         * html/HTMLParserErrorCodes.h: Removed.
3422         * html/HTMLParserQuirks.h: Removed.
3423
3424         * rendering/RenderText.h: Deleted the characters function, leaving behind the
3425         deprecatedCharacters function.
3426
3427 2014-02-02  Brady Eidson  <beidson@apple.com>
3428
3429         IDB: Cannot open new databases with the default version
3430         https://bugs.webkit.org/show_bug.cgi?id=128096
3431
3432         Reviewed by Tim Horton.
3433
3434         * Modules/indexeddb/IDBDatabaseBackend.cpp:
3435         (WebCore::IDBDatabaseBackend::openConnectionInternal): Update logic to handle the
3436           current version being NoIntVersion.
3437
3438         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
3439         (WebCore::IDBDatabaseBackend::VersionChangeOperation::perform): Update ASSERT.
3440
3441 2014-02-02  Darin Adler  <darin@apple.com>
3442
3443         Fix context save/restore mistake spotted in SVGInlineTextBox::paintTextWithShadows
3444         https://bugs.webkit.org/show_bug.cgi?id=128095
3445
3446         Reviewed by Andreas Kling.
3447
3448         * rendering/svg/SVGInlineTextBox.cpp:
3449         (WebCore::SVGInlineTextBox::paintTextWithShadows): Move calls to GraphicsContext::restore
3450         and GraphicsContext::clearShadow before restoreGraphicsContextAfterTextPainting, since that
3451         function can swap contexts.
3452
3453 2014-02-02  Andreas Kling  <akling@apple.com>
3454
3455         Modernize RenderSVGText::locateRenderSVGTextAncestor().
3456         <https://webkit.org/b/128093>
3457
3458         Make locateRenderSVGTextAncestor() take a reference, and simplify it
3459         internally with lineageOfType.
3460
3461         Switched callers to use 'auto' for the return type so we get some
3462         devirtualization freebies.
3463
3464         Reviewed by Anders Carlsson.
3465
3466         * rendering/svg/RenderSVGInline.cpp:
3467         (WebCore::RenderSVGInline::objectBoundingBox):
3468         (WebCore::RenderSVGInline::strokeBoundingBox):
3469         (WebCore::RenderSVGInline::repaintRectInLocalCoordinates):
3470         (WebCore::RenderSVGInline::absoluteQuads):
3471         (WebCore::RenderSVGInline::addChild):
3472         (WebCore::RenderSVGInline::removeChild):
3473         * rendering/svg/RenderSVGInlineText.cpp:
3474         (WebCore::RenderSVGInlineText::setTextInternal):
3475         (WebCore::RenderSVGInlineText::styleDidChange):
3476         * rendering/svg/RenderSVGResourceGradient.cpp:
3477         (WebCore::createMaskAndSwapContextForTextGradient):
3478         (WebCore::clipToTextMask):
3479         * rendering/svg/RenderSVGText.cpp:
3480         (WebCore::RenderSVGText::locateRenderSVGTextAncestor):