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