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