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