[GTK] [CMake] Add a "make dist" target
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-01-30  Martin Robinson  <mrobinson@igalia.com>
2
3         [GTK] [CMake] Add a "make dist" target
4         https://bugs.webkit.org/show_bug.cgi?id=116378
5
6         Reviewed by Gustavo Noronha Silva.
7
8         * CMakeLists.txt: Don't build WebKitVersion.h for WebKitGTK+. We don't use it
9         and we don't want to distribute the dependency.
10
11 2014-01-30  Brady Eidson  <beidson@apple.com>
12
13         IDB: ObjectStore cursor advance() support
14         <rdar://problem/15779645> and https://bugs.webkit.org/show_bug.cgi?id=127866
15
16         Reviewed by Sam Weinig.
17
18         Add IDBKeyData sorting for database collation:
19         * Modules/indexeddb/IDBKeyData.cpp:
20         (WebCore::IDBKeyData::compare):
21         * Modules/indexeddb/IDBKeyData.h:
22
23         * WebCore.exp.in:
24
25         * platform/sql/SQLiteTransaction.h:
26         (WebCore::SQLiteTransaction::database):
27
28 2014-01-30  David Kilzer  <ddkilzer@apple.com>
29
30         De-virtual-ize CachedResource::isImage()
31         <http://webkit.org/b/127936>
32
33         Reviewed by Andreas Kling.
34
35         Also replace explicit type() checks with isImage().
36
37         * loader/SubresourceLoader.cpp:
38         (WebCore::SubresourceLoader::willSendRequest): Use isImage().
39         * loader/cache/CachedImage.h:
40         (WebCore::CachedResource::isImage): Remove virtual override.
41         * loader/cache/CachedResource.h:
42         (WebCore::CachedResource::isImage): Check type() instead of
43         defining a virtual method that returns false by default.
44         * loader/cache/CachedResourceLoader.cpp:
45         (WebCore::CachedResourceLoader::reloadImagesIfNotDeferred): Use isImage().
46
47 2014-01-30  Eric Carlson  <eric.carlson@apple.com>
48
49         [iOS] don't update media layers on main thread when using AVFoundation
50         https://bugs.webkit.org/show_bug.cgi?id=127931
51
52         Reviewed by Simon Fraser.
53
54         * platform/graphics/GraphicsLayerClient.h:
55         (WebCore::GraphicsLayerClient::mediaLayerMustBeUpdatedOnMainThread): Add mediaLayerMustBeUpdatedOnMainThread.
56
57         * platform/graphics/ca/GraphicsLayerCA.cpp:
58         (WebCore::GraphicsLayerCA::mediaLayerMustBeUpdatedOnMainThread): Ask the client if graphics layers
59             should be updated on the main thread.
60
61         * rendering/RenderLayerBacking.cpp:
62         (WebCore::RenderLayerBacking::mediaLayerMustBeUpdatedOnMainThread): New, check settings to see
63             if video plug-in proxy is enabled.
64         * rendering/RenderLayerBacking.h:
65
66 2014-01-30  Jer Noble  <jer.noble@apple.com>
67
68         [MediaControls][iOS] Fix a couple of UI bugs in the iOS Media Controls
69         https://bugs.webkit.org/show_bug.cgi?id=127929
70
71         Reviewed by Eric Carlson.
72
73         Two UI bugs in the iOS Media Controls: the text in the controls should use the apple
74         system font rather than the webkit small control font, and the buttons in the controls
75         are clipped due to an "off by one" error when calculating the SVG image dimensions.
76
77         * Modules/mediacontrols/mediaControlsiOS.css:
78         (::-webkit-media-controls):
79         (audio::-webkit-media-controls-play-button):
80         (audio::-webkit-media-controls-fullscreen-button):
81         (audio::-webkit-media-controls-time-remaining-display):
82
83 2014-01-30  Jeremy Jones  <jeremyj@apple.com>
84
85         Refactor WebVideoFullscreenController separating AVKit from MediaElement.
86         https://bugs.webkit.org/show_bug.cgi?id=127762
87
88         Reviewed by Jer Noble.
89
90         Refactor WebVideoFullscreenControllerAVKit implementation into two abstract interfaces with concrete implementations: 
91         WebVideoFullscreenModel, WebVideoFullscreenInterface, WebVideoFullscreenModelMediaElement, WebVideoFullscreenInterfaceAVKit.
92
93         * WebCore.xcodeproj/project.pbxproj:
94         * platform/ios/WebVideoFullscreenControllerAVKit.h:
95         * platform/ios/WebVideoFullscreenControllerAVKit.mm:
96         (-[WebVideoFullscreenController init]):
97         (-[WebVideoFullscreenController dealloc]):
98         (-[WebVideoFullscreenController enterFullscreen:]):
99         (-[WebVideoFullscreenController exitFullscreen]):
100         * platform/ios/WebVideoFullscreenInterface.h: Copied from Source/WebCore/platform/ios/WebVideoFullscreenControllerAVKit.h.
101         (WebCore::WebVideoFullscreenInterface::~WebVideoFullscreenInterface):
102         * platform/ios/WebVideoFullscreenInterfaceAVKit.h: Added.
103         (WebCore::WebVideoFullscreenInterfaceAVKit::~WebVideoFullscreenInterfaceAVKit):
104         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm: Added.
105         (NS_ENUM):
106         (-[WebAVPlayerController init]):
107         (-[WebAVPlayerController dealloc]):
108         (-[WebAVPlayerController forwardingTargetForSelector:]):
109         (-[WebAVPlayerController playerViewController:shouldDismissWithReason:]):
110         (-[WebAVPlayerController play:]):
111         (-[WebAVPlayerController pause:]):
112         (-[WebAVPlayerController togglePlayback:]):
113         (-[WebAVPlayerController isPlaying]):
114         (-[WebAVPlayerController setPlaying:]):
115         (+[WebAVPlayerController keyPathsForValuesAffectingPlaying]):
116         (-[WebAVPlayerController seekToTime:]):
117         (:m_videoFullscreenModel):
118         (WebVideoFullscreenInterfaceAVKit::setWebVideoFullscreenModel):
119         (WebVideoFullscreenInterfaceAVKit::setDuration):
120         (WebVideoFullscreenInterfaceAVKit::setCurrentTime):
121         (WebVideoFullscreenInterfaceAVKit::setRate):
122         (WebVideoFullscreenInterfaceAVKit::setVideoDimensions):
123         (WebVideoFullscreenInterfaceAVKit::setVideoLayer):
124         (WebVideoFullscreenInterfaceAVKit::enterFullscreen):
125         (WebVideoFullscreenInterfaceAVKit::exitFullscreen):
126         * platform/ios/WebVideoFullscreenModel.h: Copied from Source/WebCore/platform/ios/WebVideoFullscreenControllerAVKit.h.
127         (WebCore::WebVideoFullscreenModel::~WebVideoFullscreenModel):
128         * platform/ios/WebVideoFullscreenModelMediaElement.h: Copied from Source/WebCore/platform/ios/WebVideoFullscreenControllerAVKit.h.
129         (WebCore::WebVideoFullscreenModelMediaElement::~WebVideoFullscreenModelMediaElement):
130         (WebCore::WebVideoFullscreenModelMediaElement::setWebVideoFullscreenInterface):
131         * platform/ios/WebVideoFullscreenModelMediaElement.mm: Added.
132         (WebVideoFullscreenModelMediaElement::setMediaElement):
133         (WebVideoFullscreenModelMediaElement::handleEvent):
134         (WebVideoFullscreenModelMediaElement::requestExitFullScreen):
135         (WebVideoFullscreenModelMediaElement::play):
136         (WebVideoFullscreenModelMediaElement::pause):
137         (WebVideoFullscreenModelMediaElement::togglePlayState):
138         (WebVideoFullscreenModelMediaElement::seekToTime):
139         (WebVideoFullscreenModelMediaElement::didExitFullscreen):
140
141 2014-01-30  Jer Noble  <jer.noble@apple.com>
142
143         [MediaControls][iOS] Add a "start load" button.
144         https://bugs.webkit.org/show_bug.cgi?id=127861
145
146         Reviewed by Eric Carlson.
147
148         Add a "start load" button which replaces the controls on platforms
149         where inline playback is not allowed, or when playback without a
150         user gesture is not allowed.
151
152         Add an accessor to MediaControlsHost to query whether inline playback is allowed.:
153         * Modules/mediacontrols/MediaControlsHost.cpp:
154         (WebCore::MediaControlsHost::mediaPlaybackAllowsInline):
155         * Modules/mediacontrols/MediaControlsHost.h:
156         * Modules/mediacontrols/MediaControlsHost.idl:
157         * html/HTMLMediaElement.h:
158         (WebCore::HTMLMediaElement::mediaSession):
159
160         Update the base controller to allow more functions to be overridden:
161         * Modules/mediacontrols/mediaControlsApple.js:
162         (Controller):
163         (Controller.prototype.shouldHaveAnyUI):
164         (Controller.prototype.updateBase):
165         (Controller.prototype.setControlsType):
166         (Controller.prototype.updateControls):
167         (Controller.prototype.handleFullscreenChange):
168
169         Add the new button, and allow for switching between "start", "inline", and "fullscreen" controls:
170         * Modules/mediacontrols/mediaControlsiOS.js:
171         (ControllerIOS.prototype.addVideoListeners):
172         (ControllerIOS.prototype.removeVideoListeners):
173         (ControllerIOS.prototype.createBase):
174         (ControllerIOS.prototype.shouldHaveStartPlaybackButton):
175         (ControllerIOS.prototype.shouldHaveControls):
176         (ControllerIOS.prototype.shouldHaveAnyUI):
177         (ControllerIOS.prototype.createControls):
178         (ControllerIOS.prototype.setControlsType):
179         (ControllerIOS.prototype.addStartPlaybackControls):
180         (ControllerIOS.prototype.removeStartPlaybackControls):
181         (ControllerIOS.prototype.updateControls):
182         (ControllerIOS.prototype.handleStartPlaybackButtonTouchStart):
183         (ControllerIOS.prototype.handleStartPlaybackButtonTouchEnd):
184         (ControllerIOS.prototype.handleStartPlaybackButtonTouchCancel):
185         (ControllerIOS.prototype.handleReadyStateChange):
186
187         Add the new art:
188         * Modules/mediacontrols/mediaControlsiOS.css:
189         (audio::-webkit-media-controls-start-playback-button):
190         (audio::-webkit-media-controls-start-playback-button.failed):
191
192 2014-01-30  Tim Horton  <timothy_horton@apple.com>
193
194         WebKit2 View Gestures (Swipe): Provide a way for clients to provide views to swipe
195         https://bugs.webkit.org/show_bug.cgi?id=127891
196         <rdar://problem/15931413>
197
198         Reviewed by Anders Carlsson.
199
200         * WebCore.exp.in:
201         A surprising export.
202
203 2014-01-30  Beth Dakin  <bdakin@apple.com>
204
205         https://bugs.webkit.org/show_bug.cgi?id=127371
206         Explore new API that could be used to help build infinitely scrolling websites
207         -and corresponding-
208         <rdar://problem/15244768>
209
210         Reviewed by Sam Weinig.
211
212         This patch adds 4 new events called webkitwillrevealbottom, webkitwillrevealtop, 
213         webkitwillrevealleft, and webkitwillrevealright. These events will fire when the 
214         user has scrolled close to corresponding edge of the document. Right now that is 
215         defined to be one viewport away from the corresponding edge. 
216
217         FrameView::scrollPositionChanged() and 
218         FrameView::scrollPositionChangedViaPlatformWidget() now take two parameters 
219         representing the old scroll position and the new position.
220         * WebCore.exp.in:
221
222         New events.
223         * dom/Document.h:
224         * dom/Document.idl:
225         * dom/Element.h:
226         * dom/Element.idl:
227         * dom/EventNames.h:
228         * html/HTMLAttributeNames.in:
229         * html/HTMLElement.cpp:
230         (WebCore::populateEventNameForAttributeLocalNameMap):
231         * page/DOMWindow.h:
232         * page/DOMWindow.idl:
233
234         Send oldPosition and newPosition to scrollPositionChanged().
235         * page/FrameView.cpp:
236         (WebCore::FrameView::setFixedVisibleContentRect):
237         (WebCore::FrameView::scrollPositionChangedViaPlatformWidget):
238
239         After sending scroll events, also call sendWillRevealEdgeEventsIfNeeded() to send 
240         the see if we should send the new will-reveal events.
241         (WebCore::FrameView::scrollPositionChanged):
242
243         Use the old position and the new position to determine if the events should be 
244         sent.
245         (WebCore::FrameView::sendWillRevealEdgeEventsIfNeeded):
246
247         Send new parameters to scrollPositionChanged().
248         (WebCore::FrameView::scrollTo):
249         (WebCore::FrameView::wheelEvent):
250         * page/FrameView.h:
251
252 2014-01-30  Szabolcs David  <davidsz@inf.u-szeged.hu>
253
254         [curl] Improve realm string parsing in WWW-Authenticate headers
255         https://bugs.webkit.org/show_bug.cgi?id=127421
256
257         Reviewed by Brent Fulgham.
258
259         The realm string contains quotes at the beginning and end - this is the
260         opposite of the libsoup implementation. Furthermore, if the header is
261         concatenated from two or more another headers, it contains more incorrect part.
262
263         * platform/network/curl/ResourceHandleManager.cpp:
264         (WebCore::removeLeadingAndTrailingQuotes):
265         (WebCore::getProtectionSpace):
266
267 2014-01-30  Anders Carlsson  <andersca@apple.com>
268
269         Modernize HTTPHeaderMap iteration
270         https://bugs.webkit.org/show_bug.cgi?id=127915
271
272         Reviewed by Andreas Kling.
273
274         * inspector/InspectorResourceAgent.cpp:
275         (WebCore::buildObjectForHeaders):
276         (WebCore::InspectorResourceAgent::willLoadXHR):
277         (WebCore::InspectorResourceAgent::replayXHR):
278         * loader/CrossOriginAccessControl.cpp:
279         (WebCore::isSimpleCrossOriginAccessRequest):
280         (WebCore::createAccessControlPreflightRequest):
281         * loader/CrossOriginPreflightResultCache.cpp:
282         (WebCore::CrossOriginPreflightResultCacheItem::allowsCrossOriginHeaders):
283         * loader/DocumentLoader.cpp:
284         (WebCore::DocumentLoader::responseReceived):
285         * loader/appcache/ApplicationCacheStorage.cpp:
286         (WebCore::ApplicationCacheStorage::store):
287         * loader/cache/CachedRawResource.cpp:
288         (WebCore::CachedRawResource::canReuse):
289         * loader/cache/CachedResource.cpp:
290         (WebCore::CachedResource::updateResponseAfterRevalidation):
291         * platform/network/HTTPHeaderMap.cpp:
292         (WebCore::HTTPHeaderMap::copyData):
293         * platform/network/ResourceRequestBase.cpp:
294         (WebCore::ResourceRequestBase::addHTTPHeaderFields):
295         * platform/network/cf/ResourceRequestCFNet.cpp:
296         (WebCore::setHeaderFields):
297         * platform/network/mac/ResourceRequestMac.mm:
298         (WebCore::ResourceRequest::doUpdatePlatformRequest):
299         * xml/XMLHttpRequest.cpp:
300         (WebCore::XMLHttpRequest::getAllResponseHeaders):
301
302 2014-01-30  Antti Koivisto  <antti@apple.com>
303
304         WebPage::determinePrimarySnapshottedPlugIn is slow
305         https://bugs.webkit.org/show_bug.cgi?id=127905
306
307         Reviewed by Anders Carlsson.
308
309         * WebCore.exp.in: New exports
310         * WebCore.xcodeproj/project.pbxproj:
311         * html/HTMLPlugInImageElement.h:
312         (WebCore::HTMLPlugInImageElement>): Add isElementOfType<>
313
314 2014-01-30  Csaba Osztrogonác  <ossy@webkit.org>
315
316         [SOUP] Fix the build if !ENABLE(WEB_TIMING)
317         https://bugs.webkit.org/show_bug.cgi?id=127906
318
319         Reviewed by Gustavo Noronha Silva.
320
321         * platform/network/soup/SoupNetworkSession.cpp:
322
323 2014-01-30  Andrei Bucur  <abucur@adobe.com>
324
325         Remove the ACCELERATED_COMPOSITING flag
326         https://bugs.webkit.org/show_bug.cgi?id=127833
327
328         Reviewed by Antti Koivisto.
329
330         Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC
331         mandatory.
332
333         Tests: No new tests, no functional change.
334
335         * css/MediaQueryEvaluator.cpp:
336         (WebCore::transform_3dMediaFeatureEval):
337         * css/StyleResolver.cpp:
338         (WebCore::StyleResolver::canShareStyleWithElement):
339         * dom/Document.cpp:
340         (WebCore::Document::setVisualUpdatesAllowed):
341         (WebCore::Document::recalcStyle):
342         (WebCore::Document::createRenderTree):
343         (WebCore::Document::documentWillBecomeInactive):
344         (WebCore::Document::documentDidResumeFromPageCache):
345         (WebCore::Document::windowScreenDidChange):
346         * dom/PseudoElement.cpp:
347         (WebCore::PseudoElement::~PseudoElement):
348         * history/CachedFrame.cpp:
349         (WebCore::CachedFrameBase::CachedFrameBase):
350         (WebCore::CachedFrameBase::restore):
351         (WebCore::CachedFrame::CachedFrame):
352         * history/CachedFrame.h:
353         * history/CachedPage.cpp:
354         (WebCore::CachedPage::restore):
355         * history/CachedPage.h:
356         * history/PageCache.cpp:
357         (WebCore::PageCache::PageCache):
358         (WebCore::PageCache::markPagesForDeviceScaleChanged):
359         * history/PageCache.h:
360         * html/HTMLCanvasElement.cpp:
361         (WebCore::HTMLCanvasElement::getContext):
362         (WebCore::HTMLCanvasElement::reset):
363         (WebCore::HTMLCanvasElement::paintsIntoCanvasBuffer):
364         (WebCore::HTMLCanvasElement::createImageBuffer):
365         * html/HTMLMediaElement.cpp:
366         (WebCore::HTMLMediaElement::parseAttribute):
367         * html/HTMLMediaElement.h:
368         * html/canvas/CanvasRenderingContext.h:
369         * html/canvas/CanvasRenderingContext2D.cpp:
370         (WebCore::CanvasRenderingContext2D::didDraw):
371         * html/canvas/CanvasRenderingContext2D.h:
372         * html/canvas/WebGLRenderingContext.cpp:
373         (WebCore::WebGLRenderingContext::markContextChanged):
374         (WebCore::WebGLRenderingContext::reshape):
375         (WebCore::WebGLRenderingContext::platformLayer):
376         * html/canvas/WebGLRenderingContext.h:
377         * inspector/InspectorController.cpp:
378         (WebCore::InspectorController::InspectorController):
379         * inspector/InspectorInstrumentation.cpp:
380         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
381         (WebCore::InspectorInstrumentation::pseudoElementDestroyedImpl):
382         * inspector/InspectorInstrumentation.h:
383         (WebCore::InspectorInstrumentation::pseudoElementDestroyed):
384         * inspector/InspectorLayerTreeAgent.cpp:
385         * inspector/InstrumentingAgents.cpp:
386         (WebCore::InstrumentingAgents::InstrumentingAgents):
387         (WebCore::InstrumentingAgents::reset):
388         * inspector/InstrumentingAgents.h:
389         * loader/EmptyClients.h:
390         * page/ChromeClient.h:
391         * page/Frame.cpp:
392         (WebCore::Frame::layerTreeAsText):
393         (WebCore::Frame::deviceOrPageScaleFactorChanged):
394         * page/Frame.h:
395         * page/FrameView.cpp:
396         (WebCore::FrameView::setFrameRect):
397         (WebCore::FrameView::scheduleLayerFlushAllowingThrottling):
398         (WebCore::FrameView::hasCompositedContent):
399         (WebCore::FrameView::hasCompositedContentIncludingDescendants):
400         (WebCore::FrameView::hasCompositingAncestor):
401         (WebCore::FrameView::enterCompositingMode):
402         (WebCore::FrameView::isEnclosedInCompositingLayer):
403         (WebCore::FrameView::flushCompositingStateIncludingSubframes):
404         (WebCore::FrameView::isSoftwareRenderable):
405         (WebCore::FrameView::layout):
406         (WebCore::FrameView::contentsInCompositedLayer):
407         (WebCore::FrameView::scrollContentsFastPath):
408         (WebCore::FrameView::scrollContentsSlowPath):
409         (WebCore::FrameView::setIsOverlapped):
410         (WebCore::FrameView::delegatesScrollingDidChange):
411         (WebCore::FrameView::scrollPositionChanged):
412         (WebCore::FrameView::updateCompositingLayersAfterScrolling):
413         (WebCore::FrameView::visibleContentsResized):
414         (WebCore::FrameView::addedOrRemovedScrollbar):
415         (WebCore::FrameView::disableLayerFlushThrottlingTemporarilyForInteraction):
416         (WebCore::FrameView::updateLayerFlushThrottlingInAllFrames):
417         (WebCore::FrameView::adjustTiledBackingCoverage):
418         (WebCore::FrameView::hasExtendedBackground):
419         (WebCore::FrameView::extendedBackgroundRect):
420         (WebCore::FrameView::setBackgroundExtendsBeyondPage):
421         (WebCore::FrameView::performPostLayoutTasks):
422         (WebCore::FrameView::paintContents):
423         (WebCore::FrameView::setTracksRepaints):
424         (WebCore::FrameView::resetTrackedRepaints):
425         (WebCore::FrameView::setScrollingPerformanceLoggingEnabled):
426         (WebCore::FrameView::setExposedRect):
427         * page/FrameView.h:
428         * page/Page.cpp:
429         (WebCore::Page::setPageScaleFactor):
430         (WebCore::Page::setDeviceScaleFactor):
431         * page/Settings.cpp:
432         (WebCore::Settings::setBackgroundShouldExtendBeyondPage):
433         * page/animation/AnimationBase.cpp:
434         (WebCore::AnimationBase::freezeAtTime):
435         * page/animation/AnimationController.cpp:
436         (WebCore::AnimationController::supportsAcceleratedAnimationOfProperty):
437         * page/animation/CSSPropertyAnimation.cpp:
438         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
439         (WebCore::CSSPropertyAnimation::blendProperties):
440         (WebCore::CSSPropertyAnimation::animationOfPropertyIsAccelerated):
441         * page/animation/CSSPropertyAnimation.h:
442         * page/animation/CompositeAnimation.cpp:
443         (WebCore::CompositeAnimation::updateTransitions):
444         * page/animation/ImplicitAnimation.cpp:
445         (WebCore::ImplicitAnimation::animate):
446         (WebCore::ImplicitAnimation::startAnimation):
447         (WebCore::ImplicitAnimation::pauseAnimation):
448         (WebCore::ImplicitAnimation::endAnimation):
449         (WebCore::ImplicitAnimation::timeToNextService):
450         * page/animation/KeyframeAnimation.cpp:
451         (WebCore::KeyframeAnimation::animate):
452         (WebCore::KeyframeAnimation::startAnimation):
453         (WebCore::KeyframeAnimation::pauseAnimation):
454         (WebCore::KeyframeAnimation::endAnimation):
455         (WebCore::KeyframeAnimation::timeToNextService):
456         * page/ios/FrameIOS.mm:
457         (WebCore::Frame::viewportOffsetChanged):
458         (WebCore::Frame::containsTiledBackingLayers):
459         * page/scrolling/AsyncScrollingCoordinator.cpp:
460         (WebCore::AsyncScrollingCoordinator::updateScrollPositionAfterAsyncScroll):
461         * page/scrolling/ScrollingCoordinator.cpp:
462         (WebCore::ScrollingCoordinator::coordinatesScrollingForFrameView):
463         (WebCore::ScrollingCoordinator::computeNonFastScrollableRegion):
464         (WebCore::ScrollingCoordinator::verticalScrollbarLayerForScrollableArea):
465         (WebCore::ScrollingCoordinator::scrollLayerForFrameView):
466         (WebCore::ScrollingCoordinator::headerLayerForFrameView):
467         (WebCore::ScrollingCoordinator::footerLayerForFrameView):
468         (WebCore::ScrollingCoordinator::counterScrollingLayerForFrameView):
469         (WebCore::ScrollingCoordinator::hasVisibleSlowRepaintViewportConstrainedObjects):
470         * page/scrolling/ScrollingCoordinator.h:
471         * platform/ScrollView.cpp:
472         (WebCore::positionScrollCornerLayer):
473         (WebCore::ScrollView::positionScrollbarLayers):
474         (WebCore::ScrollView::paintScrollbars):
475         (WebCore::ScrollView::paint):
476         * platform/ScrollableArea.cpp:
477         (WebCore::ScrollableArea::invalidateScrollbar):
478         (WebCore::ScrollableArea::invalidateScrollCorner):
479         (WebCore::ScrollableArea::horizontalScrollbarLayerDidChange):
480         (WebCore::ScrollableArea::hasLayerForHorizontalScrollbar):
481         (WebCore::ScrollableArea::hasLayerForVerticalScrollbar):
482         (WebCore::ScrollableArea::hasLayerForScrollCorner):
483         * platform/ScrollableArea.h:
484         * platform/ScrollbarTheme.h:
485         * platform/efl/EflScreenUtilities.cpp:
486         (WebCore::applyFallbackCursor):
487         * platform/graphics/GraphicsContext3D.h:
488         * platform/graphics/GraphicsContext3DPrivate.cpp:
489         (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
490         (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
491         * platform/graphics/GraphicsContext3DPrivate.h:
492         * platform/graphics/GraphicsLayer.cpp:
493         * platform/graphics/GraphicsLayer.h:
494         * platform/graphics/GraphicsLayerAnimation.cpp:
495         * platform/graphics/GraphicsLayerAnimation.h:
496         * platform/graphics/GraphicsLayerClient.h:
497         * platform/graphics/GraphicsLayerFactory.h:
498         * platform/graphics/GraphicsLayerUpdater.cpp:
499         * platform/graphics/GraphicsLayerUpdater.h:
500         * platform/graphics/ImageBuffer.cpp:
501         * platform/graphics/ImageBuffer.h:
502         * platform/graphics/MediaPlayer.cpp:
503         (WebCore::MediaPlayer::platformLayer):
504         (WebCore::MediaPlayer::supportsAcceleratedRendering):
505         * platform/graphics/MediaPlayer.h:
506         * platform/graphics/MediaPlayerPrivate.h:
507         * platform/graphics/PlatformLayer.h:
508         * platform/graphics/TextTrackRepresentation.cpp:
509         * platform/graphics/TextTrackRepresentation.h:
510         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
511         (WebCore::MediaPlayerPrivateAVFoundation::currentRenderingMode):
512         (WebCore::MediaPlayerPrivateAVFoundation::preferredRenderingMode):
513         (WebCore::MediaPlayerPrivateAVFoundation::setUpVideoRendering):
514         (WebCore::MediaPlayerPrivateAVFoundation::tearDownVideoRendering):
515         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
516         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h:
517         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
518         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::platformLayer):
519         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::acceleratedRenderingStateChanged):
520         * platform/graphics/ca/GraphicsLayerCA.cpp:
521         * platform/graphics/ca/GraphicsLayerCA.h:
522         * platform/graphics/ca/LayerFlushScheduler.cpp:
523         * platform/graphics/ca/LayerFlushScheduler.h:
524         * platform/graphics/ca/LayerFlushSchedulerClient.h:
525         * platform/graphics/ca/PlatformCAAnimation.h:
526         * platform/graphics/ca/PlatformCAFilters.h:
527         * platform/graphics/ca/PlatformCALayer.h:
528         * platform/graphics/ca/PlatformCALayerClient.h:
529         * platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp:
530         * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
531         (PlatformCAAnimation::copyTimingFunctionsFrom):
532         * platform/graphics/ca/mac/PlatformCAFiltersMac.mm:
533         * platform/graphics/ca/mac/PlatformCALayerMac.h:
534         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
535         (PlatformCALayerMac::enumerateRectsBeingDrawn):
536         * platform/graphics/ca/win/AbstractCACFLayerTreeHost.h:
537         * platform/graphics/ca/win/CACFLayerTreeHost.cpp:
538         * platform/graphics/ca/win/CACFLayerTreeHost.h:
539         * platform/graphics/ca/win/CACFLayerTreeHostClient.h:
540         * platform/graphics/ca/win/LayerChangesFlusher.cpp:
541         * platform/graphics/ca/win/LayerChangesFlusher.h:
542         * platform/graphics/ca/win/LegacyCACFLayerTreeHost.cpp:
543         * platform/graphics/ca/win/LegacyCACFLayerTreeHost.h:
544         * platform/graphics/ca/win/PlatformCAAnimationWin.cpp:
545         (PlatformCAAnimation::copyTimingFunctionsFrom):
546         * platform/graphics/ca/win/PlatformCAFiltersWin.cpp:
547         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
548         (PlatformCALayerWin::createCompatibleLayer):
549         * platform/graphics/ca/win/PlatformCALayerWin.h:
550         * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp:
551         (PlatformCALayerWinInternal::drawTile):
552         * platform/graphics/ca/win/PlatformCALayerWinInternal.h:
553         * platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp:
554         * platform/graphics/ca/win/WKCACFViewLayerTreeHost.h:
555         * platform/graphics/cairo/DrawingBufferCairo.cpp:
556         (WebCore::DrawingBuffer::paintCompositedResultsToCanvas):
557         * platform/graphics/cairo/GraphicsContext3DCairo.cpp:
558         (WebCore::GraphicsContext3D::platformLayer):
559         * platform/graphics/cairo/ImageBufferCairo.cpp:
560         (WebCore::ImageBuffer::platformLayer):
561         * platform/graphics/efl/GraphicsContext3DEfl.cpp:
562         (WebCore::GraphicsContext3D::platformLayer):
563         * platform/graphics/efl/GraphicsContext3DPrivate.cpp:
564         * platform/graphics/efl/GraphicsContext3DPrivate.h:
565         * platform/graphics/gpu/DrawingBuffer.h:
566         * platform/graphics/gpu/LoopBlinnMathUtils.cpp:
567         * platform/graphics/gpu/TilingData.cpp:
568         * platform/graphics/gpu/mac/DrawingBufferMac.mm:
569         (WebCore::DrawingBuffer::frontColorBuffer):
570         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
571         (WebCore::MediaPlayerPrivateGStreamerBase::triggerRepaint):
572         (WebCore::MediaPlayerPrivateGStreamerBase::paint):
573         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h:
574         * platform/graphics/ios/MediaPlayerPrivateIOS.h:
575         * platform/graphics/ios/MediaPlayerPrivateIOS.mm:
576         (WebCore::MediaPlayerPrivateIOS::supportsAcceleratedRendering):
577         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
578         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
579         (WebCore::MediaPlayerPrivateQTKit::createQTMovieLayer):
580         (WebCore::MediaPlayerPrivateQTKit::destroyQTMovieLayer):
581         (WebCore::MediaPlayerPrivateQTKit::preferredRenderingMode):
582         (WebCore::MediaPlayerPrivateQTKit::platformLayer):
583         (WebCore::MediaPlayerPrivateQTKit::setClosedCaptionsVisible):
584         (WebCore::MediaPlayerPrivateQTKit::layerHostChanged):
585         (WebCore::MediaPlayerPrivateQTKit::acceleratedRenderingStateChanged):
586         (-[WebCoreMovieObserver layerHostChanged:]):
587         * platform/graphics/mac/WebGLLayer.h:
588         * platform/graphics/mac/WebGLLayer.mm:
589         * platform/graphics/mac/WebLayer.h:
590         * platform/graphics/mac/WebLayer.mm:
591         * platform/graphics/mac/WebTiledLayer.h:
592         * platform/graphics/mac/WebTiledLayer.mm:
593         * platform/graphics/opengl/GLDefs.h:
594         * platform/graphics/opengl/GLPlatformContext.cpp:
595         * platform/graphics/opengl/GLPlatformContext.h:
596         * platform/graphics/opengl/GLPlatformSurface.cpp:
597         * platform/graphics/opengl/GLPlatformSurface.h:
598         * platform/graphics/surfaces/GLTransportSurface.cpp:
599         * platform/graphics/surfaces/GLTransportSurface.h:
600         * platform/graphics/surfaces/glx/GLXConfigSelector.h:
601         * platform/graphics/surfaces/glx/GLXContext.cpp:
602         * platform/graphics/surfaces/glx/GLXContext.h:
603         * platform/graphics/surfaces/glx/GLXSurface.cpp:
604         * platform/graphics/surfaces/glx/GLXSurface.h:
605         * platform/graphics/texmap/TextureMapper.cpp:
606         * platform/graphics/texmap/TextureMapper.h:
607         * platform/graphics/texmap/TextureMapperBackingStore.cpp:
608         * platform/graphics/texmap/TextureMapperBackingStore.h:
609         * platform/graphics/texmap/TextureMapperFPSCounter.cpp:
610         * platform/graphics/texmap/TextureMapperFPSCounter.h:
611         * platform/graphics/texmap/TextureMapperGL.cpp:
612         * platform/graphics/texmap/TextureMapperGL.h:
613         * platform/graphics/texmap/TextureMapperLayer.cpp:
614         * platform/graphics/texmap/TextureMapperLayer.h:
615         * platform/graphics/texmap/TextureMapperShaderProgram.cpp:
616         * platform/graphics/texmap/TextureMapperSurfaceBackingStore.cpp:
617         * platform/graphics/texmap/TextureMapperSurfaceBackingStore.h:
618         * platform/graphics/texmap/TextureMapperTile.cpp:
619         * platform/graphics/texmap/TextureMapperTile.h:
620         * platform/graphics/texmap/TextureMapperTiledBackingStore.cpp:
621         * platform/graphics/texmap/TextureMapperTiledBackingStore.h:
622         * platform/graphics/win/GraphicsContext3DWin.cpp:
623         (WebCore::GraphicsContext3D::platformLayer):
624         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
625         (WebCore::MediaPlayerPrivateFullscreenWindow::createWindow):
626         (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
627         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h:
628         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
629         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayoutSublayersOfLayer):
630         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
631         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::supportsFullscreen):
632         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformMedia):
633         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformLayer):
634         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::naturalSize):
635         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::paint):
636         (WebCore::CreateCGImageFromPixelBuffer):
637         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage):
638         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::currentRenderingMode):
639         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::preferredRenderingMode):
640         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setUpVideoRendering):
641         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::tearDownVideoRendering):
642         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::hasSetUpVideoRendering):
643         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveAndResetMovieTransform):
644         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::createLayerForMovie):
645         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::destroyLayerForMovie):
646         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setPrivateBrowsingMode):
647         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
648         * platform/graphics/win/WKCAImageQueue.cpp:
649         * platform/graphics/win/WKCAImageQueue.h:
650         * platform/mac/ScrollbarThemeMac.h:
651         * platform/mac/ScrollbarThemeMac.mm:
652         * plugins/PluginViewBase.h:
653         * rendering/FlowThreadController.cpp:
654         (WebCore::FlowThreadController::updateRenderFlowThreadLayersIfNeeded):
655         * rendering/FlowThreadController.h:
656         * rendering/RenderBox.cpp:
657         (WebCore::RenderBox::styleWillChange):
658         (WebCore::isCandidateForOpaquenessTest):
659         (WebCore::layersUseImage):
660         (WebCore::RenderBox::imageChanged):
661         * rendering/RenderBoxModelObject.cpp:
662         (WebCore::RenderBoxModelObject::suspendAnimations):
663         (WebCore::RenderBoxModelObject::fixedBackgroundPaintsInLocalCoordinates):
664         * rendering/RenderBoxModelObject.h:
665         * rendering/RenderElement.cpp:
666         (WebCore::RenderElement::adjustStyleDifference):
667         (WebCore::RenderElement::setStyle):
668         (WebCore::RenderElement::styleWillChange):
669         * rendering/RenderEmbeddedObject.cpp:
670         (WebCore::RenderEmbeddedObject::allowsAcceleratedCompositing):
671         * rendering/RenderEmbeddedObject.h:
672         * rendering/RenderFlowThread.cpp:
673         (WebCore::RenderFlowThread::RenderFlowThread):
674         (WebCore::RenderFlowThread::layout):
675         (WebCore::RenderFlowThread::updateAllLayerToRegionMappings):
676         * rendering/RenderFlowThread.h:
677         * rendering/RenderFullScreen.cpp:
678         * rendering/RenderImage.cpp:
679         (WebCore::RenderImage::imageDimensionsChanged):
680         (WebCore::RenderImage::notifyFinished):
681         * rendering/RenderLayer.cpp:
682         (WebCore::RenderLayer::RenderLayer):
683         (WebCore::RenderLayer::~RenderLayer):
684         (WebCore::RenderLayer::canRender3DTransforms):
685         (WebCore::RenderLayer::paintsWithFilters):
686         (WebCore::RenderLayer::updateLayerPositions):
687         (WebCore::RenderLayer::updateDescendantsAreContiguousInStackingOrderRecursive):
688         (WebCore::RenderLayer::currentTransform):
689         (WebCore::RenderLayer::updateDescendantDependentFlags):
690         (WebCore::RenderLayer::checkIfDescendantClippingContextNeedsUpdate):
691         (WebCore::RenderLayer::shouldRepaintAfterLayout):
692         (WebCore::RenderLayer::enclosingFilterRepaintLayer):
693         (WebCore::RenderLayer::setFilterBackendNeedsRepaintingInRect):
694         (WebCore::RenderLayer::clippingRootForPainting):
695         (WebCore::RenderLayer::addChild):
696         (WebCore::RenderLayer::removeChild):
697         (WebCore::RenderLayer::removeOnlyThisLayer):
698         (WebCore::RenderLayer::scrollTo):
699         (WebCore::RenderLayer::updateCompositingLayersAfterScroll):
700         (WebCore::RenderLayer::invalidateScrollbarRect):
701         (WebCore::RenderLayer::invalidateScrollCornerRect):
702         (WebCore::RenderLayer::positionOverflowControls):
703         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
704         (WebCore::RenderLayer::paintOverflowControls):
705         (WebCore::shouldDoSoftwarePaint):
706         (WebCore::RenderLayer::paintLayer):
707         (WebCore::RenderLayer::calculateClipRects):
708         * rendering/RenderLayer.h:
709         * rendering/RenderLayerBacking.cpp:
710         * rendering/RenderLayerBacking.h:
711         * rendering/RenderLayerCompositor.cpp:
712         * rendering/RenderLayerCompositor.h:
713         * rendering/RenderNamedFlowThread.cpp:
714         (WebCore::RenderNamedFlowThread::collectsGraphicsLayersUnderRegions):
715         * rendering/RenderNamedFlowThread.h:
716         * rendering/RenderObject.cpp:
717         (WebCore::RenderObject::containerForRepaint):
718         (WebCore::RenderObject::repaintUsingContainer):
719         * rendering/RenderTreeAsText.cpp:
720         (WebCore::write):
721         * rendering/RenderVideo.cpp:
722         (WebCore::RenderVideo::updatePlayer):
723         (WebCore::RenderVideo::acceleratedRenderingStateChanged):
724         * rendering/RenderVideo.h:
725         * rendering/RenderView.cpp:
726         (WebCore::RenderView::paintBoxDecorations):
727         (WebCore::RenderView::repaintRootContents):
728         (WebCore::RenderView::repaintRectangleInViewAndCompositedLayers):
729         (WebCore::RenderView::repaintViewAndCompositedLayers):
730         (WebCore::RenderView::setMaximalOutlineSize):
731         (WebCore::RenderView::compositor):
732         (WebCore::RenderView::setIsInWindow):
733         * rendering/RenderView.h:
734         * rendering/RenderWidget.cpp:
735         (WebCore::RenderWidget::setWidgetGeometry):
736         (WebCore::RenderWidget::requiresAcceleratedCompositing):
737         * rendering/RenderWidget.h:
738         * rendering/style/RenderStyle.cpp:
739         (WebCore::RenderStyle::changeRequiresLayout):
740         (WebCore::RenderStyle::changeRequiresLayerRepaint):
741         (WebCore::RenderStyle::changeRequiresRecompositeLayer):
742         (WebCore::RenderStyle::diff):
743         * rendering/style/RenderStyle.h:
744         * rendering/style/RenderStyleConstants.h:
745         * rendering/style/StyleRareNonInheritedData.cpp:
746         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
747         (WebCore::StyleRareNonInheritedData::operator==):
748         * rendering/style/StyleRareNonInheritedData.h:
749         * testing/Internals.cpp:
750         (WebCore::Internals::resetToConsistentState):
751         (WebCore::Internals::setHeaderHeight):
752         (WebCore::Internals::setFooterHeight):
753
754 2014-01-30  Krzysztof Czech  <k.czech@samsung.com>
755
756         AX: Clean up AccessibilityRenderObject
757         https://bugs.webkit.org/show_bug.cgi?id=127838
758
759         Reviewed by Chris Fleizach.
760
761         Reducing some code by implementing ariaElementsFromAttribute.
762         It is used as a helper for other methods.
763
764         No new tests. Covered by existing ones.
765
766         * accessibility/AccessibilityRenderObject.cpp:
767         (WebCore::AccessibilityRenderObject::ariaElementsFromAttribute):
768         (WebCore::AccessibilityRenderObject::ariaFlowToElements):
769         (WebCore::AccessibilityRenderObject::ariaDescribedByElements):
770         (WebCore::AccessibilityRenderObject::ariaOwnsElements):
771         * accessibility/AccessibilityRenderObject.h:
772
773 2014-01-29  Commit Queue  <commit-queue@webkit.org>
774
775         Unreviewed, rolling out r163048.
776         http://trac.webkit.org/changeset/163048
777         https://bugs.webkit.org/show_bug.cgi?id=127890
778
779         Caused many crashes, detected by EWS prior to landing
780         (Requested by ap on #webkit).
781
782         * Modules/mediacontrols/MediaControlsHost.cpp:
783         (WebCore::MediaControlsHost::sortedTrackListForMenu):
784         (WebCore::MediaControlsHost::displayNameForTrack):
785         (WebCore::MediaControlsHost::captionDisplayMode):
786         * WebCore.exp.in:
787         * WebCore.vcxproj/WebCore.vcxproj:
788         * WebCore.vcxproj/WebCore.vcxproj.filters:
789         * WebCore.xcodeproj/project.pbxproj:
790         * css/DocumentRuleSets.cpp:
791         (WebCore::DocumentRuleSets::initUserStyle):
792         * css/InspectorCSSOMWrappers.cpp:
793         (WebCore::InspectorCSSOMWrappers::collectFromDocumentStyleSheetCollection):
794         * dom/Document.cpp:
795         (WebCore::Document::setCompatibilityMode):
796         (WebCore::Document::registerForCaptionPreferencesChangedCallbacks):
797         (WebCore::Document::captionPreferencesChanged):
798         * dom/DocumentStyleSheetCollection.cpp:
799         * dom/DocumentStyleSheetCollection.h:
800         * html/HTMLMediaElement.cpp:
801         (WebCore::HTMLMediaElement::HTMLMediaElement):
802         (WebCore::HTMLMediaElement::parseAttribute):
803         * html/shadow/MediaControlElements.cpp:
804         (WebCore::MediaControlClosedCaptionsTrackListElement::updateDisplay):
805         (WebCore::MediaControlClosedCaptionsTrackListElement::rebuildTrackListMenu):
806         (WebCore::MediaControlTextTrackContainerElement::updateTimerFired):
807         * page/CaptionStyleSheetMediaAF.cpp: Removed.
808         * page/CaptionStyleSheetMediaAF.h: Removed.
809         * page/CaptionUserPreferences.cpp:
810         (WebCore::CaptionUserPreferences::CaptionUserPreferences):
811         (WebCore::CaptionUserPreferences::notify):
812         (WebCore::CaptionUserPreferences::setCaptionDisplayMode):
813         (WebCore::CaptionUserPreferences::userPrefersCaptions):
814         (WebCore::CaptionUserPreferences::setUserPrefersCaptions):
815         (WebCore::CaptionUserPreferences::userPrefersSubtitles):
816         (WebCore::CaptionUserPreferences::setUserPrefersSubtitles):
817         (WebCore::CaptionUserPreferences::userPrefersTextDescriptions):
818         (WebCore::CaptionUserPreferences::setUserPrefersTextDescriptions):
819         (WebCore::CaptionUserPreferences::captionPreferencesChanged):
820         (WebCore::CaptionUserPreferences::textTrackSelectionScore):
821         (WebCore::CaptionUserPreferences::setCaptionsStyleSheetOverride):
822         (WebCore::CaptionUserPreferences::updateCaptionStyleSheetOveride):
823         * page/CaptionUserPreferences.h:
824         (WebCore::CaptionUserPreferences::captionsStyleSheetOverride):
825         (WebCore::CaptionUserPreferences::setInterestedInCaptionPreferenceChanges):
826         (WebCore::CaptionUserPreferences::testingMode):
827         (WebCore::CaptionUserPreferences::setTestingMode):
828         (WebCore::CaptionUserPreferences::pageGroup):
829         * page/CaptionUserPreferencesMediaAF.cpp:
830         (WebCore::userCaptionPreferencesChangedNotificationCallback):
831         (WebCore::CaptionUserPreferencesMediaAF::CaptionUserPreferencesMediaAF):
832         (WebCore::CaptionUserPreferencesMediaAF::userPrefersCaptions):
833         (WebCore::CaptionUserPreferencesMediaAF::userPrefersSubtitles):
834         (WebCore::CaptionUserPreferencesMediaAF::setInterestedInCaptionPreferenceChanges):
835         (WebCore::CaptionUserPreferencesMediaAF::captionPreferencesChanged):
836         (WebCore::CaptionUserPreferencesMediaAF::captionsWindowCSS):
837         (WebCore::CaptionUserPreferencesMediaAF::captionsBackgroundCSS):
838         (WebCore::CaptionUserPreferencesMediaAF::captionsTextColor):
839         (WebCore::CaptionUserPreferencesMediaAF::captionsTextColorCSS):
840         (WebCore::CaptionUserPreferencesMediaAF::windowRoundedCornerRadiusCSS):
841         (WebCore::CaptionUserPreferencesMediaAF::captionsEdgeColorForTextColor):
842         (WebCore::CaptionUserPreferencesMediaAF::cssPropertyWithTextEdgeColor):
843         (WebCore::CaptionUserPreferencesMediaAF::colorPropertyCSS):
844         (WebCore::CaptionUserPreferencesMediaAF::captionsTextEdgeCSS):
845         (WebCore::CaptionUserPreferencesMediaAF::captionsDefaultFontCSS):
846         (WebCore::CaptionUserPreferencesMediaAF::captionsStyleSheetOverride):
847         (WebCore::CaptionUserPreferencesMediaAF::textTrackSelectionScore):
848         (WebCore::CaptionUserPreferencesMediaAF::sortedTrackListForMenu):
849         * page/CaptionUserPreferencesMediaAF.h:
850         * page/Page.cpp:
851         * page/Page.h:
852         * page/PageGroup.cpp:
853         (WebCore::PageGroup::captionPreferencesChanged):
854         (WebCore::PageGroup::captionPreferences):
855         * page/PageGroup.h:
856         * testing/InternalSettings.cpp:
857         (WebCore::InternalSettings::setShouldDisplayTrackKind):
858         (WebCore::InternalSettings::shouldDisplayTrackKind):
859         * testing/Internals.cpp:
860         (WebCore::Internals::resetToConsistentState):
861         (WebCore::Internals::Internals):
862         (WebCore::Internals::captionsStyleSheetOverride):
863         (WebCore::Internals::setCaptionsStyleSheetOverride):
864         (WebCore::Internals::setPrimaryAudioTrackLanguageOverride):
865         (WebCore::Internals::setCaptionDisplayMode):
866
867 2014-01-29  Csaba Osztrogonác  <ossy@webkit.org>
868
869         Remove ENABLE(JAVASCRIPT_DEBUGGER) leftovers
870         https://bugs.webkit.org/show_bug.cgi?id=127845
871
872         Reviewed by Joseph Pecoraro.
873
874         * Configurations/FeatureDefines.xcconfig:
875         * bindings/js/JSDOMWindowBase.cpp:
876         (WebCore::JSDOMWindowBase::supportsProfiling):
877
878 2014-01-29  Gavin Barraclough  <barraclough@apple.com>
879
880         Add IsVisibleOrOccluded to ViewState
881         https://bugs.webkit.org/show_bug.cgi?id=127875
882
883         Reviewed by Anders Carlsson.
884
885         * page/ViewState.h:
886             - added IsVisibleOrOccluded
887
888 2014-01-29  Ryosuke Niwa  <rniwa@webkit.org>
889
890         EventHandler::handleMouseReleaseEvent shouldn't call updateSelectionCachesIfSelectionIsInsideTextFormControl
891         and selectFrameElementInParentIfFullySelected
892         https://bugs.webkit.org/show_bug.cgi?id=127834
893
894         Reviewed by Alexey Proskuryakov.
895
896         Removed the calls and made setNonDirectionalSelectionIfNeeded pass in UserTriggered option.
897
898         In addition, removed the rather error-prone function override of setSelection since TextGranularity,
899         which is an enum, could be implicitly coerced into SetSelectionOptions which is a typedefed unsigned int.
900
901         * editing/FrameSelection.cpp:
902         (WebCore::FrameSelection::setSelectionByMouseIfDifferent): Renamed from setNonDirectionalSelectionIfNeeded.
903         Pass in DoNotRevealSelection to avoid revealing the selection to preserve the existing behavior.
904         There are two layout tests that fail without this.
905         (WebCore::FrameSelection::setSelection): Check the newly addeed DoNotRevealSelection option.
906         (WebCore::FrameSelection::wordSelectionContainingCaretSelection): Call
907
908         * editing/FrameSelection.h: Made updateSelectionCachesIfSelectionIsInsideTextFormControl and
909         selectFrameElementInParentIfFullySelected private as they are no longer called outside of FrameSelection.
910
911         * page/EventHandler.cpp:
912         (WebCore::EventHandler::updateSelectionForMouseDownDispatchingSelectStart):
913         (WebCore::EventHandler::updateSelectionForMouseDrag):
914         (WebCore::EventHandler::handleMouseReleaseEvent): Removed calls to the functions.
915
916 2014-01-29  Jer Noble  <jer.noble@apple.com>
917
918         Unreviewed iOS build fix after 163050.
919
920         Import CALayer.h explicitly as (on iOS) it is not included by other headers.
921
922         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
923
924 2014-01-29  Jer Noble  <jer.noble@apple.com>
925
926         Unreviewed Mac Build fix after r163046.
927
928         Forward define AVSampleLayerDisplayLayer and its methods.
929
930         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
931
932 2014-01-26  Sam Weinig  <sam@webkit.org>
933
934         CaptionUserPreferences should not be on the PageGroup if they are not really per-PageGroup (Part 1)
935         https://bugs.webkit.org/show_bug.cgi?id=127666
936
937         Reviewed by Eric Carlson.
938
939         This patch:
940         - Makes CaptionUserPreferences a singleton (temporary) that is accessed
941           via Page.
942         - Simplifies overriding system preferences by requiring that a Document be
943           be passed so the correct Settings object can be obtained (and not just a 
944           random one).
945         - Stops using UserStyleSheets for captions style injection, and instead
946           adds a new style sheet to the DocumentStyleSheetCollection.
947         - Move caption style sheet creation into its own file - CaptionStyleSheetMediaAF.h/cpp
948
949         * WebCore.vcxproj/WebCore.vcxproj:
950         * WebCore.vcxproj/WebCore.vcxproj.filters:
951         * WebCore.xcodeproj/project.pbxproj:
952         Add new files.
953
954         * WebCore.exp.in:
955         Update exports.
956
957         * css/DocumentRuleSets.cpp:
958         * css/InspectorCSSOMWrappers.cpp:
959         * dom/Document.cpp:
960         * dom/DocumentStyleSheetCollection.cpp:
961         * dom/DocumentStyleSheetCollection.h:
962         Switch from using the user style sheet mechanism, which is meant for, you guessed it, users,
963         to an explicit caption style sheet.
964
965         * Modules/mediacontrols/MediaControlsHost.cpp:
966         * html/HTMLMediaElement.cpp:
967         * html/shadow/MediaControlElements.cpp:
968         Get the CaptionUserPreferences via the Page.
969
970         * page/CaptionStyleSheetMediaAF.cpp: Added.
971         * page/CaptionStyleSheetMediaAF.h: Added.
972         Move caption style sheet creation here. If the global style changes, the sheet is invalidated
973         and this is called again.
974
975         * page/CaptionUserPreferences.cpp:
976         * page/CaptionUserPreferences.h:
977         - Removes unused m_havePreferences member.
978         - Change userPrefersFoo() functions to take a Document&. Use it to check its Settings.
979         - Remove setUserPrefersFoo() functions and just set the Settings directly.
980         - Move all the testing only pieces together.
981         
982         * page/CaptionUserPreferencesMediaAF.cpp:
983         * page/CaptionUserPreferencesMediaAF.h:
984         - Extract caption style sheet creation into CaptionStyleSheetMediaAF.h/cpp
985         - Stop waiting for an interested party, and just register for appearance change
986           notifications right away. Media elements are common enough that this should not
987           make a difference.
988
989         * page/Page.cpp:
990         (WebCore::Page::updateStyleForAllPagesForCaptionPreferencesChanged):
991         Add helper to call captionPreferencesChanged() on all the Pages.
992
993         (WebCore::Page::captionPreferences):
994         Add accessor for the CaptionUserPreferences. Currently this returns a singleton, but I plan
995         to extract the singleton aspects of it into another class, and leave the per-Page parts here.
996
997         * page/Page.h:
998         * page/PageGroup.cpp:
999         * page/PageGroup.h:
1000         Remove CaptionUserPreferences from here.
1001
1002         * testing/InternalSettings.cpp:
1003         (WebCore::InternalSettings::setShouldDisplayTrackKind):
1004         (WebCore::InternalSettings::shouldDisplayTrackKind):
1005         Override the settings for the page directly.
1006
1007         * testing/Internals.cpp:
1008         (WebCore::Internals::resetToConsistentState):
1009         (WebCore::Internals::Internals):
1010         (WebCore::Internals::captionsStyleSheetOverride):
1011         (WebCore::Internals::setCaptionsStyleSheetOverride):
1012         (WebCore::Internals::setPrimaryAudioTrackLanguageOverride):
1013         (WebCore::Internals::setCaptionDisplayMode):
1014         Get the CaptionUserPreferences via the Page.
1015
1016 2014-01-29  Jer Noble  <jer.noble@apple.com>
1017
1018         [MSE][Mac] In SourceBufferPrivateAVFObjC, only include those headers actually necessary to compile.
1019         https://bugs.webkit.org/show_bug.cgi?id=127846
1020
1021         Reviewed by Darin Adler.
1022
1023         To work around a compile issue, only include those paths containing classes and typedefs
1024         which are used within SourceBufferPrivateAVFObjC, rather than all of AVFoundation.
1025
1026         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
1027
1028 2014-01-29  Brady Eidson  <beidson@apple.com>
1029
1030         IDB: Fully implement IDBKeyData encoding/decoding
1031         https://bugs.webkit.org/show_bug.cgi?id=127863
1032
1033         Rubberstamped by Alexey Proskuryakov.
1034
1035         * platform/KeyedCoding.h:
1036
1037         * Modules/indexeddb/IDBKeyData.cpp:
1038         (WebCore::IDBKeyData::encode):
1039         (WebCore::IDBKeyData::decode):
1040
1041         * WebCore.exp.in:
1042
1043 2014-01-29  Bem Jones-Bey  <bjonesbe@adobe.com>
1044
1045         clip-path swaps bottom radii for the inset shape
1046         https://bugs.webkit.org/show_bug.cgi?id=127859
1047
1048         Reviewed by Dirk Schulze.
1049
1050         The bottom right and bottom left radii were passed in the wrong order,
1051         causing the wrong corner to be clipped in the resultant rendering.
1052
1053         Test: css3/masking/clip-path-inset-corners.html
1054
1055         * rendering/style/BasicShapes.cpp:
1056         (WebCore::BasicShapeInset::path): Change the parameter order to be
1057         correct.
1058
1059 2014-01-29  Jer Noble  <jer.noble@apple.com>
1060
1061         [MediaControls][iOS] Hook up the fullscreen button
1062         https://bugs.webkit.org/show_bug.cgi?id=127850
1063
1064         Reviewed by Eric Carlson.
1065
1066         For the fullscreen button, do the same thing we do for the play button: handle touchstart,
1067         touchend, and touchcancel, and perform the action (i.e., 'click') on touchend.
1068
1069         * Modules/mediacontrols/mediaControlsiOS.js:
1070         (ControllerIOS.prototype.createControls): Add listeners for the fullscreenButton.
1071         (ControllerIOS.prototype.isFullScreen): Override.
1072         (ControllerIOS.prototype.handleFullscreenButtonClicked): Override.
1073         (ControllerIOS.prototype.handleFullscreenTouchStart): Added.
1074         (ControllerIOS.prototype.handleFullscreenTouchEnd): Added.
1075         (ControllerIOS.prototype.handleFullscreenTouchCancel): Added.
1076
1077 2014-01-29  Brady Eidson  <beidson@apple.com>
1078
1079         IDB: Opening an existing database is broken
1080         https://bugs.webkit.org/show_bug.cgi?id=127851
1081
1082         Reviewed by Tim Hatcher.
1083
1084         * Modules/indexeddb/IDBDatabaseBackend.cpp:
1085         (WebCore::IDBDatabaseBackend::IDBDatabaseBackend):
1086         (WebCore::IDBDatabaseBackend::didOpenInternalAsync): Remember if this method has completed.
1087         (WebCore::IDBDatabaseBackend::processPendingCalls): If didOpenInternalAsync hasn’t
1088           been called yet, then it is incorrect to process any pending calls right now.
1089         * Modules/indexeddb/IDBDatabaseBackend.h:
1090
1091 2014-01-29  Oliver Hunt  <oliver@apple.com>
1092
1093         This dereference should not actually be necessary, and
1094         is producing deprecation warnings with newer perls
1095
1096         * bindings/scripts/CodeGeneratorJS.pm:
1097         (GenerateAttributesHashTable):
1098
1099 2014-01-28  Oliver Hunt  <oliver@apple.com>
1100
1101         Make DOM attributes appear to be faux accessor properties
1102         https://bugs.webkit.org/show_bug.cgi?id=127797
1103
1104         Reviewed by Michael Saboff.
1105
1106         Refactor the bindings generator, and make sure we emit
1107         the CustomAccessor flag on properties that should 
1108         appear to be accessors.
1109
1110         * bindings/scripts/CodeGeneratorJS.pm:
1111         (GenerateGetOwnPropertySlotBody):
1112         (GenerateAttributesHashTable):
1113         (GenerateImplementation):
1114
1115 2014-01-29  Alex Christensen  <achristensen@webkit.org>
1116
1117         Prepare for accelerated compositing on WinCairo.
1118         https://bugs.webkit.org/show_bug.cgi?id=127843
1119
1120         Reviewed by Anders Carlsson.
1121
1122         * platform/network/curl/ResourceHandleManager.cpp:
1123         (WebCore::setupFormData):
1124         Remove VS2005 warning workaround.
1125         * WebCore.vcxproj/WebCore.vcxproj:
1126         Remove StyleCachedImageSet.cpp and CSSImageSetValue.cpp from the Win64 build
1127         to avoid warnings because they are also included in StyleAllInOne.cpp and
1128         CSSAllInOne.cpp, respectively.
1129
1130 2014-01-28  Michael Saboff  <msaboff@apple.com>
1131
1132         Merge the jsCStack branch
1133         https://bugs.webkit.org/show_bug.cgi?id=127763
1134
1135         Reviewed by Mark Hahnenberg.
1136
1137         Changes from http://svn.webkit.org/repository/webkit/branches/jsCStack
1138         up to changeset 162958.
1139
1140 2014-01-29  Dan Bernstein  <mitz@apple.com>
1141
1142         Fixed the iOS build.
1143
1144         * bindings/js/JSDOMWindowCustom.cpp: Updated for header renames.
1145
1146 2014-01-29  Csaba Osztrogonác  <ossy@webkit.org>
1147
1148         Remove ENABLE(JAVASCRIPT_DEBUGGER) guards
1149         https://bugs.webkit.org/show_bug.cgi?id=127840
1150
1151         Reviewed by Mark Lam.
1152
1153         * bindings/js/JSDOMWindowBase.cpp:
1154         (WebCore::JSDOMWindowBase::supportsProfiling):
1155         (WebCore::JSDOMWindowBase::supportsRichSourceInfo):
1156         * bindings/js/PageScriptDebugServer.cpp:
1157         * bindings/js/PageScriptDebugServer.h:
1158         * bindings/js/ScriptProfile.cpp:
1159         * bindings/js/ScriptProfile.h:
1160         * bindings/js/ScriptProfileNode.h:
1161         * bindings/js/ScriptProfiler.cpp:
1162         * bindings/js/ScriptProfiler.h:
1163         * bindings/js/WorkerScriptDebugServer.cpp:
1164         * bindings/js/WorkerScriptDebugServer.h:
1165         * inspector/InspectorConsoleAgent.h:
1166         * inspector/InspectorConsoleInstrumentation.h:
1167         (WebCore::InspectorInstrumentation::getCurrentUserInitiatedProfileName):
1168         * inspector/InspectorController.cpp:
1169         (WebCore::InspectorController::InspectorController):
1170         (WebCore::InspectorController::resume):
1171         * inspector/InspectorController.h:
1172         * inspector/InspectorDOMDebuggerAgent.cpp:
1173         * inspector/InspectorDOMDebuggerAgent.h:
1174         * inspector/InspectorHeapProfilerAgent.cpp:
1175         * inspector/InspectorHeapProfilerAgent.h:
1176         * inspector/InspectorInstrumentation.cpp:
1177         (WebCore::InspectorInstrumentation::didClearWindowObjectInWorldImpl):
1178         (WebCore::InspectorInstrumentation::isDebuggerPausedImpl):
1179         (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
1180         (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
1181         (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
1182         (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
1183         (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
1184         (WebCore::InspectorInstrumentation::didInvalidateStyleAttrImpl):
1185         (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
1186         (WebCore::InspectorInstrumentation::scriptExecutionBlockedByCSPImpl):
1187         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
1188         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
1189         (WebCore::InspectorInstrumentation::profilerEnabledImpl):
1190         (WebCore::InspectorInstrumentation::willEvaluateWorkerScript):
1191         (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
1192         (WebCore::InspectorInstrumentation::cancelPauseOnNativeEvent):
1193         * inspector/InspectorInstrumentation.h:
1194         * inspector/InspectorProfilerAgent.cpp:
1195         * inspector/InspectorProfilerAgent.h:
1196         * inspector/InstrumentingAgents.cpp:
1197         (WebCore::InstrumentingAgents::InstrumentingAgents):
1198         (WebCore::InstrumentingAgents::reset):
1199         * inspector/InstrumentingAgents.h:
1200         * inspector/PageDebuggerAgent.cpp:
1201         * inspector/PageDebuggerAgent.h:
1202         * inspector/ScriptProfile.idl:
1203         * inspector/ScriptProfileNode.idl:
1204         * inspector/WebDebuggerAgent.cpp:
1205         * inspector/WebDebuggerAgent.h:
1206         * inspector/WorkerDebuggerAgent.cpp:
1207         * inspector/WorkerDebuggerAgent.h:
1208         * inspector/WorkerInspectorController.cpp:
1209         (WebCore::WorkerInspectorController::WorkerInspectorController):
1210         (WebCore::WorkerInspectorController::resume):
1211         * inspector/WorkerInspectorController.h:
1212         * inspector/WorkerRuntimeAgent.cpp:
1213         (WebCore::WorkerRuntimeAgent::pauseWorkerGlobalScope):
1214         * inspector/WorkerRuntimeAgent.h:
1215         * loader/FrameLoader.cpp:
1216         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
1217         * page/Console.cpp:
1218         * page/Console.h:
1219         * page/Console.idl:
1220         * testing/Internals.cpp:
1221         (WebCore::Internals::resetToConsistentState):
1222         * workers/WorkerMessagingProxy.cpp:
1223         (WebCore::connectToWorkerGlobalScopeInspectorTask):
1224         (WebCore::WorkerMessagingProxy::connectToInspector):
1225         (WebCore::disconnectFromWorkerGlobalScopeInspectorTask):
1226         (WebCore::WorkerMessagingProxy::disconnectFromInspector):
1227         (WebCore::dispatchOnInspectorBackendTask):
1228         (WebCore::WorkerMessagingProxy::sendMessageToInspector):
1229
1230 2014-01-29  Eric Carlson  <eric.carlson@apple.com>
1231
1232         [iOS] cleanup MediaPlayer.cpp
1233         https://bugs.webkit.org/show_bug.cgi?id=127821
1234
1235         Reviewed by Jer Noble.
1236
1237         Don't register MediaPlayerPrivateIOS unless the runtime setting for media player proxy is set.
1238
1239         * platform/graphics/MediaPlayer.cpp: Don't define PlatformMediaEngineClassName on iOS
1240         (WebCore::installedMediaEngines): Drive by cleanup to return early if registration has
1241             already happened.
1242         (WebCore::MediaPlayer::MediaPlayer): Don't force-register the first media engine unless 
1243             isVideoPluginProxyEnabled returns true.
1244
1245 2014-01-29  Youenn Fablet  <youennf@gmail.com>
1246
1247         Have XHR.getResponseHeader() return null and XHR.getAllResponseHeader() return the empty string in initial ready states
1248         https://bugs.webkit.org/show_bug.cgi?id=125840
1249
1250         Reviewed by Alexey Proskuryakov.
1251
1252         Merging https://chromium.googlesource.com/chromium/blink/+/d201caf874a0bd6f101f517462b3cf1d8c5fce3d
1253         This patch makes it clear that null/empty string is returned whenever the error flag is set.
1254         This new code path is covered by the added test.
1255         
1256         Test: http/tests/xmlhttprequest/response-access-on-error.html
1257
1258         * xml/XMLHttpRequest.cpp:
1259         (WebCore::XMLHttpRequest::getAllResponseHeaders):
1260         (WebCore::XMLHttpRequest::getResponseHeader):
1261         * xml/XMLHttpRequest.h:
1262         * xml/XMLHttpRequest.idl:
1263
1264 2014-01-29  Antti Koivisto  <antti@apple.com>
1265
1266         REGRESSION (r162947): Repaint test results are different between WK1 and WK2
1267         https://bugs.webkit.org/show_bug.cgi?id=127814
1268
1269         Reviewed by Anders Carlsson.
1270
1271         * page/FrameView.cpp:
1272         (WebCore::FrameView::repaintContentRectangle):
1273         
1274             Move repaint rect logging to RenderView.
1275
1276         * rendering/RenderView.cpp:
1277         (WebCore::RenderView::repaintViewRectangle):
1278         
1279             Record raw repaint rects instead of optimized ones.
1280
1281 2014-01-29  Brady Eidson  <beidson@apple.com>
1282
1283         IDB: Serialize IDBKeyDatas to disk, not IDBKeys
1284         https://bugs.webkit.org/show_bug.cgi?id=127829
1285
1286         Reviewed by Tim Horton.
1287
1288         Move encode/decode from IDBKey to IDBKeyData.
1289
1290         * Modules/indexeddb/IDBKey.cpp:
1291         * Modules/indexeddb/IDBKey.h:
1292
1293         * Modules/indexeddb/IDBKeyData.cpp:
1294         (WebCore::IDBKeyData::IDBKeyData):
1295         (WebCore::IDBKeyData::encode):
1296         (WebCore::IDBKeyData::decode):
1297         * Modules/indexeddb/IDBKeyData.h:
1298
1299         * WebCore.exp.in:
1300
1301 2014-01-29  Antti Koivisto  <antti@apple.com>
1302
1303         REGRESSION (r162947): css3/flexbox/multiline-justify-content.html and css3/flexbox/position-absolute-child.html are timing out
1304         https://bugs.webkit.org/show_bug.cgi?id=127809
1305
1306         Reviewed by Anders Carlsson.
1307
1308         These tests generate very large number of small repaint rectangles that overwhelm the region code.
1309
1310         * page/FrameView.cpp:
1311         (WebCore::FrameView::repaintContentRectangle):
1312         * platform/graphics/Region.h:
1313         (WebCore::Region::gridSize):
1314         (WebCore::Region::Shape::gridSize):
1315         
1316             Add accessor for getting the current region grid complexity.
1317
1318         * rendering/RenderView.cpp:
1319         (WebCore::RenderView::repaintViewRectangle):
1320         
1321             If the region gets very complex merge the repaint rects into a single big rectangle.
1322
1323 2014-01-29  Radu Stavila  <stavila@adobe.com>
1324
1325         [CSSRegions] Unable to scroll a scrollable container for regions using mouse wheel
1326         https://bugs.webkit.org/show_bug.cgi?id=123886
1327
1328         When an element flowed into a scrollable region is scrolled using the mouse wheel, the event 
1329         needs to be propagated to the region containing that element, on top of which the cursor
1330         is located.
1331
1332         Reviewed by Antti Koivisto.
1333
1334         Tests: fast/regions/wheel-scroll-abspos.html
1335                fast/regions/wheel-scroll.html
1336
1337         * page/EventHandler.cpp:
1338         (WebCore::scrollNode):
1339         (WebCore::EventHandler::defaultWheelEventHandler):
1340         * rendering/RenderBox.cpp:
1341         (WebCore::RenderBox::scroll):
1342         (WebCore::RenderBox::scrollWithWheelEventLocation):
1343         * rendering/RenderBox.h:
1344         * rendering/RenderFlowThread.cpp:
1345         (WebCore::RenderFlowThread::regionFromAbsolutePointAndBox):
1346         * rendering/RenderFlowThread.h:
1347
1348 2014-01-29  Carlos Garcia Campos  <cgarcia@igalia.com>
1349
1350         REGRESSION(r162922): [SOUP] Several tests are failing in EFL and GTK+ after r162922
1351         https://bugs.webkit.org/show_bug.cgi?id=127836
1352
1353         Reviewed by Gustavo Noronha Silva.
1354
1355         The problem is that I assumed that several things done in
1356         ResourceRequest::soupURI() were always desired, so I moved them to
1357         URL. This patch restores the previous behaviour, so that those
1358         tings are only done right before making a request.
1359
1360         * platform/network/soup/ResourceRequestSoup.cpp:
1361         (WebCore::ResourceRequest::createSoupURI):
1362         * platform/soup/URLSoup.cpp:
1363         (WebCore::URL::createSoupURI):
1364
1365 2014-01-29  Krzysztof Czech  <k.czech@samsung.com>
1366
1367         [ATK] Expose aria-describedby with ATK_RELATION_DESCRIBED_BY
1368         https://bugs.webkit.org/show_bug.cgi?id=121684
1369
1370         Reviewed by Mario Sanchez Prada.
1371
1372         Exposed aria-describedby by ATK_RELATION_DESCRIBED_BY.
1373         Moved elementsFromAttribut to AccessibilityObject to have common interface
1374         for AccessibilityNodeObject and AccessibilityRenderObject. Implemented
1375         supportsARIADescribedBy and ariaDescribedByElements to better deal with aria-describedby attribute.
1376
1377         No new tests. Covered by existed one.
1378
1379         * accessibility/AccessibilityNodeObject.cpp:
1380         * accessibility/AccessibilityNodeObject.h:
1381         * accessibility/AccessibilityObject.cpp:
1382         (WebCore::AccessibilityObject::elementsFromAttribute):
1383         * accessibility/AccessibilityObject.h:
1384         (WebCore::AccessibilityObject::supportsARIADescribedBy):
1385         (WebCore::AccessibilityObject::ariaDescribedByElements):
1386         * accessibility/AccessibilityRenderObject.cpp:
1387         (WebCore::AccessibilityRenderObject::supportsARIADescribedBy):
1388         (WebCore::AccessibilityRenderObject::ariaDescribedByElements):
1389         * accessibility/AccessibilityRenderObject.h:
1390         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
1391         (setAtkRelationSetFromCoreObject):
1392
1393 2014-01-29  Sergio Villar Senin  <svillar@igalia.com>
1394
1395         [CSS Grid Layout] minmax() should be a CSSFunction instead of a CSSValueList
1396         https://bugs.webkit.org/show_bug.cgi?id=127057
1397
1398         Reviewed by Antti Koivisto.
1399
1400         We were incorrectly dumping minmax(x,y) as "x y" instead of
1401         "minmax(x,y)". That's because we were treating minmax() internally
1402         as a CSSValueList instead of a CSSFunction. Replaced that and also
1403         added some extra information to our tests in order to check that
1404         we don't regress. From now on the CSS grid layout testing helper
1405         functions print not only the computed style but also the contents
1406         of element.style.webkitGridDefinition{Columns|Rows}.
1407
1408         * css/CSSFunctionValue.h:
1409         (WebCore::CSSFunctionValue::arguments):
1410         * css/CSSParser.cpp:
1411         (WebCore::CSSParser::parseGridTrackList):
1412         (WebCore::CSSParser::parseGridTrackRepeatFunction):
1413         (WebCore::CSSParser::parseGridTrackSize):
1414         * css/CSSParser.h:
1415         * css/StyleResolver.cpp:
1416         (WebCore::createGridTrackSize):
1417
1418 2014-01-29  Ryosuke Niwa  <rniwa@webkit.org>
1419
1420         Rename notifyRendererOfSelectionChange
1421         https://bugs.webkit.org/show_bug.cgi?id=127831
1422
1423         Reviewed by Antti Koivisto.
1424
1425         Renamed notifyRendererOfSelectionChange to updateSelectionCachesIfSelectionIsInsideTextFormControl.
1426
1427         * WebCore.order: Removed the exported symbol name as it's not used in WebKit or WebKit2 code.
1428         * editing/FrameSelection.cpp:
1429         (WebCore::FrameSelection::setSelection):
1430         (WebCore::FrameSelection::selectAll):
1431         (WebCore::FrameSelection::updateSelectionCachesIfSelectionIsInsideTextFormControl): Don't update the style since the existence
1432         of text form control's shadow DOM no longer depends on renderer.
1433         * editing/FrameSelection.h:
1434         * html/HTMLTextFormControlElement.cpp:
1435         (WebCore::HTMLTextFormControlElement::selectionChanged): Don't check renderer() for the same reason.
1436         * page/EventHandler.cpp:
1437         (WebCore::EventHandler::handleMouseReleaseEvent):
1438
1439 2014-01-28  Jer Noble  <jer.noble@apple.com>
1440
1441         [Mac] Handle NSURLAuthenticationMethodServerTrust challenges from -resourceLoader:shouldWaitForResponseToAuthenticationChallenge:
1442         https://bugs.webkit.org/show_bug.cgi?id=127806
1443
1444         Reviewed by Eric Carlson.
1445
1446         In addition to the normal "user/password" NSURLAuthenticationChallenges, the 
1447         -resourceLoader:shouldWaitForResponseToAuthenticationChallenge: delegate method will
1448         ask us to confirm server certificate chains. Rather than pop up an authentication
1449         dialog (which won't work anyway) we will now just drop such requests and continue
1450         on normally.
1451
1452         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1453         (-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForResponseToAuthenticationChallenge:]):
1454
1455 2014-01-28  Commit Queue  <commit-queue@webkit.org>
1456
1457         Unreviewed, rolling out r162987.
1458         http://trac.webkit.org/changeset/162987
1459         https://bugs.webkit.org/show_bug.cgi?id=127825
1460
1461         Broke Mountain Lion build (Requested by andersca on #webkit).
1462
1463         * bindings/scripts/CodeGeneratorJS.pm:
1464         (GenerateGetOwnPropertySlotBody):
1465         (GenerateAttributesHashTable):
1466         (GenerateImplementation):
1467         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
1468         (WebCore::jsTestActiveDOMObjectConstructor):
1469         * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
1470         (WebCore::jsTestCustomNamedGetterConstructor):
1471         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
1472         (WebCore::jsTestEventConstructorConstructor):
1473         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
1474         (WebCore::jsTestEventTargetConstructor):
1475         * bindings/scripts/test/JS/JSTestException.cpp:
1476         (WebCore::jsTestExceptionConstructor):
1477         * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
1478         (WebCore::jsTestGenerateIsReachableConstructor):
1479         * bindings/scripts/test/JS/JSTestInterface.cpp:
1480         (WebCore::jsTestInterfaceConstructor):
1481         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
1482         (WebCore::jsTestMediaQueryListListenerConstructor):
1483         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
1484         (WebCore::jsTestNamedConstructorConstructor):
1485         * bindings/scripts/test/JS/JSTestNode.cpp:
1486         (WebCore::jsTestNodeConstructor):
1487         * bindings/scripts/test/JS/JSTestObj.cpp:
1488         (WebCore::jsTestObjConstructor):
1489         * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
1490         (WebCore::jsTestOverloadedConstructorsConstructor):
1491         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
1492         (WebCore::jsTestSerializedScriptValueInterfaceConstructor):
1493         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
1494         (WebCore::jsTestTypedefsConstructor):
1495         * bindings/scripts/test/JS/JSattribute.cpp:
1496         (WebCore::jsattributeConstructor):
1497         * bindings/scripts/test/JS/JSreadonly.cpp:
1498         (WebCore::jsreadonlyConstructor):
1499
1500 2014-01-28  Enrica Casucci  <enrica@apple.com>
1501
1502         Add support for ActionSheets in WK2 for iOS.
1503         https://bugs.webkit.org/show_bug.cgi?id=127586
1504         <rdar://problem/15283667>
1505
1506         Reviewed by Benjamin Poulain.
1507
1508         This patch contains some WebCore changes required to
1509         implement support for ActionSheets.
1510         It adds copyURL implementation for iOS in the Editor
1511         class and fixes some bugs in the iOS specific pasteboard
1512         writing code.
1513         The changes to Localizable.strings are the result of
1514         running update-webkit-localizedstrings script.
1515
1516         * English.lproj/Localizable.strings:
1517         * WebCore.exp.in:
1518         * editing/Editor.cpp:
1519         * editing/Editor.h:
1520         * editing/ios/EditorIOS.mm:
1521         (WebCore::Editor::writeImageToPasteboard):
1522         * platform/ios/PasteboardIOS.mm:
1523         (WebCore::Pasteboard::write):
1524         * platform/ios/PlatformPasteboardIOS.mm:
1525         (WebCore::PlatformPasteboard::write):
1526
1527 2014-01-28  Andy Estes  <aestes@apple.com>
1528
1529         [iOS] REGRESSION (r162663): Webpages have strange artifacts or corruption around tile boundaries
1530         https://bugs.webkit.org/show_bug.cgi?id=127823
1531
1532         Reviewed by Daniel Bates.
1533
1534         Original patch by Simon Fraser.
1535
1536         * platform/ScrollView.cpp: Specify LegacyIOSDocumentViewRect when calling visibleContentRect().
1537
1538 2014-01-28  Zoltan Horvath  <zoltan@webkit.org>
1539
1540         [CSS Shapes] Adjust inset sizing syntax to the latest specification
1541         https://bugs.webkit.org/show_bug.cgi?id=127785
1542
1543         Reviewed by Bem Jones-Bey.
1544
1545         According to the latest CSS Shapes specification [1], the width arguments of inset should
1546         follow the syntax of the margin shorthand, which let us set all four insets with one, two
1547         or four values. This patch updates the behavior and updates the affected tests.
1548
1549         [1] http://dev.w3.org/csswg/css-shapes/#funcdef-inset
1550
1551         Existing tests have been updated.
1552
1553         * css/CSSParser.cpp:
1554         (WebCore::CSSParser::parseInsetRoundedCorners):
1555         (WebCore::CSSParser::parseBasicShapeInset):
1556
1557 2014-01-28  Oliver Hunt  <oliver@apple.com>
1558
1559         Make DOM attributes appear to be faux accessor properties
1560         https://bugs.webkit.org/show_bug.cgi?id=127797
1561
1562         Reviewed by Michael Saboff.
1563
1564         Refactor the bindings generator, and make sure we emit
1565         the CustomAccessor flag on properties that should 
1566         appear to be accessors.
1567
1568         * bindings/scripts/CodeGeneratorJS.pm:
1569         (GenerateGetOwnPropertySlotBody):
1570         (GenerateAttributesHashTable):
1571         (GenerateImplementation):
1572
1573 2014-01-27  Chris Fleizach  <cfleizach@apple.com>
1574
1575         AX: Support @scope in HTML tables
1576         https://bugs.webkit.org/show_bug.cgi?id=127688
1577
1578         Reviewed by Mario Sanchez Prada.
1579
1580         Add support for scope attribute so that row headers and column headers
1581         are now exposed at the table cell level where appropriate.
1582
1583         Test: platform/mac/accessibility/table-scope.html
1584
1585         * accessibility/AccessibilityARIAGridCell.cpp:
1586         (WebCore::AccessibilityARIAGridCell::parentTable):
1587         * accessibility/AccessibilityARIAGridCell.h:
1588         * accessibility/AccessibilityARIAGridRow.cpp:
1589         (WebCore::AccessibilityARIAGridRow::parentTable):
1590         * accessibility/AccessibilityARIAGridRow.h:
1591         * accessibility/AccessibilityTable.cpp:
1592         (WebCore::AccessibilityTable::columns):
1593         (WebCore::AccessibilityTable::rows):
1594         * accessibility/AccessibilityTable.h:
1595         * accessibility/AccessibilityTableCell.cpp:
1596         (WebCore::AccessibilityTableCell::parentTable):
1597         (WebCore::AccessibilityTableCell::isTableHeaderCell):
1598         (WebCore::AccessibilityTableCell::isTableCellInSameRowGroup):
1599         (WebCore::AccessibilityTableCell::isTableCellInSameColGroup):
1600         (WebCore::AccessibilityTableCell::columnHeaders):
1601         (WebCore::AccessibilityTableCell::rowHeaders):
1602         * accessibility/AccessibilityTableCell.h:
1603         * accessibility/AccessibilityTableRow.cpp:
1604         (WebCore::AccessibilityTableRow::parentTable):
1605         * accessibility/AccessibilityTableRow.h:
1606         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1607         (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]):
1608         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
1609
1610 2014-01-28  Brent Fulgham  <bfulgham@apple.com>
1611
1612         Improve latching behavior for wheel events
1613         https://bugs.webkit.org/show_bug.cgi?id=127386
1614         <rdar://problem/12176858>
1615
1616         Reviewed by Simon Fraser.
1617
1618         * page/scrolling/ScrollingTree.cpp:
1619         (WebCore::ScrollingTree::clearLatchedNode): Added
1620         (WebCore::ScrollingTree::latchedNode): Added
1621         (WebCore::ScrollingTree::removeDestroyedNodes): Clear latched node if it's being removed.
1622         (WebCore::ScrollingTree::ScrollingTree): Initialize new value used for tracking
1623         scroll latching state.
1624         (WebCore::ScrollingTree::setLatchedNode): Added
1625         (WebCore::ScrollingTree::setOrClearLatchedNode): Added
1626         Set latched node when beginning a swipe event, or clear latched node when scroll/momentum ends.
1627         (WebCore::ScrollingTree::shouldHandleWheelEventSynchronously): Check for an existing
1628         latched node and stay in fast scrolling mode if possible. If the current event should
1629         start a swipe event, clear the current latched node so we can correctly find and assign
1630         the new latch node.
1631         * page/scrolling/ScrollingTree.h:
1632         (WebCore::ScrollingTree::hasLatchedNode): Added
1633         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
1634         (WebCore::ScrollingTreeScrollingNodeMac::handleWheelEvent): Determine latching state
1635         based on wheel event state and position of mouse pointer in the document.
1636         * platform/ScrollAnimator.cpp:
1637         (ScrollAnimator::handleWheelEvent): Always treat PlatformWheelEventPhaseMayBegin
1638         as successfully handled so that it does not "bubble back up" to the root of
1639         the scrolling tree.   
1640
1641 2014-01-23  Myles C. Maxfield  <mmaxfield@apple.com>
1642
1643         ASSERT_WITH_SECURITY_IMPLICATION in WebCore::InlineTextBox::paint
1644         https://bugs.webkit.org/show_bug.cgi?id=114586
1645
1646         Reviewed by Dave Hyatt.
1647
1648         Taken mostly from https://chromium.googlesource.com/chromium/blink/+/cb2297db16f2e9328cb4dd8b552093d6b22340a8
1649
1650         If RenderQuote is a subclass of RenderObject, it can't be split by the first-letter CSS pseudoclass.
1651         Instead, we should make it a subclass of RenderElement, so that it can be split properly.
1652
1653         Test: fast/css-generated-content/quote-first-letter.html
1654
1655         * dom/PseudoElement.cpp:
1656         (WebCore::PseudoElement::didRecalcStyle):
1657         * rendering/RenderQuote.cpp:
1658         (WebCore::RenderQuote::RenderQuote):
1659         (WebCore::RenderQuote::willBeDestroyed):
1660         (WebCore::RenderQuote::willBeRemovedFromTree):
1661         (WebCore::RenderQuote::styleDidChange):
1662         (WebCore::RenderQuote::updateText):
1663         (WebCore::RenderQuote::computeText):
1664         (WebCore::RenderQuote::updateDepth):
1665         * rendering/RenderQuote.h:
1666         * rendering/style/ContentData.cpp:
1667         (WebCore::QuoteContentData::createContentRenderer):
1668
1669 2014-01-28  Antti Koivisto  <antti@apple.com>
1670
1671         Document::topDocument() should return a reference
1672         https://bugs.webkit.org/show_bug.cgi?id=127786
1673
1674         Reviewed by Darin Adler.
1675
1676         * accessibility/AccessibilityObject.cpp:
1677         (WebCore::AccessibilityObject::mainFrame):
1678         (WebCore::AccessibilityObject::topDocument):
1679         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
1680         (-[WebAccessibilityObjectWrapper accessibilityContainer]):
1681         * dom/Document.cpp:
1682         (WebCore::Document::~Document):
1683         (WebCore::Document::createRenderTree):
1684         (WebCore::Document::destroyRenderTree):
1685         (WebCore::Document::clearAXObjectCache):
1686         (WebCore::Document::existingAXObjectCache):
1687         (WebCore::Document::axObjectCache):
1688         (WebCore::Document::implicitClose):
1689         (WebCore::Document::topDocument):
1690         (WebCore::Document::topOrigin):
1691         (WebCore::Document::webkitCancelFullScreen):
1692         (WebCore::Document::webkitDidExitFullScreenForElement):
1693         * dom/Document.h:
1694         * page/DOMWindow.cpp:
1695         (WebCore::DOMWindow::incrementScrollEventListenersCount):
1696         (WebCore::DOMWindow::decrementScrollEventListenersCount):
1697         * rendering/RenderEmbeddedObject.cpp:
1698         (WebCore::RenderEmbeddedObject::isReplacementObscured):
1699         * rendering/RenderView.cpp:
1700         (WebCore::RenderView::RepaintRegionAccumulator::RepaintRegionAccumulator):
1701         
1702 2014-01-28  Viatcheslav Ostapenko  <sl.ostapenko@samsung.com>
1703
1704         Sticky positioning is broken for table rows
1705         https://bugs.webkit.org/show_bug.cgi?id=112024
1706
1707         Reviewed by Simon Fraser.
1708
1709         Enable sticky positioning for table elements. 
1710         Also includes fix for bug ​wkb.ug/105654
1711         I don't have access to this bug, but from related commit message I 
1712         assume it says about "Heap use after free problem".
1713         Debugging showed that it wasn't heap use after free. 
1714         The real problem that RenderObject::container() returns object which is
1715         not RenderBlock and it is used as RenderBlock in 
1716         RenderBox::containingBlockLogicalHeightForPositioned() method.
1717         Added extra isRenderBlock check and search for containingBlock if 
1718         current block is not RenderBlock.
1719         
1720         Tests: fast/css/sticky/sticky-table-row-top.html
1721                fast/css/sticky/sticky-table-thead-top.html
1722
1723         * css/StyleResolver.cpp:
1724         (WebCore::StyleResolver::adjustRenderStyle):
1725         * rendering/RenderBox.cpp:
1726         (WebCore::RenderBox::containingBlockLogicalHeightForPositioned):
1727         * rendering/RenderTableRow.h:
1728
1729 2014-01-28  Myles C. Maxfield  <mmaxfield@apple.com>
1730
1731         Fixing several incorrect assumptions with handling isolated inlines.
1732         https://bugs.webkit.org/show_bug.cgi?id=127608
1733
1734         Reviewed by Simon Fraser.
1735
1736         Fixing capitalization.
1737
1738         * rendering/RenderBlockLineLayout.cpp:
1739         (WebCore::setUpResolverToResumeInIsolate):
1740         (WebCore::constructBidiRunsForSegment):
1741
1742 2014-01-28  Myles C. Maxfield  <mmaxfield@apple.com>
1743
1744         Fixing several incorrect assumptions with handling isolated inlines.
1745         https://bugs.webkit.org/show_bug.cgi?id=127608
1746
1747         Reviewed by Dave Hyatt.
1748
1749         First, when an isolated inline spans multiple lines, we aren't guaranteed
1750         to exit BidiResolver with a nested inline count of zero. Removing the
1751         assert that says otherwise.
1752         
1753         Previously in constructBidiRunsForSegment, we called bidiFirst in
1754         an attempt to properly setup the isolatedResolver for any dom/style
1755         that applied, but this only worked on the first line the isolated
1756         inline appeared in. Adding a function that approaches this properly
1757         by recursing through the parents of the starting object for the line
1758         and post-fixing direction attributes to the resolver.
1759         
1760         Finally, addressing an issue where the line following a removed isolated
1761         inline (with a continuation) failed to be marked dirty.
1762
1763         Merged from Blink: https://chromium.googlesource.com/chromium/blink/+/72698f203b1c50900e535b80945563b92b7eef23
1764
1765         Tests: fast/text/nested-bidi-assert.html
1766                fast/text/nested-bidi-with-continuation-crash.html
1767
1768         * platform/text/BidiResolver.h:
1769         (WebCore::Run>::~BidiResolver):
1770         * rendering/RenderBlockLineLayout.cpp:
1771         (WebCore::setupResolverToResumeInIsolate):
1772         (WebCore::constructBidiRunsForSegment):
1773         * rendering/RenderLineBoxList.cpp:
1774         (WebCore::RenderLineBoxList::dirtyLinesFromChangedChild):
1775
1776 2014-01-28  Antti Koivisto  <antti@apple.com>
1777
1778         REGRESSION(r162837): 5% regression on html5-full-render and 3% regression in DoYouEvenBench
1779         https://bugs.webkit.org/show_bug.cgi?id=127722
1780
1781         Reviewed by Darin Adler.
1782
1783         Accumulate repaint region in RendeView instead of flushing rects directly to the system.
1784
1785         * dom/Document.cpp:
1786         (WebCore::Document::recalcStyle):
1787         (WebCore::Document::updateLayout):
1788         (WebCore::Document::topDocument):
1789         
1790             Make less silly.
1791
1792         * page/FrameView.cpp:
1793         (WebCore::FrameView::layout):
1794         * rendering/RenderView.cpp:
1795         (WebCore::RenderView::repaintViewRectangle):
1796         (WebCore::RenderView::flushAccumulatedRepaintRegion):
1797         (WebCore::RenderView::RepaintRegionAccumulator::RepaintRegionAccumulator):
1798         (WebCore::RenderView::RepaintRegionAccumulator::~RepaintRegionAccumulator):
1799         * rendering/RenderView.h:
1800
1801 2014-01-28  Jeremy Jones  <jeremyj@apple.com>
1802
1803         HTMLMediaElement::m_platformLayerBorrowed is uninitialized.
1804         https://bugs.webkit.org/show_bug.cgi?id=127759
1805
1806         Reviewed by Eric Carlson.
1807
1808         Initalize m_platformLayerBorrowed to false.
1809
1810         * html/HTMLMediaElement.cpp:
1811         (WebCore::HTMLMediaElement::HTMLMediaElement):
1812
1813 2014-01-28  Jer Noble  <jer.noble@apple.com>
1814
1815         [Mac] Use explicit, rather than canonical, AudioFormatFlags and types.
1816         https://bugs.webkit.org/show_bug.cgi?id=127781
1817
1818         Reviewed by Eric Carlson.
1819
1820         Since every mac platform uses Float32 audio samples, use these types explicitly
1821         rather than the implicit, canonical AudioSampleType type. Once we're using Float32
1822         explicity, we can also use the explicit kAudioFormatFlagsNativeFloatPacked flag
1823         rather than the canonical version.
1824
1825         * platform/audio/mac/AudioDestinationMac.cpp:
1826         (WebCore::AudioDestinationMac::configure):
1827         * platform/audio/mac/AudioFileReaderMac.cpp:
1828         (WebCore::AudioFileReader::createBus):
1829
1830 2014-01-27  Alexey Proskuryakov  <ap@apple.com>
1831
1832         Expose SQL database creation and modification times
1833         https://bugs.webkit.org/show_bug.cgi?id=127728
1834
1835         Reviewed by Brady Eidson.
1836
1837         * platform/FileSystem.h:
1838         * platform/posix/FileSystemPOSIX.cpp:
1839         (WebCore::getFileCreationTime):
1840         * platform/win/FileSystemWin.cpp:
1841         (WebCore::getFileCreationTimeFromFindData):
1842         (WebCore::getFileCreationTime):
1843         Added functions to get file creation times. Not all OSes support that, but Darwin
1844         and Windows do, as (I think) various BSD flavors.
1845
1846         * platform/gtk/FileSystemGtk.cpp: Added a stub for getFileCreationTime().
1847
1848         * platform/sql/SQLiteFileSystem.h:
1849         * platform/sql/SQLiteFileSystem.cpp:
1850         (WebCore::SQLiteFileSystem::databaseCreationTime):
1851         (WebCore::SQLiteFileSystem::databaseModificationTime):
1852         Expose it in the same strange manner other database file operations are.
1853
1854         * Modules/webdatabase/DatabaseDetails.h:
1855         (WebCore::DatabaseDetails::DatabaseDetails):
1856         (WebCore::DatabaseDetails::creationTime):
1857         (WebCore::DatabaseDetails::modificationTime):
1858         Added creation and modification times to DatabaseDetails.
1859
1860         * Modules/webdatabase/DatabaseManager.cpp:
1861         (WebCore::DatabaseManager::ProposedDatabase::ProposedDatabase):
1862         (WebCore::DatabaseManager::openDatabaseBackend):
1863         ProposedDatabase is an unfortunate mechanism for communicating quota errors to the
1864         client, we should really straighten it up. But for now, just leave the times uninitialized.
1865
1866         * Modules/webdatabase/DatabaseBackendBase.cpp: (WebCore::DatabaseBackendBase::details):
1867         This code path is for handling quota errors, so there is no need to initialize most
1868         of DatabaseDetails here as well.
1869
1870         * Modules/webdatabase/DatabaseTracker.cpp: (WebCore::DatabaseTracker::detailsForNameAndOrigin):
1871         * Modules/webdatabase/DatabaseTracker.h:
1872         Fill in database file times. Inlined and removed usageForDatabase function to
1873         avoid rebuilding the path multiple times.
1874
1875 2014-01-28  Jer Noble  <jer.noble@apple.com>
1876
1877         Setting muted attribute on <video> element is not reflected in controls
1878         https://bugs.webkit.org/show_bug.cgi?id=127726
1879
1880         Reviewed by Eric Carlson.
1881
1882         If the 'muted' IDL attribute is queried after the 'muted' and 'src' content attributes are
1883         set but before loading begins, it will return 'false' until loading begins, but with no
1884         way to query whether that value is valid, nor firing a volumechange event when its value
1885         changes.
1886
1887         The HTML spec says that the 'muted' content attribute controls whether audio output is
1888         muted "when the media element is created", not when loading begins, but we don't
1889         necessarily have a signal that the element is fully parsed.  Additionally, this means its
1890         impossible to make an element via script and get this behavior.
1891
1892         So the new behavior is that the 'muted' IDL attribute will always reflect the 'muted'
1893         content attribute up until one of the following three conditions:
1894
1895         - The 'muted' IDL attribute is set via script.
1896         - The element is inserted in the document.
1897         - The element begins loading.
1898
1899         After the first one of the above conditions, the 'muted' IDL attribute will no longer
1900         change when the 'muted' content attribute changes.
1901
1902         * html/HTMLMediaElement.cpp:
1903         (WebCore::HTMLMediaElement::HTMLMediaElement):
1904         (WebCore::HTMLMediaElement::parseAttribute):
1905         * html/HTMLMediaElement.h:
1906
1907 2014-01-28  Anders Carlsson  <andersca@apple.com>
1908
1909         Add stubbed out VisitedLinkProvider class
1910         https://bugs.webkit.org/show_bug.cgi?id=127744
1911
1912         Reviewed by Andreas Kling.
1913
1914         This is a first step towards moving responsibility of visited links from 
1915         the page group to a separate object.
1916
1917         * CMakeLists.txt:
1918         * GNUmakefile.list.am:
1919         * WebCore.vcxproj/WebCore.vcxproj:
1920         * WebCore.vcxproj/WebCore.vcxproj.filters:
1921         * WebCore.xcodeproj/project.pbxproj:
1922         * page/PageGroup.cpp:
1923         (WebCore::PageGroup::PageGroup):
1924         * page/PageGroup.h:
1925         (WebCore::PageGroup::visitedLinkProvider):
1926         * page/VisitedLinkProvider.cpp: Added.
1927         (WebCore::VisitedLinkProvider::VisitedLinkProvider):
1928         (WebCore::VisitedLinkProvider::~VisitedLinkProvider):
1929         * page/VisitedLinkProvider.h: Added.
1930         (WebCore::VisitedLinkProvider::create):
1931
1932 2014-01-28  Gurpreet Kaur  <k.gurpreet@samsung.com>
1933
1934         Add support for menclose element
1935         https://bugs.webkit.org/show_bug.cgi?id=85729
1936
1937         Reviewed by Chris Fleizach.
1938
1939         Added support for menclose element. MathML <menclose> element renders
1940         its content inside an enclosing notation specified by the notation
1941         attribute. The notation attribute can have values longdiv, box, left,
1942         right, top, bottom , radical, madruwb, actuarial, roundedbox, circle,
1943         updiagonalstrike, downdiagonalstrike, verticalstrike and
1944         horizontalstrike.
1945
1946         Tests: mathml/presentation/menclose-add-children.html
1947                mathml/presentation/menclose-notation-attribute-add.html
1948                mathml/presentation/menclose-notation-attribute-change-value.html
1949                mathml/presentation/menclose-notation-attribute-remove.html
1950                mathml/presentation/menclose-notation-attribute-set1.html
1951                mathml/presentation/menclose-notation-attribute-set2.html
1952                mathml/presentation/menclose-notation-no-overlap.html
1953                mathml/presentation/menclose-notation-radical.html
1954                mathml/presentation/menclose-remove-children.html
1955
1956         * CMakeLists.txt:
1957         * GNUmakefile.list.am:
1958         * WebCore.vcxproj/WebCore.vcxproj:
1959         * WebCore.vcxproj/WebCore.vcxproj.filters:
1960         * WebCore.xcodeproj/project.pbxproj:
1961         * css/mathml.css:
1962         (mo, mrow, mfenced, mfrac, msub, msup, msubsup, mmultiscripts, mprescripts, none, munder, mover, munderover, msqrt, mroot, merror, mphantom, mstyle, menclose):
1963         (math, mrow, mfenced, msqrt, mroot, merror, mphantom, mstyle, menclose):
1964         * mathml/MathMLAllInOne.cpp:
1965         * mathml/MathMLElement.h:
1966         * mathml/MathMLInlineContainerElement.cpp:
1967         * mathml/MathMLMencloseElement.cpp: Added.
1968         (WebCore::MathMLMencloseElement::MathMLMencloseElement):
1969         (WebCore::MathMLMencloseElement::create):
1970         (WebCore::MathMLMencloseElement::createElementRenderer):
1971         (WebCore::MathMLMencloseElement::isPresentationAttribute):
1972         (WebCore::MathMLMencloseElement::finishParsingChildren):
1973         (WebCore::MathMLMencloseElement::collectStyleForPresentationAttribute):
1974         (WebCore::MathMLMencloseElement::longDivLeftPadding):
1975         * mathml/MathMLMencloseElement.h: Added.
1976         (WebCore::toMathMLMencloseElement):
1977         * mathml/mathattrs.in:
1978         * mathml/mathtags.in:
1979         * rendering/mathml/RenderMathMLMenclose.cpp: Added.
1980         (WebCore::RenderMathMLMenclose::RenderMathMLMenclose):
1981         (WebCore::RenderMathMLMenclose::addChild):
1982         (WebCore::RenderMathMLMenclose::computePreferredLogicalWidths):
1983         (WebCore::RenderMathMLMenclose::updateLogicalHeight):
1984         (WebCore::RenderMathMLMenclose::paint):
1985         (WebCore::RenderMathMLMenclose::checkNotationalValuesValidity):
1986         * rendering/mathml/RenderMathMLMenclose.h: Added.
1987         * rendering/mathml/RenderMathMLRoot.cpp:
1988         (WebCore::RenderMathMLRoot::RenderMathMLRoot):
1989         * rendering/mathml/RenderMathMLRoot.h:
1990         * rendering/mathml/RenderMathMLSquareRoot.cpp:
1991         (WebCore::RenderMathMLSquareRoot::RenderMathMLSquareRoot):
1992         (WebCore::RenderMathMLSquareRoot::createAnonymousWithParentRenderer):
1993         * rendering/mathml/RenderMathMLSquareRoot.h:
1994         Added new file related to menclose element implementation. Menclose
1995         element is created and while parsing its notation attribute based on
1996         its values like top, left CSSBorder properties are applied and for
1997         values like circle, verticalstrike, longidv its taken care in paint.
1998         For radical value an anonymous RenderMathMLSquareRoot is created as
1999         a child of menclose.
2000
2001 2014-01-28  Krzysztof Czech  <k.czech@samsung.com>
2002
2003         [ATK] accessibility/range-alter-by-percent.html is failing after r162587.
2004         https://bugs.webkit.org/show_bug.cgi?id=127774
2005
2006         Reviewed by Mario Sanchez Prada.
2007
2008         Implicit value of step in range type elements should be one or larger.
2009
2010         No new tests. Covered by exiting one.
2011
2012         * accessibility/atk/WebKitAccessibleInterfaceValue.cpp:
2013         (webkitAccessibleValueGetMinimumIncrement):
2014
2015 2014-01-28  Mark Rowe  <mrowe@apple.com>
2016
2017         <https://webkit.org/b/127767> Disable some deprecation warnings to fix the build.
2018
2019         Reviewed by Ryosuke Niwa.
2020
2021         * accessibility/mac/AXObjectCacheMac.mm:
2022         (WebCore::AXObjectCache::postPlatformNotification):
2023         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
2024         (-[WebAccessibilityObjectWrapper renderWidgetChildren]):
2025         * platform/audio/mac/AudioDestinationMac.cpp:
2026         (WebCore::AudioDestinationMac::configure):
2027         * platform/audio/mac/AudioFileReaderMac.cpp:
2028         (WebCore::AudioFileReader::createBus):
2029
2030 2014-01-28  Carlos Garcia Campos  <cgarcia@igalia.com>
2031
2032         [SOUP] Remove soupURIToKURL
2033         https://bugs.webkit.org/show_bug.cgi?id=127104
2034
2035         Reviewed by Martin Robinson.
2036
2037         In favor of a URL constructor receiving a SoupURI. Also add a
2038         method to URL to create a soupURI.
2039
2040         * GNUmakefile.list.am: Remove SoupURIUtils and add URLSoup.
2041         * PlatformEfl.cmake: Ditto.
2042         * PlatformGTK.cmake: Ditto.
2043         * platform/URL.h: Add URL constructor receiving a SoupURI and
2044         createSoupURI() to create a new soupURI for the URL.
2045         * platform/network/soup/CookieJarSoup.cpp:
2046         (WebCore::setCookiesFromDOM): Use URL::createSoupURI().
2047         (WebCore::cookiesForSession): Ditto.
2048         (WebCore::getRawCookies): Ditto.
2049         (WebCore::deleteCookie): Ditto.
2050         * platform/network/soup/ResourceHandleSoup.cpp:
2051         (WebCore::doRedirect): Use the new URL constructor instead of
2052         soupURIToKURL.
2053         (WebCore::createSoupRequestAndMessageForHandle): Use URL::createSoupURI().
2054         * platform/network/soup/ResourceRequest.h: Rename soupURI as
2055         createSoupURI to make it clear that the method returns a newly
2056         created SoupURI.
2057         * platform/network/soup/ResourceRequestSoup.cpp:
2058         (WebCore::ResourceRequest::updateSoupMessageMembers): Use URL::createSoupURI().
2059         (WebCore::ResourceRequest::updateSoupMessage): Ditto.
2060         (WebCore::ResourceRequest::updateFromSoupMessage): Use the new URL
2061         constructor instead of soupURIToKURL.
2062         (WebCore::ResourceRequest::createSoupURI): Use URL::createSoupURI().
2063         * platform/network/soup/ResourceResponseSoup.cpp:
2064         (WebCore::ResourceResponse::updateFromSoupMessage): Use the new
2065         URL constructor instead of soupURIToKURL.
2066         * platform/network/soup/SoupURIUtils.cpp: Removed.
2067         * platform/network/soup/SoupURIUtils.h: Removed.
2068         * platform/soup/URLSoup.cpp: Added.
2069         (WebCore::URL::URL):
2070         (WebCore::URL::createSoupURI):
2071
2072 2014-01-27  Carlos Garcia Campos  <cgarcia@igalia.com>
2073
2074         [GTK] Avoid unnecessary string duplications in FileSystemGtk
2075         https://bugs.webkit.org/show_bug.cgi?id=127469
2076
2077         Reviewed by Martin Robinson.
2078
2079         We are using fileSystemRepresentation() everywhere internally
2080         which returns a CString that always duplicates the string.
2081         Add unescapedFilename() internal helper function that returns a
2082         GUniquePtr and used it everywhere instead of fileSystemRepresentation().
2083
2084         * platform/gtk/FileSystemGtk.cpp:
2085         (WebCore::unescapedFilename):
2086         (WebCore::fileSystemRepresentation):
2087         (WebCore::filenameForDisplay):
2088         (WebCore::fileExists):
2089         (WebCore::deleteFile):
2090         (WebCore::deleteEmptyDirectory):
2091         (WebCore::getFileStat):
2092         (WebCore::getFileSize):
2093         (WebCore::getFileModificationTime):
2094         (WebCore::getFileMetadata):
2095         (WebCore::pathByAppendingComponent):
2096         (WebCore::makeAllDirectories):
2097         (WebCore::pathGetFileName):
2098         (WebCore::directoryName):
2099         (WebCore::listDirectory):
2100         (WebCore::openFile):
2101
2102 2014-01-27  Carlos Garcia Campos  <cgarcia@igalia.com>
2103
2104         [GTK] Make webkit_uri_scheme_request_get_web_view() work with CustomProtocols
2105         https://bugs.webkit.org/show_bug.cgi?id=127614
2106
2107         Reviewed by Gustavo Noronha Silva.
2108
2109         Add API to set the page identifier that initiated the request to
2110         ResourceRequest, and remove the initiatingPageID() method from the
2111         NetworkingContext class.
2112
2113         * platform/network/NetworkingContext.h:
2114         * platform/network/ResourceHandle.h:
2115         * platform/network/soup/ResourceHandleSoup.cpp:
2116         (WebCore::createSoupRequestAndMessageForHandle):
2117         * platform/network/soup/ResourceRequest.h:
2118         (WebCore::ResourceRequest::ResourceRequest):
2119         (WebCore::ResourceRequest::initiatingPageID):
2120         (WebCore::ResourceRequest::setInitiatingPageID):
2121         * platform/network/soup/ResourceRequestSoup.cpp:
2122         (WebCore::ResourceRequest::updateSoupRequest):
2123         (WebCore::ResourceRequest::updateFromSoupRequest):
2124
2125 2014-01-27  Tim Horton  <timothy_horton@apple.com>
2126
2127         Lots of varied and random crashes on the scrolling thread (ScrollbarPainters are going away)
2128         https://bugs.webkit.org/show_bug.cgi?id=127734
2129         <rdar://problem/15906263>
2130
2131         Reviewed by Simon Fraser.
2132
2133         * page/scrolling/ScrollingStateScrollingNode.h:
2134         Retain the ScrollbarPainters in the scrolling state tree.
2135
2136 2014-01-27  Joseph Pecoraro  <pecoraro@apple.com>
2137
2138         Unreviewed iOS build fix. FALLTHROUGHs for iOS.
2139
2140         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
2141         (-[WebAccessibilityObjectWrapper accessibilityTraits]):
2142         (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]):
2143
2144 2014-01-27  Roger Fong  <roger_fong@apple.com>
2145
2146         WebGLLoadPolicy::WebGLAsk is an unnecessary value.
2147         https://bugs.webkit.org/show_bug.cgi?id=127755
2148
2149         Reviewed by Anders Carlsson.
2150
2151         * html/HTMLCanvasElement.cpp:
2152         (WebCore::HTMLCanvasElement::getContext):
2153         * loader/FrameLoaderTypes.h:
2154
2155 2014-01-27  Brady Eidson  <beidson@apple.com>
2156
2157         IDB: Cursor support - Messaging, IPC, Threading plumbing
2158         https://bugs.webkit.org/show_bug.cgi?id=127736
2159
2160         Reviewed by Sam Weinig.
2161
2162         * Modules/indexeddb/IDBCursorBackendOperations.h:
2163         (WebCore::CursorIterationOperation::cursorID):
2164         (WebCore::CursorAdvanceOperation::cursorID):
2165
2166         * Modules/indexeddb/IDBTransactionBackendOperations.h:
2167         (WebCore::OpenCursorOperation::transactionID):
2168
2169         * WebCore.exp.in:
2170
2171 2014-01-27  Joseph Pecoraro  <pecoraro@apple.com>
2172
2173         WebCore: Enable -Wimplicit-fallthrough and add FALLTHROUGH annotation where needed
2174         https://bugs.webkit.org/show_bug.cgi?id=127671
2175
2176         Reviewed by Ryosuke Niwa.
2177
2178         * Configurations/Base.xcconfig:
2179         Enable the warning.
2180
2181         * css/StyleResolver.cpp:
2182         (WebCore::StyleResolver::applyProperty):
2183         Caught a bug. CSSPropertyWebkitAlt could fall through to CSSPropertyQuotes.
2184
2185         * css/SVGCSSParser.cpp:
2186         (WebCore::CSSParser::parseSVGValue):
2187         Caught a bug. CSSPropertyWebkitSvgShadow could fall through to CSSPropertyMaskType.
2188
2189         * platform/Decimal.cpp:
2190         (WebCore::Decimal::fromString):
2191         Possible bug. Implementation doesn't seem to match its documentation.
2192         Filed an issue to follow-up on this unclear function.
2193
2194         * css/makeprop.pl:
2195         * css/makevalues.pl:
2196         * platform/ColorData.gperf:
2197         Ignore implicit fallthrough warnings in generated code. gperf outputs
2198         a "/*FALLTHROUGH*/" comment, but is not easily customizable to change
2199         this output. Easiest to just ignore the warning for now.
2200
2201         * rendering/AutoTableLayout.cpp:
2202         (WebCore::AutoTableLayout::recalcColumn):
2203         (WebCore::AutoTableLayout::calcEffectiveLogicalWidth):
2204         (WebCore::AutoTableLayout::layout):
2205         There has been a "fall through" comment immediately followed by a break
2206         since its introduction in 2003. Removing the inaccurate comment.
2207
2208         * accessibility/AccessibilityNodeObject.cpp:
2209         (WebCore::AccessibilityNodeObject::canHaveChildren):
2210         (WebCore::AccessibilityNodeObject::visibleText):
2211         (WebCore::AccessibilityNodeObject::title):
2212         * accessibility/mac/WebAccessibilityObjectWrapperBase.mm:
2213         (-[WebAccessibilityObjectWrapperBase accessibilityDescription]):
2214         (-[WebAccessibilityObjectWrapperBase accessibilityHelpText]):
2215         * bindings/js/SerializedScriptValue.cpp:
2216         (WebCore::CloneSerializer::serialize):
2217         (WebCore::CloneDeserializer::deserialize):
2218         * css/CSSComputedStyleDeclaration.cpp:
2219         (WebCore::ComputedStyleExtractor::propertyValue):
2220         * css/CSSParser.cpp:
2221         (WebCore::CSSParser::parseValue):
2222         (WebCore::CSSParser::parseContent):
2223         (WebCore::CSSParser::realLex):
2224         * css/CSSSelector.cpp:
2225         (WebCore::CSSSelector::extractPseudoType):
2226         (WebCore::CSSSelector::selectorText):
2227         * css/StyleProperties.cpp:
2228         (WebCore::StyleProperties::asText):
2229         * css/StyleSheetContents.cpp:
2230         (WebCore::childRulesHaveFailedOrCanceledSubresources):
2231         * dom/Node.cpp:
2232         (WebCore::appendTextContent):
2233         * html/parser/HTMLTreeBuilder.cpp:
2234         (WebCore::HTMLTreeBuilder::processStartTag):
2235         (WebCore::HTMLTreeBuilder::processEndTag):
2236         (WebCore::HTMLTreeBuilder::processCharacterBuffer):
2237         (WebCore::HTMLTreeBuilder::processEndOfFile):
2238         * loader/cache/CachedResourceLoader.cpp:
2239         (WebCore::CachedResourceLoader::requestResource):
2240         * page/EventSource.cpp:
2241         (WebCore::EventSource::parseEventStream):
2242         * platform/DateComponents.cpp:
2243         (WebCore::DateComponents::toStringForTime):
2244         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2245         (WebCore::MediaPlayerPrivateAVFoundation::updateStates):
2246         * platform/graphics/cg/GraphicsContextCG.cpp:
2247         (WebCore::GraphicsContext::platformInit):
2248         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2249         (WebCore::MediaPlayerPrivateGStreamer::totalBytes):
2250         * platform/graphics/win/FullScreenController.cpp:
2251         (FullScreenController::Private::fullscreenClientWndProc):
2252         * platform/text/BidiResolver.h:
2253         (WebCore::Run>::updateStatusLastFromCurrentDirection):
2254         (WebCore::Run>::createBidiRunsForLine):
2255         * platform/text/win/LocaleWin.cpp:
2256         (WebCore::LocaleWin::initializeLocaleData):
2257         * rendering/PointerEventsHitRules.cpp:
2258         (WebCore::PointerEventsHitRules::PointerEventsHitRules):
2259         * rendering/RenderBlockFlow.cpp:
2260         (WebCore::RenderBlockFlow::newLine):
2261         * rendering/RenderBlockLineLayout.cpp:
2262         (WebCore::RenderBlockFlow::updateLogicalWidthForAlignment):
2263         * rendering/RenderBox.cpp:
2264         (WebCore::RenderBox::computeReplacedLogicalWidthUsing):
2265         * rendering/RenderBoxModelObject.cpp:
2266         (WebCore::RenderBoxModelObject::calculateFillTileSize):
2267         * rendering/RenderObject.cpp:
2268         (WebCore::RenderObject::drawLineForBoxSide):
2269         * rendering/RenderQuote.cpp:
2270         (WebCore::RenderQuote::originalText):
2271         * rendering/RenderReplaced.cpp:
2272         (WebCore::RenderReplaced::replacedContentRect):
2273         * rendering/RenderTable.cpp:
2274         (WebCore::RenderTable::addChild):
2275         * rendering/RenderTheme.cpp:
2276         (WebCore::RenderTheme::adjustStyle):
2277         * rendering/style/RenderStyle.cpp:
2278         (WebCore::RenderStyle::setWordSpacing):
2279         * rendering/svg/RenderSVGResource.cpp:
2280         (WebCore::requestPaintingResource):
2281         * rendering/svg/SVGMarkerData.h:
2282         (WebCore::SVGMarkerData::updateMarkerDataForPathElement):
2283         * svg/SVGPathParser.cpp:
2284         (WebCore::SVGPathParser::parsePathDataFromSource):
2285         * svg/SVGTransformDistance.cpp:
2286         (WebCore::SVGTransformDistance::SVGTransformDistance):
2287         (WebCore::SVGTransformDistance::scaledDistance):
2288         (WebCore::SVGTransformDistance::addSVGTransforms):
2289         (WebCore::SVGTransformDistance::addToSVGTransform):
2290         (WebCore::SVGTransformDistance::distance):
2291         Add annotation or break before falling into a default:break;
2292
2293 2014-01-27  Andreas Kling  <akling@apple.com>
2294
2295         Allow mmap encoded data replacement for WOFF fonts.
2296         <https://webkit.org/b/127737>
2297
2298         We always have to convert WOFF fonts to SFNT format. This happens
2299         in a separate buffer from the CachedFont's internal resource buffer.
2300         Because of this, there's no need to protect the original buffer from
2301         mmap replacement.
2302
2303         With this change, WOFF web fonts are no longer duplicated between
2304         the network and web processes.
2305
2306         Reviewed by Brady Eidson.
2307
2308         * loader/cache/CachedFont.cpp:
2309         (WebCore::CachedFont::CachedFont):
2310         (WebCore::CachedFont::ensureCustomFontData):
2311         (WebCore::CachedFont::mayTryReplaceEncodedData):
2312         * loader/cache/CachedFont.h:
2313
2314 2014-01-27  David Hyatt  <hyatt@apple.com>
2315
2316         [New Multicolumn] Add support for block progression axis and reverse direction
2317         https://bugs.webkit.org/show_bug.cgi?id=127715
2318
2319         Reviewed by thorton.
2320
2321         This patch adds support for -webkit-progression-direction and -webkit-progression-axis
2322         to the new column code. This allows columns to stack along the block axis instead of
2323         the inline axis or to reverse directions along that progression axis.
2324
2325         Added fast/multicol/newmulticol/progression-reverse.html and
2326               fast/multicol/newmulticol/progression-reverse-overflow.html
2327
2328         * rendering/RenderBlock.cpp:
2329         (WebCore::RenderBlock::isTopLayoutOverflowAllowed):
2330         (WebCore::RenderBlock::isLeftLayoutOverflowAllowed):
2331         New functions have been added for top and left layout overflow in order to get
2332         a bunch of code out of RenderBox that didn't belong there. RenderBlock is overriding
2333         the functions for the old multicolumn layout code to keep it working.
2334
2335         * rendering/RenderBlock.h:
2336         Added the new top/left overflow functions.
2337
2338         * rendering/RenderBlockFlow.cpp:
2339         (WebCore::RenderBlockFlow::determineLogicalLeftPositionForChild):
2340         Moved from RenderBlock, since it didn't belong there.
2341
2342         (WebCore::RenderBlockFlow::isTopLayoutOverflowAllowed):
2343         (WebCore::RenderBlockFlow::isLeftLayoutOverflowAllowed):
2344         * rendering/RenderBlockFlow.h:
2345         Overridden for the new multi-column code to specify when top/left overflow are
2346         allowed (e.g., when the columns go backwards).
2347
2348         * rendering/RenderBox.cpp:
2349         (WebCore::RenderBox::addLayoutOverflow):
2350         Overridden to use the new top/left overflow functions.
2351
2352         * rendering/RenderBox.h:
2353         (WebCore::RenderBox::isTopLayoutOverflowAllowed):
2354         (WebCore::RenderBox::isLeftLayoutOverflowAllowed):
2355         Added base definitions that look at direction and writing-mode.
2356
2357         * rendering/RenderFlexibleBox.cpp:
2358         (WebCore::RenderFlexibleBox::isTopLayoutOverflowAllowed):
2359         (WebCore::RenderFlexibleBox::isLeftLayoutOverflowAllowed):
2360         * rendering/RenderFlexibleBox.h:
2361         Overrides for flexible box of the top/left overflow functions.
2362
2363         * rendering/RenderMultiColumnFlowThread.h:
2364         Make sure requiresBalancing() is set to false if the axis of the columns
2365         is block, since at least right now, we don't support balancing columns
2366         along the block axis. (In theory we could support this in the future, but
2367         nobody has requested it.)
2368
2369         * rendering/RenderMultiColumnSet.cpp:
2370         (WebCore::RenderMultiColumnSet::updateLogicalWidth):
2371         Remove the code that expands the width of multi column sets. We now always
2372         let their logical width match the containing block's content width and instead
2373         add the overflow to the set itself.
2374
2375         (WebCore::RenderMultiColumnSet::columnRectAt):
2376         (WebCore::RenderMultiColumnSet::flowThreadPortionOverflowRect):
2377         (WebCore::RenderMultiColumnSet::paintColumnRules):
2378         (WebCore::RenderMultiColumnSet::initialBlockOffsetForPainting):
2379         (WebCore::RenderMultiColumnSet::collectLayerFragments):
2380         (WebCore::RenderMultiColumnSet::adjustRegionBoundsFromFlowThreadPortionRect):
2381         Patch all of these functions to know how to handle a block axis or reversed
2382         direction.
2383
2384         (WebCore::RenderMultiColumnSet::addOverflowFromChildren):
2385         * rendering/RenderMultiColumnSet.h:
2386         Make multi-column set add in its overflow in the same way that the old
2387         multi-column code did, by looking at the last column rect. (This is really
2388         not a very good way to do it, but it's the same as the old code for now.)
2389
2390 2014-01-27  Daniel Bates  <dabates@apple.com>
2391
2392         Fix the Mac build following <http://trac.webkit.org/changeset/162887>
2393         (https://bugs.webkit.org/show_bug.cgi?id=127703)
2394
2395         Export symbol for WebCore::AXObjectCache::enableAccessibility().
2396
2397         * WebCore.exp.in:
2398
2399 2014-01-27  Roger Fong  <roger_fong@apple.com>
2400
2401         [Mac] Unreviewed build fix. Add missing export symbol.
2402
2403         * WebCore.exp.in:
2404
2405 2014-01-27  Roger Fong  <roger_fong@apple.com>
2406
2407         [Windows] Tests crashing on Windows after r162816.
2408         https://bugs.webkit.org/show_bug.cgi?id=127703.
2409
2410         Reviewed by Alexey Proskuryakov.
2411
2412         * accessibility/AXObjectCache.cpp:
2413         (WebCore::AXObjectCache::enableAccessibility):
2414         (WebCore::AXObjectCache::disableAccessibility):
2415         * accessibility/AXObjectCache.h: Un-inline some methods so that they can be exported.
2416
2417 2014-01-27  Andy Estes  <aestes@apple.com>
2418
2419         Update bindings test expectations after r162872
2420
2421         * bindings/scripts/test/ObjC/DOMTestInterface.h:
2422         * bindings/scripts/test/ObjC/DOMTestObj.h:
2423
2424 2014-01-27  Andy Estes  <aestes@apple.com>
2425
2426         Scrub WebKit API headers of WTF macros
2427         https://bugs.webkit.org/show_bug.cgi?id=127706
2428
2429         Reviewed by David Kilzer.
2430
2431         * Configurations/FeatureDefines.xcconfig: Added ENABLE_INSPECTOR.
2432         * bindings/objc/DOMEvents.h: Guarded include of
2433         DOM{Gesture,Touch}Event.h with TARGET_OS_IPHONE, since those features
2434         are always enabled on iOS.
2435         * platform/graphics/mac/MediaPlayerProxy.h: Replaced PLATFORM(IOS) with
2436         TARGET_OS_IPHONE and ensured ENABLE_IOS_AIRPLAY is defined.
2437         * platform/ios/SystemMemory.h: Replaced PLATFORM(IOS) with
2438         TARGET_OS_IPHONE.
2439         * platform/ios/wak/WKGraphics.h: Replaced PLATFORM(IOS_SIMULATOR) with
2440         TARGET_IPHONE_SIMULATOR.
2441
2442 2014-01-27  Jer Noble  <jer.noble@apple.com>
2443
2444         [iOS] Use callOnMainThread() not dispatch_async() in MediaPlayerPrivateAVFoundationObjC
2445         https://bugs.webkit.org/show_bug.cgi?id=127701
2446
2447         Reviewed by Eric Carlson.
2448
2449         dispatch_async(dispatch_get_main_queue(), ...) used to be fine so long as the main
2450         thread was also the web thread. But since that's not the case on iOS, we should be
2451         using callOnMainThread() instead (because it dispatches to the web thread, not as
2452         its name implies, the main thread).
2453
2454         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
2455         (WebCore::MediaPlayerPrivateAVFoundationObjC::createWeakPtr):
2456         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2457         (WebCore::MediaPlayerPrivateAVFoundationObjC::MediaPlayerPrivateAVFoundationObjC):
2458         (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoLayer):
2459         (WebCore::MediaPlayerPrivateAVFoundationObjC::seekToTime):
2460         (-[WebCoreAVFMovieObserver legibleOutput:didOutputAttributedStrings:nativeSampleBuffers:forItemTime:]):
2461         (-[WebCoreAVFMovieObserver outputSequenceWasFlushed:]):
2462         (-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]):
2463         (-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForResponseToAuthenticationChallenge:]):
2464         (-[WebCoreAVFLoaderDelegate resourceLoader:didCancelLoadingRequest:]):
2465
2466 2014-01-27  Maciej Stachowiak  <mjs@apple.com>
2467
2468         Move Conditional=BLOB from URL interface to Blob-related methods, to prepare for adding URL API
2469         https://bugs.webkit.org/show_bug.cgi?id=127719
2470
2471         Reviewed by Sam Weinig.
2472
2473         * html/DOMURL.idl:
2474
2475 2014-01-27  Andreas Kling  <akling@apple.com>
2476
2477         Remove unused USE(OPENTYPE_SANITIZER) code.
2478         <https://webkit.org/b/127710>
2479
2480         This code was only used by the Chromium port.
2481
2482         Reviewed by Darin Adler.
2483
2484         * GNUmakefile.list.am:
2485         * WebCore.xcodeproj/project.pbxproj:
2486         * loader/cache/CachedFont.cpp:
2487         (WebCore::CachedFont::ensureCustomFontData):
2488         * platform/graphics/WOFFFileFormat.cpp:
2489         * platform/graphics/WOFFFileFormat.h:
2490         * platform/graphics/opentype/OpenTypeSanitizer.cpp: Removed.
2491         * platform/graphics/opentype/OpenTypeSanitizer.h: Removed.
2492
2493
2494 2014-01-27  Andy Estes  <aestes@apple.com>
2495
2496         Stop the code generator from adding ENABLE() macros to Objective-C DOM headers
2497         https://bugs.webkit.org/show_bug.cgi?id=127706
2498
2499         Reviewed by David Kilzer.
2500
2501         Instead of adding ENABLE() macros to generated Objective-C DOM
2502         headers, which might become Public or Private headers, elide generated
2503         code for disabled features.
2504
2505         * bindings/scripts/CodeGeneratorObjC.pm:
2506         (GenerateInterface): Passed $defines to GenerateHeader.
2507         (ConditionalIsEnabled): Checked if the given conditional is found in
2508         $defines. Handled conditionals with '&' and '|'.
2509         (GenerateHeader): Rather than calling GenerateConditionalString to
2510         generate an "#if ENABLE(...)", called ConditionalIsEnabled() to see
2511         whether we should generate code for the given constant, attribute, or
2512         function.
2513
2514 2014-01-27  Zoltan Horvath  <zoltan@webkit.org>
2515
2516         [CSS Shapes] Remove restriction of negative values for inset parameters
2517         https://bugs.webkit.org/show_bug.cgi?id=127704
2518
2519         Reviewed by Darin Adler.
2520
2521         The latest version of CSS Shapes (http://www.w3.org/TR/css-shapes/) specification
2522         doesn't contain any restriction of using negative values for the inset sizing.
2523         I removed the restriction from the code and added testing for them.
2524
2525         Existing tests have been extended with the new cases.
2526
2527         * css/CSSParser.cpp:
2528         (WebCore::CSSParser::parseBasicShapeInset):
2529
2530 2014-01-27  Eric Carlson  <eric.carlson@apple.com>
2531
2532         [iOS] preload=none prevents play()
2533         https://bugs.webkit.org/show_bug.cgi?id=127702
2534
2535         Reviewed by Jer Noble.
2536
2537         No new tests, covered by existing tests.
2538
2539         * html/HTMLMediaElement.cpp:
2540         (WebCore::HTMLMediaElement::potentiallyPlaying): Cleanup logic to make it simpler to understand,
2541             fix logic error introduced in r161973
2542         (WebCore::HTMLMediaElement::updatePlayState): Conditionalize some iOS-only code on whether or not
2543             we are using the plug-in proxy.
2544
2545 2014-01-27  Brady Eidson  <beidson@apple.com>
2546
2547         IDB: LevelDB backing store shouldn't know about IDBCursor or IDBCallbacks
2548         https://bugs.webkit.org/show_bug.cgi?id=127708
2549
2550         Reviewed by Tim Horton.
2551
2552         Move that knowledge to the IDBCursorBackendOperations inside the callback.
2553
2554         * Modules/indexeddb/IDBCursorBackendOperations.cpp:
2555         (WebCore::CursorAdvanceOperation::perform):
2556         (WebCore::CursorIterationOperation::perform):
2557         * Modules/indexeddb/IDBCursorBackendOperations.h:
2558
2559         * Modules/indexeddb/IDBServerConnection.h:
2560         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
2561         (WebCore::IDBServerConnectionLevelDB::cursorAdvance):
2562         (WebCore::IDBServerConnectionLevelDB::cursorIterate):
2563         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
2564
2565 2014-01-27  Brady Eidson  <beidson@apple.com>
2566
2567         IDB: Remove unused concept of "cursor prefetch"
2568         https://bugs.webkit.org/show_bug.cgi?id=127700
2569
2570         Reviewed by Tim Horton.
2571
2572         * Modules/indexeddb/IDBCursorBackend.cpp:
2573         * Modules/indexeddb/IDBCursorBackend.h:
2574         * Modules/indexeddb/IDBCursorBackendOperations.cpp:
2575         * Modules/indexeddb/IDBCursorBackendOperations.h:
2576         * Modules/indexeddb/IDBServerConnection.h:
2577         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
2578         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
2579
2580 2014-01-27  Brady Eidson  <beidson@apple.com>
2581
2582         IDB: Refactor out the last of the operation callbacks that are called by the LevelDB backing store
2583         https://bugs.webkit.org/show_bug.cgi?id=127592
2584
2585         Reviewed by Tim Horton.
2586
2587         For each of the 3 remaining operations where the backing store calls callbacks directly,
2588         factor out the callbacks to the operation itself.
2589
2590
2591         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
2592         (WebCore::OpenCursorOperation::perform):
2593         (WebCore::CountOperation::perform):
2594         (WebCore::DeleteRangeOperation::perform):
2595         * Modules/indexeddb/IDBTransactionBackendOperations.h:
2596
2597         * Modules/indexeddb/IDBServerConnection.h:
2598         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
2599         (WebCore::IDBServerConnectionLevelDB::openCursor):
2600         (WebCore::IDBServerConnectionLevelDB::count):
2601         (WebCore::IDBServerConnectionLevelDB::deleteRange):
2602         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
2603
2604 2014-01-27  Commit Queue  <commit-queue@webkit.org>
2605
2606         Unreviewed, rolling out r162755.
2607         http://trac.webkit.org/changeset/162755
2608         https://bugs.webkit.org/show_bug.cgi?id=127696
2609
2610         not quite right, breaks subframe scrolling in some cases
2611         (Requested by thorton on #webkit).
2612
2613         * page/scrolling/ScrollingTree.cpp:
2614         (WebCore::ScrollingTree::ScrollingTree):
2615         (WebCore::ScrollingTree::shouldHandleWheelEventSynchronously):
2616         (WebCore::ScrollingTree::removeDestroyedNodes):
2617         * page/scrolling/ScrollingTree.h:
2618         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
2619         (WebCore::ScrollingTreeScrollingNodeMac::handleWheelEvent):
2620
2621 2014-01-27  Zoltan Horvath  <zoltan@webkit.org>
2622
2623         [CSS Shapes] inset() function with multiple spaces on element style
2624         https://bugs.webkit.org/show_bug.cgi?id=127617
2625
2626         Reviewed by Dirk Schulze.
2627
2628         When only a subset of parameters were defined for an inset shape, the built
2629         inset string contained some extra spaces. This patch fixes the behavior and
2630         adds tests for the case. I also removed the string allocation optimization from
2631         buildInsetString, since it's not worthwhile to always allocate as many memory
2632         as needed for a fully defined inset.
2633
2634         I added the new test cases to the shapes parser code test.
2635
2636         * css/CSSBasicShapes.cpp:
2637         (WebCore::buildInsetString):
2638
2639 2014-01-27  Antti Koivisto  <antti@apple.com>
2640
2641         * WebCore.exp.in: Add export needed for iOS.
2642
2643 2014-01-27  Antti Koivisto  <antti@apple.com>
2644
2645         REGRESSION(r133214): Don't invalidate style when adding classes that don't match rules
2646         https://bugs.webkit.org/show_bug.cgi?id=126177
2647
2648         Reviewed by Anders Carlsson.
2649         
2650         Spotted by Elliott Sprehn in Chromium.
2651
2652         * dom/Element.cpp:
2653         (WebCore::checkSelectorForClassChange):
2654         
2655             Remove unnecessary templating.
2656
2657         (WebCore::Element::classAttributeChanged):
2658         
2659             Fix logic error with 'continue'.
2660
2661 2014-01-27  Brendan Long  <b.long@cablelabs.com>
2662
2663         [GStreamer] Lockup when playing Icecast radio
2664         https://bugs.webkit.org/show_bug.cgi?id=127452
2665
2666         Reviewed by Philippe Normand.
2667
2668         No new tests. This bug can only be demonstrated with an Icecast stream, and it's
2669         not clear how to do that in our testing framework.
2670
2671         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
2672         (StreamingClient::handleResponseReceived): Wait until we unlock to send notifications.
2673
2674 2014-01-27  Jessie Berlin  <jberlin@apple.com>
2675
2676         Build fix after r162838.
2677
2678         * page/FrameView.cpp:
2679         Remove an unused constant.
2680
2681 2014-01-27  Antti Koivisto  <antti@apple.com>
2682
2683         Remove repaint throttling
2684         https://bugs.webkit.org/show_bug.cgi?id=127681
2685
2686         Reviewed by Sam Weinig.
2687
2688         Nowadays we throttle layer flushes. This code is unnecessary.
2689
2690         * WebCore.exp.in:
2691         * dom/Document.cpp:
2692         (WebCore::Document::recalcStyle):
2693         * dom/Element.cpp:
2694         (WebCore::Element::classAttributeChanged):
2695         * editing/AlternativeTextController.cpp:
2696         (WebCore::AlternativeTextController::insertDictatedText):
2697         * loader/FrameLoader.cpp:
2698         (WebCore::FrameLoader::checkCompleted):
2699         * page/EventHandler.cpp:
2700         (WebCore::EventHandler::dispatchDragEvent):
2701         (WebCore::EventHandler::dispatchMouseEvent):
2702         (WebCore::EventHandler::keyEvent):
2703         (WebCore::EventHandler::handleTextInputEvent):
2704         * page/FrameView.cpp:
2705         (WebCore::FrameView::FrameView):
2706         (WebCore::FrameView::reset):
2707         (WebCore::FrameView::flushCompositingStateForThisFrame):
2708         (WebCore::FrameView::layout):
2709         (WebCore::FrameView::repaintContentRectangle):
2710         (WebCore::FrameView::disableLayerFlushThrottlingTemporarilyForInteraction):
2711         (WebCore::FrameView::updateLayoutAndStyleIfNeededRecursive):
2712         * page/FrameView.h:
2713         * rendering/RenderView.cpp:
2714         (WebCore::RenderView::setSelection):
2715
2716 2014-01-24  Eric Carlson  <eric.carlson@apple.com>
2717
2718         Merge Chromium TextTrack cleanups
2719         https://bugs.webkit.org/show_bug.cgi?id=127483
2720
2721         Reviewed by Darin Adler.
2722
2723         Merge some TextTrack cleanups:
2724         https://chromium.googlesource.com/chromium/blink/+/b571b9fbc6e62e05aa77a402cf8f447e681b8ee3
2725         https://chromium.googlesource.com/chromium/blink/+/6b1940151258150ea01bcf21ebfd958e2af247f4
2726         https://chromium.googlesource.com/chromium/blink/+/397c2a2d9416f5c0d79bca22d6979f174eefcce2
2727         https://chromium.googlesource.com/chromium/blink/+/f42ad93e25c6310b2b0327ab7ce5d82d3c4a6c1b
2728         https://chromium.googlesource.com/chromium/blink/+/d55b52b53b7da05bba5fe378a4278250b9347430
2729         https://chromium.googlesource.com/chromium/blink/+/cac766ecaaac477a08879f0b3157d0327cc75d96
2730         https://chromium.googlesource.com/chromium/blink/+/6197ce278696cdd52fc2ad81893f369492468ca0
2731
2732         * html/HTMLTrackElement.cpp:
2733         (WebCore::HTMLTrackElement::loadTimerFired): Remove the LoadableTextTrack* parameter, it isn't used.
2734         (WebCore::HTMLTrackElement::didCompleteLoad): Ditto.
2735         * html/HTMLTrackElement.h: didCompleteLoad doesn't need to be virtual.
2736
2737         * html/track/LoadableTextTrack.cpp:
2738         (WebCore::LoadableTextTrack::loadTimerFired): Pass a reference, not a pointer.
2739         (WebCore::LoadableTextTrack::cueLoadingStarted): Removed, it wasn't used.
2740         (WebCore::LoadableTextTrack::cueLoadingCompleted): Pass a reference, not a pointer.
2741         * html/track/LoadableTextTrack.h: Delete LoadableTextTrackClient, it is no longer used.
2742
2743         * loader/TextTrackLoader.cpp:
2744         (WebCore::TextTrackLoader::TextTrackLoader): Take a TextTrackLoaderClient reference.
2745         (WebCore::TextTrackLoader::~TextTrackLoader): Rename m_cachedCueData m_resource.
2746         (WebCore::TextTrackLoader::cueLoadTimerFired): m_client is a reference.
2747         (WebCore::TextTrackLoader::cancelLoad): m_cachedCueData -> m_resource.
2748         (WebCore::TextTrackLoader::processNewCueData): Ditto.
2749         (WebCore::TextTrackLoader::deprecatedDidReceiveCachedResource): Ditto.
2750         (WebCore::TextTrackLoader::notifyFinished): Ditto.
2751         (WebCore::TextTrackLoader::load): shouldLoadCues was removed from the client interface because
2752             the only implementation always returned true.
2753         (WebCore::TextTrackLoader::newRegionsParsed): m_client is a reference
2754         * loader/TextTrackLoader.h:
2755
2756         * loader/cache/CachedResourceLoader.cpp:
2757         (WebCore::CachedResourceLoader::canRequest): Remove an outdated comment.
2758
2759 2014-01-27  Chris Fleizach  <cfleizach@apple.com>
2760
2761         AX: Disable accessibility after every test run
2762         https://bugs.webkit.org/show_bug.cgi?id=127439
2763
2764         Reviewed by Csaba Osztrogonác.
2765
2766         Speculative fix for EFL build. Don't process these notifications unless accessibility is enabled.
2767
2768         * loader/FrameLoader.cpp:
2769         (WebCore::FrameLoader::prepareForLoadStart):
2770
2771 2014-01-27  Csaba Osztrogonác  <ossy@webkit.org>
2772
2773         Buildfix for !ENABLE(COMPARE_AND_SWAP) platforms after r162774
2774         https://bugs.webkit.org/show_bug.cgi?id=127678
2775
2776         Reviewed by Zoltan Herczeg.
2777
2778         * platform/text/TextBreakIterator.cpp:
2779         (WebCore::compareAndSwapNonSharedCharacterBreakIterator):
2780         Use std::mutex instead of Mutex and std::lock_guard instead of MutexLocker.
2781
2782 2014-01-26  Tim Horton  <timothy_horton@apple.com>
2783
2784         Fix the iOS build (failed to correctly revert some broken changes in the last patch).
2785
2786         * platform/graphics/cg/BitmapImageCG.cpp:
2787
2788 2014-01-26  Tim Horton  <timothy_horton@apple.com>
2789
2790         Start cleaning up iOS upstreaming #ifs in platform/graphics
2791         https://bugs.webkit.org/show_bug.cgi?id=127641
2792
2793         Reviewed by Sam Weinig.
2794
2795         * platform/graphics/BitmapImage.h:
2796         * platform/graphics/mac/ColorMac.h:
2797         Use USE(APPKIT) instead of PLATFORM(MAC) && !PLATFORM(IOS) for NSImage/getNSImage().
2798
2799         * platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm:
2800         (WebCore::AVTrackPrivateAVFObjCImpl::label):
2801         * platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm:
2802         (WebCore::InbandTextTrackPrivateLegacyAVFObjC::label):
2803         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2804         (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL):
2805         Remove some code that was only used on OS X on Lion or below.
2806
2807         * platform/graphics/cg/GraphicsContextCG.cpp:
2808         (WebCore::GraphicsContext::platformInit):
2809         ToT WebKit doesn't build on Lion or earlier anymore, so this code can always run.
2810
2811         * platform/graphics/cg/FloatPointCG.cpp:
2812         * platform/graphics/cg/FloatRectCG.cpp:
2813         * platform/graphics/cg/FloatSizeCG.cpp:
2814         * platform/graphics/cg/GradientCG.cpp:
2815         * platform/graphics/cg/ImageBufferCG.cpp:
2816         * platform/graphics/cg/ImageCG.cpp:
2817         * platform/graphics/cg/IntPointCG.cpp:
2818         * platform/graphics/cg/IntRectCG.cpp:
2819         * platform/graphics/cg/PathCG.cpp:
2820         * platform/graphics/cg/PatternCG.cpp:
2821         * platform/graphics/mac/FontCustomPlatformData.cpp:
2822         Use CoreGraphics/CoreGraphics.h instead of ApplicationServices/ApplicationServices.h
2823         even on Mac, so we can share the include.
2824
2825         * platform/graphics/cg/IntSizeCG.cpp:
2826         Remove a random comment of a style we don't tend to use in WebKit,
2827         and from a file not large enough to need it.
2828
2829         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
2830         (WebCore::FontPlatformData::FontPlatformData):
2831         (WebCore::FontPlatformData::setFont):
2832         Remove some more always-true #ifs.
2833
2834         * platform/graphics/mac/WebLayer.mm:
2835         Move a #if'd include out to its own block as per the style guide.
2836
2837 2014-01-26  David Hyatt  <hyatt@apple.com>
2838
2839         [New Multicolumn] Make sure the progression axis and direction are propagated to the new columns.
2840         https://bugs.webkit.org/show_bug.cgi?id=127670
2841
2842         This patch makes sure that the progression axis and direction style properties
2843         are properly propagated from the style to the multi-column flow thread. Virtualizing
2844         and renaming updateColumnInfoFromStyle to updateColumnProgressionFromStyle lets us
2845         share code between the old multi-column code and the new.
2846
2847         Reviewed by Sam Weinig.
2848
2849         * rendering/RenderBlock.cpp:
2850         (WebCore::RenderBlock::updateColumnProgressionFromStyle):
2851         * rendering/RenderBlock.h:
2852         * rendering/RenderBlockFlow.cpp:
2853         (WebCore::RenderBlockFlow::setComputedColumnCountAndWidth):
2854         (WebCore::RenderBlockFlow::updateColumnProgressionFromStyle):
2855         * rendering/RenderBlockFlow.h:
2856         * rendering/RenderBox.cpp:
2857         (WebCore::RenderBox::styleDidChange):
2858         * rendering/RenderMultiColumnFlowThread.cpp:
2859         (WebCore::RenderMultiColumnFlowThread::RenderMultiColumnFlowThread):
2860         * rendering/RenderMultiColumnFlowThread.h:
2861         * style/StyleResolveForDocument.cpp:
2862         (WebCore::Style::resolveForDocument):
2863
2864 2014-01-26  David Hyatt  <hyatt@apple.com>
2865
2866         [New Multicolumn] Change the axis property to be a boolean like other isInline checks
2867         https://bugs.webkit.org/show_bug.cgi?id=127661
2868
2869         Reviewed by Simon Fraser.
2870
2871         * rendering/ColumnInfo.h:
2872         (WebCore::ColumnInfo::ColumnInfo):
2873         (WebCore::ColumnInfo::progressionIsInline):
2874         (WebCore::ColumnInfo::setProgressionIsInline):
2875         * rendering/RenderBlock.cpp:
2876         (WebCore::RenderBlock::paintColumnRules):
2877         (WebCore::RenderBlock::initialBlockOffsetForPainting):
2878         (WebCore::RenderBlock::blockDeltaForPaintingNextColumn):
2879         (WebCore::RenderBlock::setComputedColumnCountAndWidth):
2880         (WebCore::RenderBlock::updateColumnInfoFromStyle):
2881         (WebCore::RenderBlock::columnRectAt):
2882         (WebCore::RenderBlock::adjustPointToColumnContents):
2883         (WebCore::RenderBlock::adjustRectForColumns):
2884         (WebCore::RenderBlock::adjustForColumns):
2885         * rendering/RenderMultiColumnFlowThread.h:
2886         * rendering/RenderObject.cpp:
2887         (WebCore::RenderObject::columnNumberForOffset):
2888
2889 2014-01-26  Benjamin Poulain  <benjamin@webkit.org>
2890
2891         Make DOMStringMap a typedef of DatasetDOMStringMap
2892         https://bugs.webkit.org/show_bug.cgi?id=127658
2893
2894         Reviewed by Sam Weinig.
2895
2896         The only concrete implementation of DOMStringMap is DatasetDOMStringMap.
2897         The abstract interface for a single definition is adding complexity for no gain.
2898
2899         This patch removes DOMStringMap and simply keeps the name through a typedef.
2900         I used a typedef instead of just renaming DatasetDOMStringMap because I think
2901         having both name has value. DatasetDOMStringMap is a better description of what
2902         the implementation does. DOMStringMap is the public name and the classname is
2903         the same as the JavaScript type by convention.
2904
2905         * CMakeLists.txt:
2906         * GNUmakefile.list.am:
2907         * WebCore.vcxproj/WebCore.vcxproj:
2908         * WebCore.vcxproj/WebCore.vcxproj.filters:
2909         * WebCore.xcodeproj/project.pbxproj:
2910         * dom/DOMAllInOne.cpp:
2911         * dom/DOMStringMap.cpp: Removed.
2912         * dom/DOMStringMap.h:
2913         * dom/DatasetDOMStringMap.h:
2914         * dom/Element.cpp:
2915         (WebCore::Element::dataset):
2916         * dom/Element.h:
2917
2918 2014-01-26  David Kilzer  <ddkilzer@apple.com>
2919
2920         Part 2: Assertion failure in WebCore::PseudoElement::didRecalcStyle()
2921         <https://bugs.webkit.org/show_bug.cgi?id=126761>
2922         <rdar://problem/15793540>
2923
2924         Reviewed by Simon Fraser.
2925
2926         * bindings/objc/DOM.mm:
2927         (-[DOMElement image]):
2928         (-[DOMElement _imageTIFFRepresentation]):
2929         * platform/gtk/PasteboardGtk.cpp:
2930         (WebCore::Pasteboard::writeImage):
2931         * platform/win/PasteboardWin.cpp:
2932         (WebCore::Pasteboard::writeImage):
2933         (WebCore::getCachedImage):
2934         * rendering/HitTestResult.cpp:
2935         (WebCore::HitTestResult::image):
2936         - More places where toRenderImage() should be used instead of
2937           toImage().
2938         - Fixed last two places where static_cast<WebCore::RenderImage*>
2939           was being used instead of toRenderImage().
2940
2941 2014-01-26  Chris Fleizach  <cfleizach@apple.com>
2942
2943         AX: Disable accessibility after every test run
2944         https://bugs.webkit.org/show_bug.cgi?id=127439
2945
2946         Reviewed by Alexey Proskuryakov.
2947
2948         If accessibility is disabled, we may still need to return the existing 
2949         AXObjectCache, so that objects can be cleaned up appropriately.
2950
2951         A such we have to be prepared to handle a nullptr return value in more cases.
2952
2953         * accessibility/AXObjectCache.h:
2954         (WebCore::AXObjectCache::disableAccessibility):
2955         * accessibility/AccessibilityNodeObject.cpp:
2956         (WebCore::AccessibilityNodeObject::childrenChanged):
2957         * accessibility/AccessibilityRenderObject.cpp:
2958         (WebCore::AccessibilityRenderObject::remoteSVGRootElement):
2959         * dom/Document.cpp:
2960         (WebCore::Document::existingAXObjectCache):
2961
2962 2014-01-26  Anders Carlsson  <andersca@apple.com>
2963
2964         Move history item visit count handling to WebKit
2965         https://bugs.webkit.org/show_bug.cgi?id=127659
2966
2967         Reviewed by Dan Bernstein.
2968
2969         Remove all members dealing with visit handling - they're going back to WebKit.
2970
2971         * WebCore.exp.in:
2972         * history/HistoryItem.cpp:
2973         (WebCore::HistoryItem::HistoryItem):
2974         (WebCore::HistoryItem::reset):
2975         (WebCore::HistoryItem::decodeBackForwardTree):
2976         * history/HistoryItem.h:
2977         (WebCore::HistoryItem::create):
2978
2979 2014-01-26  Anders Carlsson  <andersca@apple.com>
2980
2981         Move lastVisitWasHTTPNonGet out to WebHistoryItem
2982         https://bugs.webkit.org/show_bug.cgi?id=127657
2983
2984         Reviewed by Dan Bernstein.
2985
2986         Remove m_lastVisitWasHTTPNonGet, it's only used by WebKit.
2987
2988         * history/HistoryItem.cpp:
2989         (WebCore::HistoryItem::HistoryItem):
2990         (WebCore::HistoryItem::reset):
2991         * history/HistoryItem.h:
2992
2993 2014-01-26  Zalan Bujtas  <zalan@apple.com>
2994
2995         Subpixel Layout: Align <input type="button", submit etc (PushButtonPart) top and bottom paddings with <button>
2996         https://bugs.webkit.org/show_bug.cgi?id=127640
2997
2998         Reviewed by Simon Fraser.
2999
3000         <button> sets padding-top: 2px and padding-bottom: 3px as default values (html.css),
3001         while <input type="button" (submit, etc) has the hardcoded values of 0, 0 and we center the text using the available space.
3002         This results in different baseline text position in normal cases. This adjustment puts the <input type='button'
3003         rendering back to the pre-subpixel layout state.
3004
3005         * platform/mac/ThemeMac.mm:
3006         (WebCore::ThemeMac::controlPadding):
3007
3008 2014-01-26  Benjamin Poulain  <bpoulain@apple.com>
3009
3010         Improve the bindings of NodeList's name accessor
3011         https://bugs.webkit.org/show_bug.cgi?id=127358
3012
3013         Reviewed by Geoffrey Garen.
3014
3015         When accessing an item of NodeList by name, the default bindings was
3016         going through the list of node twice:
3017         -First, getOwnProperty calls canGetItemsForName() to find if a property exists for
3018          the given name. This in turn used NodeList::namedItem() which is a slow operation.
3019         -Then, the value itself was queried through nameGetter(), calling NodeList::namedItem()
3020          a second time to find the same value.
3021
3022         This patch kills the default name getter in favor of a getOwnPropertySlotDelegate() returning
3023         the value directly on the PropertySlot.
3024
3025         Ad Hoc testing show about 15% speed up for simple cases.
3026
3027         * bindings/js/JSNodeListCustom.cpp:
3028         (WebCore::JSNodeList::getOwnPropertySlotDelegate):
3029         * dom/NodeList.idl:
3030
3031 2014-01-26  Joseph Pecoraro  <pecoraro@apple.com>
3032
3033         Web Inspector: Move InspectorDebuggerAgent into JavaScriptCore
3034         https://bugs.webkit.org/show_bug.cgi?id=127629
3035
3036         Rubber-stamped by Sam Weinig.
3037
3038         Test: inspector-protocol/debugger/pause-on-assert.html
3039
3040         * CMakeLists.txt:
3041         * ForwardingHeaders/inspector/agents/InspectorDebuggerAgent.h: Added.
3042         * GNUmakefile.list.am:
3043         * WebCore.vcxproj/WebCore.vcxproj:
3044         * WebCore.vcxproj/WebCore.vcxproj.filters:
3045         * WebCore.xcodeproj/project.pbxproj:
3046         * inspector/InspectorAllInOne.cpp:
3047         - Remove InspectorDebuggerAgent.
3048         - Add WebDebuggerAgent (shared between Page and Worker).
3049
3050         * inspector/WebDebuggerAgent.h: Added.
3051         (WebCore::WebDebuggerAgent::~WebDebuggerAgent):
3052         * inspector/WebDebuggerAgent.cpp: Added.
3053         (WebCore::WebDebuggerAgent::WebDebuggerAgent):
3054         (WebCore::WebDebuggerAgent::enable):
3055         (WebCore::WebDebuggerAgent::disable):
3056         Shared code for Page and Worker debugger agents.
3057         Instrumenting agents is a concept in WebCore only,
3058         and the Debugger agent is only in the instrumenting
3059         agents list when it is enabled and removed when disabled.
3060
3061         * inspector/InstrumentingAgents.h:
3062         (WebCore::InstrumentingAgents::inspectorDebuggerAgent):
3063         (WebCore::InstrumentingAgents::setInspectorDebuggerAgent):
3064         * inspector/InspectorDOMDebuggerAgent.cpp:
3065         * inspector/InspectorDOMDebuggerAgent.h:
3066         Update namespace for debugger agent.
3067
3068         * inspector/InspectorInstrumentation.cpp:
3069         (WebCore::isConsoleAssertMessage):
3070         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
3071         DebuggerAgent in JavaScriptCore does not yet know about console
3072         types. So temporarily handle it here. We need to give JavaScriptCore
3073         some concept of Console messages and types.
3074
3075         * inspector/PageDebuggerAgent.cpp:
3076         (WebCore::PageDebuggerAgent::PageDebuggerAgent):
3077         (WebCore::PageDebuggerAgent::enable):
3078         (WebCore::PageDebuggerAgent::disable):
3079         (WebCore::PageDebuggerAgent::sourceMapURLForScript):
3080         (WebCore::PageDebuggerAgent::injectedScriptForEval):
3081         * inspector/PageDebuggerAgent.h:
3082         * inspector/WorkerDebuggerAgent.cpp:
3083         (WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent):
3084         (WebCore::WorkerDebuggerAgent::injectedScriptForEval):
3085         * inspector/WorkerDebuggerAgent.h:
3086         Modernize the Page and Worker debugger agents.
3087
3088         * inspector/InspectorController.cpp:
3089         (WebCore::InspectorController::InspectorController):
3090         * inspector/InspectorController.h:
3091         * inspector/WorkerInspectorController.cpp:
3092         (WebCore::WorkerInspectorController::WorkerInspectorController):
3093         New constructors for the debugger agents.
3094
3095 2014-01-25  Timothy Hatcher  <timothy@apple.com>
3096
3097         Remove dead code from the JSC profiler.
3098
3099         https://bugs.webkit.org/show_bug.cgi?id=127643
3100
3101         Reviewed by Mark Lam.
3102
3103         Passes existing tests in fast/profiler.
3104
3105         * bindings/js/ScriptProfile.cpp:
3106         (WebCore::buildInspectorObjectFor): Remove visible.
3107         * inspector/ScriptProfileNode.idl: Ditto.
3108         * inspector/protocol/Profiler.json: Ditto.
3109
3110 2014-01-25  Sam Weinig  <sam@webkit.org>
3111
3112         Remove unused support for DRAGGABLE_REGION
3113         https://bugs.webkit.org/show_bug.cgi?id=127642
3114
3115         Reviewed by Simon Fraser.
3116
3117         * Configurations/FeatureDefines.xcconfig:
3118         * DerivedSources.make:
3119         * WebCore.exp.in:
3120         * css/CSSComputedStyleDeclaration.cpp:
3121         (WebCore::ComputedStyleExtractor::propertyValue):
3122         * css/CSSParser.cpp:
3123         (WebCore::CSSParser::parseValue):
3124         * css/CSSPropertyNames.in:
3125         * css/CSSValueKeywords.in:
3126         * css/StyleResolver.cpp:
3127         (WebCore::StyleResolver::applyProperty):
3128         * dom/Document.cpp:
3129         (WebCore::Document::Document):
3130         * dom/Document.h:
3131         * page/Chrome.cpp:
3132         * page/ChromeClient.h:
3133         * page/FrameView.cpp:
3134         (WebCore::FrameView::layout):
3135         (WebCore::FrameView::paintContents):
3136         * page/FrameView.h:
3137         * rendering/RenderElement.cpp:
3138         (WebCore::RenderElement::styleWillChange):
3139         * rendering/RenderInline.cpp:
3140         (WebCore::RenderInline::addAnnotatedRegions):
3141         * rendering/RenderInline.h:
3142         * rendering/RenderLayer.cpp:
3143         (WebCore::RenderLayer::scrollTo):
3144         (WebCore::RenderLayer::setHasHorizontalScrollbar):
3145         (WebCore::RenderLayer::setHasVerticalScrollbar):
3146         (WebCore::RenderLayer::updateScrollbarsAfterLayout):
3147         * rendering/RenderListBox.cpp:
3148         (WebCore::RenderListBox::setHasVerticalScrollbar):
3149         * rendering/RenderObject.cpp:
3150         (WebCore::RenderObject::addAnnotatedRegions):
3151         * rendering/RenderObject.h:
3152         (WebCore::AnnotatedRegionValue::operator==):
3153         * rendering/style/RenderStyle.h:
3154         * rendering/style/RenderStyleConstants.h:
3155         * rendering/style/StyleRareNonInheritedData.cpp:
3156         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
3157         (WebCore::StyleRareNonInheritedData::operator==):
3158         * rendering/style/StyleRareNonInheritedData.h:
3159
3160 2014-01-25  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3161
3162         Clean up SVGPatternElement::collectPatternAttributes 
3163         https://bugs.webkit.org/show_bug.cgi?id=127612
3164
3165         Reviewed by Andreas Kling.
3166
3167         This patch refactors SVGPatternElement::collectPatternAttributes() by extracting
3168         the setPatternAttributes logic into a new function. This patch also changes the
3169         while loop to be easier to understand and similar to collectGradientAttributes.
3170
3171         * svg/SVGPatternElement.cpp:
3172         (WebCore::setPatternAttributes):
3173         (WebCore::SVGPatternElement::collectPatternAttributes):
3174
3175 2014-01-25  Zalan Bujtas  <zalan@apple.com>
3176
3177         Subpixel layout: RenderInline is not centered when child RenderTextControl's innerTextRenderer needs bias centering.
3178         https://bugs.webkit.org/show_bug.cgi?id=125659
3179
3180         Reviewed by Andreas Kling
3181
3182         layoutMod(logicalHeightDiff, 2) fails to bias round when subpixel layout is enabled. It sets
3183         the denominator value to 2, which returns incorrect modulo result.
3184         (subpixel off: 3px % 2 = 1 vs subpixel on: (3px * 64) -> 192 % 2 = 0)
3185
3186         Covered by existing tests.
3187
3188         * platform/LayoutUnit.h:
3189         * rendering/RenderSearchField.cpp:
3190         (WebCore::RenderSearchField::centerContainerIfNeeded):
3191         * rendering/RenderTextControlSingleLine.cpp:
3192         (WebCore::RenderTextControlSingleLine::centerRenderer):
3193         (WebCore::RenderTextControlSingleLine::layout):
3194         * rendering/RenderTextControlSingleLine.h:
3195
3196 2014-01-25  Sam Weinig  <sam@webkit.org>
3197
3198         Remove more unnecessary #if PLATFORM(IOS)s in ApplicationCacheStorage.cpp
3199         https://bugs.webkit.org/show_bug.cgi?id=127635
3200
3201         Reviewed by Antti Koivisto.
3202
3203         * loader/appcache/ApplicationCacheStorage.cpp:
3204         (WebCore::ApplicationCacheStorage::executeSQLCommand):
3205         (WebCore::ApplicationCacheStorage::verifySchemaVersion):
3206         (WebCore::ApplicationCacheStorage::executeStatement):
3207         (WebCore::ApplicationCacheStorage::store):
3208         (WebCore::ApplicationCacheStorage::ensureOriginRecord):
3209         (WebCore::ApplicationCacheStorage::loadCache):
3210
3211 2014-01-25  Sam Weinig  <sam@webkit.org>
3212
3213         Remove some iOS #ifdefs by adding SQLiteDatabaseTracker to all the builds
3214         https://bugs.webkit.org/show_bug.cgi?id=127632
3215
3216         Reviewed by Darin Adler.
3217
3218         Move the SQLiteDatabaseTracker and client from platform/sql/ios to platform/sql,
3219         as there is nothing iOS specific about it. Then, un-#ifdef all its uses. For
3220         ports that don't setup a client, this has no change in behavior.
3221
3222         * CMakeLists.txt:
3223         * GNUmakefile.list.am:
3224         * Modules/webdatabase/DatabaseBackendBase.cpp:
3225         * WebCore.vcxproj/WebCore.vcxproj:
3226         * WebCore.vcxproj/WebCore.vcxproj.filters:
3227         * WebCore.xcodeproj/project.pbxproj:
3228         * loader/appcache/ApplicationCacheStorage.cpp:
3229         * platform/ScrollableArea.h:
3230         (WebCore::ScrollableArea::sendWillRevealEdgeEventsIfNeeded):
3231         * platform/sql/SQLiteDatabaseTracker.cpp: Copied from Source/WebCore/platform/sql/ios/SQLiteDatabaseTracker.cpp.
3232         * platform/sql/SQLiteDatabaseTracker.h: Copied from Source/WebCore/platform/sql/ios/SQLiteDatabaseTracker.h.
3233         * platform/sql/SQLiteDatabaseTrackerClient.h: Copied from Source/WebCore/platform/sql/ios/SQLiteDatabaseTrackerClient.h.
3234         * platform/sql/ios: Removed.
3235         * platform/sql/ios/SQLiteDatabaseTracker.cpp: Removed.
3236         * platform/sql/ios/SQLiteDatabaseTracker.h: Removed.
3237         * platform/sql/ios/SQLiteDatabaseTrackerClient.h: Removed.
3238         * storage/StorageAreaSync.cpp:
3239         (WebCore::StorageAreaSync::openDatabase):
3240         (WebCore::StorageAreaSync::sync):
3241         * storage/StorageTracker.cpp:
3242
3243 2014-01-25  Anders Carlsson  <andersca@apple.com>
3244
3245         Remove an unused FrameLoaderClient function
3246         https://bugs.webkit.org/show_bug.cgi?id=127628
3247
3248         Reviewed by Andreas Kling.
3249
3250         All implementations of FrameLoaderClient::shouldStopLoadingForHistoryItem return true and this function
3251         was only used by Chromium so we can get rid of it.
3252
3253         * loader/EmptyClients.h:
3254         * loader/FrameLoaderClient.h:
3255         * loader/HistoryController.cpp:
3256         (WebCore::HistoryController::shouldStopLoadingForHistoryItem):
3257
3258 2014-01-25  Darin Adler  <darin@apple.com>
3259
3260         Call deprecatedCharacters instead of characters at more call sites
3261         https://bugs.webkit.org/show_bug.cgi?id=127631
3262
3263         Reviewed by Sam Weinig.
3264
3265         * bindings/objc/WebScriptObject.mm:
3266         (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
3267         * editing/CompositeEditCommand.cpp:
3268         (WebCore::containsOnlyWhitespace):
3269         * editing/TypingCommand.cpp:
3270         (WebCore::TypingCommand::insertText):
3271         * editing/VisibleUnits.cpp:
3272         (WebCore::startOfParagraph):
3273         (WebCore::endOfParagraph):
3274         * html/parser/HTMLParserIdioms.cpp:
3275         (WebCore::stripLeadingAndTrailingHTMLSpaces):
3276         (WebCore::parseHTMLNonNegativeInteger):
3277         * inspector/InspectorStyleSheet.cpp:
3278         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters):
3279         * inspector/InspectorStyleTextEditor.cpp:
3280         (WebCore::InspectorStyleTextEditor::insertProperty):
3281         (WebCore::InspectorStyleTextEditor::internalReplaceProperty):
3282         * platform/Length.cpp:
3283         (WebCore::newCoordsArray):
3284         * platform/LinkHash.cpp:
3285         (WebCore::visitedLinkHash):
3286         * platform/graphics/Color.cpp:
3287         (WebCore::Color::parseHexColor):
3288         (WebCore::Color::Color):
3289         * platform/graphics/TextRun.h:
3290         (WebCore::TextRun::TextRun):
3291         * platform/text/TextEncodingRegistry.cpp:
3292         (WebCore::atomicCanonicalTextEncodingName):
3293         * rendering/RenderBlock.cpp:
3294         (WebCore::RenderBlock::constructTextRun):
3295         * rendering/RenderCombineText.cpp:
3296         (WebCore::RenderCombineText::width):
3297         * svg/SVGFontElement.cpp:
3298         (WebCore::SVGFontElement::registerLigaturesInGlyphCache):
3299         * xml/XPathFunctions.cpp:
3300         (WebCore::XPath::FunId::evaluate):
3301         Use the new name.
3302
3303 2014-01-25  Darin Adler  <darin@apple.com>
3304
3305         Get rid of ICU_UNICODE and WCHAR_UNICODE remnants
3306         https://bugs.webkit.org/show_bug.cgi?id=127623
3307
3308         Reviewed by Anders Carlsson.
3309
3310         * CMakeLists.txt: Removed SmartReplaceICU.cpp.
3311         * GNUmakefile.list.am: Ditto.
3312         * PlatformEfl.cmake: Ditto.
3313         * PlatformGTK.cmake: Ditto.
3314
3315         * editing/FrameSelection.cpp:
3316         (WebCore::FrameSelection::modifyMovingRight): Ditto.
3317         (WebCore::FrameSelection::modifyMovingLeft): Ditto.
3318
3319         * editing/SmartReplace.cpp: Moved code here from SmartReplaceICU,
3320         since we always support ICU now. Added some FIXME comments about
3321         bugs and mistakes I spotted in the code as I was moving it.
3322         * editing/SmartReplaceICU.cpp: Removed.
3323
3324         * editing/TextIterator.cpp: Removed unneeded checks.
3325         * platform/ThreadGlobalData.cpp:
3326         (WebCore::ThreadGlobalData::ThreadGlobalData): Ditto.
3327         (WebCore::ThreadGlobalData::destroy): Ditto.
3328         * platform/ThreadGlobalData.h: Ditto.
3329         * platform/URL.cpp:
3330         (WebCore::appendEncodedHostname): Ditto.
3331         * platform/graphics/SurrogatePairAwareTextIterator.cpp: Ditto.
3332         Also removed unneeded "using namespace".
3333         * platform/text/TextCodecICU.cpp: Ditto.
3334         * platform/text/TextEncoding.cpp:
3335         (WebCore::TextEncoding::encode): Ditto.
3336         * platform/text/TextEncodingRegistry.cpp:
3337         (WebCore::extendTextCodecMaps): Ditto.
3338
3339 2014-01-25  Darin Adler  <darin@apple.com>
3340
3341         Get rid of UnicodeRange.h/cpp, using ICU instead
3342         https://bugs.webkit.org/show_bug.cgi?id=127622
3343
3344         Reviewed by Anders Carlsson.
3345
3346         * CMakeLists.txt: Remove UnicodeRange.h/cpp.
3347         * GNUmakefile.list.am: Ditto.
3348         * WebCore.vcxproj/WebCore.vcxproj: Ditto.
3349         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
3350         * WebCore.xcodeproj/project.pbxproj: Ditto.
3351
3352         * platform/graphics/win/FontCacheWin.cpp:
3353         (WebCore::FontCache::systemFallbackForCharacters): To check if a character has
3354         multiple code pages, use UCHAR_UNIFIED_IDEOGRAPH instead of cRangeSetCJK.
3355         * platform/graphics/wince/FontCacheWinCE.cpp:
3356         (WebCore::FontCache::systemFallbackForCharacters): Ditto. Also, to check if a
3357         character is in the Thai block, use UBLOCK_THAI.
3358
3359         * platform/graphics/wince/FontPlatformData.cpp: Removed include of UnicodeRange.h.
3360
3361         * platform/text/UnicodeRange.cpp: Removed.
3362         * platform/text/UnicodeRange.h: Removed.
3363
3364         * rendering/svg/SVGTextLayoutEngineBaseline.cpp:
3365         (WebCore::SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle): To figure
3366         out if a character is full width, use UCHAR_EAST_ASIAN_WIDTH, instead of hard-coding
3367         "not Latin or Arabic" as the rule.
3368
3369 2014-01-25  Tim Horton  <timothy_horton@apple.com>
3370
3371         Remove an unnecessary platform #if in BitmapImage(CG)::checkForSolidColor()
3372         https://bugs.webkit.org/show_bug.cgi?id=127610
3373
3374         Reviewed by Simon Fraser.
3375
3376         * platform/graphics/cg/BitmapImageCG.cpp:
3377         (WebCore::BitmapImage::checkForSolidColor):
3378         Over time, the two sides of this #if !PLATFORM(IOS) converged. Remove the #if
3379         and merge the code. We explicitly use kCGBitmapByteOrder32Big to be correct everywhere.
3380
3381 2014-01-25  Tim Horton  <timothy_horton@apple.com>
3382
3383         [cg] Look in the PNG dictionary for image duration information
3384         https://bugs.webkit.org/show_bug.cgi?id=127611
3385         <rdar://problem/15408643>
3386
3387         Reviewed by Simon Fraser.
3388
3389         We should look in the PNG properties dictionary for frame duration and loop count data.
3390
3391         * platform/graphics/cg/ImageSourceCG.cpp:
3392         (WebCore::ImageSource::repetitionCount):
3393         Mush repetitionCount a bit more to make it easier to read (early returns, etc.)
3394         Also, look in the PNG properties dictionary for a loop count.
3395
3396         (WebCore::ImageSource::frameDurationAtIndex):
3397         Look in the PNG properties dictionary for delay time.
3398         Get rid of WebCoreCGImagePropertyGIFUnclampedDelayTime; it hasn't
3399         been needed since Snow Leopard.
3400
3401 2014-01-25  Anders Carlsson  <andersca@apple.com>
3402
3403         Remove atomicIncrement/atomicDecrement
3404         https://bugs.webkit.org/show_bug.cgi?id=127625
3405
3406         Reviewed by Andreas Kling.
3407
3408         Replace atomicIncrement/atomicDecrement with std::atomic.
3409
3410         * Modules/webaudio/AudioContext.cpp:
3411         (WebCore::AudioContext::incrementActiveSourceCount):
3412         (WebCore::AudioContext::decrementActiveSourceCount):
3413         * Modules/webaudio/AudioContext.h:
3414         * Modules/webaudio/AudioNode.cpp:
3415         (WebCore::AudioNode::~AudioNode):
3416         (WebCore::AudioNode::ref):
3417         (WebCore::AudioNode::finishDeref):
3418         * Modules/webaudio/AudioNode.h:
3419         * Modules/webdatabase/OriginLock.h:
3420
3421 2014-01-25  Alex Christensen  <achristensen@webkit.org>
3422
3423         Unreviewed build fix for WinCairo.
3424
3425         * platform/network/curl/CurlDownload.h:
3426         Included wtf/Threading.h for ThreadIdentifier definition.
3427
3428 2014-01-25  Anders Carlsson  <andersca@apple.com>
3429
3430         Modernize HashTable threading code
3431         https://bugs.webkit.org/show_bug.cgi?id=127621
3432
3433         Reviewed by Darin Adler.
3434
3435         Explicitly include headers that used to be brought in by HashTable.h
3436
3437         * platform/DragData.h:
3438         Change a Windows-specific typedef to avoid having to include WindDef.h from a header.
3439
3440         * platform/audio/AudioSession.h:
3441         * platform/network/cf/SocketStreamHandle.h:
3442
3443 2014-01-25  Zan Dobersek  <zdobersek@igalia.com>
3444
3445         Move CSSGroupingRule, CSSStyleSheet, ElementRuleCollector to std::unique_ptr
3446         https://bugs.webkit.org/show_bug.cgi?id=127575
3447
3448         Reviewed by Andreas Kling.
3449
3450         Use std::unique_ptr and std::make_unique in place of OwnPtr and adoptPtr
3451         in the CSSGroupingRule, CSSStyleSheet and ElementRuleCollector classes.
3452
3453         * css/CSSFunctionValue.cpp: Remove the unnecessary PassOwnPtr header inclusion.
3454         * css/CSSGroupingRule.cpp:
3455         (WebCore::CSSGroupingRule::cssRules):
3456         * css/CSSGroupingRule.h:
3457         * css/CSSStyleSheet.cpp:
3458         (WebCore::CSSStyleSheet::cssRules):
3459         * css/CSSStyleSheet.h:
3460         * css/ElementRuleCollector.cpp:
3461         (WebCore::ElementRuleCollector::addMatchedRule):
3462         * css/ElementRuleCollector.h:
3463
3464 2014-01-25  Zan Dobersek  <zdobersek@igalia.com>
3465
3466         Move MediaQueryMatcher, SelectorFilter to std::unique_ptr
3467         https://bugs.webkit.org/show_bug.cgi?id=127574
3468