[iOS] Fix build of RenderLayerCompositor::registerAllViewportConstrainedLayers()
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-01-11  David Kilzer  <ddkilzer@apple.com>
2
3         [iOS] Fix build of RenderLayerCompositor::registerAllViewportConstrainedLayers()
4
5         * rendering/RenderLayerCompositor.cpp:
6         (WebCore::RenderLayerCompositor::registerAllViewportConstrainedLayers):
7         Fix use of std::make_unique<>() and add an adoptPtr() call.
8
9 2014-01-11  Alexey Proskuryakov  <ap@apple.com>
10
11         [Mac] [Windows] Stop scheduling network requests in WebCore
12         https://bugs.webkit.org/show_bug.cgi?id=126789
13         <rdar://problem/15114727>
14
15         Reviewed by Sam Weinig.
16
17         We'll just send all requests to CFNetwork now, along with associated priorities.
18
19         * WebCore.exp.in: WebKitSystemInterface functions are changing to support priorities
20         for more than just pipelining.
21         * loader/ResourceLoadScheduler.cpp:
22         (WebCore::ResourceLoadScheduler::scheduleLoad):
23         * platform/ios/WebCoreSystemInterfaceIOS.mm:
24         * platform/mac/WebCoreSystemInterface.h:
25         * platform/mac/WebCoreSystemInterface.mm:
26         * platform/network/ResourceHandle.h: For syncronous requests, make it so that they
27         don't count against HTTP connection limit, to avoid the possibility of hanging the process.
28         * platform/network/cf/ResourceHandleCFNet.cpp:
29         (WebCore::ResourceHandle::createCFURLConnection):
30         (WebCore::ResourceHandle::start):
31         (WebCore::ResourceHandle::platformLoadResourceSynchronously):
32         * platform/network/cf/ResourceRequestCFNet.cpp:
33         (WebCore::ResourceRequest::doUpdatePlatformRequest):
34         (WebCore::ResourceRequest::doUpdateResourceRequest):
35         (WebCore::initializeMaximumHTTPConnectionCountPerHost):
36         (WebCore::initializeHTTPConnectionSettingsOnStartup):
37         * platform/network/cf/ResourceRequestCFNet.h:
38         (WebCore::toPlatformRequestPriority):
39         * platform/network/mac/ResourceHandleMac.mm:
40         (WebCore::ResourceHandle::createNSURLConnection):
41         (WebCore::ResourceHandle::start):
42         (WebCore::ResourceHandle::platformLoadResourceSynchronously):
43         * platform/network/mac/ResourceRequestMac.mm:
44         (WebCore::ResourceRequest::doUpdateResourceRequest):
45         (WebCore::ResourceRequest::doUpdatePlatformRequest):
46
47 2014-01-11  David Kilzer  <ddkilzer@apple.com>
48
49         [iOS] Fix build failure in WebCore::findEndWordBoundary()
50
51         Filed Bug 126830 for the proper fix:
52         <http://webkit.org/b/126830>
53
54         * editing/VisibleUnits.cpp:
55         (WebCore::endWordBoundary): Switch back to using
56         WebCore::findWordBoundary() on iOS.
57
58         * platform/text/mac/TextBoundaries.mm:
59         (WebCore::findEndWordBoundary): Add FIXME for iOS implementation
60         that doesn't use NSAttributedString.
61
62 2014-01-11  Andy Estes  <aestes@apple.com>
63
64         [iOS] Move text autosizing code from RenderBlock to RenderBlockFlow
65         https://bugs.webkit.org/show_bug.cgi?id=126829
66
67         Reviewed by Sam Weinig.
68
69         Some newly-upstreamed iOS text autosizing code needs to move to
70         RenderBlockFlow in order to build.
71
72         * rendering/RenderBlock.cpp:
73         (WebCore::RenderBlock::RenderBlock):
74         * rendering/RenderBlock.h:
75         * rendering/RenderBlockFlow.cpp:
76         (WebCore::RenderBlockFlow::RenderBlockFlow):
77         (WebCore::isVisibleRenderText):
78         (WebCore::resizeTextPermitted):
79         (WebCore::RenderBlockFlow::immediateLineCount):
80         (WebCore::isNonBlocksOrNonFixedHeightListItems):
81         (WebCore::oneLineTextMultiplier):
82         (WebCore::textMultiplier):
83         (WebCore::RenderBlockFlow::adjustComputedFontSizes):
84         * rendering/RenderBlockFlow.h:
85         (WebCore::RenderBlockFlow::resetComputedFontSize):
86         * rendering/RenderObject.cpp:
87         (WebCore::RenderObject::adjustComputedFontSizesOnBlocks):
88         (WebCore::RenderObject::resetTextAutosizing):
89
90 2014-01-11  Daniel Bates  <dabates@apple.com>
91
92         [iOS] Fix the build
93
94         Only call CGContextFlush() when building for OS X < 10.9.
95
96         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
97         (WebCore::ImageBufferBackingStoreCache::deallocate):
98
99 2014-01-11  Anders Carlsson  <andersca@apple.com>
100
101         InspectorAgentRegistry should use std::unique_ptr
102         https://bugs.webkit.org/show_bug.cgi?id=126826
103
104         Reviewed by Sam Weinig.
105
106         * inspector/InspectorApplicationCacheAgent.h:
107         * inspector/InspectorCSSAgent.h:
108         * inspector/InspectorCanvasAgent.h:
109         * inspector/InspectorController.cpp:
110         (WebCore::InspectorController::InspectorController):
111         * inspector/InspectorDOMAgent.h:
112         * inspector/InspectorDOMDebuggerAgent.cpp:
113         * inspector/InspectorDOMDebuggerAgent.h:
114         * inspector/InspectorDOMStorageAgent.h:
115         * inspector/InspectorDatabaseAgent.h:
116         * inspector/InspectorHeapProfilerAgent.cpp:
117         * inspector/InspectorHeapProfilerAgent.h:
118         * inspector/InspectorIndexedDBAgent.h:
119         * inspector/InspectorInputAgent.h:
120         * inspector/InspectorLayerTreeAgent.h:
121         * inspector/InspectorMemoryAgent.cpp:
122         * inspector/InspectorMemoryAgent.h:
123         * inspector/InspectorPageAgent.cpp:
124         * inspector/InspectorPageAgent.h:
125         * inspector/InspectorProfilerAgent.cpp:
126         (WebCore::InspectorProfilerAgent::create):
127         * inspector/InspectorProfilerAgent.h:
128         * inspector/InspectorResourceAgent.h:
129         * inspector/InspectorTimelineAgent.h:
130         * inspector/InspectorWorkerAgent.cpp:
131         * inspector/InspectorWorkerAgent.h:
132         * inspector/PageConsoleAgent.h:
133         * inspector/PageDebuggerAgent.cpp:
134         * inspector/PageDebuggerAgent.h:
135         * inspector/PageRuntimeAgent.h:
136         * inspector/WorkerConsoleAgent.h:
137         * inspector/WorkerDebuggerAgent.cpp:
138         * inspector/WorkerDebuggerAgent.h:
139         * inspector/WorkerInspectorController.cpp:
140         (WebCore::WorkerInspectorController::WorkerInspectorController):
141         * inspector/WorkerRuntimeAgent.h:
142
143 2014-01-11  Sam Weinig  <sam@webkit.org>
144
145         Extract the FormatConverter class out of GraphicsContext3D.cpp and into its own file
146         https://bugs.webkit.org/show_bug.cgi?id=126820
147
148         Reviewed by Anders Carlsson.
149
150         * CMakeLists.txt:
151         * GNUmakefile.list.am:
152         * WebCore.vcxproj/WebCore.vcxproj:
153         * WebCore.vcxproj/WebCore.vcxproj.filters:
154         * WebCore.xcodeproj/project.pbxproj:
155         * platform/graphics/FormatConverter.cpp: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
156         (WebCore::convertFloatToHalfFloat):
157         (WebCore::FormatConverter::convert):
158         * platform/graphics/FormatConverter.h: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
159         (WebCore::FormatConverter::FormatConverter):
160         (WebCore::FormatConverter::success):
161         * platform/graphics/GraphicsContext3D.cpp:
162         (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
163         (WebCore::GraphicsContext3D::computeImageSizeInBytes):
164         (WebCore::GraphicsContext3D::packImageData):
165         (WebCore::GraphicsContext3D::extractImageData):
166         (WebCore::GraphicsContext3D::extractTextureData):
167         (WebCore::GraphicsContext3D::packPixels):
168         * platform/graphics/GraphicsContext3D.h:
169         (WebCore::GraphicsContext3D::hasAlpha):
170         (WebCore::GraphicsContext3D::hasColor):
171
172 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
173
174         Fix updateScrollingLayerWithClient() for iOS.
175         
176         * rendering/RenderLayerCompositor.cpp:
177         (WebCore::updateScrollingLayerWithClient):
178
179 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
180
181         Unfork GraphicsContext::drawNativeImage for iOS
182         https://bugs.webkit.org/show_bug.cgi?id=126824
183
184         Reviewed by Dean Jackson.
185
186         GraphicsContext::drawNativeImage had a different signature for iOS,
187         which required #ifdefs at all the call sites. Unfork by passing the "scale"
188         parameter everywhere (it's only used on iOS).
189
190         * WebCore.exp.in:
191         * html/canvas/CanvasRenderingContext2D.cpp:
192         (WebCore::CanvasRenderingContext2D::drawImage):
193         * platform/graphics/GraphicsContext.h:
194         * platform/graphics/cg/BitmapImageCG.cpp:
195         (WebCore::BitmapImage::draw):
196         * platform/graphics/cg/GraphicsContext3DCG.cpp:
197         (WebCore::GraphicsContext3D::paintToCanvas):
198         * platform/graphics/cg/GraphicsContextCG.cpp:
199         (WebCore::GraphicsContext::platformInit):
200         * platform/graphics/cg/ImageBufferCG.cpp:
201         (WebCore::ImageBuffer::draw):
202         * platform/graphics/ios/IconIOS.mm:
203         (WebCore::Icon::paint):
204
205 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
206
207         Work around USE(CFNETWORK) build failure on iOS.
208
209         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
210         (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForResponseToAuthenticationChallenge):
211
212 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
213
214         Fix LegacyWebArchive.cpp:567:91: error: calling 'utf8' with incomplete return type 'WTF::CString'
215         
216         * loader/archive/cf/LegacyWebArchive.cpp:
217
218 2014-01-11  David Kilzer  <ddkilzer@apple.com>
219
220         [iOS] Fix the easy half of the build errors in RenderBlock.cpp
221
222         * rendering/RenderBlock.cpp:
223         (WebCore::isNonBlocksOrNonFixedHeightListItems):
224         (WebCore::oneLineTextMultiplier):
225         (WebCore::textMultiplier):
226         (WebCore::RenderBlock::adjustComputedFontSizes):
227
228 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
229
230         Change touch-related headers to include WebKitAdditions headers,
231         which have been renamed to have IOS suffixes.
232
233         * WebCore.xcodeproj/project.pbxproj:
234         * bindings/js/ios/TouchConstructors.cpp:
235         * dom/Touch.h:
236         * dom/TouchEvent.h:
237         * dom/TouchList.h:
238         * dom/ios/TouchEvents.cpp:
239
240 2014-01-11  Anders Carlsson  <andersca@apple.com>
241
242         ScriptDebugServer should use a separate member function for its timer handler
243         https://bugs.webkit.org/show_bug.cgi?id=126819
244
245         Reviewed by Sam Weinig.
246
247         It's weird to have subclasses override a timer handler and sometimes invoke 
248         the timer handler directly so make it a separate member function instead.
249
250         * bindings/js/PageScriptDebugServer.cpp:
251         (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
252         * bindings/js/PageScriptDebugServer.h:
253         * bindings/js/ScriptDebugServer.cpp:
254         (WebCore::ScriptDebugServer::ScriptDebugServer):
255         (WebCore::ScriptDebugServer::recompileAllJSFunctionsTimerFired):
256         * bindings/js/ScriptDebugServer.h:
257         * bindings/js/WorkerScriptDebugServer.cpp:
258         (WebCore::WorkerScriptDebugServer::addListener):
259         (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
260         * bindings/js/WorkerScriptDebugServer.h:
261         * inspector/InspectorProfilerAgent.cpp:
262         (WebCore::InspectorProfilerAgent::start):
263
264 2014-01-11  Anders Carlsson  <andersca@apple.com>
265
266         Simplify Timer and DeferrableOneShotTimer using std::function
267         https://bugs.webkit.org/show_bug.cgi?id=126816
268
269         Reviewed by Sam Weinig.
270
271         * platform/Timer.h:
272         (WebCore::Timer::Timer):
273
274 2014-01-11  Anders Carlsson  <andersca@apple.com>
275
276         CTTE Timer and DeferrableOneShotTimer
277         https://bugs.webkit.org/show_bug.cgi?id=126814
278
279         Reviewed by Antti Koivisto.
280
281         Add new Timer and DeferrableOneShotTimer constructors whose member function pointers
282         take a reference instead of a pointer.
283         Also, convert a bunch of classes over to using these new constructors.
284
285         * Modules/encryptedmedia/MediaKeySession.cpp:
286         (WebCore::MediaKeySession::keyRequestTimerFired):
287         (WebCore::MediaKeySession::addKeyTimerFired):
288         * Modules/encryptedmedia/MediaKeySession.h:
289         * Modules/geolocation/Geolocation.cpp:
290         (WebCore::Geolocation::GeoNotifier::timerFired):
291         (WebCore::Geolocation::resumeTimerFired):
292         * Modules/geolocation/Geolocation.h:
293         * Modules/indexeddb/IDBTransactionBackend.cpp:
294         (WebCore::IDBTransactionBackend::taskTimerFired):
295         * Modules/indexeddb/IDBTransactionBackend.h:
296         * Modules/mediasource/SourceBuffer.cpp:
297         (WebCore::SourceBuffer::appendBufferTimerFired):
298         * Modules/mediasource/SourceBuffer.h:
299         * Modules/notifications/Notification.cpp:
300         (WebCore::Notification::taskTimerFired):
301         * Modules/notifications/Notification.h:
302         * Modules/notifications/NotificationCenter.cpp:
303         (WebCore::NotificationCenter::NotificationRequestCallback::timerFired):
304         * Modules/notifications/NotificationCenter.h:
305         * accessibility/AXObjectCache.cpp:
306         (WebCore::AXObjectCache::notificationPostTimerFired):
307         * accessibility/AXObjectCache.h:
308         * css/CSSFontSelector.cpp:
309         (WebCore::CSSFontSelector::beginLoadTimerFired):
310         * css/CSSFontSelector.h:
311         * css/CSSImageGeneratorValue.cpp:
312         (WebCore::CSSImageGeneratorValue::CachedGeneratedImage::evictionTimerFired):
313         * css/CSSImageGeneratorValue.h:
314         * dom/Document.cpp:
315         (WebCore::Document::visualUpdatesSuppressionTimerFired):
316         (WebCore::Document::styleRecalcTimerFired):
317         (WebCore::Document::optimizedStyleSheetUpdateTimerFired):
318         (WebCore::Document::sharedObjectPoolClearTimerFired):
319         (WebCore::Document::styleResolverThrowawayTimerFired):
320         (WebCore::Document::updateFocusAppearanceTimerFired):
321         (WebCore::Document::resetHiddenFocusElementTimer):
322         (WebCore::Document::pendingTasksTimerFired):
323         (WebCore::Document::fullScreenChangeDelayTimerFired):
324         (WebCore::Document::loadEventDelayTimerFired):
325         (WebCore::Document::didAssociateFormControlsTimerFired):
326         * dom/Document.h:
327         * dom/EventSender.h:
328         (WebCore::EventSender::timerFired):
329         * dom/GenericEventQueue.cpp:
330         (WebCore::GenericEventQueue::timerFired):
331         * dom/GenericEventQueue.h:
332         * dom/ScriptRunner.cpp:
333         (WebCore::ScriptRunner::timerFired):
334         * dom/ScriptRunner.h:
335         * dom/ScriptedAnimationController.cpp:
336         (WebCore::ScriptedAnimationController::animationTimerFired):
337         * dom/ScriptedAnimationController.h:
338         * editing/AlternativeTextController.cpp:
339         (WebCore::AlternativeTextController::timerFired):
340         * editing/AlternativeTextController.h:
341         * editing/FrameSelection.cpp:
342         (WebCore::FrameSelection::caretBlinkTimerFired):
343         * editing/FrameSelection.h:
344         * html/HTMLMediaElement.cpp:
345         (WebCore::HTMLMediaElement::parseAttribute):
346         * html/HTMLMediaElement.h:
347         * html/HTMLPlugInElement.cpp:
348         (WebCore::HTMLPlugInElement::swapRendererTimerFired):
349         * html/HTMLPlugInElement.h:
350         * html/HTMLPlugInImageElement.cpp:
351         (WebCore::HTMLPlugInImageElement::removeSnapshotTimerFired):
352         (WebCore::HTMLPlugInImageElement::simulatedMouseClickTimerFired):
353         * html/HTMLPlugInImageElement.h:
354         * html/HTMLSourceElement.cpp:
355         (WebCore::HTMLSourceElement::errorEventTimerFired):
356         * html/HTMLSourceElement.h:
357         * html/HTMLTrackElement.cpp:
358         (WebCore::HTMLTrackElement::loadTimerFired):
359         * html/HTMLTrackElement.h:
360         * html/MediaController.cpp:
361         (MediaController::asyncEventTimerFired):
362         (MediaController::clearPositionTimerFired):
363         (MediaController::timeupdateTimerFired):
364         * html/MediaController.h:
365         * html/MediaDocument.cpp:
366         (WebCore::MediaDocument::replaceMediaElementTimerFired):
367         * html/MediaDocument.h:
368         * html/parser/HTMLParserScheduler.cpp:
369         (WebCore::HTMLParserScheduler::continueNextChunkTimerFired):
370         * html/parser/HTMLParserScheduler.h:
371         * html/shadow/MediaControlElementTypes.cpp:
372         (WebCore::MediaControlSeekButtonElement::seekTimerFired):
373         * html/shadow/MediaControlElementTypes.h:
374         * html/shadow/MediaControlElements.cpp:
375         (WebCore::MediaControlPanelElement::transitionTimerFired):
376         (WebCore::MediaControlTextTrackContainerElement::updateTimerFired):
377         * html/shadow/MediaControlElements.h:
378         * html/shadow/MediaControls.cpp:
379         (WebCore::MediaControls::hideFullscreenControlsTimerFired):
380         * html/shadow/MediaControls.h:
381         * html/track/LoadableTextTrack.cpp:
382         (WebCore::LoadableTextTrack::loadTimerFired):
383         * html/track/LoadableTextTrack.h:
384         * inspector/InspectorCSSAgent.cpp:
385         (WebCore::UpdateRegionLayoutTask::UpdateRegionLayoutTask):
386         (WebCore::UpdateRegionLayoutTask::timerFired):
387         (WebCore::ChangeRegionOversetTask::ChangeRegionOversetTask):
388         (WebCore::ChangeRegionOversetTask::timerFired):
389         * inspector/InspectorDOMAgent.cpp:
390         (WebCore::RevalidateStyleAttributeTask::RevalidateStyleAttributeTask):
391         (WebCore::RevalidateStyleAttributeTask::timerFired):
392         * inspector/InspectorFrontendClientLocal.cpp:
393         (WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask):
394         (WebCore::InspectorBackendDispatchTask::timerFired):
395         * loader/DocumentLoader.cpp:
396         (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
397         * loader/DocumentLoader.h:
398         * loader/FrameLoader.cpp:
399         (WebCore::FrameLoader::checkTimerFired):
400         * loader/FrameLoader.h:
401         * loader/ImageLoader.cpp:
402         (WebCore::ImageLoader::timerFired):
403         * loader/ImageLoader.h:
404         * loader/LinkLoader.cpp:
405         (WebCore::LinkLoader::linkLoadTimerFired):
406         (WebCore::LinkLoader::linkLoadingErrorTimerFired):
407         * loader/LinkLoader.h:
408         * loader/NavigationScheduler.cpp:
409         (WebCore::NavigationScheduler::timerFired):
410         * loader/NavigationScheduler.h:
411         * loader/PingLoader.cpp:
412         (WebCore::PingLoader::PingLoader):
413         * loader/PingLoader.h:
414         (WebCore::PingLoader::timeoutTimerFired):
415         * loader/ProgressTracker.cpp:
416         (WebCore::ProgressTracker::progressHeartbeatTimerFired):
417         * loader/ProgressTracker.h:
418         * loader/ResourceLoadScheduler.cpp:
419         (WebCore::ResourceLoadScheduler::requestTimerFired):
420         * loader/ResourceLoadScheduler.h:
421         * loader/cache/CachedResource.cpp:
422         (WebCore::CachedResource::decodedDataDeletionTimerFired):
423         (WebCore::CachedResource::CachedResourceCallback::timerFired):
424         * loader/cache/CachedResource.h:
425         * loader/cache/CachedResourceLoader.cpp:
426         (WebCore::CachedResourceLoader::garbageCollectDocumentResourcesTimerFired):
427         * loader/cache/CachedResourceLoader.h:
428         * loader/icon/IconDatabase.cpp:
429         (WebCore::IconDatabase::syncTimerFired):
430         * loader/icon/IconDatabase.h:
431         * page/AutoscrollController.cpp:
432         (WebCore::AutoscrollController::autoscrollTimerFired):
433         * page/AutoscrollController.h:
434         * page/CaptionUserPreferences.cpp:
435         (WebCore::CaptionUserPreferences::timerFired):
436         * page/CaptionUserPreferences.h:
437         * page/DeviceController.cpp:
438         (WebCore::DeviceController::fireDeviceEvent):
439         * page/DeviceController.h:
440         * page/EventHandler.cpp:
441         (WebCore::EventHandler::cursorUpdateTimerFired):
442         (WebCore::EventHandler::autoHideCursorTimerFired):
443         (WebCore::EventHandler::fakeMouseMoveEventTimerFired):
444         (WebCore::EventHandler::hoverTimerFired):
445         * page/EventHandler.h:
446         * page/EventSource.cpp:
447         (WebCore::EventSource::connectTimerFired):
448         * page/EventSource.h:
449         * page/FrameView.cpp:
450         (WebCore::FrameView::deferredRepaintTimerFired):
451         (WebCore::FrameView::layoutTimerFired):
452         (WebCore::FrameView::postLayoutTimerFired):
453         * page/FrameView.h:
454         * page/PageThrottler.cpp:
455         (WebCore::PageThrottler::throttleHysteresisTimerFired):
456         * page/PageThrottler.h:
457         * page/animation/AnimationController.cpp:
458         (WebCore::AnimationControllerPrivate::updateStyleIfNeededDispatcherFired):
459         (WebCore::AnimationControllerPrivate::animationTimerFired):
460         * page/animation/AnimationControllerPrivate.h:
461         * platform/Scrollbar.cpp:
462         (WebCore::Scrollbar::autoscrollTimerFired):
463         * platform/Scrollbar.h:
464         * platform/Timer.h:
465         (WebCore::Timer::Timer):
466         (WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer):
467         * platform/graphics/BitmapImage.cpp:
468         (WebCore::BitmapImage::advanceAnimation):
469         * platform/graphics/BitmapImage.h:
470         * platform/graphics/MediaPlayer.cpp:
471         (WebCore::MediaPlayer::reloadTimerFired):
472         * platform/graphics/MediaPlayer.h:
473         * platform/graphics/ca/mac/LayerPool.h:
474         * platform/graphics/ca/mac/LayerPool.mm:
475         (WebCore::LayerPool::pruneTimerFired):
476         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
477         (WebCore::ImageBufferBackingStoreCache::timerFired):
478         * platform/graphics/cg/ImageBufferBackingStoreCache.h:
479         * platform/graphics/cg/SubimageCacheWithTimer.cpp:
480         (WebCore::SubimageCacheWithTimer::invalidateCacheTimerFired):
481         * platform/graphics/cg/SubimageCacheWithTimer.h:
482         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
483         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
484         (WebCore::MediaPlayerPrivateQTKit::seekTimerFired):
485         * platform/mac/ScrollAnimatorMac.h:
486         * platform/mac/ScrollAnimatorMac.mm:
487         (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
488         (WebCore::ScrollAnimatorMac::initialScrollbarPaintTimerFired):
489         (WebCore::ScrollAnimatorMac::sendContentAreaScrolledTimerFired):
490         * platform/mock/DeviceOrientationClientMock.cpp:
491         (WebCore::DeviceOrientationClientMock::timerFired):
492         * platform/mock/DeviceOrientationClientMock.h:
493         * platform/network/NetworkStateNotifier.h:
494         * platform/network/ResourceHandle.cpp:
495         (WebCore::ResourceHandle::failureTimerFired):
496         * platform/network/ResourceHandle.h:
497         * platform/network/ResourceHandleInternal.h:
498         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
499         * platform/network/mac/NetworkStateNotifierMac.cpp:
500         (WebCore::NetworkStateNotifier::networkStateChangeTimerFired):
501         * rendering/ImageQualityController.cpp:
502         (WebCore::ImageQualityController::highQualityRepaintTimerFired):
503         * rendering/ImageQualityController.h:
504         * rendering/RenderButton.cpp:
505         (WebCore::RenderButton::timerFired):
506         * rendering/RenderButton.h:
507         * rendering/RenderLayerCompositor.cpp:
508         (WebCore::RenderLayerCompositor::updateCompositingLayersTimerFired):
509         (WebCore::RenderLayerCompositor::layerFlushTimerFired):
510         (WebCore::RenderLayerCompositor::paintRelatedMilestonesTimerFired):
511         * rendering/RenderLayerCompositor.h:
512         * rendering/RenderMarquee.cpp:
513         (WebCore::RenderMarquee::timerFired):
514         * rendering/RenderMarquee.h:
515         * rendering/RenderNamedFlowThread.cpp:
516         (WebCore::RenderNamedFlowThread::regionLayoutUpdateEventTimerFired):
517         (WebCore::RenderNamedFlowThread::regionOversetChangeEventTimerFired):
518         * rendering/RenderNamedFlowThread.h:
519         * rendering/RenderProgress.cpp:
520         (WebCore::RenderProgress::animationTimerFired):
521         * rendering/RenderProgress.h:
522
523 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
524
525         #ifdef out the contents of Touch* files for iOS.
526         
527         * dom/Touch.h:
528         * dom/TouchEvent.h:
529         * dom/TouchList.h:
530
531 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
532
533         No need to include <ApplicationServices/ApplicationServices.h> in
534         the header. Can use <CoreGraphics/CoreGraphics.h> in the .cpp file.
535
536         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
537         * platform/graphics/cg/ImageBufferBackingStoreCache.h:
538
539 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
540
541         Fix DOM headers: TARGET_OS_EMBEDDED -> TARGET_OS_IPHONE
542         and a drive-by cleanup of DOMUIKitExtensions.mm #includes.
543
544         * bindings/objc/DOMPrivate.h:
545         * bindings/objc/DOMUIKitExtensions.h:
546         * bindings/objc/DOMUIKitExtensions.mm:
547
548 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
549
550         Fix use of GL_HALF_FLOAT_ARB on iOS.
551
552         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
553         (WebCore::GraphicsContext3D::texSubImage2D):
554
555 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
556
557         Fix build of SourceBufferPrivateAVFObjC.mm on iOS.
558
559         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
560
561 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
562
563         Fix use of nonexistent kCGColorSpaceSRGB on iOS.
564
565         * platform/graphics/cg/GraphicsContextCG.cpp:
566         (WebCore::sRGBColorSpaceRef):
567
568 2014-01-11  Joseph Pecoraro  <pecoraro@apple.com>
569
570         Web Inspector: Some ScriptDebugServer Cleanup
571         https://bugs.webkit.org/show_bug.cgi?id=126793
572
573         Reviewed by Timothy Hatcher.
574
575         * bindings/js/PageScriptDebugServer.cpp:
576         (WebCore::PageScriptDebugServer::didContinue):
577         (WebCore::PageScriptDebugServer::runEventLoopWhilePaused):
578         Move the special iOS WebThread EventLoop nesting handling here.
579
580         * bindings/js/ScriptDebugServer.cpp:
581         (WebCore::ScriptDebugServer::ScriptDebugServer):
582         (WebCore::ScriptDebugServer::handlePause):
583         * bindings/js/ScriptDebugServer.h:
584         * inspector/InspectorDebuggerAgent.cpp:
585         * inspector/InspectorDebuggerAgent.h:
586         Remove unused headers and functions.
587
588 2014-01-11  David Kilzer  <ddkilzer@apple.com>
589
590         [iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build
591
592         * platform/graphics/cg/ImageBufferCG.cpp:
593         (WebCore::ImageBuffer::ImageBuffer): The 'width' and 'height'
594         variables are only used by code protected by
595         USE(IOSURFACE_CANVAS_BACKING_STORE).
596
597 2014-01-11  David Kilzer  <ddkilzer@apple.com>
598
599         [iOS] Multisampling is not available on iOS
600
601         * platform/graphics/mac/GraphicsContext3DMac.mm:
602         (WebCore::GraphicsContext3D::GraphicsContext3D):
603
604 2014-01-10  David Kilzer  <ddkilzer@apple.com>
605
606         [iOS] Fix build for HTMLImageElement::willRespondToMouseClickEvents()
607
608         * html/HTMLImageElement.cpp:
609         (WebCore::HTMLImageElement::willRespondToMouseClickEvents):
610
611 2014-01-10  Anders Carlsson  <andersca@apple.com>
612
613         Fix test crashes.
614         
615         * loader/ProgressTracker.cpp:
616         (WebCore::ProgressTracker::~ProgressTracker):
617         Comment out the call to progressTrackerDestroyed for now.
618
619 2014-01-10  David Kilzer  <ddkilzer@apple.com>
620
621         [iOS] Fix build for RenderEmbeddedObject::canHaveChildren()
622
623         * rendering/RenderEmbeddedObject.cpp:
624         (WebCore::RenderEmbeddedObject::canHaveChildren):
625
626 2014-01-10  Anders Carlsson  <andersca@apple.com>
627
628         Tweak ProgressTrackerClient functions
629         https://bugs.webkit.org/show_bug.cgi?id=126808
630
631         Reviewed by Sam Weinig.
632
633         Rename the three progress state related member functions since it's up to the various
634         WebKit implementations to decide what to do - not everyone wants to post a notification.
635         Also add an originating progress frame parameter since WebKit2 doesn't report progress for
636         subframe navigation and we need to be able to keep track of that.
637         
638         Finally, tweak ProgressTracker::completeProgress to get rid of an unnecessary hash lookup.
639
640         * loader/EmptyClients.h:
641         * loader/ProgressTracker.cpp:
642         (WebCore::ProgressItem::ProgressItem):
643         (WebCore::ProgressTracker::progressStarted):
644         (WebCore::ProgressTracker::finalProgressComplete):
645         (WebCore::ProgressTracker::incrementProgress):
646         (WebCore::ProgressTracker::completeProgress):
647         * loader/ProgressTrackerClient.h:
648
649 2014-01-10  David Kilzer  <ddkilzer@apple.com>
650
651         [iOS] Fix COMPILE_ASSERT by updating struct SameSizeAsStyleRareInheritedData
652
653         * rendering/style/StyleRareInheritedData.cpp:
654
655 2014-01-10  David Kilzer  <ddkilzer@apple.com>
656
657         [iOS] Fix build of SubframeLoader.cpp
658
659         * loader/SubframeLoader.cpp:
660         (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
661         (WebCore::SubframeLoader::loadPlugin):
662         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
663
664 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
665
666         Fix Mac after r161747. One part of that is iOS specific.
667
668         Unreviewed build fix.
669
670         * bindings/js/GCController.cpp:
671         (WebCore::GCController::releaseExecutableMemory):
672
673 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
674
675         [iOS] Fix GCController::releaseExecutableMemory
676         https://bugs.webkit.org/show_bug.cgi?id=126805
677
678         Reviewed by Sam Weinig and Mark Lam.
679
680         VM::dynamicGlobalObject has since been replaced by VMEntryScope.
681         Update to check entryScope instead of the dynamicGlobalObject.
682         Also, make this non-iOS only.
683
684         * bindings/js/GCController.h:
685         * bindings/js/GCController.cpp:
686         (WebCore::GCController::releaseExecutableMemory):
687
688 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
689
690         Fix HTMLMediaElement.o for iOS. Unreviewed build fix.
691
692         There is now local variable mediaElement. Just call the
693         functions since they are methods on this class.
694
695         Fix RequireUserGestureToShowPlaybackTargetPickerRestriction typos.
696
697         * html/HTMLMediaElement.cpp:
698         (WebCore::HTMLMediaElement::parseAttribute):
699
700 2014-01-10  Anders Carlsson  <andersca@apple.com>
701
702         Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
703         https://bugs.webkit.org/show_bug.cgi?id=126801
704
705         Reviewed by Sam Weinig.
706
707         * GNUmakefile.list.am:
708         * WebCore.vcxproj/WebCore.vcxproj:
709         * WebCore.vcxproj/WebCore.vcxproj.filters:
710         * WebCore.xcodeproj/project.pbxproj:
711         * loader/EmptyClients.cpp:
712         (WebCore::fillWithEmptyClients):
713         * loader/EmptyClients.h:
714         * loader/FrameLoaderClient.h:
715         * loader/ProgressTracker.cpp:
716         (WebCore::ProgressTracker::ProgressTracker):
717         (WebCore::ProgressTracker::~ProgressTracker):
718         (WebCore::ProgressTracker::progressStarted):
719         (WebCore::ProgressTracker::progressCompleted):
720         (WebCore::ProgressTracker::finalProgressComplete):
721         (WebCore::ProgressTracker::incrementProgress):
722         * loader/ProgressTracker.h:
723         * loader/ProgressTrackerClient.h: Added.
724         (WebCore::ProgressTrackerClient::~ProgressTrackerClient):
725         (WebCore::ProgressTrackerClient::progressTrackerDestroyed):
726         (WebCore::ProgressTrackerClient::willChangeEstimatedProgress):
727         (WebCore::ProgressTrackerClient::didChangeEstimatedProgress):
728         * page/Page.cpp:
729         (WebCore::Page::Page):
730         (WebCore::Page::PageClients::PageClients):
731         * page/Page.h:
732
733 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
734
735         Fix RenderObject.o for iOS. Unreviewed build fix.
736
737         r156285 renamed firstChild() to firstChildSlow(), so update
738         occurances in IOS_TEXT_AUTOSIZING code. Also account for a
739         RenderObject::style reference / pointer change.
740
741         * rendering/RenderObject.cpp:
742         (WebCore::RenderObject::traverseNext):
743         (WebCore::includeNonFixedHeight):
744
745 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
746
747         Fix MediaPlayerPrivateMediaSourceAVFObjC.o for iOS. Unreviewed build fix.
748
749         Import CALayer, which Mac must have been getting some other way.
750
751         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
752
753 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
754
755         Fix TileGrid.o for iOS. Unreviewed build fix.
756
757         Explicitly use namespace std in std::pair.
758
759         * platform/ios/TileGrid.mm:
760         (WebCore::isFartherAway):
761         (WebCore::TileGrid::dropDistantTiles):
762
763 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
764
765         Fix RenderImage.o for iOS. Unreviewed build fix.
766
767         inlineBoxWrapper() returns an InlineElementBox type, which is an InlineBox but
768         without including InlineElementBox.h, iOS didn't know what an InlineElementBox was!
769
770         * rendering/RenderImage.cpp:
771
772 2014-01-10  David Kilzer  <ddkilzer@apple.com>
773
774         [iOS] Fix macros in Scrollbar::supportsUpdateOnSecondaryThread()
775
776         Fixes the following build error:
777
778             WebCore/platform/Scrollbar.cpp:552:22: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
779             #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 && ENABLE(ASYNC_SCROLLING)
780                                  ^
781
782         * platform/Scrollbar.cpp:
783         (WebCore::Scrollbar::supportsUpdateOnSecondaryThread):
784
785 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
786
787         Fix RenderFileUploadControl.o for iOS. Unreviewed build fix.
788
789         WebCore::theme() returns a reference now, not a pointer.
790
791         * rendering/RenderFileUploadControl.cpp:
792         (WebCore::RenderFileUploadControl::paintObject):
793
794 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
795
796         Fix HTMLPlugInImageElement.o for iOS. Unreviewed build fix.
797
798         Forgot to upstream YouTubeEmbedShadowElement.*. Do so and
799         add the files to the Xcode project so they build.
800
801         * WebCore.xcodeproj/project.pbxproj:
802         * html/shadow/YouTubeEmbedShadowElement.cpp: Added.
803         (WebCore::YouTubeEmbedShadowElement::create):
804         (WebCore::YouTubeEmbedShadowElement::YouTubeEmbedShadowElement):
805         (WebCore::YouTubeEmbedShadowElement::pluginElement):
806         (WebCore::YouTubeEmbedShadowElement::shadowPseudoId):
807         * html/shadow/YouTubeEmbedShadowElement.h: Added.
808
809 2014-01-10  David Kilzer  <ddkilzer@apple.com>
810
811         [iOS] Update EditorIOS.mm to switch from pointers to references
812
813         * editing/ios/EditorIOS.mm:
814         (WebCore::Editor::setTextAlignmentForChangedBaseWritingDirection):
815         (WebCore::Editor::insertParagraphSeparatorInQuotedContent):
816         (WebCore::styleForSelectionStart):
817         (WebCore::Editor::selectionInWebArchiveFormat):
818         (WebCore::Editor::writeImageToPasteboard):
819         (WebCore::Editor::WebContentReader::readWebArchive):
820         (WebCore::Editor::WebContentReader::readRTFD):
821         (WebCore::Editor::WebContentReader::readRTF):
822         (WebCore::uniqueURLWithRelativePart):
823         (WebCore::Editor::WebContentReader::readPlainText):
824         (WebCore::Editor::webContentFromPasteboard):
825         (WebCore::Editor::createFragmentAndAddResources):
826         (WebCore::Editor::createFragmentForImageResourceAndAddResource):
827
828 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
829
830         Web Inspector: Push InspectorAgent down into JSC, give JSC an InspectorController
831         https://bugs.webkit.org/show_bug.cgi?id=126763
832
833         Reviewed by Timothy Hatcher.
834
835         No new tests, no observable change in functionality.
836
837         * CMakeLists.txt:
838         * ForwardingHeaders/inspector/agent/InspectorAgent.h: Added.
839         * GNUmakefile.list.am:
840         * WebCore.vcxproj/WebCore.vcxproj:
841         * WebCore.vcxproj/WebCore.vcxproj.filters:
842         * WebCore.xcodeproj/project.pbxproj:
843         * inspector/InspectorAllInOne.cpp:
844         InspectorAgent moved to JavaScriptCore. Include forwarding header.
845
846         * inspector/PageConsoleAgent.cpp:
847         (WebCore::PageConsoleAgent::PageConsoleAgent):
848         (WebCore::PageConsoleAgent::~PageConsoleAgent):
849         * inspector/PageConsoleAgent.h:
850         (WebCore::PageConsoleAgent::create):
851         * inspector/InspectorApplicationCacheAgent.cpp:
852         * inspector/InspectorApplicationCacheAgent.h:
853         InspectorAgent was not used by these files, remove it.
854
855         * inspector/CommandLineAPIHost.cpp:
856         * inspector/CommandLineAPIHost.h:
857         (WebCore::CommandLineAPIHost::init):
858         * inspector/InspectorInstrumentation.cpp:
859         * inspector/InstrumentingAgents.h:
860         (WebCore::InstrumentingAgents::inspectorAgent):
861         (WebCore::InstrumentingAgents::setInspectorAgent):
862         Switch to Inspector::InspectorAgent where applicable.
863
864         * inspector/InspectorController.cpp:
865         (WebCore::InspectorController::InspectorController):
866         * inspector/InspectorController.h:
867         Manually add InspectorAgent to the InstrumentingAgents. It is one
868         of the agents that is always available in InstrumentingAgents.
869
870 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
871
872        Add TextAutoSizing.* for iOS, and fix DeviceOrientationController creation.
873
874         * WebCore.xcodeproj/project.pbxproj:
875         * dom/Document.cpp:
876         (WebCore::Document::Document):
877         * rendering/TextAutoSizing.cpp: Added.
878         (WebCore::cloneRenderStyleWithState):
879         (WebCore::TextAutoSizingKey::TextAutoSizingKey):
880         (WebCore::TextAutoSizingKey::~TextAutoSizingKey):
881         (WebCore::TextAutoSizingKey::operator=):
882         (WebCore::TextAutoSizingKey::ref):
883         (WebCore::TextAutoSizingKey::deref):
884         (WebCore::TextAutoSizingValue::numNodes):
885         (WebCore::TextAutoSizingValue::addNode):
886         (WebCore::TextAutoSizingValue::adjustNodeSizes):
887         (WebCore::TextAutoSizingValue::reset):
888         * rendering/TextAutoSizing.h: Added.
889         (WebCore::TextAutoSizingKey::doc):
890         (WebCore::TextAutoSizingKey::style):
891         (WebCore::TextAutoSizingKey::isValidDoc):
892         (WebCore::TextAutoSizingKey::isValidStyle):
893         (WebCore::TextAutoSizingKey::deletedKeyDoc):
894         (WebCore::TextAutoSizingKey::deletedKeyStyle):
895         (WebCore::operator==):
896         (WebCore::TextAutoSizingHash::hash):
897         (WebCore::TextAutoSizingHash::equal):
898         (WebCore::TextAutoSizingValue::create):
899         (WebCore::TextAutoSizingValue::TextAutoSizingValue):
900
901 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
902
903         Fix GraphicsLayerCA.o for iOS. Unreviewed build fix.
904
905         Use of systemMemoryLevel was missing include of SystemMemory.h.
906
907         * platform/graphics/ca/GraphicsLayerCA.cpp:
908
909 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
910
911         Fix iOS build.
912
913         * bindings/objc/DOM.mm:
914         (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]):
915         * bindings/objc/DOMExtensions.h:
916         * platform/DragImage.h:
917
918 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
919
920         Fix iOS build.
921         
922         Generated DOMTouch* and DOMGesture* files need to be in the project.
923         Exclude them on Mac via EXCLUDED_SOURCE_FILE_NAMES_macosx.
924         
925         Use TARGET_OS_IPHONE instead of TARGET_OS_EMBEDDED in DOMPrivate.h
926
927         * Configurations/WebCore.xcconfig:
928         * WebCore.xcodeproj/project.pbxproj:
929         * bindings/objc/DOMPrivate.h:
930
931 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
932
933         Fix RenderThemeIOS.o for iOS. Unreviewed build fix.
934
935         Typo referring to generated name. Should be "iOS" not "IOS".
936
937         * rendering/RenderThemeIOS.mm:
938         (WebCore::RenderThemeIOS::mediaControlsScript):
939
940 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
941
942         Fix WebAccessibilityObjectWrapperIOS.o for iOS. Unreviewed build fix.
943
944         The upstreamed WebAccessibilityObjectWrapperIOS.mm was out of date, e.g.
945         it was using GSFonts. Just upstream a newer version of the file. Also
946         explicitly namespace qualify std::pair.
947
948         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
949         (AXAttributeStringSetStyle):
950
951 2014-01-10  Jinwoo Song  <jinwoo7.song@samsung.com>
952
953         Remove willRespondToTouchEvents() which was used by chromium port
954         https://bugs.webkit.org/show_bug.cgi?id=126739
955
956         Reviewed by Alexey Proskuryakov.
957
958         willRespondToTouchEvents() was added to check if a node listens to touch events in r126945.
959         However, it is not used anywhere after chromium port is removed.
960
961         * dom/Node.cpp:
962         * dom/Node.h:
963
964 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
965
966         Fix SystemVersionMac.o for iOS. Unreviewed build fix.
967
968         Add missing expected function. Maybe we can avoid including
969         this file entirely on iOS, there was already a FIXME.
970
971         * platform/mac/SystemVersionMac.mm:
972         (WebCore::systemMarketingVersion):
973
974 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
975
976         Fix JSDOMWindowBase.o for iOS. Unreviewed build fix.
977
978         Add missing iOS method declarations.
979
980         * bindings/js/JSDOMWindowBase.h:
981
982 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
983
984         Fix InputType.o for iOS. Unreviewed build fix.
985
986         The RuntimeEnabledFeatures function pointer type should have a
987         const qualifier, because the implementations are all const.
988
989         * html/InputType.cpp:
990
991 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
992
993         Fix MediaPlayerPrivateIOS.o for iOS. Unreviewed build fix.
994
995         Add missing MediaPlayerProxy Objective C methods and forward declarations.
996
997         * platform/graphics/mac/MediaPlayerProxy.h:
998
999 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1000
1001         Fix FrameSelection.o for iOS. Unreviewed build fix.
1002
1003         r160966 renamed rendererIsEditable to hasEditableStyle.
1004
1005         * editing/FrameSelection.cpp:
1006         (WebCore::FrameSelection::setSelectionFromNone):
1007
1008 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1009
1010         Fix DragData.o for iOS. Unreviewed build fix.
1011
1012         String m_pasteboardName is unused on iOS, so ifdef it out.
1013
1014         * platform/DragData.h:
1015
1016 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1017
1018         Fix FrameIOS.o for iOS. Unreviewed build fix.
1019
1020         Remove stale include to file that no longer exists. It was not needed.
1021
1022         * page/ios/FrameIOS.mm:
1023
1024 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1025
1026         Fix MonthInputType.o for iOS. Unreviewed build fix.
1027
1028         When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876,
1029         the wrong class name lingered. Fix it to be the base class.
1030
1031         * html/TimeInputType.cpp:
1032         (WebCore::TimeInputType::TimeInputType):
1033
1034 2014-01-10  Andy Estes  <aestes@apple.com>
1035
1036         [iOS] Build fix: make sure WTF_PLATFORM_IOS is defined when preprocessing
1037
1038         * DerivedSources.make:
1039         * bindings/scripts/preprocessor.pm:
1040         (applyPreprocessor):
1041
1042 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1043
1044         Use TARGET_OS_IPHONE in this API file, and #if TARGET_OS_MAC
1045         for a non-iOS function.
1046
1047         * bindings/objc/DOMExtensions.h:
1048
1049 2014-01-10  David Kilzer  <ddkilzer@apple.com>
1050
1051         Clean up architectures in xcconfig files
1052         <http://webkit.org/b/126794>
1053
1054         Reviewed by Andy Estes.
1055
1056         * Configurations/Base.xcconfig:
1057         * Configurations/WebCore.xcconfig: Remove armv6.
1058         * DerivedSources.make: Remove armv6, armv7f. Sort.
1059         - Add new arch.
1060
1061 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1062
1063         Fix iOS build
1064
1065         * Configurations/WebCore.xcconfig:
1066         * css/DeprecatedStyleBuilder.cpp:
1067         (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyValue):
1068
1069 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1070
1071         Fix iOS build.
1072         
1073         * html/DateTimeLocalInputType.h:
1074         (WebCore::DateTimeLocalInputType::DateTimeLocalInputType):
1075         * loader/ios/DiskImageCacheIOS.h:
1076
1077 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1078
1079         iOS build fix: add StyleRareInheritedData::compositionFillColor
1080
1081         * rendering/style/RenderStyle.h:
1082         * rendering/style/StyleRareInheritedData.cpp:
1083         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
1084         (WebCore::StyleRareInheritedData::operator==):
1085         * rendering/style/StyleRareInheritedData.h:
1086
1087 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1088
1089         Fix MonthInputType.o for iOS. Unreviewed build fix.
1090
1091         When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876, the
1092         BaseMonthInputType typedef was removed. However a use of it lingered.
1093         Changing to match the base class name.
1094
1095         * html/MonthInputType.h:
1096         (WebCore::MonthInputType::MonthInputType):
1097
1098 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1099
1100         Fix RenderButton.o for iOS. Unreviewed build fix.
1101
1102         Missing prototype in header for override of the layout method.
1103
1104         * rendering/RenderButton.h:
1105
1106 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1107
1108         A couple of iOS build fixes.
1109
1110         * accessibility/ios/AXObjectCacheIOS.mm:
1111         (WebCore::AXObjectCache::handleFocusedUIElementChanged):
1112         * html/canvas/CanvasRenderingContext2D.cpp:
1113         (WebCore::CanvasRenderingContext2D::drawImage):
1114
1115 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1116
1117         Fix PlatformScreenIOS.mm for iOS. Unreviewed build fix.
1118
1119         PlatformScreen.h removed screenVerticalDPI and screenHorizontalDPI in r132419,
1120         so remove the stale implementations on iOS. Also, add a notImplemented version
1121         of screenColorProfile, which matches Mac and is unused in WebCore for this port.
1122
1123         * platform/ios/PlatformScreenIOS.mm:
1124         (WebCore::screenColorProfile):
1125
1126 2014-01-10  Anders Carlsson  <andersca@apple.com>
1127
1128         CTTE FrameTree
1129         https://bugs.webkit.org/show_bug.cgi?id=126795
1130
1131         Reviewed by Tim Horton.
1132
1133         * page/Frame.cpp:
1134         (WebCore::Frame::Frame):
1135         * page/FrameTree.cpp:
1136         (WebCore::FrameTree::transferChild):
1137         (WebCore::FrameTree::appendChild):
1138         (WebCore::FrameTree::actuallyAppendChild):
1139         (WebCore::FrameTree::uniqueChildName):
1140         (WebCore::FrameTree::scopedChild):
1141         (WebCore::FrameTree::scopedChildCount):
1142         (WebCore::FrameTree::child):
1143         (WebCore::FrameTree::find):
1144         (WebCore::FrameTree::isDescendantOf):
1145         (WebCore::FrameTree::traverseNext):
1146         (WebCore::FrameTree::traverseNextWithWrap):
1147         (WebCore::FrameTree::traversePreviousWithWrap):
1148         (WebCore::FrameTree::deepLastChild):
1149         (WebCore::FrameTree::top):
1150         * page/FrameTree.h:
1151         (WebCore::FrameTree::FrameTree):
1152
1153 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1154
1155         Fix iOS build.
1156
1157         * loader/ResourceLoader.h:
1158
1159 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1160
1161         Fix iOS build.
1162
1163         * platform/graphics/ImageSource.h:
1164         (WebCore::ImageSource::acceleratedImageDecodingEnabled):
1165         (WebCore::ImageSource::setAcceleratedImageDecodingEnabled):
1166
1167 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1168
1169         Unreviewed EFL build fix after r161678.
1170
1171         static_cast a size_t to unsigned long for %lu format string.
1172
1173         * page/Console.cpp:
1174         (WebCore::internalAddMessage):
1175
1176 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
1177
1178         Remove the BlackBerry port from trunk
1179         https://bugs.webkit.org/show_bug.cgi?id=126715
1180
1181         Reviewed by Anders Carlsson.
1182
1183         * html/canvas/WebGLRenderingContext.cpp:
1184         (WebCore::WebGLRenderingContext::readPixels):
1185         * platform/graphics/ImageBuffer.cpp:
1186         * platform/graphics/ImageBufferData.h:
1187         * platform/graphics/IntPoint.h:
1188         * platform/graphics/IntRect.h:
1189         * platform/graphics/IntSize.h:
1190         * platform/graphics/MediaPlayer.cpp:
1191         * platform/graphics/NativeImagePtr.h:
1192         * platform/graphics/OpenGLESShims.h:
1193         * platform/graphics/Path.cpp:
1194         (WebCore::Path::addPathForRoundedRect):
1195         * platform/graphics/Path.h:
1196         * platform/graphics/PlatformLayer.h:
1197         * platform/graphics/filters/CustomFilterValidatedProgram.cpp:
1198         * platform/graphics/filters/CustomFilterValidatedProgram.h:
1199         * platform/graphics/filters/FilterOperation.h:
1200         * platform/graphics/gpu/DrawingBuffer.cpp:
1201         * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
1202         * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
1203         (WebCore::Extensions3DOpenGLES::getGraphicsResetStatusARB):
1204         * platform/graphics/opengl/Extensions3DOpenGLES.h:
1205         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1206         (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
1207         (WebCore::GraphicsContext3D::prepareTexture):
1208         (WebCore::GraphicsContext3D::bindFramebuffer):
1209         (WebCore::GraphicsContext3D::compileShader):
1210         (WebCore::GraphicsContext3D::copyTexImage2D):
1211         (WebCore::GraphicsContext3D::copyTexSubImage2D):
1212         * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp:
1213         (WebCore::GraphicsContext3D::readPixels):
1214         (WebCore::GraphicsContext3D::readPixelsAndConvertToBGRAIfNecessary):
1215         (WebCore::GraphicsContext3D::reshapeFBOs):
1216         * platform/network/NetworkStateNotifier.h:
1217         * platform/network/ResourceHandle.h:
1218         * platform/network/ResourceHandleInternal.h:
1219         * platform/network/ResourceRequestBase.cpp:
1220
1221 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1222
1223         Fix CharsetData.cpp build for iOS
1224         https://bugs.webkit.org/show_bug.cgi?id=126792
1225
1226         Reviewed by Mark Rowe.
1227
1228         CharsetData.cpp should have an empty CharsetTable list for iOS.
1229         Achieve this with an iOS-specific encodings.txt file.
1230
1231         * DerivedSources.make:
1232         * WebCore.xcodeproj/project.pbxproj:
1233         * platform/text/mac/ios-encodings.txt: Added.
1234
1235 2014-01-10  Anders Carlsson  <andersca@apple.com>
1236
1237         CTTE in NavigationScheduler
1238         https://bugs.webkit.org/show_bug.cgi?id=126788
1239
1240         Reviewed by Tim Horton.
1241
1242         * inspector/InspectorInstrumentation.cpp:
1243         (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl):
1244         (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl):
1245         * inspector/InspectorInstrumentation.h:
1246         (WebCore::InspectorInstrumentation::frameScheduledNavigation):
1247         (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation):
1248         * inspector/InspectorPageAgent.cpp:
1249         (WebCore::InspectorPageAgent::frameScheduledNavigation):
1250         (WebCore::InspectorPageAgent::frameClearedScheduledNavigation):
1251         * inspector/InspectorPageAgent.h:
1252         * loader/NavigationScheduler.cpp:
1253         (WebCore::ScheduledNavigation::shouldStartTimer):
1254         (WebCore::ScheduledNavigation::didStartTimer):
1255         (WebCore::ScheduledNavigation::didStopTimer):
1256         (WebCore::NavigationScheduler::NavigationScheduler):
1257         (WebCore::NavigationScheduler::clear):
1258         (WebCore::NavigationScheduler::shouldScheduleNavigation):
1259         (WebCore::NavigationScheduler::scheduleRedirect):
1260         (WebCore::NavigationScheduler::mustLockBackForwardList):
1261         (WebCore::NavigationScheduler::scheduleLocationChange):
1262         (WebCore::NavigationScheduler::scheduleFormSubmission):
1263         (WebCore::NavigationScheduler::scheduleRefresh):
1264         (WebCore::NavigationScheduler::scheduleHistoryNavigation):
1265         (WebCore::NavigationScheduler::timerFired):
1266         (WebCore::NavigationScheduler::schedule):
1267         (WebCore::NavigationScheduler::startTimer):
1268         (WebCore::NavigationScheduler::cancel):
1269         * loader/NavigationScheduler.h:
1270         * page/Frame.cpp:
1271         (WebCore::Frame::Frame):
1272
1273 2014-01-10  Myles C. Maxfield  <mmaxfield@apple.com>
1274
1275         CSS word-spacing property does not obey percentages
1276         https://bugs.webkit.org/show_bug.cgi?id=126674
1277
1278         Reviewed by Simon Fraser.
1279
1280         One change between CSS2.1 and CSS3 is that the word-spacing CSS property can
1281         take percentages (of the width of the space character) in CSS3. In order to
1282         implement this, the datatype must be changed from a float to a Length, which
1283         can hold percentage values. Then, during layout, we can query the width of
1284         the space character and update the Font's word-spacing value appropriately.
1285         However, the RenderStyle still holds on to the Length (as a rare inherited
1286         value).
1287
1288         Tests: fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font.html
1289                fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse.html
1290                fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage.html
1291
1292         * css/CSSComputedStyleDeclaration.cpp:
1293         (WebCore::ComputedStyleExtractor::propertyValue): Use Font's computed value instead
1294         of style's Length value.
1295         * css/CSSParser.cpp:
1296         (WebCore::CSSParser::parseValue): word-spacing and letter-spacing no longer are
1297         parsed the same way.
1298         * css/DeprecatedStyleBuilder.cpp:
1299         (WebCore::ApplyPropertyWordSpacing::applyValue): Construct a length from a given
1300         CSSValue and set the style's word spacing with it.
1301         (WebCore::ApplyPropertyWordSpacing::createHandler):
1302         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Use ApplyPropertyWordSpacing.
1303         * page/animation/CSSPropertyAnimation.cpp:
1304         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
1305         * rendering/RenderBlockLineLayout.cpp:
1306         (WebCore::setLogicalWidthForTextRun): Use Font's computed value instead
1307         of style's Length value.
1308         * rendering/RenderText.cpp:
1309         (WebCore::RenderText::computePreferredLogicalWidths): Ditto.
1310         * rendering/SimpleLineLayout.cpp:
1311         (WebCore::SimpleLineLayout::canUseFor): Opt-out of the SimpleLineLayout
1312         if either the percentage or the length is nonzero.
1313         * rendering/line/BreakingContextInlineHeaders.h:
1314         (WebCore::BreakingContext::handleText): Use Font's computed value instead
1315         of style's Length value.
1316         * rendering/style/RenderStyle.cpp:
1317         (WebCore::RenderStyle::wordSpacing):
1318         (WebCore::RenderStyle::setWordSpacing): Consult the Font's space with to compute
1319         percentage values, but hold on to the original Length.
1320         * rendering/style/RenderStyle.h:
1321         * rendering/style/StyleRareInheritedData.cpp:
1322         * rendering/style/StyleRareInheritedData.h: Hold on to the specified Length
1323
1324 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1325
1326         Fix the iOS build.
1327
1328         * platform/audio/mac/MediaSessionManagerMac.cpp:
1329
1330 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
1331
1332         iOS doesn't have <OpenGL/gl.h>; fix iOS build.
1333
1334         * platform/graphics/opengl/TemporaryOpenGLSetting.cpp:
1335
1336 2014-01-10  Andy Estes  <aestes@apple.com>
1337
1338         [iOS] Build Fix: Properly add $SDKROOT/usr/local/include/ to the search path when building PublicDOMInterfaces.h
1339
1340         * bindings/scripts/CodeGeneratorObjC.pm:
1341         (ReadPublicInterfaces):
1342
1343 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1344
1345         Web Inspector: Remove unimplemented or static ScriptDebugServer features
1346         https://bugs.webkit.org/show_bug.cgi?id=126784
1347
1348         Reviewed by Timothy Hatcher.
1349
1350         These features are unimplemented in the backend, and unused by the
1351         current frontend. Most deal with features that were supported by v8
1352         and are as yet unimplemented by JSC. If we decide to add such features
1353         we can reimplement without conforming to an old implementation.
1354
1355         * bindings/js/ScriptDebugServer.cpp:
1356         * bindings/js/ScriptDebugServer.h:
1357         * bindings/js/ScriptProfiler.h:
1358         * inspector/InspectorDebuggerAgent.cpp:
1359         (WebCore::InspectorDebuggerAgent::disable):
1360         * inspector/InspectorDebuggerAgent.h:
1361         * inspector/InspectorPageAgent.cpp:
1362         (WebCore::InspectorPageAgent::reload):
1363         (WebCore::InspectorPageAgent::frameNavigated):
1364         * inspector/InspectorPageAgent.h:
1365         * inspector/InspectorProfilerAgent.cpp:
1366         * inspector/InspectorProfilerAgent.h:
1367         * inspector/PageDebuggerAgent.cpp:
1368         (WebCore::PageDebuggerAgent::didClearMainFrameWindowObject):
1369         * inspector/protocol/Page.json:
1370         * inspector/protocol/Profiler.json:
1371
1372 2014-01-10  David Kilzer  <ddkilzer@apple.com>
1373
1374         [iOS] Remove unused variable from TileGrid::dropTilesBetweenRects()
1375
1376         Fixes the following build error:
1377
1378             WebCore/platform/ios/TileGrid.mm:88:23: error: unused variable 'end' [-Werror,-Wunused-variable]
1379                 TileMap::iterator end = m_tiles.end();
1380                                   ^
1381
1382         * platform/ios/TileGrid.mm:
1383         (WebCore::TileGrid::dropTilesBetweenRects): Remove unused
1384         variable now that the for loop uses an auto iterator.
1385
1386 2014-01-10  Dean Jackson  <dino@apple.com>
1387
1388         Implement OES texture half float linear
1389         https://bugs.webkit.org/show_bug.cgi?id=125060
1390
1391         Reviewed by Brent Fulgham.
1392
1393         Test: fast/canvas/webgl/oes-texture-half-float-linear.html
1394
1395         * CMakeLists.txt: Add new files.
1396         * DerivedSources.cpp: Ditto.
1397         * DerivedSources.make: Generate new file from IDL.
1398         * GNUmakefile.list.am: Add new files.
1399         * WebCore.vcxproj/WebCore.vcxproj: Ditto.
1400         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
1401         * WebCore.xcodeproj/project.pbxproj: New files for OESTextureHalfFloatLinear.
1402
1403         * bindings/js/JSWebGLRenderingContextCustom.cpp:
1404         (WebCore::toJS): Map from extension name to native object.
1405
1406         * html/canvas/OESTextureHalfFloatLinear.cpp: Added. New files. These are boiler-plate.
1407         * html/canvas/OESTextureHalfFloatLinear.h: Added.
1408         * html/canvas/OESTextureHalfFloatLinear.idl: Added.
1409
1410         * html/canvas/WebGLExtension.h: Add new enum for the new extension.
1411
1412         * html/canvas/WebGLRenderingContext.cpp:
1413         (WebCore::WebGLRenderingContext::getExtension): Create the extension object if the
1414         context is asked for one.
1415         (WebCore::WebGLRenderingContext::getSupportedExtensions): Add the new extension to the
1416         list of supported extensions. Actually remember to do it this time :)
1417         (WebCore::WebGLRenderingContext::checkTextureCompleteness): Need to check for the half-float
1418         extension as well, and update the log message.
1419         * html/canvas/WebGLRenderingContext.h: New extension object.
1420
1421         * html/canvas/WebGLTexture.cpp:
1422         (WebCore::WebGLTexture::WebGLTexture):
1423         (WebCore::WebGLTexture::needToUseBlackTexture): Check for half-float type.
1424         (WebCore::WebGLTexture::update): Mark a texture as half-float if necessary.
1425         * html/canvas/WebGLTexture.h:
1426
1427         * platform/graphics/Extensions3D.h: Add a comment about the new extension.
1428         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
1429         (WebCore::Extensions3DOpenGL::supportsExtension): This extension is available
1430         when GL_ARB_texture_float is supported, so add the name to the translation.
1431
1432 2014-01-10  Brent Fulgham  <bfulgham@apple.com>
1433
1434         [WebGL] Correct uniform input validation for texture sampler uniform
1435         https://bugs.webkit.org/show_bug.cgi?id=126775
1436
1437         Reviewed by Dean Jackson.
1438
1439         Added fast/canvas/webgl/uniform-samplers-test.html
1440
1441         * html/canvas/WebGLRenderingContext.cpp:
1442         (WebCore::WebGLRenderingContext::uniform1iv): Access Int32Array data properly.
1443
1444 2014-01-10  Manuel Rego Casasnovas  <rego@igalia.com>
1445
1446         [GTK] Unreviewed build fix after r161644.
1447
1448         * Modules/webaudio/MediaStreamAudioSourceNode.cpp:
1449         (WebCore::MediaStreamAudioSourceNode::setFormat):
1450
1451 2014-01-10  Anders Carlsson  <andersca@apple.com>
1452
1453         Remove an unused FrameLoader function
1454         https://bugs.webkit.org/show_bug.cgi?id=126785
1455
1456         Reviewed by Beth Dakin.
1457
1458         * WebCore.exp.in:
1459         * loader/FrameLoader.cpp:
1460         (WebCore::FrameLoader::setState):
1461         * loader/FrameLoader.h:
1462
1463 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
1464
1465         Remove the BlackBerry port from trunk
1466         https://bugs.webkit.org/show_bug.cgi?id=126715
1467
1468         Reviewed by Anders Carlsson.
1469
1470         * platform/MIMETypeRegistry.cpp:
1471         (WebCore::initializeSupportedImageMIMETypesForEncoding):
1472         * platform/PlatformKeyboardEvent.h:
1473         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
1474         * platform/PlatformMouseEvent.h:
1475         * platform/PlatformTouchEvent.h:
1476         (WebCore::PlatformTouchEvent::PlatformTouchEvent):
1477         * platform/PlatformTouchPoint.h:
1478         * platform/ScrollAnimatorNone.cpp:
1479         (WebCore::ScrollAnimator::create):
1480         * platform/URL.cpp:
1481         (WebCore::URL::parse):
1482         (WebCore::portAllowed):
1483         * platform/Widget.h:
1484         * platform/graphics/ANGLEWebKitBridge.h:
1485         * platform/graphics/DisplayRefreshMonitor.cpp:
1486         (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor):
1487         * platform/graphics/DisplayRefreshMonitor.h:
1488         * platform/graphics/FloatPoint.h:
1489         * platform/graphics/FloatRect.h:
1490         * platform/graphics/FloatSize.h:
1491         * platform/graphics/FontCache.h:
1492         * platform/graphics/FontPlatformData.h:
1493         * platform/graphics/GlyphBuffer.h:
1494         * platform/graphics/Gradient.cpp:
1495         * platform/graphics/Gradient.h:
1496         * platform/graphics/GraphicsContext.h:
1497         * platform/graphics/GraphicsContext3D.h:
1498
1499 2014-01-10  Timothy Hatcher  <timothy@apple.com>
1500
1501         Clean up and fix some issues with stdout formatting of console messages.
1502
1503         * Fix URLs not printing line numbers unless column number is > 0.
1504         * Change "CONSOLEAPI" to "CONSOLE" for the source.
1505         * Clean up how console.trace outputs and print URL, line and column for each frame.
1506         * Print "(unknown)" for anonymous and native code call frames.
1507
1508         https://bugs.webkit.org/show_bug.cgi?id=126767
1509
1510         Reviewed by Joseph Pecoraro.
1511
1512         * page/Console.cpp:
1513         (WebCore::internalAddMessage):
1514         * page/PageConsole.cpp:
1515         (WebCore::PageConsole::printSourceURLAndPosition):
1516         (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
1517         * page/PageConsole.h:
1518
1519 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1520
1521         [iOS] Fill in missing WebCoreThread function pointers
1522         https://bugs.webkit.org/show_bug.cgi?id=126776
1523
1524         Reviewed by Timothy Hatcher.
1525
1526         * platform/ios/wak/WebCoreThreadSystemInterface.cpp:
1527         (InitWebCoreThreadSystemInterface):
1528
1529 2014-01-10  Yongjun Zhang  <yongjun_zhang@apple.com>
1530
1531         Clear unparented tiled layers on memory pressure.
1532         https://bugs.webkit.org/show_bug.cgi?id=126737
1533
1534         Reviewed by Simon Fraser.
1535
1536         TileController hold unparented tiles for a short period of time (1 -3 sec); we should clear these unparented
1537         tiles immediately if we are under memory pressure.
1538         
1539         The patch does 3 things to improve the behavior:
1540         1) When the system free memory is low (<35%), reduce the tiling threshold.  This could reduce
1541         the peak memory usage when system is under low memory since we will convert more web layers into
1542         tiled backing.
1543         2) Under memory pressure, immediately clear all unparented tiles.
1544         3) Add a cap (16 tiles) to limit the total number of unparented tiles in TileController's.
1545
1546         * WebCore.exp.in:
1547         * WebCore.xcodeproj/project.pbxproj: Add a new class TileControllerMemoryHandler.
1548         * platform/graphics/ca/GraphicsLayerCA.cpp:
1549         (WebCore::GraphicsLayerCA::requiresTiledLayer):  Use a smaller tiling threshold if the system free memory is low.
1550         * platform/graphics/ca/mac/TileController.h:
1551         (WebCore::TileController::numberOfUnparentedTiles):
1552         * platform/graphics/ca/mac/TileController.mm:
1553         (WebCore::TileController::startedNewCohort):
1554         (WebCore::TileController::removeUnparentedTilesNow): Remove all unparentd tiles.
1555         * platform/ios/MemoryPressureHandlerIOS.mm:
1556         * platform/ios/TileControllerMemoryHandlerIOS.cpp: Added.
1557         (WebCore::TileControllerMemoryHandler::removeTileController):
1558         (WebCore::TileControllerMemoryHandler::totalUnparentedTiledLayers):
1559         (WebCore::TileControllerMemoryHandler::tileControllerGainUnparentedTiles):
1560         (WebCore::TileControllerMemoryHandler::trimUnparentedTilesToTarget): Trims the number of unparented tiles until
1561             it reaches the target.
1562         (WebCore::tileControllerMemoryHandler):
1563         * platform/ios/TileControllerMemoryHandlerIOS.h: Added.
1564         (WebCore::TileControllerMemoryHandler::TileControllerMemoryHandler):
1565
1566 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
1567
1568         [CSS Blending] Log blending as a layer creation reason in the WI
1569         https://bugs.webkit.org/show_bug.cgi?id=126159
1570
1571         Reviewed by Timothy Hatcher.
1572
1573         * inspector/InspectorLayerTreeAgent.cpp:
1574         (WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer):
1575         * inspector/protocol/LayerTree.json:
1576
1577 2014-01-10  Andy Estes  <aestes@apple.com>
1578
1579         Fix some iOS build errors during bindings generation.
1580
1581         * bindings/objc/PublicDOMInterfaces.h: Included
1582         WebKitAdditions/PublicDOMInterfacesIOS.h and change
1583         -[DOMRGBColor color] to return a CGColorRef on iOS.
1584
1585 2014-01-10  Timothy Hatcher  <timothy@apple.com>
1586
1587         Prevent some resources from showing up in Web Inspector as years in duration.
1588
1589         No WebKit port passed a monotonic time to InspectorInstrumentation::didFinishLoading -- except Chromium.
1590
1591         https://bugs.webkit.org/show_bug.cgi?id=126760
1592
1593         Reviewed by Joseph Pecoraro.
1594
1595         * inspector/InspectorInstrumentation.cpp:
1596         (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
1597         Revert part of r102961 to use finishTime as-is and not expect a monotonic time.
1598
1599 2014-01-10  Dirk Schulze  <krit@webkit.org>
1600
1601         Make clipping path from basic-shapes relative to <box> value
1602         https://bugs.webkit.org/show_bug.cgi?id=126206
1603
1604         Reviewed by Simon Fraser.
1605
1606         Tests: css3/masking/clip-path-circle-border-box.html
1607                css3/masking/clip-path-circle-bounding-box.html
1608                css3/masking/clip-path-circle-content-box.html
1609                css3/masking/clip-path-circle-margin-box.html
1610                css3/masking/clip-path-circle-padding-box.html
1611
1612         * rendering/RenderLayer.cpp:
1613         (WebCore::RenderLayer::setupClipPath): Add switch to differ between boxes
1614             and use different reference boxes to size the clipping path.
1615
1616 2014-01-10  Youenn Fablet  <youennf@gmail.com>
1617
1618
1619         Correctly set XHR loadend attributes (loaded and total).
1620         https://bugs.webkit.org/show_bug.cgi?id=120828
1621
1622         Reviewed by Alexey Proskuryakov.
1623         
1624         Added correct initialization of lengthComputable, loaded and total attributes 
1625         to XHR ProgressEvent events (load, loadstart, loadend, abort, error and timeout).
1626
1627         XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload now keep persistent knowledge 
1628         of m_loaded and m_total values with this patch.
1629         
1630         Code refactoring to handle event dispatching in case of error in a single manner.
1631         XMLHttpRequestProgressEventThrottle::dispatchProgressEvent is renamed as dispatchThrottledProgressEvent
1632         XMLHttpRequestProgressEventThrottle::dispatchEventAndLoadend is replaced by dispatchProgressEvent(const AtomicString&)
1633         
1634         Fixed assertion issues over bug 120828 patch
1635
1636         Tests: http/tests/xmlhttprequest/loadstart-event-init.html
1637                http/tests/xmlhttprequest/onabort-progressevent-attributes.html
1638                http/tests/xmlhttprequest/onload-progressevent-attributes.html
1639                http/tests/xmlhttprequest/upload-onabort-progressevent-attributes.html
1640                http/tests/xmlhttprequest/upload-onload-progressevent-attributes.html
1641
1642         * xml/XMLHttpRequest.cpp:
1643         (WebCore::XMLHttpRequest::callReadyStateChangeListener): changed readystatechange event from ProgressEvent to Event (not cancellable, not bubblable) to better match the spec 
1644         (WebCore::XMLHttpRequest::createRequest):
1645         (WebCore::XMLHttpRequest::abort): code refactoring to handle error event dispatching in a single way
1646         (WebCore::XMLHttpRequest::networkError): code refactoring to handle error event dispatching in a single way
1647         (WebCore::XMLHttpRequest::abortError): code refactoring to handle error event dispatching in a single way
1648         (WebCore::XMLHttpRequest::didSendData):
1649         (WebCore::XMLHttpRequest::didReceiveData):
1650         (WebCore::XMLHttpRequest::dispatchErrorEvents): dispatch progress events in case of error
1651         (WebCore::XMLHttpRequest::didTimeout): code refactoring to handle error event dispatching in a single way
1652         * xml/XMLHttpRequest.h:
1653         * xml/XMLHttpRequestProgressEventThrottle.cpp: before the patch, the fact that a progress event is being throttled is stored indirectly (m_loaded or m_total not equal to zero). With the patch, this information is stored in m_hasThrottledProgressEvent. The m_loaded and m_total values are no longer set back to zero after a progress event is dispatched. This allows using these values to correctly initialize other ProgressEvent events (in particular loadend, abort, timeout...) 
1654         (WebCore::XMLHttpRequestProgressEventThrottle::XMLHttpRequestProgressEventThrottle):
1655         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchThrottledProgressEvent): always update the new m_loaded and m_total values. If progress event is not sent as part of the function call, store the fact that a progress event is being throttled through m_hasThrottledProgressEvent. 
1656         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): used to send any ProgressEvent event that is not be throttled
1657         (WebCore::XMLHttpRequestProgressEventThrottle::flushProgressEvent): after the call, no progress event is throttled anymore
1658         (WebCore::XMLHttpRequestProgressEventThrottle::fired): after the call, no progress event is throttled anymore
1659         (WebCore::XMLHttpRequestProgressEventThrottle::hasEventToDispatch):
1660         (WebCore::XMLHttpRequestProgressEventThrottle::suspend):
1661         * xml/XMLHttpRequestProgressEventThrottle.h: introduced m_hasThrottledProgressEvent which stores whether a progress event is being throttled and m_computableLength which is used to initialize ProgressEvent computableLength
1662         * xml/XMLHttpRequestUpload.cpp:
1663         (WebCore::XMLHttpRequestUpload::XMLHttpRequestUpload):
1664         (WebCore::XMLHttpRequestUpload::dispatchProgressEvent):
1665         * xml/XMLHttpRequestUpload.h: introduced m_loaded, m_total and m_lengthComputable, similarly to XMLHttpRequestProgressEventThrottle
1666
1667 2014-01-10  Bear Travis  <betravis@adobe.com>
1668
1669         [CSS Shapes] Change parseBasicShape to return a CSSPrimitiveValue
1670         https://bugs.webkit.org/show_bug.cgi?id=126713
1671
1672         Reviewed by Dirk Schulze.
1673
1674         Avoid the duplicated code wrapping the CSSBasicShape in a CSSPrimitiveValue
1675         by having parseBasicShape return a CSSPrimitiveValue reference.
1676
1677         Refactoring, no new tests.
1678
1679         * css/CSSParser.cpp:
1680         (WebCore::CSSParser::parseShapeProperty):
1681         (WebCore::CSSParser::parseClipPath):
1682         (WebCore::CSSParser::parseBasicShape):
1683         * css/CSSParser.h:
1684
1685 2014-01-10  Piotr Grad  <p.grad@samsung.com>
1686
1687         Possible crash in ApplicationCache::removeResource.
1688         https://bugs.webkit.org/show_bug.cgi?id=126695
1689
1690         Reviewed by Alexey Proskuryakov.
1691
1692         No new tests.
1693
1694         Iterator variable was used after it was removed.
1695
1696         * loader/appcache/ApplicationCache.cpp:
1697         (WebCore::ApplicationCache::removeResource):
1698
1699 2014-01-10  Daniel Bates  <dabates@apple.com>
1700
1701         Another build fix for the Production Mac build following <http://trac.webkit.org/changeset/161638>
1702         (https://bugs.webkit.org/show_bug.cgi?id=126698)
1703
1704         Move the logic for appending the port-specific IDL files {Touch, TouchEvent, TouchList}.idl to the
1705         list of binding IDLs (BINDING_IDLS) before the definition of variables DOM_CLASSES and JS_DOM_HEADERS
1706         so that we generate the DOM and JS bindings for these IDLs.
1707
1708         * DerivedSources.make:
1709
1710 2014-01-10  Anders Carlsson  <andersca@apple.com>
1711
1712         Remove supportMultipleWindows setting
1713         https://bugs.webkit.org/show_bug.cgi?id=126772
1714
1715         Reviewed by Beth Dakin.
1716
1717         This setting was added in https://bugs.webkit.org/show_bug.cgi?id=99716 for the Chromium port
1718         and is unused by everyone else so get rid of it.
1719
1720         * loader/FrameLoader.cpp:
1721         (WebCore::createWindow):
1722         * page/ContextMenuController.cpp:
1723         (WebCore::openNewWindow):
1724         * page/Settings.in:
1725
1726 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
1727
1728         Remove the BlackBerry port from trunk
1729         https://bugs.webkit.org/show_bug.cgi?id=126715
1730
1731         Reviewed by Anders Carlsson.
1732
1733         * dom/TouchEvent.cpp:
1734         (WebCore::TouchEvent::TouchEvent):
1735         (WebCore::TouchEvent::initTouchEvent):
1736         * dom/TouchEvent.h:
1737         * dom/ViewportArguments.cpp:
1738         * dom/ViewportArguments.h:
1739         * history/HistoryItem.h:
1740         * loader/PingLoader.cpp:
1741         (WebCore::PingLoader::loadImage):
1742         (WebCore::PingLoader::sendPing):
1743         (WebCore::PingLoader::sendViolationReport):
1744         * loader/appcache/ApplicationCacheGroup.cpp:
1745         (WebCore::ApplicationCacheGroup::createResourceHandle):
1746         * loader/cache/CachedResource.cpp:
1747         (WebCore::CachedResource::load):
1748         * loader/icon/IconLoader.cpp:
1749         (WebCore::IconLoader::startLoading):
1750         * page/NavigatorBase.cpp:
1751         * page/Settings.cpp:
1752         * page/scrolling/ScrollingCoordinator.cpp:
1753         (WebCore::ScrollingCoordinator::create):
1754         * platform/Cursor.cpp:
1755         * platform/Cursor.h:
1756         (WebCore::Cursor::Cursor):
1757         * platform/DragData.h:
1758         * platform/DragImage.h:
1759         * plugins/PluginDatabase.cpp:
1760         (WebCore::PluginDatabase::defaultPluginDirectories):
1761         (WebCore::PluginDatabase::isPreferredPluginDirectory):
1762         * rendering/RenderLayerBacking.cpp:
1763         (WebCore::RenderLayerBacking::paintsIntoWindow):
1764         * rendering/RenderObject.cpp:
1765         (WebCore::RenderObject::shouldRespectImageOrientation):
1766         * testing/Internals.cpp:
1767         (WebCore::Internals::getCurrentCursorInfo):
1768         * workers/DefaultSharedWorkerRepository.cpp:
1769         (WebCore::SharedWorkerScriptLoader::load):
1770         * workers/Worker.cpp:
1771         (WebCore::Worker::create):
1772         * workers/WorkerGlobalScope.cpp:
1773         (WebCore::WorkerGlobalScope::importScripts):
1774         * workers/WorkerScriptLoader.cpp:
1775         (WebCore::WorkerScriptLoader::createResourceRequest):
1776         * workers/WorkerScriptLoader.h:
1777         * xml/XMLHttpRequest.cpp:
1778         (WebCore::XMLHttpRequest::createRequest):
1779
1780 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
1781
1782         Remove the BlackBerry port from trunk
1783         https://bugs.webkit.org/show_bug.cgi?id=126715
1784
1785         Reviewed by Anders Carlsson.
1786
1787         * Modules/navigatorcontentutils/NavigatorContentUtils.cpp:
1788         (WebCore::initProtocolHandlerWhitelist):
1789         * UseJSC.cmake:
1790         * bindings/generic/RuntimeEnabledFeatures.cpp:
1791         (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
1792         * bindings/js/GCController.cpp:
1793         (WebCore::GCController::GCController):
1794         (WebCore::GCController::garbageCollectSoon):
1795         * bindings/js/GCController.h:
1796
1797 2014-01-10  Daniel Bates  <dabates@apple.com>
1798
1799         Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
1800         (https://bugs.webkit.org/show_bug.cgi?id=126698)
1801
1802         Tell Xcode that the supported platforms for all WebKit targets are iOS and OS X.
1803
1804         * Configurations/Base.xcconfig:
1805
1806 2014-01-09  Andy Estes  <aestes@apple.com>
1807
1808         [iOS] Upstream iOS changes to MigrateHeaders.make
1809         https://bugs.webkit.org/show_bug.cgi?id=126731
1810
1811         Reviewed by David Kilzer.
1812
1813         * WebCore.xcodeproj/project.pbxproj: Mark an iOS-specific header at
1814         Private that will later be migrated by WebKit.
1815
1816 2014-01-10  Daniel Bates  <dabates@apple.com>
1817
1818         Fix the Production Mac build following <http://trac.webkit.org/changeset/161638>
1819         (https://bugs.webkit.org/show_bug.cgi?id=126698)
1820
1821         Substitute JAVASCRIPTCORE_PRIVATE_HEADERS_DIR_Production_ for JAVASCRIPTCORE_PRIVATE_HEADERS_Production_.
1822
1823         * Configurations/WebCore.xcconfig:
1824
1825 2014-01-10  Anders Carlsson  <andersca@apple.com>
1826
1827         Add a missing include.
1828
1829         * Modules/webdatabase/DatabaseManager.h:
1830
1831 2014-01-10  Anders Carlsson  <andersca@apple.com>
1832
1833         Use STL threading primitives in DatabaseDetails and DatabaseManager
1834         https://bugs.webkit.org/show_bug.cgi?id=126759
1835
1836         Reviewed by Geoffrey Garen.
1837
1838         * Modules/webdatabase/DatabaseDetails.h:
1839         (WebCore::DatabaseDetails::DatabaseDetails):
1840         (WebCore::DatabaseDetails::threadID):
1841         * Modules/webdatabase/DatabaseManager.cpp:
1842         (WebCore::DatabaseManager::existingDatabaseContextFor):
1843         (WebCore::DatabaseManager::registerDatabaseContext):
1844         (WebCore::DatabaseManager::unregisterDatabaseContext):
1845         (WebCore::DatabaseManager::didConstructDatabaseContext):
1846         (WebCore::DatabaseManager::didDestructDatabaseContext):
1847         (WebCore::DatabaseManager::addProposedDatabase):
1848         (WebCore::DatabaseManager::removeProposedDatabase):
1849         (WebCore::DatabaseManager::fullPathForDatabase):
1850         (WebCore::DatabaseManager::detailsForNameAndOrigin):
1851         * Modules/webdatabase/DatabaseManager.h:
1852
1853 2014-01-10  Commit Queue  <commit-queue@webkit.org>
1854
1855         Unreviewed, rolling out r161629.
1856         http://trac.webkit.org/changeset/161629
1857         https://bugs.webkit.org/show_bug.cgi?id=126762
1858
1859         Fails svg/custom/conditional-processing-2.html (Requested by
1860         ap on #webkit).
1861
1862         * svg/SVGSwitchElement.cpp:
1863         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
1864         * svg/SVGTests.cpp:
1865         (WebCore::SVGTests::hasExtension):
1866         (WebCore::SVGTests::isValid):
1867
1868 2014-01-10  ChangSeok Oh  <changseok.oh@collabora.com>
1869
1870         Unreviewed build fix since r161589.
1871
1872         The changeset causes a compile failure with --no-svg.
1873
1874         * platform/graphics/FontFastPath.cpp:
1875         (WebCore::Font::drawGlyphBuffer):
1876
1877 2014-01-10  Przemyslaw Szymanski  <p.szymanski3@samsung.com>
1878
1879         [WebGL] Removing unnecessary pointer checks
1880         https://bugs.webkit.org/show_bug.cgi?id=124046
1881
1882         Reviewed by Brent Fulgham.
1883
1884         We do not need to check for a null array three times in
1885         the same call. Let's just do it once!
1886
1887         No new tests. Covered by existing ones.
1888
1889         * html/canvas/WebGLBuffer.cpp:
1890         (WebCore::WebGLBuffer::associateBufferData):
1891
1892 2014-01-10  Daniel Bates  <dabates@apple.com>
1893
1894         Speculative build fix for Windows following <http://trac.webkit.org/changeset/161638>
1895         (https://bugs.webkit.org/show_bug.cgi?id=126698)
1896
1897         Reviewed by David Kilzer.
1898
1899         * bindings/scripts/preprocessor.pm:
1900         (applyPreprocessor):
1901
1902 2014-01-10  Przemyslaw Szymanski  <p.szymanski3@samsung.com>
1903
1904         [WebGL] Wrong condition order in the if statement
1905         https://bugs.webkit.org/show_bug.cgi?id=125000
1906
1907         Reviewed by Brent Fulgham.
1908
1909         We should only pay the cost of string comparison once. The
1910         current logic requires a string comparison every time we
1911         pass through the function. Instead, by reordering the statements
1912         we can short-circuit through the boolean test after the initial
1913         setup is complete.
1914
1915         No new tests. No behaviour changes.
1916
1917         * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
1918         (WebCore::Extensions3DOpenGLES::supportsExtension):
1919
1920 2014-01-10  Anders Carlsson  <andersca@apple.com>
1921
1922         CTTE in AudioContext::AutoLocker
1923         https://bugs.webkit.org/show_bug.cgi?id=126758
1924
1925         Reviewed by Antti Koivisto.
1926
1927         * Modules/webaudio/AudioBasicInspectorNode.cpp:
1928         (WebCore::AudioBasicInspectorNode::connect):
1929         (WebCore::AudioBasicInspectorNode::disconnect):
1930         * Modules/webaudio/AudioBufferSourceNode.cpp:
1931         (WebCore::AudioBufferSourceNode::setBuffer):
1932         * Modules/webaudio/AudioContext.cpp:
1933         (WebCore::AudioContext::refNode):
1934         (WebCore::AudioContext::deleteMarkedNodes):
1935         (WebCore::AudioContext::removeMarkedSummingJunction):
1936         * Modules/webaudio/AudioContext.h:
1937         (WebCore::AudioContext::AutoLocker::AutoLocker):
1938         (WebCore::AudioContext::AutoLocker::~AutoLocker):
1939         * Modules/webaudio/AudioNode.cpp:
1940         (WebCore::AudioNode::connect):
1941         (WebCore::AudioNode::disconnect):
1942         (WebCore::AudioNode::setChannelCount):
1943         (WebCore::AudioNode::setChannelCountMode):
1944         (WebCore::AudioNode::setChannelInterpretation):
1945         (WebCore::AudioNode::enableOutputsIfNecessary):
1946         * Modules/webaudio/MediaElementAudioSourceNode.cpp:
1947         (WebCore::MediaElementAudioSourceNode::setFormat):
1948         * Modules/webaudio/WaveShaperNode.cpp:
1949         (WebCore::WaveShaperNode::setOversample):
1950
1951 2014-01-10  Antti Koivisto  <antti@apple.com>
1952
1953         Use element iterators more
1954         https://bugs.webkit.org/show_bug.cgi?id=126756
1955
1956         Reviewed by Anders Carlsson.
1957
1958         * dom/VisitedLinkState.cpp:
1959         (WebCore::VisitedLinkState::invalidateStyleForAllLinks):
1960         (WebCore::VisitedLinkState::invalidateStyleForLink):
1961         * html/HTMLMeterElement.cpp:
1962         (WebCore::HTMLMeterElement::renderMeter):
1963         * html/HTMLProgressElement.cpp:
1964         (WebCore::HTMLProgressElement::renderProgress):
1965         * html/shadow/ContentDistributor.cpp:
1966         (WebCore::ContentDistributor::ensureInsertionPointList):
1967         * style/StyleResolveTree.cpp:
1968
1969 2014-01-10  Daniel Bates  <dabates@apple.com>
1970
1971         Attempt to fix the iOS build after <http://trac.webkit.org/changeset/161589>
1972         (https://bugs.webkit.org/show_bug.cgi?id=126654)
1973
1974         * platform/audio/ios/AudioSessionIOS.mm: Import header PassOwnPtr.h so that we can use adoptPtr().
1975
1976 2014-01-10  Daniel Bates  <dabates@apple.com>
1977
1978         Attempt to fix the build after <http://trac.webkit.org/changeset/161638>
1979         (https://bugs.webkit.org/show_bug.cgi?id=126698)
1980
1981         Substitute tab characters for space characters.
1982
1983         * DerivedSources.make:
1984
1985 2014-01-10  Anders Carlsson  <andersca@apple.com>
1986
1987         DOMWindow::showModalDialog should use std::function
1988         https://bugs.webkit.org/show_bug.cgi?id=126753
1989
1990         Reviewed by Antti Koivisto.
1991
1992         * bindings/js/JSDOMWindowCustom.cpp:
1993         (WebCore::DialogHandler::dialogCreated):
1994         (WebCore::JSDOMWindow::showModalDialog):
1995         * page/DOMWindow.cpp:
1996         (WebCore::DOMWindow::createWindow):
1997         (WebCore::DOMWindow::showModalDialog):
1998         * page/DOMWindow.h:
1999
2000 2014-01-10  Daniel Bates  <dabates@apple.com>
2001
2002         [iOS] Upstream WebCore and Tools miscellaneous changes
2003         https://bugs.webkit.org/show_bug.cgi?id=126698
2004
2005         Reviewed by David Kilzer.
2006
2007         * Configurations/Base.xcconfig:
2008         * Configurations/WebCore.xcconfig:
2009         * Configurations/WebCoreTestSupport.xcconfig:
2010         * Configurations/iOS.xcconfig: Added.
2011         * DerivedSources.make:
2012         * English.lproj/Localizable.strings:
2013         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp: Copied from Source/WebCore/editing/TextAffinity.h.
2014         (WebCore::stringForPlaybackTargetAvailability):
2015         (WebCore::WebKitPlaybackTargetAvailabilityEvent::WebKitPlaybackTargetAvailabilityEvent):
2016         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h: Added.
2017         (WebCore::WebKitPlaybackTargetAvailabilityEventInit::WebKitPlaybackTargetAvailabilityEventInit):
2018         (WebCore::WebKitPlaybackTargetAvailabilityEvent::~WebKitPlaybackTargetAvailabilityEvent):
2019         (WebCore::WebKitPlaybackTargetAvailabilityEvent::create):
2020         (WebCore::WebKitPlaybackTargetAvailabilityEvent::availability):
2021         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.idl: Copied from Source/WebCore/editing/DeleteButton.h.
2022         * Modules/geolocation/Geolocation.cpp:
2023         (WebCore::Geolocation::Geolocation):
2024         (WebCore::Geolocation::canSuspend):
2025         (WebCore::Geolocation::suspend):
2026         (WebCore::Geolocation::resume):
2027         (WebCore::Geolocation::resumeTimerFired):
2028         (WebCore::Geolocation::resetAllGeolocationPermission):
2029         (WebCore::Geolocation::stop):
2030         (WebCore::Geolocation::setIsAllowed):
2031         (WebCore::Geolocation::positionChanged):
2032         (WebCore::Geolocation::setError):
2033         * Modules/geolocation/Geolocation.h:
2034         * Modules/geolocation/NavigatorGeolocation.cpp:
2035         (WebCore::NavigatorGeolocation::resetAllGeolocationPermission):
2036         * Modules/geolocation/NavigatorGeolocation.h:
2037         * Modules/speech/SpeechSynthesis.cpp:
2038         (WebCore::SpeechSynthesis::SpeechSynthesis):
2039         (WebCore::SpeechSynthesis::speak):
2040         * Modules/speech/SpeechSynthesis.h:
2041         (WebCore::SpeechSynthesis::userGestureRequiredForSpeechStart):
2042         (WebCore::SpeechSynthesis::removeBehaviorRestriction):
2043         * Modules/webaudio/AudioContext.cpp:
2044         * Modules/webaudio/AudioContext.h:
2045         * Modules/webaudio/AudioScheduledSourceNode.cpp:
2046         * Modules/webdatabase/Database.cpp:
2047         * Modules/webdatabase/DatabaseBackendBase.cpp:
2048         (WebCore::DatabaseBackendBase::performOpenAndVerify):
2049         (WebCore::DatabaseBackendBase::incrementalVacuumIfNeeded):
2050         * Modules/webdatabase/DatabaseContext.cpp:
2051         (WebCore::DatabaseContext::DatabaseContext):
2052         (WebCore::DatabaseContext::databaseThread):
2053         (WebCore::DatabaseContext::setPaused):
2054         * Modules/webdatabase/DatabaseContext.h:
2055         * Modules/webdatabase/DatabaseManagerClient.h:
2056         * Modules/webdatabase/DatabaseTask.cpp:
2057         (WebCore::DatabaseTask::performTask):
2058         (WebCore::Database::DatabaseTransactionTask::shouldPerformWhilePaused):
2059         * Modules/webdatabase/DatabaseTask.h:
2060         * Modules/webdatabase/DatabaseThread.cpp:
2061         (WebCore::DatabaseThread::DatabaseThread):
2062         (WebCore::DatabaseThread::requestTermination):
2063         (WebCore::DatabaseUnpauseTask::create):
2064         (WebCore::DatabaseUnpauseTask::shouldPerformWhilePaused):
2065         (WebCore::DatabaseUnpauseTask::DatabaseUnpauseTask):
2066         (WebCore::DatabaseUnpauseTask::doPerformTask):
2067         (WebCore::DatabaseUnpauseTask::debugTaskName):
2068         (WebCore::DatabaseThread::setPaused):
2069         (WebCore::DatabaseThread::handlePausedQueue):
2070         (WebCore::DatabaseThread::databaseThread):
2071         * Modules/webdatabase/DatabaseThread.h:
2072         * Modules/webdatabase/DatabaseTracker.cpp:
2073         (WebCore::DatabaseTracker::setQuota):
2074         (WebCore::DatabaseTracker::deleteOrigin):
2075         (WebCore::DatabaseTracker::deleteDatabase):
2076         (WebCore::DatabaseTracker::deleteDatabaseFile):
2077         (WebCore::DatabaseTracker::removeDeletedOpenedDatabases):
2078         (WebCore::isZeroByteFile):
2079         (WebCore::DatabaseTracker::deleteDatabaseFileIfEmpty):
2080         (WebCore::DatabaseTracker::openDatabaseMutex):
2081         (WebCore::DatabaseTracker::emptyDatabaseFilesRemovalTaskWillBeScheduled):
2082         (WebCore::DatabaseTracker::emptyDatabaseFilesRemovalTaskDidFinish):
2083         (WebCore::DatabaseTracker::setDatabasesPaused):
2084         * Modules/webdatabase/DatabaseTracker.h:
2085         * Modules/webdatabase/SQLTransactionBackend.cpp:
2086         (WebCore::SQLTransactionBackend::shouldPerformWhilePaused):
2087         * Modules/webdatabase/SQLTransactionBackend.h:
2088         * Resources/DictationPhraseWithAlternativesDot.png: Added.
2089         * Resources/DictationPhraseWithAlternativesDot@2x.png: Added.
2090         * Resources/SpellingDot.png: Added.
2091         * Resources/SpellingDot@2x.png: Added.
2092         * Resources/decrementArrow.tiff: Added.
2093         * Resources/hScrollControl_left.png: Added.
2094         * Resources/hScrollControl_middle.png: Added.
2095         * Resources/hScrollControl_right.png: Added.
2096         * Resources/incrementArrow.tiff: Added.
2097         * Resources/markedLeft.png: Added.
2098         * Resources/markedMiddle.png: Added.
2099         * Resources/markedRight.png: Added.
2100         * Resources/vScrollControl_bottom.png: Added.
2101         * Resources/vScrollControl_middle.png: Added.
2102         * Resources/vScrollControl_top.png: Added.
2103         * WebCore.xcodeproj/project.pbxproj:
2104         * bindings/js/GCController.cpp:
2105         (WebCore::GCController::garbageCollectNow):
2106         (WebCore::GCController::releaseExecutableMemory):
2107         * bindings/js/GCController.h:
2108         * bindings/js/JSCallbackData.h:
2109         (WebCore::JSCallbackData::~JSCallbackData):
2110         * bindings/js/JSDOMWindowBase.cpp:
2111         (WebCore::JSDOMWindowBase::supportsProfiling):
2112         (WebCore::JSDOMWindowBase::shouldInterruptScriptBeforeTimeout):
2113         (WebCore::JSDOMWindowBase::commonVM):
2114         (WebCore::JSDOMWindowBase::commonVMExists):
2115         (WebCore::JSDOMWindowBase::commonVMInternal):
2116         * bindings/js/JSDOMWindowCustom.cpp:
2117         (WebCore::JSDOMWindow::touch):
2118         (WebCore::JSDOMWindow::touchList):
2119         * bindings/js/JSDeviceOrientationEventCustom.cpp:
2120         (WebCore::JSDeviceOrientationEvent::webkitCompassHeading):
2121         (WebCore::JSDeviceOrientationEvent::webkitCompassAccuracy):
2122         (WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent):
2123         * bindings/js/JSMainThreadExecState.h:
2124         * bindings/js/JSTouchCustom.cpp:
2125         * bindings/js/JSTouchListCustom.cpp:
2126         * bindings/js/PageScriptDebugServer.cpp:
2127         (WebCore::PageScriptDebugServer::didContinue):
2128         * bindings/js/ScriptController.cpp:
2129         (WebCore::ScriptController::initializeThreading):
2130         * bindings/js/ScriptDebugServer.cpp:
2131         (WebCore::ScriptDebugServer::handlePause):
2132         * bindings/js/ios/TouchConstructors.cpp: Added.
2133         * bindings/objc/DOM.mm:
2134         (WebCore::wkQuadFromFloatQuad):
2135         (WebCore::kit):
2136         (WebCore::min4):
2137         (WebCore::max4):
2138         (WebCore::emptyQuad):
2139         (-[WKQuadObject initWithQuad:]):
2140         (-[WKQuadObject quad]):
2141         (-[WKQuadObject boundingBox]):
2142         (-[DOMNode boundingBox]):
2143         (-[DOMNode absoluteQuad]):
2144         (-[DOMNode absoluteQuadAndInsideFixedPosition:]):
2145         (-[DOMNode boundingBoxUsingTransforms]):
2146         (-[DOMNode lineBoxQuads]):
2147         (-[DOMNode _linkElement]):
2148         (-[DOMNode hrefURL]):
2149         (-[DOMNode hrefTarget]):
2150         (-[DOMNode hrefFrame]):
2151         (-[DOMNode hrefLabel]):
2152         (-[DOMNode hrefTitle]):
2153         (-[DOMNode boundingFrame]):
2154         (-[DOMNode innerFrameQuad]):
2155         (-[DOMNode computedFontSize]):
2156         (-[DOMNode nextFocusNode]):
2157         (-[DOMNode previousFocusNode]):
2158         (-[DOMRange boundingBox]):
2159         (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]):
2160         (-[DOMElement _font]):
2161         (-[DOMHTMLLinkElement _mediaQueryMatchesForOrientation:]):
2162         (-[DOMHTMLLinkElement _mediaQueryMatches]):
2163         * bindings/objc/DOMEvents.h:
2164         * bindings/objc/DOMEvents.mm:
2165         (kitClass):
2166         * bindings/objc/DOMExtensions.h:
2167         * bindings/objc/DOMHTML.mm:
2168         (-[DOMHTMLElement scrollYOffset]):
2169         (-[DOMHTMLElement setScrollXOffset:scrollYOffset:]):
2170         (-[DOMHTMLElement setScrollXOffset:scrollYOffset:adjustForIOSCaret:]):
2171         (-[DOMHTMLElement absolutePosition::::]):
2172         (-[DOMHTMLInputElement _autocapitalizeType]):
2173         (-[DOMHTMLTextAreaElement _autocapitalizeType]):
2174         (-[DOMHTMLInputElement setValueWithChangeEvent:]):
2175         (-[DOMHTMLInputElement setValueAsNumberWithChangeEvent:]):
2176         * bindings/objc/DOMInternal.h:
2177         * bindings/objc/DOMInternal.mm:
2178         (wrapperCacheLock):
2179         (getDOMWrapper):
2180         (addDOMWrapper):
2181         (removeDOMWrapper):
2182         * bindings/objc/DOMPrivate.h:
2183         * bindings/objc/DOMUIKitExtensions.h: Added.
2184         * bindings/objc/DOMUIKitExtensions.mm: Added.
2185         * bindings/objc/PublicDOMInterfaces.h:
2186         * bindings/scripts/CodeGeneratorJS.pm:
2187         (GenerateHeaderContentHeader):
2188         (GenerateImplementationContentHeader):
2189         (GenerateHeader):
2190         (GenerateImplementation):
2191         (GenerateCallbackImplementation):
2192         * bindings/scripts/CodeGeneratorObjC.pm:
2193         (ReadPublicInterfaces):
2194         (GetClassName):
2195         (IsCoreFoundationType):
2196         (GetObjCType):
2197         (AddIncludesForType):
2198         (GenerateHeader):
2199         (GenerateImplementation):
2200         (WriteData):
2201         * bindings/scripts/IDLAttributes.txt:
2202         * bindings/scripts/preprocessor.pm:
2203         (applyPreprocessor):
2204         * bridge/objc/objc_class.mm:
2205         (JSC::Bindings::ObjcClass::fieldNamed):
2206         * bridge/objc/objc_instance.mm:
2207         * config.h:
2208         * dom/Document.cpp:
2209         (WebCore::Document::addAutoSizingNode):
2210         * dom/Document.h:
2211         * dom/Document.idl:
2212         * dom/ios/TouchEvents.cpp: Added.
2213         * editing/ApplyStyleCommand.cpp:
2214         (WebCore::ApplyStyleCommand::applyBlockStyle):
2215         * editing/CompositeEditCommand.cpp:
2216         (WebCore::EditCommandComposition::unapply):
2217         (WebCore::CompositeEditCommand::apply):
2218         (WebCore::CompositeEditCommand::inputText):
2219         (WebCore::CompositeEditCommand::replaceTextInNodePreservingMarkers):
2220         (WebCore::CompositeEditCommand::moveParagraphs):
2221         * editing/CompositeEditCommand.h:
2222         * editing/DeleteButton.h:
2223         * editing/DeleteButtonController.cpp:
2224         (WebCore::DeleteButtonController::enable):
2225         (WebCore::DeleteButtonController::disable):
2226         * editing/DeleteSelectionCommand.cpp:
2227         (WebCore::DeleteSelectionCommand::doApply):
2228         * editing/DeleteSelectionCommand.h:
2229         * editing/EditAction.h:
2230         * editing/EditCommand.h:
2231         (WebCore::EditCommand::isInsertTextCommand):
2232         * editing/EditingStyle.cpp:
2233         * editing/Editor.cpp:
2234         (WebCore::ClearTextCommand::ClearTextCommand):
2235         (WebCore::ClearTextCommand::editingAction):
2236         (WebCore::ClearTextCommand::CreateAndApply):
2237         (WebCore::Editor::handleTextEvent):
2238         (WebCore::Editor::clearText):
2239         (WebCore::Editor::insertDictationPhrases):
2240         (WebCore::Editor::setDictationPhrasesAsChildOfElement):
2241         (WebCore::Editor::confirmMarkedText):
2242         (WebCore::Editor::setTextAsChildOfElement):
2243         (WebCore::Editor::notifyComponentsOnChangedSelection):
2244         (WebCore::Editor::ensureLastEditCommandHasCurrentSelectionIfOpenForMoreTyping):
2245         (WebCore::Editor::copy):
2246         (WebCore::Editor::setBaseWritingDirection):
2247         (WebCore::Editor::setComposition):
2248         (WebCore::Editor::showSpellingGuessPanel):
2249         (WebCore::Editor::markMisspellingsAfterTypingToWord):
2250         (WebCore::Editor::markMisspellingsOrBadGrammar):
2251         (WebCore::Editor::changeBackToReplacedString):
2252         (WebCore::Editor::updateMarkersForWordsAffectedByEditing):
2253         (WebCore::Editor::setIgnoreCompositionSelectionChange):
2254         (WebCore::Editor::changeSelectionAfterCommand):
2255         (WebCore::Editor::shouldChangeSelection):
2256         (WebCore::Editor::respondToChangedSelection):
2257         (WebCore::Editor::resolveTextCheckingTypeMask):
2258         * editing/Editor.h:
2259         * editing/EditorCommand.cpp:
2260         (WebCore::executeClearText):
2261         (WebCore::enabledCopy):
2262         (WebCore::enabledCut):
2263         (WebCore::enabledClearText):
2264         (WebCore::createCommandMap):
2265         * editing/FrameSelection.cpp:
2266         (WebCore::FrameSelection::FrameSelection):
2267         (WebCore::FrameSelection::setSelection):
2268         (WebCore::FrameSelection::modifyExtendingRight):
2269         (WebCore::FrameSelection::modifyExtendingForward):
2270         (WebCore::FrameSelection::modifyMovingRight):
2271         (WebCore::FrameSelection::modifyMovingForward):
2272         (WebCore::FrameSelection::modifyExtendingLeft):
2273         (WebCore::FrameSelection::modifyExtendingBackward):
2274         (WebCore::FrameSelection::modifyMovingLeft):
2275         (WebCore::FrameSelection::modifyMovingBackward):
2276         (WebCore::FrameSelection::setSelectedRange):
2277         (WebCore::FrameSelection::focusedOrActiveStateChanged):
2278         (WebCore::FrameSelection::updateAppearance):
2279         (WebCore::FrameSelection::shouldDeleteSelection):
2280         (WebCore::FrameSelection::revealSelection):
2281         (WebCore::FrameSelection::setSelectionFromNone):
2282         (WebCore::FrameSelection::shouldChangeSelection):
2283         (WebCore::FrameSelection::expandSelectionToElementContainingCaretSelection):
2284         (WebCore::FrameSelection::elementRangeContainingCaretSelection):
2285         (WebCore::FrameSelection::expandSelectionToWordContainingCaretSelection):
2286         (WebCore::FrameSelection::wordRangeContainingCaretSelection):
2287         (WebCore::FrameSelection::expandSelectionToStartOfWordContainingCaretSelection):
2288         (WebCore::FrameSelection::characterInRelationToCaretSelection):
2289         (WebCore::FrameSelection::characterBeforeCaretSelection):
2290         (WebCore::FrameSelection::characterAfterCaretSelection):
2291         (WebCore::FrameSelection::wordOffsetInRange):
2292         (WebCore::FrameSelection::spaceFollowsWordInRange):
2293         (WebCore::FrameSelection::selectionAtDocumentStart):
2294         (WebCore::FrameSelection::selectionAtSentenceStart):
2295         (WebCore::FrameSelection::selectionAtWordStart):
2296         (WebCore::FrameSelection::rangeByMovingCurrentSelection):
2297         (WebCore::FrameSelection::rangeByExtendingCurrentSelection):
2298         (WebCore::FrameSelection::selectRangeOnElement):
2299         (WebCore::FrameSelection::wordSelectionContainingCaretSelection):
2300         (WebCore::FrameSelection::actualSelectionAtSentenceStart):
2301         (WebCore::FrameSelection::rangeByAlteringCurrentSelection):
2302         (WebCore::FrameSelection::clearCurrentSelection):
2303         (WebCore::FrameSelection::setCaretBlinks):
2304         (WebCore::FrameSelection::setCaretColor):
2305         * editing/FrameSelection.h:
2306         (WebCore::FrameSelection::suppressCloseTyping):
2307         (WebCore::FrameSelection::restoreCloseTyping):
2308         (WebCore::FrameSelection::setUpdateAppearanceEnabled):
2309         (WebCore::FrameSelection::suppressScrolling):
2310         (WebCore::FrameSelection::restoreScrolling):
2311         * editing/InsertIntoTextNodeCommand.cpp:
2312         (WebCore::InsertIntoTextNodeCommand::doReapply):
2313         * editing/InsertIntoTextNodeCommand.h:
2314         * editing/InsertTextCommand.h:
2315         * editing/ReplaceSelectionCommand.cpp:
2316         (WebCore::ReplaceSelectionCommand::doApply):
2317         * editing/TextAffinity.h:
2318         * editing/TextCheckingHelper.cpp:
2319         * editing/TextGranularity.h:
2320         * editing/TextIterator.cpp:
2321         (WebCore::isRendererReplacedElement):
2322         * editing/TypingCommand.cpp:
2323         (WebCore::TypingCommand::ensureLastEditCommandHasCurrentSelectionIfOpenForMoreTyping):
2324         (WebCore::TypingCommand::markMisspellingsAfterTyping):
2325         (WebCore::TypingCommand::deleteKeyPressed):
2326         (WebCore::TypingCommand::forwardDeleteKeyPressed):
2327         (WebCore::FriendlyEditCommand::setEndingSelection):
2328         (WebCore::TypingCommand::setEndingSelectionOnLastInsertCommand):
2329         * editing/TypingCommand.h:
2330         * editing/VisiblePosition.h:
2331         (WebCore::operator<):
2332         (WebCore::operator>):
2333         (WebCore::operator<=):
2334         (WebCore::operator>=):
2335         * editing/VisibleSelection.cpp:
2336         (WebCore::VisibleSelection::setStartAndEndFromBaseAndExtentRespectingGranularity):
2337         (WebCore::VisibleSelection::adjustSelectionToAvoidCrossingEditingBoundaries):
2338         * editing/VisibleUnits.cpp:
2339         (WebCore::previousBoundary):
2340         (WebCore::nextBoundary):
2341         (WebCore::startOfDocument):
2342         (WebCore::endOfDocument):
2343         (WebCore::directionIsDownstream):
2344         (WebCore::atBoundaryOfGranularity):
2345         (WebCore::withinTextUnitOfGranularity):
2346         (WebCore::nextCharacterBoundaryInDirection):
2347         (WebCore::nextWordBoundaryInDirection):
2348         (WebCore::nextSentenceBoundaryInDirection):
2349         (WebCore::nextLineBoundaryInDirection):
2350         (WebCore::nextParagraphBoundaryInDirection):
2351         (WebCore::nextDocumentBoundaryInDirection):
2352         (WebCore::positionOfNextBoundaryOfGranularity):
2353         (WebCore::enclosingTextUnitOfGranularity):
2354         (WebCore::distanceBetweenPositions):
2355         (WebCore::wordRangeFromPosition):
2356         (WebCore::closestWordBoundaryForPosition):
2357         * editing/VisibleUnits.h:
2358         * editing/ios/DictationCommandIOS.cpp: Added.
2359         * editing/ios/DictationCommandIOS.h: Added.
2360         (WebCore::DictationCommandIOS::create):
2361         (WebCore::DictationCommandIOS::editingAction):
2362         * editing/mac/FrameSelectionMac.mm:
2363         (WebCore::FrameSelection::notifyAccessibilityForSelectionChange):
2364         * fileapi/AsyncFileStream.cpp:
2365         * generate-export-file: Added.
2366         * inspector/InspectorCounters.h:
2367         * inspector/InspectorFrontendHost.h:
2368         * make-export-file-generator:
2369         * plugins/PluginPackage.h:
2370         * plugins/PluginViewBase.h:
2371         (WebCore::PluginViewBase::willProvidePluginLayer):
2372         (WebCore::PluginViewBase::attachPluginLayer):
2373         (WebCore::PluginViewBase::detachPluginLayer):
2374         * style/StyleResolveForDocument.cpp:
2375         (WebCore::Style::resolveForDocument):
2376         * style/StyleResolveTree.cpp:
2377         (WebCore::Style::elementImplicitVisibility):
2378         * testing/Internals.cpp:
2379         (WebCore::Internals::getCurrentCursorInfo):
2380         (WebCore::Internals::isSelectPopupVisible):
2381         * workers/WorkerThread.cpp:
2382         (WebCore::WorkerThread::workerThread):
2383
2384 2014-01-10  Daniel Bates  <dabates@apple.com>
2385
2386         Fix the iOS build after <http://trac.webkit.org/changeset/161589>
2387         (https://bugs.webkit.org/show_bug.cgi?id=126654)
2388
2389         * platform/graphics/ios/MediaPlayerPrivateIOS.h:
2390         (WebCore::MediaPlayerPrivateIOS::engineDescription): Adding missing return keyword.
2391
2392 2014-01-10  Andrei Bucur  <abucur@adobe.com>
2393
2394         [CSS Regions] Remove unused CSSParser::parseFlowThread
2395         https://bugs.webkit.org/show_bug.cgi?id=126749
2396
2397         Reviewed by Antti Koivisto.
2398
2399         There are two versions of CSSParser::parseFlowThread. Remove the unused one:
2400         bool parseFlowThread(const String& flowName);
2401
2402         Tests: No tests, code cleanup.
2403
2404         * css/CSSParser.cpp:
2405         * css/CSSParser.h:
2406
2407 2014-01-10  Alex Christensen  <achristensen@webkit.org>
2408
2409         [WinCairo] Build fix after r161589.
2410         https://bugs.webkit.org/show_bug.cgi?id=126747
2411
2412         Reviewed by Anders Carlsson.
2413
2414         * platform/network/ResourceHandle.cpp:
2415         Include NotImplemented.h for all platforms.
2416
2417 2014-01-10  Anders Carlsson  <andersca@apple.com>
2418
2419         Convert some for loops over to range-based for
2420         https://bugs.webkit.org/show_bug.cgi?id=126752
2421
2422         Reviewed by Antti Koivisto.
2423
2424         * inspector/InspectorApplicationCacheAgent.cpp:
2425         (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
2426         * loader/appcache/ApplicationCache.cpp:
2427         (WebCore::ApplicationCache::clearStorageID):
2428         * loader/appcache/ApplicationCacheGroup.cpp:
2429         (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
2430         (WebCore::ApplicationCacheGroup::clearStorageID):
2431         * loader/appcache/ApplicationCacheHost.cpp:
2432         (WebCore::ApplicationCacheHost::fillResourceList):
2433         * loader/appcache/ApplicationCacheResource.cpp:
2434         (WebCore::ApplicationCacheResource::estimatedSizeInStorage):
2435         * loader/appcache/ApplicationCacheStorage.cpp:
2436         (WebCore::ApplicationCacheStorage::cacheGroupForURL):
2437         * loader/archive/ArchiveFactory.cpp:
2438         (WebCore::ArchiveFactory::registerKnownArchiveMIMETypes):
2439         * page/animation/AnimationController.cpp:
2440         (WebCore::AnimationControllerPrivate::styleAvailable):
2441         (WebCore::AnimationControllerPrivate::startTimeResponse):
2442
2443 2014-01-10  Anders Carlsson  <andersca@apple.com>
2444
2445         Tighten up two functions in the inspector code
2446         https://bugs.webkit.org/show_bug.cgi?id=126751
2447
2448         Reviewed by Antti Koivisto.
2449
2450         * inspector/InspectorInstrumentation.cpp:
2451         (WebCore::InspectorInstrumentation::frameStartedLoadingImpl):
2452         (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl):
2453         * inspector/InspectorInstrumentation.h:
2454         (WebCore::InspectorInstrumentation::frameStartedLoading):
2455         (WebCore::InspectorInstrumentation::frameStoppedLoading):
2456         * inspector/InspectorPageAgent.cpp:
2457         (WebCore::InspectorPageAgent::frameStartedLoading):
2458         (WebCore::InspectorPageAgent::frameStoppedLoading):
2459         * inspector/InspectorPageAgent.h:
2460
2461 2014-01-10  Antti Koivisto  <antti@apple.com>
2462
2463         Crash when mutating SVG text with transform
2464         https://bugs.webkit.org/show_bug.cgi?id=126744
2465
2466         Reviewed by Dirk Schulze.
2467
2468         Test: svg/custom/mutation-text-transform-crash.html
2469         
2470         Text-transform property triggers subtreeTextDidChange when an SVG text renderer is
2471         being added to the render tree. The function assumes the child is already fully in the tree
2472         but in this case we are still in middle of adding it.
2473
2474         * rendering/svg/RenderSVGText.cpp:
2475         (WebCore::RenderSVGText::subtreeTextDidChange):
2476         
2477             Bail out if the changed RenderSVGInlineText can't be found from m_layoutAttributes.
2478             This means that subtreeChildWasAdded hasn't been invoked yet for it and there is nothing
2479             to update. The required updates will happen in subtreeChildWasAdded.
2480
2481 2014-01-10  Frédéric Wang  <fred.wang@free.fr>
2482
2483         [SVG] Accept HTML and MathML namespaces as valid requiredExtensions
2484         https://bugs.webkit.org/show_bug.cgi?id=88188
2485
2486         Reviewed by Dirk Schulze.
2487
2488         When HTML and MathML are used as foreign objects of an SVG image, it is
2489         important for Web authors to be able to specify a fallback content for
2490         SVG-only readers or browsers without MathML support. We rely on the
2491         requiredExtensions for that purpose and we use the XHTML/MathML
2492         namespaces as suggested in SVG Tiny 1.2 and implemented in Gecko.
2493
2494         Tests: svg/custom/conditional-processing-1.svg
2495                svg/custom/conditional-processing-2.html
2496                svg/dom/SVGTests.html
2497
2498         * svg/SVGSwitchElement.cpp: Remove an incorrect FIXME comment and replace it with a reference to bug 74749.
2499         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
2500         * svg/SVGTests.cpp: Check if the list of required extensions contains only the XHTML/MathML namespaces.
2501         (WebCore::SVGTests::hasExtension):
2502         (WebCore::SVGTests::isValid):
2503
2504 2014-01-10  Mihai Tica  <mitica@adobe.com>
2505
2506         Add support for blendmode to Core Animation layer.
2507         Patch by Rik Cabanier, Dean Jackson and Mihai Tica.
2508
2509         https://bugs.webkit.org/show_bug.cgi?id=99200
2510
2511         Reviewed by Dirk Schulze.
2512
2513         Tests: css3/compositing/blend-mode-layers.html
2514                css3/compositing/blend-mode-overflow.html
2515                css3/compositing/blend-mode-reflection.html
2516                css3/compositing/blend-mode-should-not-have-compositing-layer.html
2517                css3/compositing/blend-mode-simple.html
2518
2519         * WebCore.exp.in: export PlatformCALayer::setBlendMode for WebKit::PlatformCALayerRemote
2520         * WebCore.xcodeproj/project.pbxproj: Add PlatformCAFiltersMac.h
2521         * platform/graphics/GraphicsLayer.cpp: add blendMode member
2522         (WebCore::GraphicsLayer::GraphicsLayer):
2523         * platform/graphics/GraphicsLayer.h:
2524         (WebCore::GraphicsLayer::blendMode):
2525         (WebCore::GraphicsLayer::setBlendMode):
2526         * platform/graphics/ca/GraphicsLayerCA.cpp:
2527         (WebCore::GraphicsLayerCA::setBlendMode):
2528         (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): add call to updateBlendMode()
2529         (WebCore::GraphicsLayerCA::updateBlendMode):
2530         * platform/graphics/ca/GraphicsLayerCA.h:
2531         * platform/graphics/ca/PlatformCAFilters.h:
2532         * platform/graphics/ca/PlatformCALayer.h:
2533         * platform/graphics/ca/mac/PlatformCAFiltersMac.h: Added.
2534         * platform/graphics/ca/mac/PlatformCAFiltersMac.mm:
2535         (PlatformCAFilters::setBlendingFiltersOnLayer): set a compositing CAFilter on CALayer
2536         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
2537         (PlatformCALayer::setBlendMode): call to PlatformCAFilters::setBlendingFiltersOnLayer
2538         * rendering/RenderLayerBacking.cpp:
2539         (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
2540         (WebCore::RenderLayerBacking::updateBlendMode):
2541         (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
2542         (WebCore::RenderLayerBacking::setBlendMode):
2543         * rendering/RenderLayerBacking.h:
2544         * rendering/RenderLayerCompositor.cpp:
2545         (WebCore::CompositingState::CompositingState): add m_subtreeHasBlending member
2546         (WebCore::RenderLayerCompositor::computeCompositingRequirements): promote layer if subtree has blending
2547         (WebCore::RenderLayerCompositor::reasonsForCompositing):
2548         (WebCore::RenderLayerCompositor::logReasonsForCompositing): log blending reason
2549         (WebCore::RenderLayerCompositor::requiresCompositingForIndirectReason): add blending reason
2550         * rendering/RenderLayerCompositor.h:
2551
2552 2014-01-10  Andrei Bucur  <abucur@adobe.com>
2553
2554         [CSS Regions] Implement visual overflow computation for inline elements
2555         https://bugs.webkit.org/show_bug.cgi?id=125291
2556
2557         Reviewed by David Hyatt.
2558
2559         The patch implements visual overflow computation for inline elements per region. The algorithm
2560         uses the container region of each root line box to determine the lines in a region generated by
2561         a RenderInline. The overflow of a RenderInline inside a region is the smallest rectangle that fits
2562         all the line boxes belonging to that region.
2563
2564         The patch also correctly flips for writing mode the overflow of a renderer before clipping with it.
2565
2566         Tests: fast/regions/overflow-in-variable-width-regions-inline-bt.html
2567                fast/regions/overflow-in-variable-width-regions-inline-continuation.html
2568                fast/regions/overflow-in-variable-width-regions-inline-lr.html
2569                fast/regions/overflow-in-variable-width-regions-inline-rl.html
2570                fast/regions/overflow-in-variable-width-regions-inline.html
2571
2572         * rendering/RenderFlowThread.cpp:
2573         (WebCore::RenderFlowThread::objectShouldPaintInFlowRegion):
2574         * rendering/RenderInline.cpp:
2575         (WebCore::RenderInline::updateAlwaysCreateLineBoxes): Always create line boxes for RenderInline
2576         (WebCore::RenderInline::linesVisualOverflowBoundingBoxInRegion):
2577         * rendering/RenderInline.h:
2578         * rendering/RenderLayer.cpp:
2579         (WebCore::RenderLayer::calculateClipRects):
2580         * rendering/RenderRegion.cpp:
2581         (WebCore::RenderRegion::visualOverflowRectForBox):
2582         (WebCore::RenderRegion::visualOverflowRectForBoxForPropagation):
2583         * rendering/RenderRegion.h:
2584
2585 2014-01-09  Jer Noble  <jer.noble@apple.com>
2586
2587         [Mac] .mp3 media document controls missing their background
2588         https://bugs.webkit.org/show_bug.cgi?id=126683
2589
2590         Reviewed by Eric Carlson.
2591
2592         Test: media/media-document-audio-controls-visible.html
2593
2594         <video> elements in a media document are created with an intrinsic size of 300x1,
2595         with the expectation that either the size will be updated if the media has a video
2596         track, or the controls will visibly overflow if the media is audio-only. Since the
2597         shadow root is a flex-box, the panel was being collapsed to 1px high, so give the panel
2598         a minimum height to prevent that. Also, disable "fading out" the controls in a
2599         media document for an audio-only file by adding a "no-video" class to the panel
2600         and adding a media document-only rule to force the controls to always be visible.
2601
2602         * Modules/mediacontrols/mediaControlsApple.css:
2603         (video:-webkit-full-page-media::-webkit-media-controls-panel.no-video):
2604         (audio::-webkit-media-controls-panel):
2605         * Modules/mediacontrols/mediaControlsApple.js:
2606         (Controller): Call updateHasVideo().
2607         (Controller.prototype.addVideoListeners): Add video track listeners.
2608         (Controller.prototype.removeVideoListeners): Remove same.
2609         (Controller.prototype.updateHasVideo): Add a 'no-video' class to the panel if
2610             the video element has no video tracks.
2611
2612 2014-01-09  Anders Carlsson  <andersca@apple.com>
2613
2614         Clean up ProgressTracker a little
2615         https://bugs.webkit.org/show_bug.cgi?id=126738
2616
2617         Reviewed by Dan Bernstein.
2618
2619         Use Frame& where the frame can never be null, avoid an extra hash lookup and
2620         switch the m_progressItems map over to std::unique_ptr.
2621
2622         * inspector/InspectorInstrumentation.h:
2623         (WebCore::InspectorInstrumentation::frameStartedLoading):
2624         * loader/FrameLoader.cpp:
2625         (WebCore::FrameLoader::FrameProgressTracker::~FrameProgressTracker):
2626         (WebCore::FrameLoader::FrameProgressTracker::progressStarted):
2627         (WebCore::FrameLoader::FrameProgressTracker::progressCompleted):
2628         * loader/ProgressTracker.cpp:
2629         (WebCore::ProgressTracker::progressStarted):
2630         (WebCore::ProgressTracker::progressCompleted):
2631         (WebCore::ProgressTracker::incrementProgress):
2632         * loader/ProgressTracker.h:
2633         * loader/ResourceLoadNotifier.cpp:
2634         (WebCore::ResourceLoadNotifier::didReceiveData):
2635
2636 2014-01-09  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2637
2638         Fix a build break on EFL debug build
2639         https://bugs.webkit.org/show_bug.cgi?id=126735
2640
2641         Reviewed by Anders Carlsson.
2642
2643         No new tests, just build fix.
2644
2645         * platform/ThreadTimers.cpp:
2646         (WebCore::ThreadTimers::sharedTimerFiredInternal):  Add parentheses.
2647
2648 2014-01-09  Anders Carlsson  <andersca@apple.com>
2649
2650         Remove unused FrameLoader member functions
2651         https://bugs.webkit.org/show_bug.cgi?id=126734
2652
2653         Reviewed by Andreas Kling.
2654
2655         * loader/FrameLoader.cpp:
2656         * loader/FrameLoader.h:
2657
2658 2014-01-09  Joseph Pecoraro  <pecoraro@apple.com>
2659
2660         Unreviewed Windows build fix for r161563.
2661
2662         Remove stale forward declaration causing namespace ambiguity
2663         later on in a Windows AllInOne file that picked it up. Also
2664         remove a few stale functions that are not used and accidentally
2665         got added back in when the file changed names.
2666
2667         * bindings/js/ScriptGlobalObject.h:
2668
2669 2014-01-09  Dean Jackson  <dino@apple.com>
2670
2671         [WebGL] Expose texture_float_linear and texture_half_float to getSupportedExtensions
2672         https://bugs.webkit.org/show_bug.cgi?id=126732
2673
2674         Reviewed by Tim Horton.
2675
2676         When I added support for these two extensions, I forgot to add their
2677         names to the list in getSupportedExtensions.
2678
2679         Covered by the Khronos test: conformance/extensions/get-extension.html
2680
2681         * html/canvas/WebGLRenderingContext.cpp:
2682         (WebCore::WebGLRenderingContext::getSupportedExtensions): Add OES_texture_float_linear
2683         and OES_texture_half_float if the WebGL context supports them.
2684
2685 2014-01-09  Joseph Pecoraro  <pecoraro@apple.com>
2686
2687         Revert r161611, incorrect fix, will fix better.
2688
2689         * bindings/js/ScriptGlobalObject.h:
2690
2691 2014-01-09  Jer Noble  <jer.noble@apple.com>
2692
2693         [Mac] Scrubbing performance of HD content with software decoding is poor.
2694         https://bugs.webkit.org/show_bug.cgi?id=126705
2695
2696         Reviewed by Eric Carlson.
2697
2698         Instead of issuing a new seek before the previous one completes, wait until that seek's
2699         completion handler is called, and then issue the new seek. This has the added benefit of
2700         coalescing multiple incoming seeks so that only the last one is acted upon.
2701
2702         Save the parameters passed into seekToTime and bind them together in a std::function
2703         to be replayed once the in-flight seek completes. To handle the case where a completion
2704         handler fires after the media player is destroyed, add a weakPtrFactory and pass a
2705         WeakPtr into the completion handler.
2706         
2707         Clean up some ivars which are no longer necessary: remove m_seekCount and m_seekTime.
2708
2709         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2710         (WebCore::MediaPlayerPrivateAVFoundation::MediaPlayerPrivateAVFoundation): Initialize the
2711             WeakPtrFactory.
2712         (WebCore::MediaPlayerPrivateAVFoundation::seekWithTolerance):
2713         (WebCore::MediaPlayerPrivateAVFoundation::seeking): m_seekTime -> m_seeking.
2714         (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
2715         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
2716         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
2717         (WebCore::MediaPlayerPrivateAVFoundationObjC::createWeakPtr):
2718         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2719         (WebCore::MediaPlayerPrivateAVFoundationObjC::MediaPlayerPrivateAVFoundationObjC):
2720         (WebCore::MediaPlayerPrivateAVFoundationObjC::seekToTime):
2721         (WebCore::MediaPlayerPrivateAVFoundationObjC::finishSeek):
2722
2723 2014-01-08  Jer Noble  <jer.noble@apple.com>
2724
2725         [MSE][Mac] Report the intrinsic size of the media element
2726         https://bugs.webkit.org/show_bug.cgi?id=125156
2727
2728         Reviewed by Eric Carlson.
2729
2730         * WebCore.xcodeproj/project.pbxproj:
2731         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h:
2732         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
2733         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::naturalSize): Pass to MediaSourcePrivateAVFObjC.
2734         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::sizeChanged): Added; Pass to MediaPlayer.
2735         * platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.h:
2736         * platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm:
2737         (WebCore::MediaSourcePrivateAVFObjC::naturalSize): Return the union of the naturalSizes of all active buffers.
2738         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.h:
2739         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
2740         (WebCore::SourceBufferPrivateAVFObjC::didParseStreamDataAsAsset): Notify the media player that the size changed.
2741         (WebCore::SourceBufferPrivateAVFObjC::naturalSize): Return the size of the selected video track.
2742         * platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.h:
2743         * platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm: Renamed from Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.cpp.
2744         (WebCore::VideoTrackPrivateMediaSourceAVFObjC::assetTrack): Made const.
2745         (WebCore::VideoTrackPrivateMediaSourceAVFObjC::naturalSize): Return the size of the AVAssetTrack.
2746
2747 2014-01-09  Joseph Pecoraro  <pecoraro@apple.com>
2748
2749         Unreviewed Windows build fix for r161563.
2750
2751         Remove stale forward declaration causing namespace ambiguity
2752         later on in a Windows AllInOne file that picked it up.
2753
2754         * bindings/js/ScriptGlobalObject.h:
2755
2756 2014-01-09  Simon Fraser  <simon.fraser@apple.com>
2757
2758         Enable async scrolling for iOS
2759         https://bugs.webkit.org/show_bug.cgi?id=126730
2760
2761         Reviewed by Tim Horton.
2762
2763         Turn on ENABLE_ASYNC_SCROLLING for iOS.
2764         
2765         Disable rubber-banding and scrollbar-related Mac code for PLATFORM(IOS),
2766         provide stubs for scrolling nodes and scrolling state nodes, and an
2767         iOS scrolling tree, and scrolling coordinator.
2768         
2769         Move crollingCoordinator::create() into the platform implementation file.
2770
2771         * page/scrolling/ScrollingCoordinator.cpp:
2772         (WebCore::ScrollingCoordinator::create):
2773         * page/scrolling/ScrollingStateScrollingNode.cpp:
2774         (WebCore::ScrollingStateScrollingNode::ScrollingStateScrollingNode):
2775         (WebCore::ScrollingStateScrollingNode::setScrollbarPaintersFromScrollbars):
2776         * page/scrolling/ScrollingStateScrollingNode.h:
2777         * page/scrolling/ScrollingTree.h:
2778         (WebCore::ScrollingTree::isScrollingTreeIOS):
2779         * page/scrolling/ThreadedScrollingTree.h:
2780         * page/scrolling/ios/ScrollingCoordinatorIOS.h: Copied from Source/WebKit2/UIProcess/Scrolling/RemoteScrollingTree.h.
2781         * page/scrolling/ios/ScrollingCoordinatorIOS.mm: Copied from Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.mm.
2782         (WebCore::ScrollingCoordinator::create):
2783         (WebCore::ScrollingCoordinatorIOS::ScrollingCoordinatorIOS):
2784         (WebCore::ScrollingCoordinatorIOS::~ScrollingCoordinatorIOS):
2785         (WebCore::ScrollingCoordinatorIOS::pageDestroyed):
2786         (WebCore::ScrollingCoordinatorIOS::commitTreeStateIfNeeded):
2787         (WebCore::ScrollingCoordinatorIOS::scheduleTreeStateCommit):
2788         (WebCore::ScrollingCoordinatorIOS::scrollingStateTreeCommitterTimerFired):
2789         (WebCore::ScrollingCoordinatorIOS::commitTreeState):
2790         (WebCore::ScrollingCoordinatorIOS::createScrollingTreeNode):
2791         * page/scrolling/ios/ScrollingTreeIOS.cpp: Added.
2792         (WebCore::ScrollingTreeIOS::create):
2793         (WebCore::ScrollingTreeIOS::ScrollingTreeIOS):
2794         (WebCore::ScrollingTreeIOS::~ScrollingTreeIOS):
2795         (WebCore::derefScrollingCoordinator):
2796         (WebCore::ScrollingTreeIOS::invalidate):
2797         (WebCore::ScrollingTreeIOS::commitNewTreeState):
2798         (WebCore::ScrollingTreeIOS::updateMainFrameScrollPosition):
2799         (WebCore::ScrollingTreeIOS::createNode):
2800         * page/scrolling/ios/ScrollingTreeIOS.h: Copied from Source/WebCore/page/scrolling/ThreadedScrollingTree.h.
2801         * page/scrolling/ios/ScrollingTreeScrollingNodeIOS.h: Added.
2802         * page/scrolling/ios/ScrollingTreeScrollingNodeIOS.mm: Added.
2803         (WebCore::ScrollingTreeScrollingNodeIOS::create):
2804         (WebCore::ScrollingTreeScrollingNodeIOS::ScrollingTreeScrollingNodeIOS):
2805         (WebCore::ScrollingTreeScrollingNodeIOS::~ScrollingTreeScrollingNodeIOS):
2806         (WebCore::ScrollingTreeScrollingNodeIOS::updateBeforeChildren):
2807         (WebCore::ScrollingTreeScrollingNodeIOS::updateAfterChildren):
2808         (WebCore::ScrollingTreeScrollingNodeIOS::scrollPosition):
2809         (WebCore::ScrollingTreeScrollingNodeIOS::setScrollPosition):
2810         (WebCore::ScrollingTreeScrollingNodeIOS::setScrollPositionWithoutContentEdgeConstraints):
2811         (WebCore::ScrollingTreeScrollingNodeIOS::setScrollLayerPosition):
2812         (WebCore::ScrollingTreeScrollingNodeIOS::minimumScrollPosition):
2813         (WebCore::ScrollingTreeScrollingNodeIOS::maximumScrollPosition):
2814         (WebCore::ScrollingTreeScrollingNodeIOS::scrollBy):
2815         (WebCore::ScrollingTreeScrollingNodeIOS::scrollByWithoutContentEdgeConstraints):
2816         * page/scrolling/mac/ScrollingCoordinatorMac.mm:
2817         (WebCore::ScrollingCoordinator::create):
2818         * page/scrolling/mac/ScrollingTreeFixedNode.mm:
2819         * page/scrolling/mac/ScrollingTreeStickyNode.mm:
2820
2821 2014-01-09  Myles C. Maxfield  <mmaxfield@apple.com>
2822
2823         text-decoration-skip: ink does not work with line wraps
2824         https://bugs.webkit.org/show_bug.cgi?id=126729
2825
2826         Reviewed by Simon Fraser.
2827
2828         InlineTextBox's m_start and m_length fields are offsets into the renderer's string,
2829         not the generated TextRun. Because of this distinction, when multiple InlineTextBoxes
2830         were constructed for the same element, all the subsequent elements would use incorrect
2831         indices and therefore not have skipping decorations.
2832
2833         Test: fast/css3-text/css3-text-decoration/text-decoration-skip/text-decoration-skip-ink-multiline.html
2834
2835         * platform/graphics/Font.h:
2836         * platform/graphics/mac/FontMac.mm:
2837         (WebCore::Font::dashesForIntersectionsWithRect):
2838         * rendering/InlineTextBox.cpp:
2839         (WebCore::drawSkipInkUnderline):
2840         (WebCore::InlineTextBox::paintDecoration):
2841         * rendering/TextPainter.cpp:
2842         (WebCore::TextPainter::dashesForIntersectionsWithRect):
2843         * rendering/TextPainter.h:
2844
2845 2014-01-09  Benjamin Poulain  <bpoulain@apple.com>
2846
2847         Remove remaining blackberry files I could find in WebCore
2848         https://bugs.webkit.org/show_bug.cgi?id=126715
2849
2850         Reviewed by Anders Carlsson.
2851
2852         * PlatformBlackBerry.cmake: Removed.
2853         * Resources/blackberry: Removed.
2854         * css/mediaControlsBlackBerry.css: Removed.
2855         * css/mediaControlsBlackBerryFullscreen.css: Removed.
2856         * css/themeBlackBerry.css: Removed.
2857         * editing/blackberry: Removed.
2858         * history/blackberry: Removed.
2859         * html/shadow/MediaControlsBlackBerry.cpp: Removed.
2860         * html/shadow/MediaControlsBlackBerry.h: Removed.
2861         * page/blackberry: Removed.
2862         * page/scrolling/blackberry: Removed.
2863         * plugins/blackberry: Removed.
2864
2865 2014-01-09  Brent Fulgham  <bfulgham@apple.com>
2866
2867         [WebGL] Return filtered results for getProgramParameter for ACTIVE_ATTRIBUTES and ACTIVE_UNIFORMS
2868         https://bugs.webkit.org/show_bug.cgi?id=126718
2869         <rdar://problem/15202048>
2870
2871         Reviewed by Dean Jackson.
2872
2873         Covered by webgl/conformance/ogles/GL/biuDepthRange/biuDepthRange_001_to_002.html and
2874         webgl/conformance/ogles/GL/gl_FragCoord/gl_FragCoord_001_to_003.html.
2875
2876         * html/canvas/WebGLRenderingContext.cpp:
2877         (WebCore::WebGLRenderingContext::getActiveAttrib): Added loging.
2878         (WebCore::WebGLRenderingContext::getActiveUniform): Added logging.
2879         (WebCore::WebGLRenderingContext::getAttribLocation): Drive-by-fix. Return
2880         -1 on link failure (an invalid location) rather than 0 (a valid
2881         location) when link fails.
2882         (WebCore::WebGLRenderingContext::getProgramParameter): Use new
2883         method to return filtered count.
2884         (WebCore::WebGLRenderingContext::getUniformLocation): Use nullptr
2885         rather than returning 0.
2886         * platform/graphics/GraphicsContext3D.h:
2887         (WebCore::GraphicsContext3D::ActiveShaderSymbolCounts::ActiveShaderSymbolCounts):
2888         (WebCore::GraphicsContext3D::ActiveShaderSymbolCounts::countForType):
2889         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
2890         (WebCore::GraphicsContext3D::precisionsMatch): Drive-by-fix. Don't
2891         copy giant objects to read a single value.
2892         (WebCore::GraphicsContext3D::compileShader): Release filtered count
2893         when we change shader source code.
2894         (WebCore::GraphicsContext3D::getActiveAttribImpl): Renamed from getActiveAttrib.
2895         (WebCore::GraphicsContext3D::getActiveAttrib): Maps filtered indices to
2896         real OpenGL indices.
2897         (WebCore::GraphicsContext3D::getActiveUniformImpl): Renamed from getActiveUniform.
2898         (WebCore::GraphicsContext3D::getActiveUniform): Maps filtered indices to
2899         real OpenGL indices.
2900         (WebCore::GraphicsContext3D::originalSymbolName): Use C++11 loop.
2901         (WebCore::GraphicsContext3D::getAttribLocation): Added logging.
2902         (WebCore::GraphicsContext3D::getNonBuiltinActiveSymbolCount): Added.
2903         (WebCore::GraphicsContext3D::getShaderiv): Const correctness.
2904         (WebCore::GraphicsContext3D::getShaderInfoLog): Ditto.
2905         (WebCore::GraphicsContext3D::getShaderSource): Ditto.
2906
2907 2014-01-09  Zoltan Horvath  <zoltan@webkit.org>
2908
2909         [CSS Shapes] First line gets incorrectly adjusted in shape-inside due to rounding
2910         https://bugs.webkit.org/show_bug.cgi?id=126601
2911
2912         Reviewed by Bem Jones-Bey.
2913
2914         In order to get consistent results of the first fit position of the content in shapes,
2915         firstIncludedIntervalLogicalTop should take a FloatSize rather than LayoutSize for
2916         minLogicalIntervalSize, because LayoutSize clamps the float value to int, when subpixel-layout
2917         is disabled, thus firstIncludedIntervalLogicalTop could end up calculating with an unprecize
2918         value. This change modifies firstIncludedIntervalLogicalTop to take FloatSize consistently.
2919
2920         Test: fast/shapes/shape-inside/shape-inside-polygon-rounded-first-fit.html
2921
2922         * rendering/shapes/BoxShape.cpp:
2923         (WebCore::BoxShape::firstIncludedIntervalLogicalTop):
2924         * rendering/shapes/BoxShape.h:
2925         * rendering/shapes/PolygonShape.cpp:
2926         (WebCore::PolygonShape::firstIncludedIntervalLogicalTop):
2927         * rendering/shapes/PolygonShape.h:
2928         * rendering/shapes/RasterShape.cpp:
2929         (WebCore::RasterShape::firstIncludedIntervalLogicalTop):
2930         * rendering/shapes/RasterShape.h:
2931         * rendering/shapes/RectangleShape.cpp:
2932         (WebCore::RectangleShape::firstIncludedIntervalLogicalTop):
2933         * rendering/shapes/RectangleShape.h:
2934         * rendering/shapes/Shape.h:
2935         * rendering/shapes/ShapeInsideInfo.cpp:
2936         (WebCore::ShapeInsideInfo::adjustLogicalLineTop):
2937         (WebCore::ShapeInsideInfo::computeFirstFitPositionForFloat):
2938
2939 2014-01-09  Andy Estes  <aestes@apple.com>
2940
2941         [iOS] Upstream WAK
2942         https://bugs.webkit.org/show_bug.cgi?id=126724
2943
2944         Reviewed by David Kilzer.
2945
2946         * Configurations/WebCore.xcconfig: Excluded new iOS-specific Private
2947         headers on the Mac build.
2948         * WebCore.xcodeproj/project.pbxproj: Added new files to the project.
2949         * platform/ios/wak/WAKAppKitStubs.h: Added.
2950         * platform/ios/wak/WAKAppKitStubs.m: Added.
2951         * platform/ios/wak/WAKClipView.h: Added.
2952         * platform/ios/wak/WAKClipView.m: Added.
2953         * platform/ios/wak/WAKResponder.h: Added.
2954         * platform/ios/wak/WAKResponder.m: Added.
2955         * platform/ios/wak/WAKScrollView.h: Added.
2956         * platform/ios/wak/WAKScrollView.mm: Added.
2957         * platform/ios/wak/WAKView.h: Added.
2958         * platform/ios/wak/WAKView.mm: Added.
2959         * platform/ios/wak/WAKViewPrivate.h: Added.
2960         * platform/ios/wak/WAKWindow.h: Added.
2961         * platform/ios/wak/WAKWindow.mm: Added.
2962         * platform/ios/wak/WKContentObservation.cpp: Added.
2963         * platform/ios/wak/WKContentObservation.h: Added.
2964         * platform/ios/wak/WKGraphics.h: Added.
2965         * platform/ios/wak/WKGraphics.mm: Added.
2966         * platform/ios/wak/WKTypes.h: Added.
2967         * platform/ios/wak/WKUtilities.c: Added.
2968         * platform/ios/wak/WKUtilities.h: Added.
2969         * platform/ios/wak/WKView.h: Added.
2970         * platform/ios/wak/WKView.mm: Added.
2971         * platform/ios/wak/WKViewPrivate.h: Added.
2972         * platform/ios/wak/WebCoreThread.h: Added.
2973         * platform/ios/wak/WebCoreThread.mm: Added.
2974         * platform/ios/wak/WebCoreThreadInternal.h: Added.
2975         * platform/ios/wak/WebCoreThreadMessage.h: Added.
2976         * platform/ios/wak/WebCoreThreadRun.cpp: Added.
2977         * platform/ios/wak/WebCoreThreadRun.h: Added.
2978         * platform/ios/wak/WebCoreThreadSafe.h: Added.
2979         * platform/ios/wak/WebCoreThreadSystemInterface.cpp: Added.
2980         * platform/ios/wak/WebCoreThreadSystemInterface.h: Added.
2981
2982 2014-01-09  Daniel Bates  <dabates@apple.com>
2983
2984         Another attempt to fix the Windows build following <http://trac.webkit.org/changeset/161589>
2985         (https://bugs.webkit.org/show_bug.cgi?id=126654)
2986
2987         * platform/network/cf/ResourceRequest.h: Always declare ResourceRequest::updateFromDelegatePreservingOldHTTPBody()
2988         instead of only declaring it when building without CFNetwork.
2989
2990 2014-01-09  Daniel Bates  <dabates@apple.com>
2991
2992         Attempt to fix the Windows build following <http://trac.webkit.org/changeset/161589>
2993         (https://bugs.webkit.org/show_bug.cgi?id=126654)
2994
2995         For some reason, the Windows build is unhappy that NeverDestroyed<FontCache> calls the private constructor
2996         FontCache::FontCache() despite being a friend class of FontCache. Use DEFINE_STATIC_LOCAL instead of
2997         NeverDestroyed<> for now. I'll look to investigate this issue offline.
2998
2999         * platform/graphics/FontCache.cpp:
3000         (WebCore::fontCache):
3001         * platform/graphics/FontCache.h:
3002
3003 2014-01-09  Benjamin Poulain  <bpoulain@apple.com>
3004
3005         Remove blackberry from WebCore/platform
3006         https://bugs.webkit.org/show_bug.cgi?id=126715
3007
3008         Reviewed by Anders Carlsson.
3009
3010         * platform/blackberry: Removed.
3011         * platform/graphics/blackberry: Removed.
3012         * platform/graphics/filters/blackberry: Removed.
3013         * platform/image-decoders/blackberry: Removed.
3014         * platform/mediastream/blackberry: Removed.
3015         * platform/network/blackberry: Removed.
3016         * platform/text/blackberry: Removed.
3017
3018 2014-01-09  Alexey Proskuryakov  <ap@apple.com>
3019
3020         Fix a copy-paste mistake in an include guard.
3021
3022         Rubber-stamped by Sam Weinig.
3023
3024         * crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h:
3025
3026 2014-01-09  Anders Carlsson  <andersca@apple.com>
3027
3028         History::StateObjectType should be a strong enum
3029         https://bugs.webkit.org/show_bug.cgi?id=126725
3030
3031         Reviewed by Beth Dakin.
3032
3033         * bindings/js/JSHistoryCustom.cpp:
3034         (WebCore::JSHistory::pushState):
3035         (WebCore::JSHistory::replaceState):
3036         * loader/HistoryController.cpp:
3037         (WebCore::HistoryController::pushState):
3038         * page/History.cpp:
3039         (WebCore::History::stateObjectAdded):
3040         * page/History.h:
3041
3042 2014-01-09  Daniel Bates  <dabates@apple.com>
3043
3044         Attempt to fix the Mountain Lion Release (32-bit) build following <http://trac.webkit.org/changeset/161589>
3045         (https://bugs.webkit.org/show_bug.cgi?id=126654)
3046
3047         * platform/ios/WebEvent.h:
3048         * platform/ios/WebEvent.mm:
3049
3050 2014-01-09  Daniel Bates  <dabates@apple.com>
3051
3052         [iOS] Upstream WebCore/platform changes
3053         https://bugs.webkit.org/show_bug.cgi?id=126654
3054
3055         Rubber-stamped by David Kilzer.
3056
3057         * WebCore.exp.in:
3058         * WebCore.xcodeproj/project.pbxproj:
3059         * platform/ContentFilter.h:
3060         * platform/DragData.h:
3061         * platform/FileChooser.cpp:
3062         (WebCore::FileChooser::chooseMediaFiles):
3063         * platform/FileChooser.h:
3064         * platform/FileSystem.cpp:
3065         (WebCore::setMetadataURL):
3066         * platform/FileSystem.h:
3067         * platform/KillRingNone.cpp:
3068         * platform/LocalizedStrings.cpp:
3069         (WebCore::fileButtonChooseMediaFileLabel):
3070         (WebCore::fileButtonChooseMultipleMediaFilesLabel):
3071         (WebCore::fileButtonNoMediaFileSelectedLabel):
3072         (WebCore::fileButtonNoMediaFilesSelectedLabel):
3073         * platform/LocalizedStrings.h:
3074         * platform/Logging.h:
3075         * platform/MIMETypeRegistry.cpp:
3076         (WebCore::initializeSupportedImageMIMETypes):
3077         (WebCore::initializeSupportedNonImageMimeTypes):
3078         (WebCore::initializeUnsupportedTextMIMETypes):
3079         * platform/MemoryPressureHandler.cpp:
3080         (WebCore::MemoryPressureHandler::MemoryPressureHandler):
3081         * platform/MemoryPressureHandler.h:
3082         * platform/PlatformKeyboardEvent.h:
3083         (WebCore::PlatformKeyboardEvent::event):
3084         * platform/PlatformMouseEvent.h:
3085         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3086         * platform/PlatformScreen.h:
3087         * platform/RuntimeApplicationChecks.cpp:
3088         (WebCore::mainBundleIsEqualTo):
3089         * platform/RuntimeApplicationChecksIOS.h: Copied from Source/WebCore/platform/graphics/StringTruncator.h.
3090         * platform/RuntimeApplicationChecksIOS.mm: Added.
3091         * platform/ScrollAnimator.cpp:
3092         (WebCore::ScrollAnimator::handleTouchEvent):
3093         * platform/ScrollAnimator.h:
3094         * platform/ScrollTypes.h:
3095         * platform/ScrollView.cpp:
3096         (WebCore::ScrollView::unscaledVisibleContentSize):
3097         (WebCore::ScrollView::visibleContentRect):
3098         * platform/ScrollView.h:
3099         (WebCore::ScrollView::actualScrollX):
3100         (WebCore::ScrollView::actualScrollY):
3101         * platform/ScrollableArea.cpp:
3102         (WebCore::ScrollableArea::handleTouchEvent):
3103         (WebCore::ScrollableArea::isPinnedInBothDirections):
3104         (WebCore::ScrollableArea::isPinnedHorizontallyInDirection):
3105         (WebCore::ScrollableArea::isPinnedVerticallyInDirection):
3106         * platform/ScrollableArea.h:
3107         (WebCore::ScrollableArea::isTouchScrollable):
3108         (WebCore::ScrollableArea::isOverflowScroll):
3109         (WebCore::ScrollableArea::didStartScroll):
3110         (WebCore::ScrollableArea::didEndScroll):
3111         (WebCore::ScrollableArea::didUpdateScroll):
3112         (WebCore::ScrollableArea::setIsUserScroll):
3113         (WebCore::ScrollableArea::isHorizontalScrollerPinnedToMinimumPosition):
3114         (WebCore::ScrollableArea::isHorizontalScrollerPinnedToMaximumPosition):
3115         (WebCore::ScrollableArea::isVerticalScrollerPinnedToMinimumPosition):
3116         (WebCore::ScrollableArea::isVerticalScrollerPinnedToMaximumPosition):
3117         * platform/Scrollbar.cpp:
3118         * platform/Scrollbar.h:
3119         * platform/SharedBuffer.cpp:
3120         (WebCore::SharedBuffer::SharedBuffer):
3121         (WebCore::SharedBuffer::createPurgeableBuffer):
3122         (WebCore::SharedBuffer::data):
3123         * platform/SharedBuffer.h:
3124         (WebCore::SharedBuffer::shouldUsePurgeableMemory):
3125         * platform/SuddenTermination.h:
3126         * platform/Supplementable.h:
3127         (WebCore::Supplementable::provideSupplement):
3128         (WebCore::Supplementable::removeSupplement):
3129         (WebCore::Supplementable::requireSupplement):
3130         * platform/SystemMemory.h: Copied from Source/WebCore/platform/graphics/StringTruncator.h.
3131         * platform/ThreadCheck.h:
3132         * platform/ThreadGlobalData.cpp:
3133         (WebCore::ThreadGlobalData::ThreadGlobalData):
3134         (WebCore::ThreadGlobalData::destroy):
3135         (WebCore::ThreadGlobalData::setWebCoreThreadData):
3136         (WebCore::threadGlobalData):
3137         * platform/ThreadGlobalData.h:
3138         * platform/ThreadTimers.cpp:
3139         (WebCore::ThreadTimers::ThreadTimers):
3140         (WebCore::ThreadTimers::sharedTimerFiredInternal):
3141         * platform/Timer.cpp:
3142         (WebCore::TimerBase::start):
3143         (WebCore::TimerBase::stop):
3144         (WebCore::TimerBase::setNextFireTime):
3145         * platform/Timer.h:
3146         (WebCore::TimerBase::isActive):
3147         * platform/URL.cpp:
3148         (WebCore::enableURLSchemeCanonicalization):
3149         (WebCore::equal):
3150         (WebCore::URL::parse):
3151         * platform/URL.h:
3152         * platform/Widget.h:
3153         * platform/audio/ios/AudioDestinationIOS.cpp:
3154         * platform/audio/ios/AudioDestinationIOS.h:
3155         * platform/audio/ios/AudioFileReaderIOS.cpp: Copied from Source/WebCore/platform/audio/mac/AudioFileReaderMac.cpp.
3156         (WebCore::createAudioBufferList):
3157         (WebCore::destroyAudioBufferList):
3158         (WebCore::AudioFileReader::AudioFileReader):
3159         (WebCore::AudioFileReader::~AudioFileReader):
3160         (WebCore::AudioFileReader::readProc):
3161         (WebCore::AudioFileReader::getSizeProc):
3162         (WebCore::AudioFileReader::createBus):
3163         (WebCore::createBusFromAudioFile):
3164         (WebCore::createBusFromInMemoryAudioFile):
3165         * platform/audio/ios/AudioFileReaderIOS.h: Copied from Source/WebCore/platform/graphics/StringTruncator.h.
3166         (WebCore::AudioFileReader::data):
3167         (WebCore::AudioFileReader::dataSize):
3168         * platform/audio/ios/AudioSessionIOS.mm:
3169         (SOFT_LINK_POINTER):
3170         (-[WebAudioSessionHelper initWithCallback:WebCore::]):
3171         (-[WebAudioSessionHelper dealloc]):
3172         (-[WebAudioSessionHelper interruption:]):
3173         (WebCore::AudioSession::setCategory):
3174         * platform/audio/mac/AudioDestinationMac.cpp:
3175         * platform/audio/mac/AudioFileReaderMac.cpp:
3176         (WebCore::AudioFileReader::AudioFileReader):
3177         (WebCore::createBusFromAudioFile):
3178         (WebCore::createBusFromInMemoryAudioFile):
3179         * platform/audio/mac/AudioSessionMac.cpp:
3180         * platform/audio/mac/MediaSessionManagerMac.cpp:
3181         (MediaSessionManager::updateSessionState):
3182         * platform/cf/SharedBufferCF.cpp:
3183         (WebCore::SharedBuffer::SharedBuffer):
3184         * platform/cf/URLCF.cpp:
3185         * platform/cocoa/KeyEventCocoa.mm:
3186         (WebCore::windowsKeyCodeForCharCode):
3187         * platform/graphics/BitmapImage.cpp:
3188         (WebCore::BitmapImage::BitmapImage):
3189         (WebCore::BitmapImage::destroyDecodedDataIfNecessary):
3190         (WebCore::BitmapImage::cacheFrame):
3191         (WebCore::BitmapImage::cacheFrameInfo):
3192         (WebCore::BitmapImage::updateSize):
3193         (WebCore::BitmapImage::originalSize):
3194         (WebCore::BitmapImage::originalSizeRespectingOrientation):
3195         (WebCore::BitmapImage::dataChanged):
3196         (WebCore::BitmapImage::ensureFrameInfoIsCached):
3197         (WebCore::BitmapImage::frameAtIndex):
3198         (WebCore::BitmapImage::frameIsCompleteAtIndex):
3199         (WebCore::BitmapImage::frameDurationAtIndex):
3200         (WebCore::BitmapImage::frameHasAlphaAtIndex):
3201         (WebCore::BitmapImage::frameOrientationAtIndex):
3202         (WebCore::BitmapImage::startAnimation):
3203         (WebCore::BitmapImage::internalAdvanceAnimation):
3204         * platform/graphics/BitmapImage.h:
3205         (WebCore::FrameData::FrameData):
3206         * platform/graphics/Color.cpp:
3207         (WebCore::Color::isDark):
3208         * platform/graphics/Color.h:
3209         * platform/graphics/DisplayRefreshMonitor.h:
3210         * platform/graphics/FloatPoint.h:
3211         * platform/graphics/FloatRect.h:
3212         * platform/graphics/FloatSize.h:
3213         * platform/graphics/Font.cpp:
3214         (WebCore::Font::drawText):
3215         (WebCore::Font::width):
3216         * platform/graphics/Font.h:
3217         * platform/graphics/FontCache.cpp:
3218         (initFontCacheLockOnce):
3219         (FontLocker::FontLocker):
3220         (FontLocker::~FontLocker):
3221         (WebCore::fontCache):
3222         (WebCore::FontCache::getCachedFontPlatformData):
3223         (WebCore::FontCache::getCachedFontData):
3224         (WebCore::FontCache::releaseFontData):
3225         (WebCore::FontCache::purgeInactiveFontDataIfNeeded):
3226         (WebCore::FontCache::purgeInactiveFontData):
3227         * platform/graphics/FontCache.h:
3228         * platform/graphics/FontFastPath.cpp:
3229         (WebCore::Font::drawSimpleText):
3230         (WebCore::Font::drawGlyphBuffer):
3231         * platform/graphics/FontGlyphs.h:
3232         * platform/graphics/FontPlatformData.cpp:
3233         (WebCore::FontPlatformData::FontPlatformData):
3234         * platform/graphics/FontPlatformData.h:
3235         (WebCore::FontPlatformData::font):
3236         (WebCore::FontPlatformData::roundsGlyphAdvances):
3237         (WebCore::FontPlatformData::hash):
3238         (WebCore::FontPlatformData::hashTableDeletedFontValue):
3239         * platform/graphics/GlyphPageTreeNode.cpp:
3240         (WebCore::GlyphPageTreeNode::initializePage):
3241         * platform/graphics/GraphicsContext.cpp:
3242         (WebCore::GraphicsContext::GraphicsContext):
3243         (WebCore::GraphicsContext::drawRaisedEllipse):
3244         (WebCore::GraphicsContext::drawText):
3245         (WebCore::GraphicsContext::drawBidiText):
3246         (WebCore::GraphicsContext::clipRoundedRect):
3247         (WebCore::GraphicsContext::emojiDrawingEnabled):
3248         (WebCore::GraphicsContext::setEmojiDrawingEnabled):
3249         * platform/graphics/GraphicsContext.h:
3250         (WebCore::GraphicsContextState::GraphicsContextState):
3251         * platform/graphics/GraphicsContext3D.h:
3252         * platform/graphics/GraphicsLayer.cpp:
3253         (WebCore::GraphicsLayer::willBeDestroyed):
3254         * platform/graphics/GraphicsLayer.h:
3255         (WebCore::GraphicsLayer::contentsLayerForMedia):
3256         (WebCore::GraphicsLayer::pixelAlignmentOffset):
3257         (WebCore::GraphicsLayer::hasFlattenedPerspectiveTransform):
3258         * platform/graphics/Icon.h:
3259         * platform/graphics/Image.cpp:
3260         (WebCore::Image::drawTiled):
3261         * platform/graphics/ImageSource.h:
3262         (WebCore::ImageSource::isSubsampled):
3263         * platform/graphics/IntPoint.h:
3264         * platform/graphics/IntRect.h:
3265         * platform/graphics/IntSize.h:
3266         * platform/graphics/MediaPlayer.cpp:
3267         (WebCore::installedMediaEngines):
3268         (WebCore::MediaPlayer::isCurrentPlaybackTargetWireless):
3269         (WebCore::MediaPlayer::showPlaybackTargetPicker):
3270         (WebCore::MediaPlayer::hasWirelessPlaybackTargets):
3271         (WebCore::MediaPlayer::wirelessVideoPlaybackDisabled):
3272         (WebCore::MediaPlayer::setWirelessVideoPlaybackDisabled):
3273         (WebCore::MediaPlayer::setHasPlaybackTargetAvailabilityListeners):
3274         (WebCore::MediaPlayer::currentPlaybackTargetIsWirelessChanged):
3275         (WebCore::MediaPlayer::playbackTargetAvailabilityChanged):
3276         (WebCore::MediaPlayer::attributeChanged):
3277         (WebCore::MediaPlayer::readyForPlayback):
3278         (WebCore::MediaPlayer::volumeChanged):
3279         * platform/graphics/MediaPlayer.h:
3280         (WebCore::MediaPlayerClient::mediaPlayerCurrentPlaybackTargetIsWirelessChanged):
3281         (WebCore::MediaPlayerClient::mediaPlayerPlaybackTargetAvailabilityChanged):
3282         * platform/graphics/MediaPlayerPrivate.h:
3283         (WebCore::MediaPlayerPrivateInterface::volume):
3284         (WebCore::MediaPlayerPrivateInterface::isCurrentPlaybackTargetWireless):
3285         (WebCore::MediaPlayerPrivateInterface::showPlaybackTargetPicker):
3286         (WebCore::MediaPlayerPrivateInterface::hasWirelessPlaybackTargets):
3287         (WebCore::MediaPlayerPrivateInterface::wirelessVideoPlaybackDisabled):
3288         (WebCore::MediaPlayerPrivateInterface::setWirelessVideoPlaybackDisabled):
3289         (WebCore::MediaPlayerPrivateInterface::setHasPlaybackTargetAvailabilityListeners):
3290         (WebCore::MediaPlayerPrivateInterface::attributeChanged):
3291         (WebCore::MediaPlayerPrivateInterface::readyForPlayback):
3292         * platform/graphics/SimpleFontData.cpp:
3293         (WebCore::SimpleFontData::SimpleFontData):
3294         * platform/graphics/SimpleFontData.h:
3295         * platform/graphics/StringTruncator.cpp:
3296         (WebCore::centerTruncateToBuffer):
3297         (WebCore::rightTruncateToBuffer):
3298         (WebCore::rightClipToCharacterBuffer):
3299         (WebCore::rightClipToWordBuffer):
3300         (WebCore::leftTruncateToBuffer):
3301         (WebCore::truncateString):
3302         (WebCore::StringTruncator::centerTruncate):
3303         (WebCore::StringTruncator::rightTruncate):
3304         (WebCore::StringTruncator::leftTruncate):
3305         (WebCore::StringTruncator::rightClipToCharacter):
3306         (WebCore::StringTruncator::rightClipToWord):
3307         * platform/graphics/StringTruncator.h:
3308         * platform/graphics/TextTrackRepresentation.cpp:
3309         * platform/graphics/WidthIterator.h:
3310         (WebCore::WidthIterator::supportsTypesettingFeatures):
3311         * platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm:
3312         (WebCore::AVTrackPrivateAVFObjCImpl::label):
3313         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
3314         (WebCore::MediaPlayerPrivateAVFoundationObjC::platformMaxTimeLoaded):
3315         (WebCore::wkAVAssetResolvedURL):
3316         * platform/graphics/blackberry/FontBlackBerry.cpp:
3317         (WebCore::Font::drawComplexText):
3318         * platform/graphics/ca/GraphicsLayerCA.cpp:
3319         (WebCore::supportsAcceleratedFilterAnimations):
3320         (WebCore::GraphicsLayerCA::setContentsToImage):
3321         (WebCore::GraphicsLayerCA::contentsLayerForMedia):
3322         (WebCore::GraphicsLayerCA::computeVisibleRect):
3323         (WebCore::GraphicsLayerCA::updateGeometry):
3324         (WebCore::GraphicsLayerCA::ensureStructuralLayer):
3325         (WebCore::GraphicsLayerCA::updateContentsRects):
3326         (WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes):
3327         (WebCore::GraphicsLayerCA::setupContentsLayer):
3328         (WebCore::GraphicsLayerCA::mediaLayerMustBeUpdatedOnMainThread):
3329         (WebCore::GraphicsLayerCA::computePixelAlignment):
3330         * platform/graphics/ca/GraphicsLayerCA.h:
3331         * platform/graphics/ca/PlatformCAFilters.h:
3332         * platform/graphics/ca/PlatformCALayer.h:
3333         * platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp:
3334         (WebCore::currentRunLoop):
3335         (WebCore::LayerFlushScheduler::schedule):
3336         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
3337         (-[WebAnimationDelegate animationDidStart:]):
3338         (PlatformCALayerMac::setContentsScale):
3339         (PlatformCALayer::isWebLayer):
3340         (PlatformCALayer::setBoundsOnMainThread):
3341         (PlatformCALayer::setPositionOnMainThread):
3342         (PlatformCALayer::setAnchorPointOnMainThread):
3343         (PlatformCALayer::setTileSize):
3344         * platform/graphics/ca/mac/TileController.mm:
3345         (WebCore::TileController::platformCALayerPaintContents):
3346         (WebCore::TileController::removeAllTiles):
3347         (WebCore::TileController::removeAllSecondaryTiles):
3348         (WebCore::TileController::removeTilesInCohort):
3349         (WebCore::TileController::revalidateTiles):
3350         (WebCore::TileController::createTileLayer):
3351         * platform/graphics/cairo/FontCairoHarfbuzzNG.cpp:
3352         (WebCore::Font::drawComplexText):
3353         * platform/graphics/cg/BitmapImageCG.cpp:
3354         (WebCore::FrameData::clear):
3355         (WebCore::BitmapImage::BitmapImage):
3356         (WebCore::BitmapImage::checkForSolidColor):
3357         (WebCore::BitmapImage::draw):
3358         (WebCore::BitmapImage::copyUnscaledFrameAtIndex):
3359         * platform/graphics/cg/ColorCG.cpp:
3360         (WebCore::createCGColorWithDeviceWhite):
3361         (WebCore::createCGColorWithDeviceRGBA):
3362         (WebCore::Color::Color):
3363         * platform/graphics/cg/FloatPointCG.cpp:
3364         * platform/graphics/cg/FloatRectCG.cpp:
3365         * platform/graphics/cg/FloatSizeCG.cpp:
3366         * platform/graphics/cg/GradientCG.cpp:
3367         * platform/graphics/cg/GraphicsContextCG.cpp:
3368         (WebCore::sRGBColorSpaceRef):
3369         (WebCore::setStrokeAndFillColor):
3370         (WebCore::GraphicsContext::platformInit):
3371         * platform/graphics/cg/ImageBufferCG.cpp:
3372         (WebCore::createIOSurface):
3373         (WebCore::ImageBuffer::ImageBuffer):
3374         (WebCore::ImageBuffer::draw):
3375         (WebCore::jpegUTI):
3376         (WebCore::utiFromMIMEType):
3377         * platform/graphics/cg/ImageBufferDataCG.cpp:
3378         (WebCore::ImageBufferData::getData):
3379         (WebCore::ImageBufferData::putData):
3380         * platform/graphics/cg/ImageBufferDataCG.h:
3381         * platform/graphics/cg/ImageCG.cpp:
3382         (WebCore::drawPatternCallback):
3383         (WebCore::Image::drawPattern):
3384         * platform/graphics/cg/ImageSourceCG.cpp:
3385         (WebCore::ImageSource::ImageSource):
3386         (WebCore::imageSourceOptions):
3387         (WebCore::ImageSource::imageSourceOptions):
3388         (WebCore::ImageSource::frameSizeAtIndex):
3389         (WebCore::ImageSource::originalSize):
3390         (WebCore::ImageSource::createFrameAtIndex):
3391         * platform/graphics/cg/ImageSourceCGMac.mm:
3392         * platform/graphics/cg/IntPointCG.cpp:
3393         * platform/graphics/cg/IntRectCG.cpp:
3394         * platform/graphics/cg/IntSizeCG.cpp:
3395         * platform/graphics/cg/PDFDocumentImage.cpp:
3396         * platform/graphics/cg/PathCG.cpp:
3397         * platform/graphics/cg/PatternCG.cpp:
3398         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
3399         (WebCore::FontPlatformData::FontPlatformData):
3400         (WebCore::FontPlatformData::~FontPlatformData):
3401         (WebCore::FontPlatformData::platformDataInit):
3402         (WebCore::FontPlatformData::platformDataAssign):
3403         (WebCore::FontPlatformData::platformIsEqual):
3404         (WebCore::FontPlatformData::setFont):
3405         (WebCore::FontPlatformData::allowsLigatures):
3406         (WebCore::FontPlatformData::ctFont):
3407         * platform/graphics/ios/DisplayRefreshMonitorIOS.mm: Added.
3408         (WebCore::DisplayRefreshMonitor::~DisplayRefreshMonitor):
3409         (WebCore::DisplayRefreshMonitor::requestRefreshCallback):
3410         (WebCore::DisplayRefreshMonitor::displayLinkFired):
3411         * platform/graphics/ios/FontCacheIOS.mm: Added.
3412         * platform/graphics/ios/FontServicesIOS.h: Added.
3413         * platform/graphics/ios/FontServicesIOS.mm: Added.
3414         (WebCore::FontServicesIOS::FontServicesIOS):
3415         * platform/graphics/ios/GraphicsContext3DIOS.h: Added.
3416         * platform/graphics/ios/IconIOS.mm: Copied from Source/WebCore/platform/mac/DisplaySleepDisabler.cpp.
3417         * platform/graphics/ios/InbandTextTrackPrivateAVFIOS.h: Copied from Source/WebCore/platform/graphics/cg/ImageBufferDataCG.h.
3418         (WebCore::InbandTextTrackPrivateAVFIOS::create):
3419         (WebCore::InbandTextTrackPrivateAVFIOS::internalID):
3420         * platform/graphics/ios/InbandTextTrackPrivateAVFIOS.mm: Copied from Source/WebCore/platform/graphics/mac/IntRectMac.mm.
3421         (WebCore::InbandTextTrackPrivateAVFIOS::InbandTextTrackPrivateAVFIOS):
3422         (WebCore::InbandTextTrackPrivateAVFIOS::~InbandTextTrackPrivateAVFIOS):
3423         (WebCore::InbandTextTrackPrivateAVFIOS::kind):
3424         * platform/graphics/ios/MediaPlayerPrivateIOS.h: Added.
3425         * platform/graphics/ios/MediaPlayerPrivateIOS.mm: Added.
3426         * platform/graphics/ios/SimpleFontDataIOS.mm: Added.
3427         (WebCore::fontFamilyShouldNotBeUsedForArabic):
3428         (WebCore::fontHasVerticalGlyphs):
3429         (WebCore::SimpleFontData::platformInit):
3430         (WebCore::SimpleFontData::platformCharWidthInit):
3431         (WebCore::SimpleFontData::platformCreateScaledFontData):
3432         (WebCore::SimpleFontData::containsCharacters):
3433         (WebCore::SimpleFontData::determinePitch):
3434         (WebCore::SimpleFontData::platformWidthForGlyph):
3435         * platform/graphics/ios/TextTrackRepresentationIOS.h: Copied from Source/WebCore/platform/graphics/TextTrackRepresentation.cpp.
3436         * platform/graphics/ios/TextTrackRepresentationIOS.mm: Added.
3437         * platform/graphics/mac/ColorMac.h:
3438         * platform/graphics/mac/ComplexTextController.cpp:
3439         (WebCore::ComplexTextController::adjustGlyphsAndAdvances):
3440         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
3441         (WebCore::ComplexTextController::collectComplexTextRunsForCharacters):
3442         * platform/graphics/mac/FloatPointMac.mm:
3443         * platform/graphics/mac/FloatRectMac.mm:
3444         * platform/graphics/mac/FloatSizeMac.mm:
3445         * platform/graphics/mac/FontCacheMac.mm:
3446         * platform/graphics/mac/FontComplexTextMac.cpp:
3447         (WebCore::Font::drawComplexText):
3448         (WebCore::Font::fontDataForCombiningCharacterSequence):
3449         * platform/graphics/mac/FontCustomPlatformData.cpp:
3450         * platform/graphics/mac/FontMac.mm:
3451         (WebCore::showLetterpressedGlyphsWithAdvances):
3452         (WebCore::Font::drawGlyphs):
3453         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
3454         (WebCore::GlyphPage::fill):
3455         * platform/graphics/mac/GraphicsContext3DMac.mm:
3456         (WebCore::GraphicsContext3D::GraphicsContext3D):
3457         (WebCore::GraphicsContext3D::~GraphicsContext3D):
3458         (WebCore::GraphicsContext3D::setRenderbufferStorageFromDrawable):
3459         (WebCore::GraphicsContext3D::makeContextCurrent):
3460         (WebCore::GraphicsContext3D::endPaint):
3461         * platform/graphics/mac/GraphicsContextMac.mm:
3462         (WebCore::GraphicsContext::drawFocusRing):
3463         (WebCore::createDotPattern):
3464         (WebCore::GraphicsContext::drawLineForDocumentMarker):
3465         * platform/graphics/mac/IconMac.mm:
3466         * platform/graphics/mac/ImageMac.mm:
3467         (WebCore::BitmapImage::invalidatePlatformData):
3468         * platform/graphics/mac/IntPointMac.mm:
3469         * platform/graphics/mac/IntRectMac.mm:
3470         * platform/graphics/mac/IntSizeMac.mm:
3471         * platform/graphics/mac/MediaPlayerProxy.h:
3472         * platform/graphics/mac/SimpleFontDataCoreText.cpp:
3473         * platform/graphics/mac/SimpleFontDataMac.mm:
3474         * platform/graphics/mac/WebGLLayer.h:
3475         * platform/graphics/mac/WebGLLayer.mm:
3476         (-[WebGLLayer copyImageSnapshotWithColorSpace:]):
3477         (-[WebGLLayer display]):
3478         * platform/graphics/mac/WebLayer.mm: