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