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