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