Highlighting password field then making a Sticky Note via Safari Services exposes...
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-01-13  Myles C. Maxfield  <mmaxfield@apple.com>
2
3         Highlighting password field then making a Sticky Note via Safari Services exposes password
4         https://bugs.webkit.org/show_bug.cgi?id=126946
5
6         Reviewed by Enrica Casucci.
7
8         Using the Services menu has a slightly different codepath than Editor::copy() does. This
9         patch duplicates the canCopy() check that Editor::copy() does.
10
11         Testing is not possible because the Services menu is not accessible to our tests.
12
13         * editing/mac/EditorMac.mm:
14         (WebCore::Editor::stringSelectionForPasteboard):
15         (WebCore::Editor::stringSelectionForPasteboardWithImageAltText):
16         (WebCore::Editor::dataSelectionForPasteboard):
17
18 2014-01-13  Brent Fulgham  <bfulgham@apple.com>
19
20         [WebGL] Crash due to forceLostContext
21         https://bugs.webkit.org/show_bug.cgi?id=126947
22
23         Reviewed by Dean Jackson.
24
25         Covered by webgl/conformance/textures/origin-clean-conformance.html.
26
27         * html/canvas/WebGLRenderingContext.cpp:
28         (WebCore::WebGLRenderingContext::isContextLost): Make const.
29         (WebCore::WebGLRenderingContext::platformLayer): Don't attempt to use
30         a lost context.
31         * html/canvas/WebGLRenderingContext.h: isContextLost should be const.
32
33 2014-01-13  Martin Robinson  <mrobinson@igalia.com>
34
35         [GTK][CMake] WebCorePlatform build can sometimes fail due to missing generated headers
36         https://bugs.webkit.org/show_bug.cgi?id=126911
37
38         Reviewed by Daniel Bates.
39
40         * PlatformGTK.cmake: Add an explicit dependency from WebCorePlatform to WebCore.
41
42 2014-01-13  Benjamin Poulain  <benjamin@webkit.org>
43
44         Use the Selector Code Generator for resolving style
45         https://bugs.webkit.org/show_bug.cgi?id=126199
46
47         Reviewed by Ryosuke Niwa.
48
49         * css/ElementRuleCollector.cpp:
50         (WebCore::ElementRuleCollector::ruleMatches):
51         * css/RuleSet.h:
52
53 2014-01-13  Benjamin Poulain  <benjamin@webkit.org>
54
55         Update the SelectorQuery code using compiled selector after r161196
56         https://bugs.webkit.org/show_bug.cgi?id=126860
57
58         Reviewed by Andreas Kling.
59
60         Update tree traversal code to the current traversal functions.
61
62         * dom/SelectorQuery.cpp:
63         (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
64         (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
65
66 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
67
68         Various iOS WebKit1 build fixes.
69
70         * WebCore.xcodeproj/project.pbxproj: iOS WebKit1 needs various
71         headers to be Private.
72
73 2014-01-13  Andreas Kling  <akling@apple.com>
74
75         Map RootInlineBox to containing region via bit+hashmap.
76         <https://webkit.org/b/126917>
77
78         The vas majority of RootInlineBox objects don't have a containing
79         RenderRegion, so let's store that in a bit+hashmap configuration
80         instead of having a dedicated pointer member for it.
81
82         148 kB progression on Membuster3.
83
84         Reviewed by Antti Koivisto.
85
86         * rendering/InlineFlowBox.h:
87         (WebCore::InlineFlowBox::InlineFlowBox):
88         * rendering/RootInlineBox.cpp:
89         (WebCore::RootInlineBox::RootInlineBox):
90
91             Added m_hasContainingRegion bit.
92
93         (WebCore::containingRegionMap):
94
95             Global map between RootInlineBox and RenderRegion.
96
97         (WebCore::RootInlineBox::~RootInlineBox):
98
99             Remove self from aforementioned global map if needed.
100
101         (WebCore::RootInlineBox::paint):
102
103             Tweak a condition to avoid double hash lookup.
104
105         * rendering/RootInlineBox.h:
106         (WebCore::RootInlineBox::containingRegion):
107         (WebCore::RootInlineBox::clearContainingRegion):
108         (WebCore::RootInlineBox::setContainingRegion):
109
110             Store the containing region in a bit+hashmap.
111
112 2014-01-13  Brent Fulgham  <bfulgham@apple.com>
113
114         [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
115         https://bugs.webkit.org/show_bug.cgi?id=126925
116
117         Reviewed by Dean Jackson.
118
119         Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.
120
121         * html/canvas/WebGLRenderingContext.cpp:
122         (WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error
123
124 2014-01-13  Daniel Bates  <dabates@apple.com>
125
126         Add uint8_t specialization for WebCore::writeLittleEndian()
127         https://bugs.webkit.org/show_bug.cgi?id=126924
128
129         Reviewed by Darin Adler.
130
131         Specialize WebCore::writeLittleEndian() for datatype uint8_t so as to avoid
132         a compiler warning when right shifting a uint8_t by 8 because the result of
133         such a computation is undefined.
134
135         * bindings/js/SerializedScriptValue.cpp:
136         (WebCore::writeLittleEndian<uint8_t>): Added.
137
138 2014-01-13  Daniel Bates  <dabates@apple.com>
139
140         r161638 broke the Windows build
141         https://bugs.webkit.org/show_bug.cgi?id=126916
142
143         * DerivedSources.make:
144
145 2014-01-13  Eric Carlson  <eric.carlson@apple.com>
146
147         Allow MediaSessionManager to restrict media playback
148         https://bugs.webkit.org/show_bug.cgi?id=126780
149
150         Reviewed by Jer Noble.
151
152         Test: media/video-concurrent-playback.html
153
154         * WebCore.exp.in: Export functions needed by Internals.
155
156         Add HTMLMediaSession.
157         * WebCore.xcodeproj/project.pbxproj:
158         * CMakeLists.txt:
159         * GNUmakefile.list.am:
160         * WebCore.vcxproj/WebCore.vcxproj:
161         * WebCore.vcxproj/WebCore.vcxproj.filters:
162         * WebCore.xcodeproj/project.pbxproj:
163
164         Add a media session object to manage HTMLMediaElement restrictions.
165         * html/HTMLMediaSession.cpp: Added.
166         * html/HTMLMediaSession.h: Added.
167
168         Move media restriction management to a MediaSession.
169         * html/HTMLMediaElement.cpp:
170         (WebCore::HTMLMediaElement::HTMLMediaElement): Use the media session to manage restrictions.
171         (WebCore::HTMLMediaElement::parseAttribute): Ditto.
172         (WebCore::HTMLMediaElement::insertedInto): Ditto.
173         (WebCore::HTMLMediaElement::parseAttribute): Ditto.
174         (WebCore::HTMLMediaElement::loadInternal): Ditto.
175         (WebCore::HTMLMediaElement::loadResource): Ditto.
176         (WebCore::HTMLMediaElement::setReadyState): Ditto.
177         (WebCore::HTMLMediaElement::autoplay): Ditto.
178         (WebCore::HTMLMediaElement::play): Ditto.
179         (WebCore::HTMLMediaElement::pause): Ditto
180         (WebCore::HTMLMediaElement::pauseInternal): Ditto
181         (WebCore::HTMLMediaElement::suspend): Ditto
182         (WebCore::HTMLMediaElement::resume): Ditto.
183         (WebCore::HTMLMediaElement::updatePlayState): Tell media session playback is about to start.
184         (WebCore::HTMLMediaElement::deliverNotification): Ditto.
185         (WebCore::HTMLMediaElement::webkitShowPlaybackTargetPicker): Ditto.
186         (WebCore::HTMLMediaElement::mediaPlayerIsFullscreenPermitted): Ditto.
187         (WebCore::HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture): Ditto.
188         (WebCore::HTMLMediaElement::pausePlayback): New, allows the media session to pause playback.
189         * html/HTMLMediaElement.h:
190
191         * html/HTMLVideoElement.cpp:
192         (WebCore::HTMLVideoElement::webkitEnterFullscreen): Use the media session to manage restrictions.
193
194         * platform/audio/MediaSession.cpp:
195         (WebCore::MediaSession::beginInterruption): Add logging.
196         (WebCore::MediaSession::endInterruption): Ditto.
197         (WebCore::MediaSession::pauseSession): New, allows the session manager to pause playback.
198         * platform/audio/MediaSession.h:
199
200         Add per-media type restrictions.
201         * platform/audio/MediaSessionManager.cpp:
202         (WebCore::MediaSessionManager::MediaSessionManager): Initialize restrictions.
203         (WebCore::MediaSessionManager::addRestriction): New.
204         (WebCore::MediaSessionManager::removeRestriction): New.
205         (WebCore::MediaSessionManager::restrictions): New.
206         (WebCore::MediaSessionManager::sessionWillBeginPlayback): New. If only one session if the same
207             type is allowed to play, pause all others.
208         * platform/audio/MediaSessionManager.h:
209
210         * platform/audio/ios/MediaSessionManagerIOS.h: Added.
211         * platform/audio/ios/MediaSessionManagerIOS.mm: Added.
212         (WebCore::MediaSessionManager::sharedManager):
213         (WebCore::m_objcObserver):
214         (-[WebAVAudioSessionHelper initWithCallback:]):
215         (-[WebAVAudioSessionHelper dealloc]):
216         (-[WebAVAudioSessionHelper interruption:]):
217
218         * platform/audio/mac/AudioDestinationMac.h: Add pausePlayback.
219
220         Allow tests to set media session restrictions.
221         * testing/Internals.cpp:
222         * testing/Internals.h:
223         * testing/Internals.idl:
224
225 2014-01-13  Alexey Proskuryakov  <ap@apple.com>
226
227         Fix the build more.
228
229         * xml/XMLHttpRequestProgressEventThrottle.cpp:
230         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent):
231
232 2014-01-13  Alexey Proskuryakov  <ap@apple.com>
233
234         Fix the build.
235
236         * xml/XMLHttpRequestProgressEventThrottle.cpp:
237         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent):
238
239 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
240
241         Fix copy of SystemMemory.h in iOS WebKit build.
242         
243         Move SystemMemory.h from platform/SystemMemory.h to platform/ios/SystemMemory.h.
244         Add it to the project file.
245         Make it a Private header.
246         Add PLATFORM(IOS) #idfefs around its contents.
247
248         * WebCore.xcodeproj/project.pbxproj:
249         * platform/ios/SystemMemory.h: Renamed from Source/WebCore/platform/SystemMemory.h.
250
251 2014-01-13  Youenn Fablet  <youennf@gmail.com>
252
253         Dispatch a progress event before dispatching abort, error or timeout event
254         https://bugs.webkit.org/show_bug.cgi?id=126575
255
256         Reviewed by Alexey Proskuryakov.
257
258         Added sending of progress event after readystatechange event (switching to DONE state) in case of abort, error or timeout. 
259         Fixed assertions in XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload.
260
261         * xml/XMLHttpRequest.cpp:
262         (WebCore::XMLHttpRequest::dispatchErrorEvents): added sending of progress event before the specific error event
263         * xml/XMLHttpRequestProgressEventThrottle.cpp:
264         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): fixed assertion
265         * xml/XMLHttpRequestUpload.cpp:
266         (WebCore::XMLHttpRequestUpload::dispatchProgressEvent): fixed assertion
267
268 2014-01-13  Carlos Garcia Campos  <cgarcia@igalia.com>
269
270         [SOUP] Add SoupNetworkSession class to wrap a SoupSession
271         https://bugs.webkit.org/show_bug.cgi?id=126813
272
273         Reviewed by Gustavo Noronha Silva.
274
275         Add SoupNetworkSession class that wraps a SoupSession and move all
276         the code related to the SoupSession from ResourceHandle to
277         SoupNetworkSession, including the static methods to get the
278         default session and create testing and private sessions.
279
280         * GNUmakefile.list.am: Add new files to compilation.
281         * PlatformEfl.cmake: Ditto.
282         * PlatformGTK.cmake: Ditto.
283         * platform/network/NetworkStorageSession.h: Use SoupNetworkSession
284         instead of SoupSession.
285         * platform/network/ResourceHandle.h:
286         * platform/network/soup/CookieJarSoup.cpp:
287         (WebCore::cookieJarForSession): Use SoupNetworkSession to get the
288         SoupSession.
289         * platform/network/soup/DNSSoup.cpp:
290         (WebCore::DNSResolveQueue::platformResolve): Ditto.
291         * platform/network/soup/NetworkStorageSessionSoup.cpp:
292         (WebCore::NetworkStorageSession::NetworkStorageSession): Use
293         SoupNetworkSession instead of SoupSession.
294         (WebCore::NetworkStorageSession::~NetworkStorageSession):
295         (WebCore::NetworkStorageSession::defaultStorageSession): Create a
296         NetworkStorageSession with a NULL SoupNetworkSession which means
297         that the default SoupNetworkSession will be used.
298         (WebCore::NetworkStorageSession::createPrivateBrowsingSession):
299         Call SoupNetworkSession::createPrivateBrowsingSession() to create
300         the private session.
301         (WebCore::NetworkStorageSession::switchToNewTestingSession): Call
302         SoupNetworkSession::createTestingSession() to create the testing
303         session.
304         (WebCore::NetworkStorageSession::soupNetworkSession): Return the
305         SoupNetworkSession or the default one.
306         (WebCore::NetworkStorageSession::setSoupNetworkSession): Set a new
307         SoupNetworkSession.
308         * platform/network/soup/ResourceHandleSoup.cpp:
309         (WebCore::sessionFromContext): Use SoupNetworkSession to get the
310         SoupSession.
311         (WebCore::ResourceHandleInternal::soupSession): Simply call
312         sessionFromContext(), since ensureSessionIsInitialized() is no
313         longer needed, because the SoupSession are now initialized in the
314         SoupNetworkSession constructor.
315         (WebCore::ResourceHandle::didStartRequest): Function to notify the
316         ResourceHandle that current request has just started for web timing.
317         * platform/network/soup/SoupNetworkSession.cpp: Added.
318         (WebCore::soupLogPrinter): Logger callback.
319         (WebCore::SoupNetworkSession::defaultSession): Return a reference
320         to the default SoupNetworkSession.
321         (WebCore::SoupNetworkSession::createPrivateBrowsingSession):
322         Create a new private session.
323         (WebCore::SoupNetworkSession::createTestingSession): Create a new
324         testing session.
325         (WebCore::SoupNetworkSession::createForSoupSession): Create a new
326         SoupNetworkSession for the given SoupSession.
327         (WebCore::authenticateCallback): Callback emitted by the
328         SoupSession when the request needs authentication.
329         (WebCore::requestStartedCallback): Callback emitted by the
330         SoupSession when as request has just started.
331         (WebCore::SoupNetworkSession::SoupNetworkSession):
332         (WebCore::SoupNetworkSession::~SoupNetworkSession):
333         (WebCore::SoupNetworkSession::setupLogger): Helper private
334         function to setup the logger.
335         (WebCore::SoupNetworkSession::setCookieJar): Set a new CookieJar
336         in the session replacing the existing one.
337         (WebCore::SoupNetworkSession::cookieJar): Return the current
338         CookieJar of the session.
339         (WebCore::SoupNetworkSession::setCache): Set a disk cache.
340         (WebCore::SoupNetworkSession::cache): Return the current disk cache.
341         (WebCore::SoupNetworkSession::setSSLPolicy): Set the SSL policy.
342         (WebCore::SoupNetworkSession::sslPolicy): Get the current SSL policy.
343         (WebCore::SoupNetworkSession::setHTTPProxy): Set the HTTP proxy.
344         (WebCore::SoupNetworkSession::httpProxy): Get the current HTTP proxy.
345         (WebCore::SoupNetworkSession::setupHTTPProxyFromEnvironment): Set
346         the HTTP proxy using the environment variables.
347         (WebCore::buildAcceptLanguages): Helper function build the accept
348         language string in the format expected by soup (RFC 2616).
349         (WebCore::SoupNetworkSession::setAcceptLanguages): Set the accept
350         language for the given list of languages.
351         * platform/network/soup/SoupNetworkSession.h: Added.
352         (WebCore::SoupNetworkSession::soupSession): Return the SoupSession.
353
354 2014-01-13  Brent Fulgham  <bfulgham@apple.com>
355
356         [WebGL] Error messages should use source code labels, not internal mangled symbols.
357         https://bugs.webkit.org/show_bug.cgi?id=126832
358
359         Reviewed by Dean Jackson.
360
361         Revised fast/canvas/webgl/glsl-conformance.html.
362
363         * platform/graphics/ANGLEWebKitBridge.cpp:
364         (WebCore::getSymbolInfo): Correct missing 'break'.
365         (WebCore::ANGLEWebKitBridge::compileShaderSource): Call 'getSymbolInfo'
366         for SH_VARYINGS.
367         * platform/graphics/GraphicsContext3D.h: Add new declarations.
368         * platform/graphics/filters/CustomFilterValidatedProgram.cpp: Add case
369         for SHADER_SYMBOL_TYPE_VARYING. This is a no-op to match existing
370         behavior.
371         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
372         (WebCore::GraphicsContext3D::compileShader): Demangle log output.
373         (WebCore::GraphicsContext3D::mappedSymbolName): Added.
374         (WebCore::GraphicsContext3D::getUnmangledInfoLog): Added.
375         (WebCore::GraphicsContext3D::getProgramInfoLog): Demangle log output.
376         (WebCore::GraphicsContext3D::getShaderInfoLog): Demangle log output.
377
378 2014-01-13  David Kilzer  <ddkilzer@apple.com>
379
380         [iOS] Include RenderElement.h to fix BaseChooserOnlyDateAndTimeInputType.cpp
381
382         Fixes the following build failure:
383
384             Undefined symbols for architecture x86_64:
385               "__ZNK7WebCore13ContainerNode8rendererEv", referenced from:
386                   __ZN7WebCore35BaseChooserOnlyDateAndTimeInputType22handleDOMActivateEventEPNS_5EventE in BaseChooserOnlyDateAndTimeInputType.o
387
388         * html/BaseChooserOnlyDateAndTimeInputType.cpp: Include
389         RenderElement.h.
390
391 2014-01-13  Andy Estes  <aestes@apple.com>
392
393         [iOS] Build Fix: copy iOS-specific generated headers
394
395         * Configurations/WebCore.xcconfig: Excluded DOMTouch* and DOMGesture* headers on Mac.
396         * WebCore.xcodeproj/project.pbxproj:
397
398 2014-01-13  Zalan Bujtas  <zalan@apple.com>
399
400         Enable SUBPIXEL_LAYOUT on Mac
401         <https://webkit.org/b/126283>
402
403         Reviewed by Simon Fraser.
404
405         * Configurations/FeatureDefines.xcconfig:
406
407 2014-01-13  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
408
409         REGRESSION(r161715): Use of uninitialized value $ENV{"PLATFORM_NAME"}
410         https://bugs.webkit.org/show_bug.cgi?id=126873
411
412         Reviewed by Csaba Osztrogonác.
413
414         * bindings/scripts/CodeGeneratorObjC.pm:
415         * bindings/scripts/preprocessor.pm:
416         (applyPreprocessor):
417
418 2014-01-13  Andreas Kling  <akling@apple.com>
419
420         CTTE: Autoscroll renderer is always a RenderBox.
421         <https://webkit.org/b/126884>
422
423         Reviewed by Antti Koivisto.
424
425         * page/EventHandler.h:
426         * page/EventHandler.cpp:
427         (WebCore::EventHandler::autoscrollRenderer):
428
429             Make autoscrollRenderer() return a RenderBox*.
430
431         * rendering/RenderObject.cpp:
432         (WebCore::RenderObject::willBeDestroyed):
433         * rendering/RenderBox.cpp:
434         (WebCore::RenderBox::willBeDestroyed):
435
436             Only check if the autoscroll renderer is being torn down
437             in RenderBox::willBeDestroyed() since it's not relevant for
438             other renderer types.
439
440 2014-01-13  László Langó  <llango.u-szeged@partner.samsung.com>
441
442         Text should be constructable.
443         https://bugs.webkit.org/show_bug.cgi?id=115640
444
445         Reviewed by Csaba Osztrogonác.
446
447         http://dom.spec.whatwg.org/#interface-text
448         Make Text constructable so that one can do "new Text('abc')"
449         instead of "document.createTexte('abc')".
450
451         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/cdd5a914daf3862379a5ce4596149bd690d0fa08
452
453         Test: fast/dom/Text/text-constructor.html
454
455         * dom/Text.cpp:
456         (WebCore::Text::create):
457         * dom/Text.h:
458         * dom/Text.idl:
459
460 2014-01-13  Zan Dobersek  <zdobersek@igalia.com>
461
462         Avoid unnecessary copies of AccessibilityObject::AccessibilityChildrenVector
463         https://bugs.webkit.org/show_bug.cgi?id=126876
464
465         Reviewed by Andreas Kling.
466
467         AccessibilityObject::children() returns a reference to the Vector of that AccessibilityObject's children.
468         The majority of callsites stores the return value in a temporary value instead of a reference, causing
469         a copy each time. A reference to the return value should be used instead.
470
471         * accessibility/AXObjectCache.cpp:
472         (WebCore::AXObjectCache::focusedImageMapUIElement):
473         * accessibility/AccessibilityARIAGrid.cpp:
474         (WebCore::AccessibilityARIAGrid::addRowDescendant):
475         * accessibility/AccessibilityARIAGridCell.cpp:
476         (WebCore::AccessibilityARIAGridCell::rowIndexRange):
477         (WebCore::AccessibilityARIAGridCell::columnIndexRange):
478         * accessibility/AccessibilityARIAGridRow.cpp:
479         (WebCore::AccessibilityARIAGridRow::headerObject):
480         * accessibility/AccessibilityListBox.cpp:
481         (WebCore::AccessibilityListBox::setSelectedChildren):
482         * accessibility/AccessibilityListBox.h:
483         * accessibility/AccessibilityNodeObject.cpp:
484         (WebCore::AccessibilityNodeObject::insertChild):
485         (WebCore::AccessibilityNodeObject::selectedRadioButton):
486         (WebCore::AccessibilityNodeObject::selectedTabItem):
487         * accessibility/AccessibilityObject.cpp:
488         (WebCore::appendChildrenToArray):
489         (WebCore::AccessibilityObject::ariaTreeRows):
490         (WebCore::AccessibilityObject::ariaTreeItemContent):
491         (WebCore::AccessibilityObject::ariaTreeItemDisclosedRows):
492         * accessibility/AccessibilityRenderObject.cpp:
493         (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
494         (WebCore::AccessibilityRenderObject::addRemoteSVGChildren):
495         (WebCore::AccessibilityRenderObject::addHiddenChildren):
496         (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
497         (WebCore::AccessibilityRenderObject::ariaListboxVisibleChildren):
498         (WebCore::AccessibilityRenderObject::tabChildren):
499         (WebCore::AccessibilityRenderObject::mathRadicandObject):
500         (WebCore::AccessibilityRenderObject::mathRootIndexObject):
501         (WebCore::AccessibilityRenderObject::mathNumeratorObject):
502         (WebCore::AccessibilityRenderObject::mathDenominatorObject):
503         (WebCore::AccessibilityRenderObject::mathUnderObject):
504         (WebCore::AccessibilityRenderObject::mathOverObject):
505         (WebCore::AccessibilityRenderObject::mathBaseObject):
506         (WebCore::AccessibilityRenderObject::mathSubscriptObject):
507         (WebCore::AccessibilityRenderObject::mathSuperscriptObject):
508         * accessibility/AccessibilityTable.cpp:
509         (WebCore::AccessibilityTable::cellForColumnAndRow):
510         * accessibility/AccessibilityTableColumn.cpp:
511         (WebCore::AccessibilityTableColumn::headerObject):
512         * accessibility/AccessibilityTableRow.cpp:
513         (WebCore::AccessibilityTableRow::headerObject):
514         * accessibility/atk/AXObjectCacheAtk.cpp:
515         (WebCore::getListObject):
516         (WebCore::notifyChildrenSelectionChange):
517         * accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp:
518         (webkitAccessibleHypertextGetLink):
519         (webkitAccessibleHypertextGetNLinks):
520         * accessibility/atk/WebKitAccessibleInterfaceSelection.cpp:
521         (listObjectForSelection):
522         (optionFromList):
523         (webkitAccessibleSelectionSelectAllSelection):
524         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
525         (getNChildrenForTable):
526         (getChildForTable):
527         (webkitAccessibleRefChild):
528         (getIndexInParentForCellInRow):
529         (getInterfaceMaskFromObject):
530         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
531         (-[WebAccessibilityObjectWrapper accessibilityElementAtIndex:]):
532         (-[WebAccessibilityObjectWrapper indexOfAccessibilityElement:]):
533         (-[WebAccessibilityObjectWrapper containsUnnaturallySegmentedChildren]):
534         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
535         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
536
537 2014-01-13  László Langó  <llango.u-szeged@partner.samsung.com>
538
539         Comment should be consructable.
540         https://bugs.webkit.org/show_bug.cgi?id=115642
541
542         Reviewed by Andreas Kling.
543
544         http://dom.spec.whatwg.org/#comment
545         This allows us to do `new Comment('abc')` instead of `document.createComment('abc')`.
546
547         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/06e4a37f6b11348606de5405edac1ada97499d2a%5E%21
548
549         Test: fast/dom/Comment/comment-constructor.html
550
551         * dom/Comment.cpp:
552         (WebCore::Comment::create):
553         * dom/Comment.h:
554         * dom/Comment.idl:
555
556 2014-01-13  Commit Queue  <commit-queue@webkit.org>
557
558         Unreviewed, rolling out r161808.
559         http://trac.webkit.org/changeset/161808
560         https://bugs.webkit.org/show_bug.cgi?id=126874
561
562         This patch make several files to be always regenerated on
563         every make (Requested by KaL on #webkit).
564
565         * GNUmakefile.am:
566         * bindings/gobject/GNUmakefile.am:
567
568 2014-01-12  Commit Queue  <commit-queue@webkit.org>
569
570         Unreviewed, rolling out r161843.
571         http://trac.webkit.org/changeset/161843
572         https://bugs.webkit.org/show_bug.cgi?id=126871
573
574         Caused CSS custom filter tests to assert (Requested by smfr on
575         #webkit).
576
577         * platform/graphics/ANGLEWebKitBridge.cpp:
578         (WebCore::getSymbolInfo):
579         (WebCore::ANGLEWebKitBridge::compileShaderSource):
580         * platform/graphics/GraphicsContext3D.h:
581         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
582         (WebCore::GraphicsContext3D::compileShader):
583         (WebCore::GraphicsContext3D::getProgramInfoLog):
584         (WebCore::GraphicsContext3D::getShaderInfoLog):
585
586 2014-01-12  Commit Queue  <commit-queue@webkit.org>
587
588         Unreviewed, rolling out r161840.
589         http://trac.webkit.org/changeset/161840
590         https://bugs.webkit.org/show_bug.cgi?id=126870
591
592         Caused jsscore and layout test failures (Requested by smfr on
593         #webkit).
594
595         * bindings/objc/WebScriptObject.mm:
596         (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
597         * editing/CompositeEditCommand.cpp:
598         (WebCore::containsOnlyWhitespace):
599         * editing/TypingCommand.cpp:
600         (WebCore::TypingCommand::insertText):
601         * editing/VisibleUnits.cpp:
602         (WebCore::startOfParagraph):
603         (WebCore::endOfParagraph):
604         * html/parser/HTMLParserIdioms.cpp:
605         (WebCore::stripLeadingAndTrailingHTMLSpaces):
606         (WebCore::parseHTMLNonNegativeInteger):
607         * inspector/ContentSearchUtils.cpp:
608         (WebCore::ContentSearchUtils::createSearchRegexSource):
609         * inspector/InspectorStyleSheet.cpp:
610         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters):
611         * inspector/InspectorStyleTextEditor.cpp:
612         (WebCore::InspectorStyleTextEditor::insertProperty):
613         (WebCore::InspectorStyleTextEditor::internalReplaceProperty):
614         * platform/Length.cpp:
615         (WebCore::newCoordsArray):
616         * platform/LinkHash.cpp:
617         (WebCore::visitedLinkHash):
618         * platform/graphics/Color.cpp:
619         (WebCore::Color::parseHexColor):
620         (WebCore::Color::Color):
621         * platform/graphics/TextRun.h:
622         (WebCore::TextRun::TextRun):
623         * platform/text/TextEncodingRegistry.cpp:
624         (WebCore::atomicCanonicalTextEncodingName):
625         * rendering/RenderBlock.cpp:
626         (WebCore::RenderBlock::constructTextRun):
627         * rendering/RenderCombineText.cpp:
628         (WebCore::RenderCombineText::width):
629         * svg/SVGFontElement.cpp:
630         (WebCore::SVGFontElement::registerLigaturesInGlyphCache):
631         * xml/XPathFunctions.cpp:
632         (WebCore::XPath::FunId::evaluate):
633         * xml/XPathNodeSet.h:
634
635 2014-01-12  Jinwoo Song  <jinwoo7.song@samsung.com>
636
637         Fix build warnings by unused parameter
638         https://bugs.webkit.org/show_bug.cgi?id=126867
639
640         Reviewed by Gyuyoung Kim.
641
642         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp: 
643         (WebCore::IDBServerConnectionLevelDB::changeDatabaseVersion): Remove unused parameter 'operation'.
644
645 2014-01-12  Brent Fulgham  <bfulgham@apple.com>
646
647         Unreviewed build fix for WinCairo.
648
649         * WebCore.vcxproj/WebCoreCairo.props: Add missing include path
650         to locate SelectorCompiler.h.
651
652 2014-01-12  Maciej Stachowiak  <mjs@apple.com>
653
654         Fix iOS build breakage from http://trac.webkit.org/changeset/161844
655         https://bugs.webkit.org/show_bug.cgi?id=126866
656
657         Reviewed by Simon Fraser.
658
659         * platform/text/TextBreakIteratorICU.cpp:
660         (WebCore::cursorMovementIterator): Use initializeIterator instead of createSharedIterator,
661         which does not exist.
662
663 2014-01-12  Darin Adler  <darin@apple.com>
664
665         Add PLATFORM(COCOA) and USE(FOUNDATION)
666         https://bugs.webkit.org/show_bug.cgi?id=126859
667
668         Reviewed by Anders Carlsson.
669
670         * config.h: Use PLATFORM(COCOA) instead of PLATFORM(MAC) || PLATFORM(IOS)
671         to set USE(FILE_LOCK). Would be nice to use OS(DARWIN), but that would be
672         a change in behavior that might be incorrect. Removed bogus comments in
673         the USE(NEW_THEME) setting code. Removed redundant code to set USE(CA),
674         which exactly duplicates code that already exists in Platform.h.
675
676 2014-01-12  Darin Adler  <darin@apple.com>
677
678         Add deprecatedCharacters as a synonym for characters and convert most call sites
679         https://bugs.webkit.org/show_bug.cgi?id=126858
680
681         Reviewed by Anders Carlsson.
682
683         * Modules/indexeddb/IDBKeyPath.cpp:
684         (WebCore::IDBKeyPathLexer::IDBKeyPathLexer):
685         * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
686         (WebCore::ThreadableWebSocketChannelClientWrapper::setSubprotocol):
687         (WebCore::ThreadableWebSocketChannelClientWrapper::setExtensions):
688         * accessibility/AccessibilityObject.cpp:
689         (WebCore::AccessibilityObject::hasMisspelling):
690         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
691         (-[WebAccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]):
692         * bindings/js/SerializedScriptValue.cpp:
693         (WebCore::CloneSerializer::serialize):
694         (WebCore::CloneSerializer::write):
695         * dom/CharacterData.cpp:
696         (WebCore::CharacterData::parserAppendData):
697         * dom/Document.cpp:
698         (WebCore::Document::parseQualifiedName):
699         * editing/Editor.cpp:
700         (WebCore::Editor::misspelledWordAtCaretOrRange):
701         (WebCore::Editor::misspelledSelectionString):
702         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
703         * editing/TextCheckingHelper.cpp:
704         (WebCore::TextCheckingHelper::findFirstMisspellingOrBadGrammar):
705         (WebCore::TextCheckingHelper::findFirstBadGrammar):
706         (WebCore::TextCheckingHelper::guessesForMisspelledOrUngrammaticalRange):
707         * editing/TextCheckingHelper.h:
708         (WebCore::TextCheckingParagraph::textDeprecatedCharacters):
709         * editing/TextIterator.cpp:
710         (WebCore::collapsedSpaceLength):
711         (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
712         (WebCore::containsKanaLetters):
713         (WebCore::SearchBuffer::SearchBuffer):
714         * editing/TextIterator.h:
715         (WebCore::TextIterator::characters):
716         * editing/VisiblePosition.cpp:
717         (WebCore::VisiblePosition::characterAfter):
718         * editing/VisibleUnits.cpp:
719         (WebCore::wordBreakIteratorForMinOffsetBoundary):
720         (WebCore::wordBreakIteratorForMaxOffsetBoundary):
721         (WebCore::visualWordPosition):
722         (WebCore::previousBoundary):
723         (WebCore::nextBoundary):
724         * fileapi/WebKitBlobBuilder.cpp:
725         (WebCore::BlobBuilder::append):
726         * html/FormDataList.cpp:
727         (WebCore::FormDataList::appendString):
728         * html/canvas/CanvasRenderingContext2D.cpp:
729         (WebCore::normalizeSpaces):
730         * html/parser/HTMLParserIdioms.cpp:
731         (WebCore::parseImagesWithScaleFromSrcsetAttribute):
732         * html/parser/HTMLTreeBuilder.cpp:
733         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::ExternalCharacterTokenBuffer):
734         * loader/appcache/ManifestParser.cpp:
735         (WebCore::parseManifest):
736         * page/ContentSecurityPolicy.cpp:
737         (WebCore::isSourceListNone):
738         (WebCore::CSPSourceList::parse):
739         (WebCore::NonceDirective::parse):
740         (WebCore::MediaListDirective::parse):
741         (WebCore::CSPDirectiveList::parse):
742         (WebCore::CSPDirectiveList::parseReportURI):
743         (WebCore::CSPDirectiveList::parseReflectedXSS):
744         (WebCore::ContentSecurityPolicy::didReceiveHeader):
745         * page/PageSerializer.cpp:
746         (WebCore::PageSerializer::serializeFrame):
747         (WebCore::PageSerializer::serializeCSSStyleSheet):
748         * platform/Length.cpp:
749         (WebCore::newCoordsArray):
750         (WebCore::newLengthArray):
751         * platform/LinkHash.cpp:
752         (WebCore::visitedURL):
753         (WebCore::visitedLinkHash):
754         * platform/SharedBuffer.cpp:
755         (WebCore::utf8Buffer):
756         * platform/URL.cpp:
757         (WebCore::URL::port):
758         (WebCore::encodeHostnames):
759         * platform/graphics/StringTruncator.cpp:
760         (WebCore::centerTruncateToBuffer):
761         (WebCore::rightTruncateToBuffer):
762         (WebCore::rightClipToCharacterBuffer):
763         (WebCore::rightClipToWordBuffer):
764         (WebCore::leftTruncateToBuffer):
765         (WebCore::truncateString):
766         (WebCore::StringTruncator::width):
767         * platform/graphics/TextRun.h:
768         (WebCore::TextRun::TextRun):
769         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
770         (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
771         * platform/network/FormDataBuilder.cpp:
772         (WebCore::FormDataBuilder::addFilenameToMultiPartHeader):
773         * platform/sql/SQLiteStatement.cpp:
774         (WebCore::SQLiteStatement::bindBlob):
775         (WebCore::SQLiteStatement::bindText):
776         * platform/text/DecodeEscapeSequences.h:
777         (WebCore::decodeEscapeSequences):
778         * platform/text/TextBreakIterator.cpp:
779         (WebCore::numGraphemeClusters):
780         (WebCore::numCharactersInGraphemeClusters):
781         * platform/text/TextBreakIteratorICU.cpp:
782         (WebCore::setUpIteratorWithRules):
783         * platform/text/TextCodecICU.cpp:
784         (WebCore::TextCodecICU::encode):
785         * rendering/RenderBlock.cpp:
786         (WebCore::RenderBlock::constructTextRun):
787         * rendering/RenderListMarker.cpp:
788         (WebCore::RenderListMarker::paint):
789         * rendering/RenderText.cpp:
790         (WebCore::maxWordFragmentWidth):
791         (WebCore::RenderText::computePreferredLogicalWidths):
792         (WebCore::RenderText::computeCanUseSimpleFontCodePath):
793         * rendering/RenderText.h:
794         (WebCore::RenderText::characters):
795         (WebCore::RenderText::deprecatedCharacters):
796         * rendering/line/BreakingContextInlineHeaders.h:
797         (WebCore::tryHyphenating):
798         * rendering/svg/SVGInlineTextBox.cpp:
799         (WebCore::SVGInlineTextBox::constructTextRun):
800         * rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
801         (WebCore::processRenderSVGInlineText):
802         * rendering/svg/SVGTextLayoutEngine.cpp:
803         (WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath):
804         * rendering/svg/SVGTextMetrics.cpp:
805         (WebCore::SVGTextMetrics::measureCharacterRange):
806         (WebCore::SVGTextMetrics::SVGTextMetrics):
807         * rendering/svg/SVGTextMetricsBuilder.cpp:
808         (WebCore::SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer):
809         * svg/SVGAngle.cpp:
810         (WebCore::SVGAngle::setValueAsString):
811         * svg/SVGAnimateMotionElement.cpp:
812         (WebCore::parsePoint):
813         * svg/SVGAnimationElement.cpp:
814         (WebCore::parseKeySplines):
815         * svg/SVGFitToViewBox.cpp:
816         (WebCore::SVGFitToViewBox::parseViewBox):
817         * svg/SVGFontData.cpp:
818         (WebCore::SVGFontData::applySVGGlyphSelection):
819         * svg/SVGGlyphMap.h:
820         (WebCore::SVGGlyphMap::addGlyph):
821         (WebCore::SVGGlyphMap::collectGlyphsForString):
822         * svg/SVGGlyphRefElement.cpp:
823         (WebCore::SVGGlyphRefElement::parseAttribute):
824         * svg/SVGLength.cpp:
825         (WebCore::SVGLength::setValueAsString):
826         * svg/SVGLengthList.cpp:
827         (WebCore::SVGLengthList::parse):
828         * svg/SVGNumberList.cpp:
829         (WebCore::SVGNumberList::parse):
830         * svg/SVGParserUtilities.cpp:
831         (WebCore::parseNumberFromString):
832         (WebCore::parseNumberOptionalNumber):
833         (WebCore::parseRect):
834         (WebCore::pointsListFromSVGData):
835         (WebCore::parseGlyphName):
836         (WebCore::parseKerningUnicodeString):
837         (WebCore::parseDelimitedString):
838         * svg/SVGPreserveAspectRatio.cpp:
839         (WebCore::SVGPreserveAspectRatio::parse):
840         * svg/SVGStringList.cpp:
841         (WebCore::SVGStringList::parse):
842         * svg/SVGTransformList.cpp:
843         (WebCore::SVGTransformList::parse):
844         * svg/SVGTransformable.cpp:
845         (WebCore::SVGTransformable::parseTransformType):
846         * svg/SVGViewSpec.cpp:
847         (WebCore::SVGViewSpec::parseViewSpec):
848         * svg/SVGZoomAndPan.h:
849         (WebCore::SVGZoomAndPan::parseAttribute):
850         * xml/XMLHttpRequest.cpp:
851         (WebCore::XMLHttpRequest::send):
852         * xml/XSLStyleSheetLibxslt.cpp:
853         (WebCore::XSLStyleSheet::parseString):
854         * xml/XSLTUnicodeSort.cpp:
855         (WebCore::xsltUnicodeSortFunction):
856         * xml/parser/XMLDocumentParserLibxml2.cpp:
857         (WebCore::XMLDocumentParser::doWrite):
858         (WebCore::parseAttributes):
859         Use deprecatedCharacters instead of characters.
860
861 2014-01-12  Darin Adler  <darin@apple.com>
862
863         Add type checking to isEqual methods
864         https://bugs.webkit.org/show_bug.cgi?id=126862
865
866         Reviewed by Anders Carlsson.
867
868         * page/ios/WebEventRegion.mm:
869         (-[WebEventRegion isEqual:]): Add type checking on the argument.
870         Add a FIXME about the lack of a hash method override. Formatted to match
871         the usual WebKit coding style.
872
873 2014-01-12  Anders Carlsson  <andersca@apple.com>
874
875         Try to fix the 32-bit build.
876
877         * platform/text/icu/UTextProviderLatin1.cpp:
878         (WebCore::uTextLatin1Clone):
879         (WebCore::uTextLatin1Extract):
880         (WebCore::uTextLatin1MapNativeIndexToUTF16):
881
882 2014-01-12  Anders Carlsson  <andersca@apple.com>
883
884         Remove all uses of AtomicallyInitializedStatic from WebCore
885         https://bugs.webkit.org/show_bug.cgi?id=126861
886
887         Reviewed by Darin Adler.
888
889         * Modules/indexeddb/IDBPendingTransactionMonitor.cpp:
890         (WebCore::transactions):
891         * fileapi/ThreadableBlobRegistry.cpp:
892         (WebCore::originMap):
893         * platform/text/TextEncodingRegistry.cpp:
894         (WebCore::encodingRegistryMutex):
895         (WebCore::newTextCodec):
896         (WebCore::atomicCanonicalTextEncodingName):
897         (WebCore::dumpTextEncodingNameMap):
898         * workers/DefaultSharedWorkerRepository.cpp:
899         (WebCore::DefaultSharedWorkerRepository::instance):
900
901 2014-01-12  Anders Carlsson  <andersca@apple.com>
902
903         Use an std::atomic<uint32_t> when computing IDBDatabase transaction IDs
904         https://bugs.webkit.org/show_bug.cgi?id=126853
905
906         Reviewed by Sam Weinig.
907
908         * Modules/indexeddb/IDBDatabase.cpp:
909         (WebCore::IDBDatabase::nextTransactionId):
910
911 2014-01-12  Sam Weinig  <sam@webkit.org>
912
913         TextBreakIterator's should support Latin-1 for all iterator types (Part 1)
914         https://bugs.webkit.org/show_bug.cgi?id=126856
915
916         Reviewed by Darin Adler.
917
918         - Do some initial cleanup before adding complete Latin-1 support.
919
920         * platform/text/TextBreakIterator.cpp:
921         Remove non-ICU acquireLineBreakIterator() implementation.
922
923         * platform/text/TextBreakIterator.h:
924         - Changes acquireLineBreakIterator() to take a StringView.
925
926         * platform/text/TextBreakIteratorICU.cpp:
927         - Refactor iterator initialization and setting of text on the iterator.
928         - Add support for using a Latin-1 provider (this is not currently used).
929
930         * platform/text/icu/UTextProviderLatin1.cpp:
931         * platform/text/icu/UTextProviderLatin1.h:
932         - Add back non-context aware Latin-1 provider (from r129662).
933         - Rename context aware provider.
934
935         * platform/text/icu/UTextProviderUTF16.cpp:
936         * platform/text/icu/UTextProviderUTF16.h:
937         - Rename context aware provider.
938
939 2014-01-12  Brent Fulgham  <bfulgham@apple.com>
940
941         [WebGL] Error messages should use source code labels, not internal mangled symbols.
942         https://bugs.webkit.org/show_bug.cgi?id=126832
943
944         Reviewed by Dean Jackson.
945
946         Revised fast/canvas/webgl/glsl-conformance.html.
947
948         * platform/graphics/ANGLEWebKitBridge.cpp:
949         (WebCore::getSymbolInfo): Correct missing 'break'.
950         (WebCore::ANGLEWebKitBridge::compileShaderSource): Call 'getSymbolInfo'
951         for SH_VARYINGS.
952         * platform/graphics/GraphicsContext3D.h: Add new declarations.
953         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
954         (WebCore::GraphicsContext3D::compileShader): Demangle log output.
955         (WebCore::GraphicsContext3D::mappedSymbolName): Added.
956         (WebCore::GraphicsContext3D::getUnmangledInfoLog): Added.
957         (WebCore::GraphicsContext3D::getProgramInfoLog): Demangle log output.
958         (WebCore::GraphicsContext3D::getShaderInfoLog): Demangle log output.
959
960 2014-01-12  Dan Bernstein  <mitz@apple.com>
961
962         Try to fix the Windows build after r161839.
963
964         * WebCore.vcxproj/WebCoreCommon.props:
965
966 2014-01-12  Darin Adler  <darin@apple.com>
967
968         Reduce use of String::characters
969         https://bugs.webkit.org/show_bug.cgi?id=126854
970
971         Reviewed by Sam Weinig.
972
973         * bindings/objc/WebScriptObject.mm:
974         (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
975         Get rid of unneeded code to turn a WTF::String into an NSString, since that's
976         built into the WTF::String class.
977
978         * editing/CompositeEditCommand.cpp:
979         (WebCore::containsOnlyWhitespace): Use WTF::String's [] operator instead of
980         an explicit call to the characters function. Small performance cost.
981         * editing/TypingCommand.cpp:
982         (WebCore::TypingCommand::insertText): Ditto.
983
984         * editing/VisibleUnits.cpp:
985         (WebCore::startOfParagraph): Use reverseFind instead of writing our own loop.
986         (WebCore::endOfParagraph): Use find instead of writing our own loop.
987
988         * html/parser/HTMLParserIdioms.cpp:
989         (WebCore::stripLeadingAndTrailingHTMLSpaces): Use characters16 instead of
990         characters since we have already checked is8Bit.
991         (WebCore::parseHTMLNonNegativeInteger): Ditto. Replace the length check with
992         a check of isNull since a zero length string could be 8 bit, but it's not
993         safe to call is8Bit on a null WTF::String. (That should probably be fixed.)
994
995         * inspector/ContentSearchUtils.cpp:
996         (WebCore::ContentSearchUtils::createSearchRegexSource): Use StringBuilder
997         instead of String in code that builds up a string one character at a time.
998         The old way was ridiculously slow because it allocated a new string for every
999         character; the new way still isn't all that efficient, but it's better. Also
1000         changed to use strchr instead of WTF::String::find for special characters.
1001
1002         * inspector/InspectorStyleSheet.cpp:
1003         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters): Use WTF::String's
1004         [] operator instead of an explicit call to the characters function.
1005         * inspector/InspectorStyleTextEditor.cpp:
1006         (WebCore::InspectorStyleTextEditor::insertProperty): Ditto.
1007         (WebCore::InspectorStyleTextEditor::internalReplaceProperty): Ditto.
1008         * platform/Length.cpp:
1009         (WebCore::newCoordsArray): Ditto.
1010
1011         * platform/LinkHash.cpp:
1012         (WebCore::visitedLinkHash): Use characters16 instead of characters since
1013         we have already checked is8Bit. Replace the length check with a check of
1014         isNull (as above in parseHTMLNonNegativeInteger).
1015
1016         * platform/graphics/Color.cpp:
1017         (WebCore::Color::parseHexColor): Use characters16 since we already checked is8Bit.
1018         (WebCore::Color::Color): Ditto.
1019
1020         * platform/graphics/TextRun.h:
1021         (WebCore::TextRun::TextRun): Use characters16 instead of characters since
1022         we have already checked is8Bit. Replace the length check with a check of
1023         isNull (as above in parseHTMLNonNegativeInteger).
1024
1025         * platform/text/TextEncodingRegistry.cpp:
1026         (WebCore::atomicCanonicalTextEncodingName): Use characters16 instead of
1027         characters since we already checked is8Bit. Also use isEmpty instead of !length.
1028
1029         * rendering/RenderBlock.cpp:
1030         (WebCore::RenderBlock::constructTextRun): Use characters16 instead of characters
1031         since we have already checked is8Bit. Replace the length check with a check of
1032         isNull (as above in parseHTMLNonNegativeInteger).
1033
1034         * rendering/RenderCombineText.cpp:
1035         (WebCore::RenderCombineText::width): Check for zero length instead of checking
1036         for null characters.
1037
1038         * svg/SVGFontElement.cpp:
1039         (WebCore::SVGFontElement::registerLigaturesInGlyphCache): Rewrite ligatures
1040         for loop and give local variables a better name. Construct the substring with
1041         the substring function. Still a really inefficient approach -- allocating a new
1042         string for every character is absurdly expensive.
1043
1044         * xml/XPathFunctions.cpp:
1045         (WebCore::XPath::FunId::evaluate): Use String instead of StringBuilder. Still
1046         not all that efficient, but better than before. Use substring to construct the
1047         substring.
1048
1049         * xml/XPathNodeSet.h: Added begin and end functions so we can use a C++11 for
1050         loop with this class.
1051
1052 2014-01-12  Benjamin Poulain  <benjamin@webkit.org>
1053
1054         Use the Selector Code Generator for matching in SelectorQuery
1055         https://bugs.webkit.org/show_bug.cgi?id=126185
1056
1057         Reviewed by Ryosuke Niwa.
1058
1059         Compile selectors on demand and use the generated binary to perform
1060         element matching in SelectorQuery.
1061
1062         Tests: fast/selectors/querySelector-long-adjacent-backtracking.html
1063                fast/selectors/querySelector-long-child-backtracking.html
1064                fast/selectors/querySelector-mixed-child-adjacent-backtracking.html
1065                fast/selectors/querySelector-multiple-simple-child-backtracking.html
1066                fast/selectors/querySelector-simple-adjacent-backtracking.html
1067                fast/selectors/querySelector-simple-child-backtracking.html
1068
1069         * dom/SelectorQuery.cpp:
1070         (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
1071         (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
1072         (WebCore::SelectorDataList::execute):
1073         * dom/SelectorQuery.h:
1074
1075 2014-01-12  Anders Carlsson  <andersca@apple.com>
1076
1077         Simplify creation of XMLHttpRequestStaticData
1078         https://bugs.webkit.org/show_bug.cgi?id=126852
1079
1080         Reviewed by Sam Weinig.
1081
1082         Add a staticData() getter that does the initialization and get rid of the explicit
1083         calls to initializeXMLHttpRequestStaticData().
1084
1085         * xml/XMLHttpRequest.cpp:
1086         (WebCore::XMLHttpRequestStaticData::XMLHttpRequestStaticData):
1087         (WebCore::staticData):
1088         (WebCore::XMLHttpRequest::XMLHttpRequest):
1089         (WebCore::XMLHttpRequest::isAllowedHTTPHeader):
1090
1091 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1092
1093         Final WebCore link error: update a symbol in WebCoreSystemInterfaceIOS.mm.
1094
1095         * platform/ios/WebCoreSystemInterfaceIOS.mm:
1096
1097 2014-01-12  Anders Carlsson  <andersca@apple.com>
1098
1099         Use std::call_once instead of AtomicallyInitializedStatic in DatabaseBackendBase
1100         https://bugs.webkit.org/show_bug.cgi?id=126851
1101
1102         Reviewed by Sam Weinig.
1103
1104         * Modules/webdatabase/DatabaseBackendBase.cpp:
1105         (WebCore::guidMutex):
1106         (WebCore::guidToVersionMap):
1107         (WebCore::updateGuidVersionMap):
1108         (WebCore::guidToDatabaseMap):
1109         (WebCore::guidForOriginAndName):
1110         (WebCore::DatabaseBackendBase::DatabaseBackendBase):
1111         (WebCore::DatabaseBackendBase::closeDatabase):
1112         (WebCore::DatabaseBackendBase::performOpenAndVerify):
1113         (WebCore::DatabaseBackendBase::getCachedVersion):
1114         (WebCore::DatabaseBackendBase::setCachedVersion):
1115
1116 2014-01-12  Dan Bernstein  <mitz@apple.com>
1117
1118         Try to fix the Windows build after r161830.
1119
1120         * platform/network/NetworkStateNotifier.h:
1121
1122 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1123
1124         Don't build JSTouch* and JSGesture* files on Mac.
1125
1126         * Configurations/WebCore.xcconfig:
1127
1128 2014-01-12  Anders Carlsson  <andersca@apple.com>
1129
1130         Clean up NetworkStateNotifier class
1131         https://bugs.webkit.org/show_bug.cgi?id=126850
1132
1133         Reviewed by Andreas Kling.
1134
1135         Use std::call_once instead of AtomicallyInitializedStatic and a std::function
1136         instead of a custom function pointer typedef.
1137
1138         * platform/network/NetworkStateNotifier.cpp:
1139         (WebCore::networkStateNotifier):
1140         (WebCore::NetworkStateNotifier::addNetworkStateChangeListener):
1141         (WebCore::NetworkStateNotifier::notifyNetworkStateChange):
1142         * platform/network/NetworkStateNotifier.h:
1143
1144 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1145
1146         Add implementations of Frame::viewportArguments() and
1147         Frame::setViewportArguments().
1148
1149         * page/ios/FrameIOS.mm:
1150         (WebCore::Frame::viewportArguments):
1151         (WebCore::Frame::setViewportArguments):
1152
1153 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1154
1155         Add JSWebKitPlaybackTargetAvailabilityEvent.* to the project.
1156
1157         * WebCore.xcodeproj/project.pbxproj:
1158
1159 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1160
1161         Stub out some DragImage functions for iOS.
1162         
1163         * WebCore.xcodeproj/project.pbxproj:
1164         * platform/ios/DragImageIOS.mm: Added.
1165         (WebCore::dragImageSize):
1166         (WebCore::scaleDragImage):
1167         (WebCore::createDragImageFromImage):
1168
1169 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1170
1171         We need DragImage.cpp code even when ENABLE_DRAG_SUPPORT is
1172         not defined, because these are actually generic snapshotting
1173         functions.
1174
1175         * platform/DragImage.cpp:
1176
1177 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1178
1179         Fix linker errors: add DateTimeFormat.cpp to the project,
1180         and make DateInputType::DateInputType not inline.
1181
1182         * WebCore.xcodeproj/project.pbxproj:
1183         * html/DateInputType.cpp:
1184         (WebCore::DateInputType::DateInputType):
1185         * platform/DragImage.cpp:
1186
1187 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1188
1189         Fix a bunch of linker errors related to exported functions.
1190         I removed some iOS symbols from the .exp.in file; we may have
1191         to add some back.
1192
1193         * WebCore.exp.in:
1194
1195 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1196
1197         Add generated JSTouch* and JSGestureEvent.* files to the project.
1198
1199         * WebCore.xcodeproj/project.pbxproj:
1200
1201 2014-01-12  David Kilzer  <ddkilzer@apple.com>
1202
1203         Move implementation of AuthenticationChallenge::setAuthenticationClient() to source file for USE(CFNETWORK)
1204         <http://webkit.org/b/126848>
1205
1206         Reviewed by Simon Fraser.
1207
1208         * platform/network/cf/AuthenticationCF.cpp:
1209         (WebCore::AuthenticationChallenge::setAuthenticationClient):
1210         Move implementation to here...
1211         * platform/network/cf/AuthenticationChallenge.h: ...from here.
1212         Remove duplicate header definitions inside USE(CFNETWORK).
1213
1214 2014-01-12  Sam Weinig  <sam@webkit.org>
1215
1216         Fix windows.
1217
1218         * WebCore.vcxproj/WebCore.vcxproj:
1219
1220 2014-01-12  Anders Carlsson  <andersca@apple.com>
1221
1222         Replace more uses of AtomicallyInitializedStatic with std::call_once
1223         https://bugs.webkit.org/show_bug.cgi?id=126847
1224
1225         Reviewed by Sam Weinig.
1226
1227         * crypto/CryptoAlgorithmRegistry.cpp:
1228         (WebCore::CryptoAlgorithmRegistry::shared):
1229         (WebCore::registryMutex):
1230         (WebCore::CryptoAlgorithmRegistry::getIdentifierForName):
1231         (WebCore::CryptoAlgorithmRegistry::nameForIdentifier):
1232         (WebCore::CryptoAlgorithmRegistry::create):
1233         (WebCore::CryptoAlgorithmRegistry::registerAlgorithm):
1234         * crypto/CryptoAlgorithmRegistry.h:
1235         * inspector/WorkerDebuggerAgent.cpp:
1236         (WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent):
1237         (WebCore::WorkerDebuggerAgent::~WorkerDebuggerAgent):
1238         (WebCore::WorkerDebuggerAgent::interruptAndDispatchInspectorCommands):
1239         * workers/WorkerThread.cpp:
1240         (WebCore::threadSetMutex):
1241         (WebCore::workerThreads):
1242         (WebCore::WorkerThread::workerThreadCount):
1243         (WebCore::WorkerThread::WorkerThread):
1244         (WebCore::WorkerThread::~WorkerThread):
1245         (WebCore::WorkerThread::releaseFastMallocFreeMemoryInAllThreads):
1246
1247 2014-01-11  Sam Weinig  <sam@webkit.org>
1248
1249         Split ICU UText providers out into their own files
1250         https://bugs.webkit.org/show_bug.cgi?id=126834
1251
1252         Reviewed by Anders Carlsson.
1253
1254         Moves the implementation of our custom UText providers out into
1255         their own files.
1256         - UTextProviderLatin1.h/cpp contains the Latin-1 provider.
1257         - UTextProviderUTF16.h/cpp contains the UTF-16 provider.
1258         - UTextProvider.h/cpp contains code common to all the providers.
1259
1260         * CMakeLists.txt:
1261         * GNUmakefile.list.am:
1262         * PlatformGTK.cmake:
1263         * WebCore.vcxproj/WebCoreCommon.props:
1264         * WebCore.vcxproj/copyForwardingHeaders.cmd:
1265         * WebCore.xcodeproj/project.pbxproj:
1266         * platform/text/TextAllInOne.cpp:
1267         * platform/text/TextBreakIteratorICU.cpp:
1268         (WebCore::setUpIterator):
1269         (WebCore::wordBreakIterator):
1270         (WebCore::acquireLineBreakIterator):
1271         (WebCore::sentenceBreakIterator):
1272         (WebCore::setUpIteratorWithRules):
1273         * platform/text/icu: Added.
1274         * platform/text/icu/UTextProvider.cpp: Added.
1275         (WebCore::fixPointer):
1276         (WebCore::uTextCloneImpl):
1277         * platform/text/icu/UTextProvider.h: Added.
1278         (WebCore::uTextProviderContext):
1279         (WebCore::uTextInitialize):
1280         (WebCore::uTextAccessPinIndex):
1281         (WebCore::uTextAccessInChunkOrOutOfRange):
1282         * platform/text/icu/UTextProviderLatin1.cpp: Added.
1283         * platform/text/icu/UTextProviderLatin1.h: Added.
1284         * platform/text/icu/UTextProviderUTF16.cpp: Added.
1285         * platform/text/icu/UTextProviderUTF16.h: Added.
1286
1287 2014-01-12  Carlos Garcia Campos  <cgarcia@igalia.com>
1288
1289         Unreviewed. Fix make distcheck.
1290
1291         * GNUmakefile.list.am: Add missing files.
1292
1293 2014-01-12  Simon Fraser  <simon.fraser@apple.com>
1294
1295         Fix some CoreVideo linker errors on iOS by softlinking with more CoreVideo
1296         symbols.
1297
1298         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1299
1300 2014-01-12  Andreas Kling  <akling@apple.com>
1301
1302         REGRESSION(r160806): line-height is not applied when only present in :link style.
1303         <http://webkit.org/b/126839>
1304         <rdar://problem/15799899>
1305
1306         Reviewed by Antti Koivisto.
1307
1308         Test: fast/css/line-height-link-style.html
1309
1310         * css/StyleResolver.cpp:
1311         (WebCore::StyleResolver::CascadedProperties::Property::apply):
1312
1313             Use the CSSValue for SelectorChecker::MatchLink when applying
1314             style inside a link.
1315
1316 2014-01-12  David Kilzer  <ddkilzer@apple.com>
1317
1318         [iOS] Fix link errors for iOS: Part 3
1319
1320         * WebCore.exp.in:
1321         - Move some Mac-only symbols to Mac-only section.
1322         * WebCore.xcodeproj/project.pbxproj:
1323         - Add missing references to AuthenticationCF.cpp and
1324           CookieJarCFNet.cpp.
1325
1326 2014-01-11  Anders Carlsson  <andersca@apple.com>
1327
1328         Remove unsafe uses of AtomicallyInitializedStatic
1329         https://bugs.webkit.org/show_bug.cgi?id=126838
1330
1331         Reviewed by Andreas Kling.
1332
1333         AtomicStrings are per thread so any static initialization of them is potentially dangerous
1334         unless it's certain that they're only ever used from the same thread.
1335         
1336         This goes against using them with AtomicallyInitializedStatic, so just create AtomicStrings where needed.
1337         (This is highly unlikely to have any real negative performance impact since these two functions
1338         aren't called very frequently).
1339
1340         * loader/CrossOriginAccessControl.cpp:
1341         (WebCore::passesAccessControlCheck):
1342         * page/PerformanceResourceTiming.cpp:
1343         (WebCore::passesTimingAllowCheck):
1344
1345 2014-01-12  David Kilzer  <ddkilzer@apple.com>
1346
1347         [iOS] Fix link errors for iOS: Part 2
1348
1349         * WebCore.exp.in:
1350         - Move some Mac-only symbols to Mac-only section.
1351
1352 2014-01-12  David Kilzer  <ddkilzer@apple.com>
1353
1354         [iOS] First of many iOS fixes to WebCore.exp.in
1355
1356         * WebCore.exp.in:
1357         - Move some Mac-only symbols to Mac-only section.
1358         - Upstream some changes to iOS-only section.
1359
1360 2014-01-12  David Kilzer  <ddkilzer@apple.com>
1361
1362         [iOS] Don't link to Mac-only frameworks when building iOS
1363         <http://webkit.org/b/126841>
1364
1365         * Configurations/WebCore.xcconfig:
1366         (OTHER_LDFLAGS_iphonesimulator): Remove common frameworks that
1367         are already in the Xcode project.
1368         (OTHER_LDFLAGS_macosx): Add Mac-only frameworks removed from the
1369         Xcode project.
1370         * Configurations/WebCoreTestShim.xcconfig:
1371         (OTHER_LDFLAGS[sdk=macosx*]): Link to Carbon.framework for Mac
1372         since it was removed from the Xcode project.
1373         * WebCore.xcodeproj/project.pbxproj: Remove Mac-only frameworks.
1374
1375 2014-01-12  Tobias Mueller  <tobiasmue@gnome.org>
1376
1377         --disable-dependency-tracking causes build failure due to missing directories
1378         https://bugs.webkit.org/show_bug.cgi?id=94488
1379         
1380         Reviewed by Gustavo Noronha Silva.
1381
1382         Ensure output directory existing
1383         before generating DerivedSources. This allows for
1384         --disable-dependency-tracking to be run.
1385
1386         * GNUmakefile.am: Added new target DerivedSources/ANGLE which is a directory to be created
1387         * bindings/gobject/GNUmakefile.am: Added new target DerivedSources/webkitdom which is a directory to be created
1388
1389 2014-01-12  David Kilzer  <ddkilzer@apple.com>
1390
1391         [iOS] WebFontCache is Mac-only
1392
1393         * WebCore.exp.in: Move export to Mac-only section.
1394
1395 2014-01-12  David Kilzer  <ddkilzer@apple.com>
1396
1397         [iOS] Upstream WebEventRegion.{h|mm} to fix the build
1398
1399         * WebCore.xcodeproj/project.pbxproj: Add to project.
1400         * page/ios/WebEventRegion.h: Added.
1401         * page/ios/WebEventRegion.mm: Added.
1402         (-[WebEventRegion initWithPoints::::]):
1403         (-[WebEventRegion copyWithZone:]):
1404         (-[WebEventRegion description]):
1405         (-[WebEventRegion hitTest:]):
1406         (-[WebEventRegion isEqual:]):
1407         (-[WebEventRegion quad]):
1408
1409 2014-01-11  Anders Carlsson  <andersca@apple.com>
1410
1411         Use std::call_once instead of AtomicallyInitializedStatic when creating a HTTP header set
1412         https://bugs.webkit.org/show_bug.cgi?id=126837
1413
1414         Reviewed by Sam Weinig.
1415
1416         Use std::call_once when constructing the HTTPHeaderSet.
1417
1418         * loader/CrossOriginAccessControl.cpp:
1419         (WebCore::isOnAccessControlResponseHeaderWhitelist):
1420
1421 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1422
1423         [iOS] Do not link to ApplicationServices.framework for iOS
1424         <http://webkit.org/b/126835>
1425
1426         Reviewed by Dan Bernstein.
1427
1428         * Configurations/WebCore.xcconfig:
1429         (OTHER_LDFLAGS_macosx): Add -framework ApplicationServices.
1430         * WebCore.xcodeproj/project.pbxproj: Remove reference to
1431         ApplicationServices.framework.
1432
1433 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1434
1435         [iOS] Build fix for StyleResolver.cpp
1436
1437         * rendering/style/RenderStyle.h:
1438         (WebCore::RenderStyle::setCompositionFillColor): Added.
1439
1440 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1441
1442         [iOS] Fix build of RenderLayerCompositor::registerAllViewportConstrainedLayers()
1443
1444         * rendering/RenderLayerCompositor.cpp:
1445         (WebCore::RenderLayerCompositor::registerAllViewportConstrainedLayers):
1446         Fix use of std::make_unique<>() and add an adoptPtr() call.
1447
1448 2014-01-11  Alexey Proskuryakov  <ap@apple.com>
1449
1450         [Mac] [Windows] Stop scheduling network requests in WebCore
1451         https://bugs.webkit.org/show_bug.cgi?id=126789
1452         <rdar://problem/15114727>
1453
1454         Reviewed by Sam Weinig.
1455
1456         We'll just send all requests to CFNetwork now, along with associated priorities.
1457
1458         * WebCore.exp.in: WebKitSystemInterface functions are changing to support priorities
1459         for more than just pipelining.
1460         * loader/ResourceLoadScheduler.cpp:
1461         (WebCore::ResourceLoadScheduler::scheduleLoad):
1462         * platform/ios/WebCoreSystemInterfaceIOS.mm:
1463         * platform/mac/WebCoreSystemInterface.h:
1464         * platform/mac/WebCoreSystemInterface.mm:
1465         * platform/network/ResourceHandle.h: For syncronous requests, make it so that they
1466         don't count against HTTP connection limit, to avoid the possibility of hanging the process.
1467         * platform/network/cf/ResourceHandleCFNet.cpp:
1468         (WebCore::ResourceHandle::createCFURLConnection):
1469         (WebCore::ResourceHandle::start):
1470         (WebCore::ResourceHandle::platformLoadResourceSynchronously):
1471         * platform/network/cf/ResourceRequestCFNet.cpp:
1472         (WebCore::ResourceRequest::doUpdatePlatformRequest):
1473         (WebCore::ResourceRequest::doUpdateResourceRequest):
1474         (WebCore::initializeMaximumHTTPConnectionCountPerHost):
1475         (WebCore::initializeHTTPConnectionSettingsOnStartup):
1476         * platform/network/cf/ResourceRequestCFNet.h:
1477         (WebCore::toPlatformRequestPriority):
1478         * platform/network/mac/ResourceHandleMac.mm:
1479         (WebCore::ResourceHandle::createNSURLConnection):
1480         (WebCore::ResourceHandle::start):
1481         (WebCore::ResourceHandle::platformLoadResourceSynchronously):
1482         * platform/network/mac/ResourceRequestMac.mm:
1483         (WebCore::ResourceRequest::doUpdateResourceRequest):
1484         (WebCore::ResourceRequest::doUpdatePlatformRequest):
1485
1486 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1487
1488         [iOS] Fix build failure in WebCore::findEndWordBoundary()
1489
1490         Filed Bug 126830 for the proper fix:
1491         <http://webkit.org/b/126830>
1492
1493         * editing/VisibleUnits.cpp:
1494         (WebCore::endWordBoundary): Switch back to using
1495         WebCore::findWordBoundary() on iOS.
1496
1497         * platform/text/mac/TextBoundaries.mm:
1498         (WebCore::findEndWordBoundary): Add FIXME for iOS implementation
1499         that doesn't use NSAttributedString.
1500
1501 2014-01-11  Andy Estes  <aestes@apple.com>
1502
1503         [iOS] Move text autosizing code from RenderBlock to RenderBlockFlow
1504         https://bugs.webkit.org/show_bug.cgi?id=126829
1505
1506         Reviewed by Sam Weinig.
1507
1508         Some newly-upstreamed iOS text autosizing code needs to move to
1509         RenderBlockFlow in order to build.
1510
1511         * rendering/RenderBlock.cpp:
1512         (WebCore::RenderBlock::RenderBlock):
1513         * rendering/RenderBlock.h:
1514         * rendering/RenderBlockFlow.cpp:
1515         (WebCore::RenderBlockFlow::RenderBlockFlow):
1516         (WebCore::isVisibleRenderText):
1517         (WebCore::resizeTextPermitted):
1518         (WebCore::RenderBlockFlow::immediateLineCount):
1519         (WebCore::isNonBlocksOrNonFixedHeightListItems):
1520         (WebCore::oneLineTextMultiplier):
1521         (WebCore::textMultiplier):
1522         (WebCore::RenderBlockFlow::adjustComputedFontSizes):
1523         * rendering/RenderBlockFlow.h:
1524         (WebCore::RenderBlockFlow::resetComputedFontSize):
1525         * rendering/RenderObject.cpp:
1526         (WebCore::RenderObject::adjustComputedFontSizesOnBlocks):
1527         (WebCore::RenderObject::resetTextAutosizing):
1528
1529 2014-01-11  Daniel Bates  <dabates@apple.com>
1530
1531         [iOS] Fix the build
1532
1533         Only call CGContextFlush() when building for OS X < 10.9.
1534
1535         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
1536         (WebCore::ImageBufferBackingStoreCache::deallocate):
1537
1538 2014-01-11  Anders Carlsson  <andersca@apple.com>
1539
1540         InspectorAgentRegistry should use std::unique_ptr
1541         https://bugs.webkit.org/show_bug.cgi?id=126826
1542
1543         Reviewed by Sam Weinig.
1544
1545         * inspector/InspectorApplicationCacheAgent.h:
1546         * inspector/InspectorCSSAgent.h:
1547         * inspector/InspectorCanvasAgent.h:
1548         * inspector/InspectorController.cpp:
1549         (WebCore::InspectorController::InspectorController):
1550         * inspector/InspectorDOMAgent.h:
1551         * inspector/InspectorDOMDebuggerAgent.cpp:
1552         * inspector/InspectorDOMDebuggerAgent.h:
1553         * inspector/InspectorDOMStorageAgent.h:
1554         * inspector/InspectorDatabaseAgent.h:
1555         * inspector/InspectorHeapProfilerAgent.cpp:
1556         * inspector/InspectorHeapProfilerAgent.h:
1557         * inspector/InspectorIndexedDBAgent.h:
1558         * inspector/InspectorInputAgent.h:
1559         * inspector/InspectorLayerTreeAgent.h:
1560         * inspector/InspectorMemoryAgent.cpp:
1561         * inspector/InspectorMemoryAgent.h:
1562         * inspector/InspectorPageAgent.cpp:
1563         * inspector/InspectorPageAgent.h:
1564         * inspector/InspectorProfilerAgent.cpp:
1565         (WebCore::InspectorProfilerAgent::create):
1566         * inspector/InspectorProfilerAgent.h:
1567         * inspector/InspectorResourceAgent.h:
1568         * inspector/InspectorTimelineAgent.h:
1569         * inspector/InspectorWorkerAgent.cpp:
1570         * inspector/InspectorWorkerAgent.h:
1571         * inspector/PageConsoleAgent.h:
1572         * inspector/PageDebuggerAgent.cpp:
1573         * inspector/PageDebuggerAgent.h:
1574         * inspector/PageRuntimeAgent.h:
1575         * inspector/WorkerConsoleAgent.h:
1576         * inspector/WorkerDebuggerAgent.cpp:
1577         * inspector/WorkerDebuggerAgent.h:
1578         * inspector/WorkerInspectorController.cpp:
1579         (WebCore::WorkerInspectorController::WorkerInspectorController):
1580         * inspector/WorkerRuntimeAgent.h:
1581
1582 2014-01-11  Sam Weinig  <sam@webkit.org>
1583
1584         Extract the FormatConverter class out of GraphicsContext3D.cpp and into its own file
1585         https://bugs.webkit.org/show_bug.cgi?id=126820
1586
1587         Reviewed by Anders Carlsson.
1588
1589         * CMakeLists.txt:
1590         * GNUmakefile.list.am:
1591         * WebCore.vcxproj/WebCore.vcxproj:
1592         * WebCore.vcxproj/WebCore.vcxproj.filters:
1593         * WebCore.xcodeproj/project.pbxproj:
1594         * platform/graphics/FormatConverter.cpp: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
1595         (WebCore::convertFloatToHalfFloat):
1596         (WebCore::FormatConverter::convert):
1597         * platform/graphics/FormatConverter.h: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
1598         (WebCore::FormatConverter::FormatConverter):
1599         (WebCore::FormatConverter::success):
1600         * platform/graphics/GraphicsContext3D.cpp:
1601         (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
1602         (WebCore::GraphicsContext3D::computeImageSizeInBytes):
1603         (WebCore::GraphicsContext3D::packImageData):
1604         (WebCore::GraphicsContext3D::extractImageData):
1605         (WebCore::GraphicsContext3D::extractTextureData):
1606         (WebCore::GraphicsContext3D::packPixels):
1607         * platform/graphics/GraphicsContext3D.h:
1608         (WebCore::GraphicsContext3D::hasAlpha):
1609         (WebCore::GraphicsContext3D::hasColor):
1610
1611 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1612
1613         Fix updateScrollingLayerWithClient() for iOS.
1614         
1615         * rendering/RenderLayerCompositor.cpp:
1616         (WebCore::updateScrollingLayerWithClient):
1617
1618 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1619
1620         Unfork GraphicsContext::drawNativeImage for iOS
1621         https://bugs.webkit.org/show_bug.cgi?id=126824
1622
1623         Reviewed by Dean Jackson.
1624
1625         GraphicsContext::drawNativeImage had a different signature for iOS,
1626         which required #ifdefs at all the call sites. Unfork by passing the "scale"
1627         parameter everywhere (it's only used on iOS).
1628
1629         * WebCore.exp.in:
1630         * html/canvas/CanvasRenderingContext2D.cpp:
1631         (WebCore::CanvasRenderingContext2D::drawImage):
1632         * platform/graphics/GraphicsContext.h:
1633         * platform/graphics/cg/BitmapImageCG.cpp:
1634         (WebCore::BitmapImage::draw):
1635         * platform/graphics/cg/GraphicsContext3DCG.cpp:
1636         (WebCore::GraphicsContext3D::paintToCanvas):
1637         * platform/graphics/cg/GraphicsContextCG.cpp:
1638         (WebCore::GraphicsContext::platformInit):
1639         * platform/graphics/cg/ImageBufferCG.cpp:
1640         (WebCore::ImageBuffer::draw):
1641         * platform/graphics/ios/IconIOS.mm:
1642         (WebCore::Icon::paint):
1643
1644 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1645
1646         Work around USE(CFNETWORK) build failure on iOS.
1647
1648         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1649         (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForResponseToAuthenticationChallenge):
1650
1651 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1652
1653         Fix LegacyWebArchive.cpp:567:91: error: calling 'utf8' with incomplete return type 'WTF::CString'
1654         
1655         * loader/archive/cf/LegacyWebArchive.cpp:
1656
1657 2014-01-11  David Kilzer  <ddkilzer@apple.com>
1658
1659         [iOS] Fix the easy half of the build errors in RenderBlock.cpp
1660
1661         * rendering/RenderBlock.cpp:
1662         (WebCore::isNonBlocksOrNonFixedHeightListItems):
1663         (WebCore::oneLineTextMultiplier):
1664         (WebCore::textMultiplier):
1665         (WebCore::RenderBlock::adjustComputedFontSizes):
1666
1667 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1668
1669         Change touch-related headers to include WebKitAdditions headers,
1670         which have been renamed to have IOS suffixes.
1671
1672         * WebCore.xcodeproj/project.pbxproj:
1673         * bindings/js/ios/TouchConstructors.cpp:
1674         * dom/Touch.h:
1675         * dom/TouchEvent.h:
1676         * dom/TouchList.h:
1677         * dom/ios/TouchEvents.cpp:
1678
1679 2014-01-11  Anders Carlsson  <andersca@apple.com>
1680
1681         ScriptDebugServer should use a separate member function for its timer handler
1682         https://bugs.webkit.org/show_bug.cgi?id=126819
1683
1684         Reviewed by Sam Weinig.
1685
1686         It's weird to have subclasses override a timer handler and sometimes invoke 
1687         the timer handler directly so make it a separate member function instead.
1688
1689         * bindings/js/PageScriptDebugServer.cpp:
1690         (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
1691         * bindings/js/PageScriptDebugServer.h:
1692         * bindings/js/ScriptDebugServer.cpp:
1693         (WebCore::ScriptDebugServer::ScriptDebugServer):
1694         (WebCore::ScriptDebugServer::recompileAllJSFunctionsTimerFired):
1695         * bindings/js/ScriptDebugServer.h:
1696         * bindings/js/WorkerScriptDebugServer.cpp:
1697         (WebCore::WorkerScriptDebugServer::addListener):
1698         (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
1699         * bindings/js/WorkerScriptDebugServer.h:
1700         * inspector/InspectorProfilerAgent.cpp:
1701         (WebCore::InspectorProfilerAgent::start):
1702
1703 2014-01-11  Anders Carlsson  <andersca@apple.com>
1704
1705         Simplify Timer and DeferrableOneShotTimer using std::function
1706         https://bugs.webkit.org/show_bug.cgi?id=126816
1707
1708         Reviewed by Sam Weinig.
1709
1710         * platform/Timer.h:
1711         (WebCore::Timer::Timer):
1712
1713 2014-01-11  Anders Carlsson  <andersca@apple.com>
1714
1715         CTTE Timer and DeferrableOneShotTimer
1716         https://bugs.webkit.org/show_bug.cgi?id=126814
1717
1718         Reviewed by Antti Koivisto.
1719
1720         Add new Timer and DeferrableOneShotTimer constructors whose member function pointers
1721         take a reference instead of a pointer.
1722         Also, convert a bunch of classes over to using these new constructors.
1723
1724         * Modules/encryptedmedia/MediaKeySession.cpp:
1725         (WebCore::MediaKeySession::keyRequestTimerFired):
1726         (WebCore::MediaKeySession::addKeyTimerFired):
1727         * Modules/encryptedmedia/MediaKeySession.h:
1728         * Modules/geolocation/Geolocation.cpp:
1729         (WebCore::Geolocation::GeoNotifier::timerFired):
1730         (WebCore::Geolocation::resumeTimerFired):
1731         * Modules/geolocation/Geolocation.h:
1732         * Modules/indexeddb/IDBTransactionBackend.cpp:
1733         (WebCore::IDBTransactionBackend::taskTimerFired):
1734         * Modules/indexeddb/IDBTransactionBackend.h:
1735         * Modules/mediasource/SourceBuffer.cpp:
1736         (WebCore::SourceBuffer::appendBufferTimerFired):
1737         * Modules/mediasource/SourceBuffer.h:
1738         * Modules/notifications/Notification.cpp:
1739         (WebCore::Notification::taskTimerFired):
1740         * Modules/notifications/Notification.h:
1741         * Modules/notifications/NotificationCenter.cpp:
1742         (WebCore::NotificationCenter::NotificationRequestCallback::timerFired):
1743         * Modules/notifications/NotificationCenter.h:
1744         * accessibility/AXObjectCache.cpp:
1745         (WebCore::AXObjectCache::notificationPostTimerFired):
1746         * accessibility/AXObjectCache.h:
1747         * css/CSSFontSelector.cpp:
1748         (WebCore::CSSFontSelector::beginLoadTimerFired):
1749         * css/CSSFontSelector.h:
1750         * css/CSSImageGeneratorValue.cpp:
1751         (WebCore::CSSImageGeneratorValue::CachedGeneratedImage::evictionTimerFired):
1752         * css/CSSImageGeneratorValue.h:
1753         * dom/Document.cpp:
1754         (WebCore::Document::visualUpdatesSuppressionTimerFired):
1755         (WebCore::Document::styleRecalcTimerFired):
1756         (WebCore::Document::optimizedStyleSheetUpdateTimerFired):
1757         (WebCore::Document::sharedObjectPoolClearTimerFired):
1758         (WebCore::Document::styleResolverThrowawayTimerFired):
1759         (WebCore::Document::updateFocusAppearanceTimerFired):
1760         (WebCore::Document::resetHiddenFocusElementTimer):
1761         (WebCore::Document::pendingTasksTimerFired):
1762         (WebCore::Document::fullScreenChangeDelayTimerFired):
1763         (WebCore::Document::loadEventDelayTimerFired):
1764         (WebCore::Document::didAssociateFormControlsTimerFired):
1765         * dom/Document.h:
1766         * dom/EventSender.h:
1767         (WebCore::EventSender::timerFired):
1768         * dom/GenericEventQueue.cpp:
1769         (WebCore::GenericEventQueue::timerFired):
1770         * dom/GenericEventQueue.h:
1771         * dom/ScriptRunner.cpp:
1772         (WebCore::ScriptRunner::timerFired):
1773         * dom/ScriptRunner.h:
1774         * dom/ScriptedAnimationController.cpp:
1775         (WebCore::ScriptedAnimationController::animationTimerFired):
1776         * dom/ScriptedAnimationController.h:
1777         * editing/AlternativeTextController.cpp:
1778         (WebCore::AlternativeTextController::timerFired):
1779         * editing/AlternativeTextController.h:
1780         * editing/FrameSelection.cpp:
1781         (WebCore::FrameSelection::caretBlinkTimerFired):
1782         * editing/FrameSelection.h:
1783         * html/HTMLMediaElement.cpp:
1784         (WebCore::HTMLMediaElement::parseAttribute):
1785         * html/HTMLMediaElement.h:
1786         * html/HTMLPlugInElement.cpp:
1787         (WebCore::HTMLPlugInElement::swapRendererTimerFired):
1788         * html/HTMLPlugInElement.h:
1789         * html/HTMLPlugInImageElement.cpp:
1790         (WebCore::HTMLPlugInImageElement::removeSnapshotTimerFired):
1791         (WebCore::HTMLPlugInImageElement::simulatedMouseClickTimerFired):
1792         * html/HTMLPlugInImageElement.h:
1793         * html/HTMLSourceElement.cpp:
1794         (WebCore::HTMLSourceElement::errorEventTimerFired):
1795         * html/HTMLSourceElement.h:
1796         * html/HTMLTrackElement.cpp:
1797         (WebCore::HTMLTrackElement::loadTimerFired):
1798         * html/HTMLTrackElement.h:
1799         * html/MediaController.cpp:
1800         (MediaController::asyncEventTimerFired):
1801         (MediaController::clearPositionTimerFired):
1802         (MediaController::timeupdateTimerFired):
1803         * html/MediaController.h:
1804         * html/MediaDocument.cpp:
1805         (WebCore::MediaDocument::replaceMediaElementTimerFired):
1806         * html/MediaDocument.h:
1807         * html/parser/HTMLParserScheduler.cpp:
1808         (WebCore::HTMLParserScheduler::continueNextChunkTimerFired):
1809         * html/parser/HTMLParserScheduler.h:
1810         * html/shadow/MediaControlElementTypes.cpp:
1811         (WebCore::MediaControlSeekButtonElement::seekTimerFired):
1812         * html/shadow/MediaControlElementTypes.h:
1813         * html/shadow/MediaControlElements.cpp:
1814         (WebCore::MediaControlPanelElement::transitionTimerFired):
1815         (WebCore::MediaControlTextTrackContainerElement::updateTimerFired):
1816         * html/shadow/MediaControlElements.h:
1817         * html/shadow/MediaControls.cpp:
1818         (WebCore::MediaControls::hideFullscreenControlsTimerFired):
1819         * html/shadow/MediaControls.h:
1820         * html/track/LoadableTextTrack.cpp:
1821         (WebCore::LoadableTextTrack::loadTimerFired):
1822         * html/track/LoadableTextTrack.h:
1823         * inspector/InspectorCSSAgent.cpp:
1824         (WebCore::UpdateRegionLayoutTask::UpdateRegionLayoutTask):
1825         (WebCore::UpdateRegionLayoutTask::timerFired):
1826         (WebCore::ChangeRegionOversetTask::ChangeRegionOversetTask):
1827         (WebCore::ChangeRegionOversetTask::timerFired):
1828         * inspector/InspectorDOMAgent.cpp:
1829         (WebCore::RevalidateStyleAttributeTask::RevalidateStyleAttributeTask):
1830         (WebCore::RevalidateStyleAttributeTask::timerFired):
1831         * inspector/InspectorFrontendClientLocal.cpp:
1832         (WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask):
1833         (WebCore::InspectorBackendDispatchTask::timerFired):
1834         * loader/DocumentLoader.cpp:
1835         (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
1836         * loader/DocumentLoader.h:
1837         * loader/FrameLoader.cpp:
1838         (WebCore::FrameLoader::checkTimerFired):
1839         * loader/FrameLoader.h:
1840         * loader/ImageLoader.cpp:
1841         (WebCore::ImageLoader::timerFired):
1842         * loader/ImageLoader.h:
1843         * loader/LinkLoader.cpp:
1844         (WebCore::LinkLoader::linkLoadTimerFired):
1845         (WebCore::LinkLoader::linkLoadingErrorTimerFired):
1846         * loader/LinkLoader.h:
1847         * loader/NavigationScheduler.cpp:
1848         (WebCore::NavigationScheduler::timerFired):
1849         * loader/NavigationScheduler.h:
1850         * loader/PingLoader.cpp:
1851         (WebCore::PingLoader::PingLoader):
1852         * loader/PingLoader.h:
1853         (WebCore::PingLoader::timeoutTimerFired):
1854         * loader/ProgressTracker.cpp:
1855         (WebCore::ProgressTracker::progressHeartbeatTimerFired):
1856         * loader/ProgressTracker.h:
1857         * loader/ResourceLoadScheduler.cpp:
1858         (WebCore::ResourceLoadScheduler::requestTimerFired):
1859         * loader/ResourceLoadScheduler.h:
1860         * loader/cache/CachedResource.cpp:
1861         (WebCore::CachedResource::decodedDataDeletionTimerFired):
1862         (WebCore::CachedResource::CachedResourceCallback::timerFired):
1863         * loader/cache/CachedResource.h:
1864         * loader/cache/CachedResourceLoader.cpp:
1865         (WebCore::CachedResourceLoader::garbageCollectDocumentResourcesTimerFired):
1866         * loader/cache/CachedResourceLoader.h:
1867         * loader/icon/IconDatabase.cpp:
1868         (WebCore::IconDatabase::syncTimerFired):
1869         * loader/icon/IconDatabase.h:
1870         * page/AutoscrollController.cpp:
1871         (WebCore::AutoscrollController::autoscrollTimerFired):
1872         * page/AutoscrollController.h:
1873         * page/CaptionUserPreferences.cpp:
1874         (WebCore::CaptionUserPreferences::timerFired):
1875         * page/CaptionUserPreferences.h:
1876         * page/DeviceController.cpp:
1877         (WebCore::DeviceController::fireDeviceEvent):
1878         * page/DeviceController.h:
1879         * page/EventHandler.cpp:
1880         (WebCore::EventHandler::cursorUpdateTimerFired):
1881         (WebCore::EventHandler::autoHideCursorTimerFired):
1882         (WebCore::EventHandler::fakeMouseMoveEventTimerFired):
1883         (WebCore::EventHandler::hoverTimerFired):
1884         * page/EventHandler.h:
1885         * page/EventSource.cpp:
1886         (WebCore::EventSource::connectTimerFired):
1887         * page/EventSource.h:
1888         * page/FrameView.cpp:
1889         (WebCore::FrameView::deferredRepaintTimerFired):
1890         (WebCore::FrameView::layoutTimerFired):
1891         (WebCore::FrameView::postLayoutTimerFired):
1892         * page/FrameView.h:
1893         * page/PageThrottler.cpp:
1894         (WebCore::PageThrottler::throttleHysteresisTimerFired):
1895         * page/PageThrottler.h:
1896         * page/animation/AnimationController.cpp:
1897         (WebCore::AnimationControllerPrivate::updateStyleIfNeededDispatcherFired):
1898         (WebCore::AnimationControllerPrivate::animationTimerFired):
1899         * page/animation/AnimationControllerPrivate.h:
1900         * platform/Scrollbar.cpp:
1901         (WebCore::Scrollbar::autoscrollTimerFired):
1902         * platform/Scrollbar.h:
1903         * platform/Timer.h:
1904         (WebCore::Timer::Timer):
1905         (WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer):
1906         * platform/graphics/BitmapImage.cpp:
1907         (WebCore::BitmapImage::advanceAnimation):
1908         * platform/graphics/BitmapImage.h:
1909         * platform/graphics/MediaPlayer.cpp:
1910         (WebCore::MediaPlayer::reloadTimerFired):
1911         * platform/graphics/MediaPlayer.h:
1912         * platform/graphics/ca/mac/LayerPool.h:
1913         * platform/graphics/ca/mac/LayerPool.mm:
1914         (WebCore::LayerPool::pruneTimerFired):
1915         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
1916         (WebCore::ImageBufferBackingStoreCache::timerFired):
1917         * platform/graphics/cg/ImageBufferBackingStoreCache.h:
1918         * platform/graphics/cg/SubimageCacheWithTimer.cpp:
1919         (WebCore::SubimageCacheWithTimer::invalidateCacheTimerFired):
1920         * platform/graphics/cg/SubimageCacheWithTimer.h:
1921         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
1922         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1923         (WebCore::MediaPlayerPrivateQTKit::seekTimerFired):
1924         * platform/mac/ScrollAnimatorMac.h:
1925         * platform/mac/ScrollAnimatorMac.mm:
1926         (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
1927         (WebCore::ScrollAnimatorMac::initialScrollbarPaintTimerFired):
1928         (WebCore::ScrollAnimatorMac::sendContentAreaScrolledTimerFired):
1929         * platform/mock/DeviceOrientationClientMock.cpp:
1930         (WebCore::DeviceOrientationClientMock::timerFired):
1931         * platform/mock/DeviceOrientationClientMock.h:
1932         * platform/network/NetworkStateNotifier.h:
1933         * platform/network/ResourceHandle.cpp:
1934         (WebCore::ResourceHandle::failureTimerFired):
1935         * platform/network/ResourceHandle.h:
1936         * platform/network/ResourceHandleInternal.h:
1937         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
1938         * platform/network/mac/NetworkStateNotifierMac.cpp:
1939         (WebCore::NetworkStateNotifier::networkStateChangeTimerFired):
1940         * rendering/ImageQualityController.cpp:
1941         (WebCore::ImageQualityController::highQualityRepaintTimerFired):
1942         * rendering/ImageQualityController.h:
1943         * rendering/RenderButton.cpp:
1944         (WebCore::RenderButton::timerFired):
1945         * rendering/RenderButton.h:
1946         * rendering/RenderLayerCompositor.cpp:
1947         (WebCore::RenderLayerCompositor::updateCompositingLayersTimerFired):
1948         (WebCore::RenderLayerCompositor::layerFlushTimerFired):
1949         (WebCore::RenderLayerCompositor::paintRelatedMilestonesTimerFired):
1950         * rendering/RenderLayerCompositor.h:
1951         * rendering/RenderMarquee.cpp:
1952         (WebCore::RenderMarquee::timerFired):
1953         * rendering/RenderMarquee.h:
1954         * rendering/RenderNamedFlowThread.cpp:
1955         (WebCore::RenderNamedFlowThread::regionLayoutUpdateEventTimerFired):
1956         (WebCore::RenderNamedFlowThread::regionOversetChangeEventTimerFired):
1957         * rendering/RenderNamedFlowThread.h:
1958         * rendering/RenderProgress.cpp:
1959         (WebCore::RenderProgress::animationTimerFired):
1960         * rendering/RenderProgress.h:
1961
1962 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1963
1964         #ifdef out the contents of Touch* files for iOS.
1965         
1966         * dom/Touch.h:
1967         * dom/TouchEvent.h:
1968         * dom/TouchList.h:
1969
1970 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1971
1972         No need to include <ApplicationServices/ApplicationServices.h> in
1973         the header. Can use <CoreGraphics/CoreGraphics.h> in the .cpp file.
1974
1975         * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
1976         * platform/graphics/cg/ImageBufferBackingStoreCache.h:
1977
1978 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1979
1980         Fix DOM headers: TARGET_OS_EMBEDDED -> TARGET_OS_IPHONE
1981         and a drive-by cleanup of DOMUIKitExtensions.mm #includes.
1982
1983         * bindings/objc/DOMPrivate.h:
1984         * bindings/objc/DOMUIKitExtensions.h:
1985         * bindings/objc/DOMUIKitExtensions.mm:
1986
1987 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1988
1989         Fix use of GL_HALF_FLOAT_ARB on iOS.
1990
1991         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1992         (WebCore::GraphicsContext3D::texSubImage2D):
1993
1994 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
1995
1996         Fix build of SourceBufferPrivateAVFObjC.mm on iOS.
1997
1998         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
1999
2000 2014-01-11  Simon Fraser  <simon.fraser@apple.com>
2001
2002         Fix use of nonexistent kCGColorSpaceSRGB on iOS.
2003
2004         * platform/graphics/cg/GraphicsContextCG.cpp:
2005         (WebCore::sRGBColorSpaceRef):
2006
2007 2014-01-11  Joseph Pecoraro  <pecoraro@apple.com>
2008
2009         Web Inspector: Some ScriptDebugServer Cleanup
2010         https://bugs.webkit.org/show_bug.cgi?id=126793
2011
2012         Reviewed by Timothy Hatcher.
2013
2014         * bindings/js/PageScriptDebugServer.cpp:
2015         (WebCore::PageScriptDebugServer::didContinue):
2016         (WebCore::PageScriptDebugServer::runEventLoopWhilePaused):
2017         Move the special iOS WebThread EventLoop nesting handling here.
2018
2019         * bindings/js/ScriptDebugServer.cpp:
2020         (WebCore::ScriptDebugServer::ScriptDebugServer):
2021         (WebCore::ScriptDebugServer::handlePause):
2022         * bindings/js/ScriptDebugServer.h:
2023         * inspector/InspectorDebuggerAgent.cpp:
2024         * inspector/InspectorDebuggerAgent.h:
2025         Remove unused headers and functions.
2026
2027 2014-01-11  David Kilzer  <ddkilzer@apple.com>
2028
2029         [iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build
2030
2031         * platform/graphics/cg/ImageBufferCG.cpp:
2032         (WebCore::ImageBuffer::ImageBuffer): The 'width' and 'height'
2033         variables are only used by code protected by
2034         USE(IOSURFACE_CANVAS_BACKING_STORE).
2035
2036 2014-01-11  David Kilzer  <ddkilzer@apple.com>
2037
2038         [iOS] Multisampling is not available on iOS
2039
2040         * platform/graphics/mac/GraphicsContext3DMac.mm:
2041         (WebCore::GraphicsContext3D::GraphicsContext3D):
2042
2043 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2044
2045         [iOS] Fix build for HTMLImageElement::willRespondToMouseClickEvents()
2046
2047         * html/HTMLImageElement.cpp:
2048         (WebCore::HTMLImageElement::willRespondToMouseClickEvents):
2049
2050 2014-01-10  Anders Carlsson  <andersca@apple.com>
2051
2052         Fix test crashes.
2053         
2054         * loader/ProgressTracker.cpp:
2055         (WebCore::ProgressTracker::~ProgressTracker):
2056         Comment out the call to progressTrackerDestroyed for now.
2057
2058 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2059
2060         [iOS] Fix build for RenderEmbeddedObject::canHaveChildren()
2061
2062         * rendering/RenderEmbeddedObject.cpp:
2063         (WebCore::RenderEmbeddedObject::canHaveChildren):
2064
2065 2014-01-10  Anders Carlsson  <andersca@apple.com>
2066
2067         Tweak ProgressTrackerClient functions
2068         https://bugs.webkit.org/show_bug.cgi?id=126808
2069
2070         Reviewed by Sam Weinig.
2071
2072         Rename the three progress state related member functions since it's up to the various
2073         WebKit implementations to decide what to do - not everyone wants to post a notification.
2074         Also add an originating progress frame parameter since WebKit2 doesn't report progress for
2075         subframe navigation and we need to be able to keep track of that.
2076         
2077         Finally, tweak ProgressTracker::completeProgress to get rid of an unnecessary hash lookup.
2078
2079         * loader/EmptyClients.h:
2080         * loader/ProgressTracker.cpp:
2081         (WebCore::ProgressItem::ProgressItem):
2082         (WebCore::ProgressTracker::progressStarted):
2083         (WebCore::ProgressTracker::finalProgressComplete):
2084         (WebCore::ProgressTracker::incrementProgress):
2085         (WebCore::ProgressTracker::completeProgress):
2086         * loader/ProgressTrackerClient.h:
2087
2088 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2089
2090         [iOS] Fix COMPILE_ASSERT by updating struct SameSizeAsStyleRareInheritedData
2091
2092         * rendering/style/StyleRareInheritedData.cpp:
2093
2094 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2095
2096         [iOS] Fix build of SubframeLoader.cpp
2097
2098         * loader/SubframeLoader.cpp:
2099         (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
2100         (WebCore::SubframeLoader::loadPlugin):
2101         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
2102
2103 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2104
2105         Fix Mac after r161747. One part of that is iOS specific.
2106
2107         Unreviewed build fix.
2108
2109         * bindings/js/GCController.cpp:
2110         (WebCore::GCController::releaseExecutableMemory):
2111
2112 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2113
2114         [iOS] Fix GCController::releaseExecutableMemory
2115         https://bugs.webkit.org/show_bug.cgi?id=126805
2116
2117         Reviewed by Sam Weinig and Mark Lam.
2118
2119         VM::dynamicGlobalObject has since been replaced by VMEntryScope.
2120         Update to check entryScope instead of the dynamicGlobalObject.
2121         Also, make this non-iOS only.
2122
2123         * bindings/js/GCController.h:
2124         * bindings/js/GCController.cpp:
2125         (WebCore::GCController::releaseExecutableMemory):
2126
2127 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2128
2129         Fix HTMLMediaElement.o for iOS. Unreviewed build fix.
2130
2131         There is now local variable mediaElement. Just call the
2132         functions since they are methods on this class.
2133
2134         Fix RequireUserGestureToShowPlaybackTargetPickerRestriction typos.
2135
2136         * html/HTMLMediaElement.cpp:
2137         (WebCore::HTMLMediaElement::parseAttribute):
2138
2139 2014-01-10  Anders Carlsson  <andersca@apple.com>
2140
2141         Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
2142         https://bugs.webkit.org/show_bug.cgi?id=126801
2143
2144         Reviewed by Sam Weinig.
2145
2146         * GNUmakefile.list.am:
2147         * WebCore.vcxproj/WebCore.vcxproj:
2148         * WebCore.vcxproj/WebCore.vcxproj.filters:
2149         * WebCore.xcodeproj/project.pbxproj:
2150         * loader/EmptyClients.cpp:
2151         (WebCore::fillWithEmptyClients):
2152         * loader/EmptyClients.h:
2153         * loader/FrameLoaderClient.h:
2154         * loader/ProgressTracker.cpp:
2155         (WebCore::ProgressTracker::ProgressTracker):
2156         (WebCore::ProgressTracker::~ProgressTracker):
2157         (WebCore::ProgressTracker::progressStarted):
2158         (WebCore::ProgressTracker::progressCompleted):
2159         (WebCore::ProgressTracker::finalProgressComplete):
2160         (WebCore::ProgressTracker::incrementProgress):
2161         * loader/ProgressTracker.h:
2162         * loader/ProgressTrackerClient.h: Added.
2163         (WebCore::ProgressTrackerClient::~ProgressTrackerClient):
2164         (WebCore::ProgressTrackerClient::progressTrackerDestroyed):
2165         (WebCore::ProgressTrackerClient::willChangeEstimatedProgress):
2166         (WebCore::ProgressTrackerClient::didChangeEstimatedProgress):
2167         * page/Page.cpp:
2168         (WebCore::Page::Page):
2169         (WebCore::Page::PageClients::PageClients):
2170         * page/Page.h:
2171
2172 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2173
2174         Fix RenderObject.o for iOS. Unreviewed build fix.
2175
2176         r156285 renamed firstChild() to firstChildSlow(), so update
2177         occurances in IOS_TEXT_AUTOSIZING code. Also account for a
2178         RenderObject::style reference / pointer change.
2179
2180         * rendering/RenderObject.cpp:
2181         (WebCore::RenderObject::traverseNext):
2182         (WebCore::includeNonFixedHeight):
2183
2184 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2185
2186         Fix MediaPlayerPrivateMediaSourceAVFObjC.o for iOS. Unreviewed build fix.
2187
2188         Import CALayer, which Mac must have been getting some other way.
2189
2190         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
2191
2192 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2193
2194         Fix TileGrid.o for iOS. Unreviewed build fix.
2195
2196         Explicitly use namespace std in std::pair.
2197
2198         * platform/ios/TileGrid.mm:
2199         (WebCore::isFartherAway):
2200         (WebCore::TileGrid::dropDistantTiles):
2201
2202 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2203
2204         Fix RenderImage.o for iOS. Unreviewed build fix.
2205
2206         inlineBoxWrapper() returns an InlineElementBox type, which is an InlineBox but
2207         without including InlineElementBox.h, iOS didn't know what an InlineElementBox was!
2208
2209         * rendering/RenderImage.cpp:
2210
2211 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2212
2213         [iOS] Fix macros in Scrollbar::supportsUpdateOnSecondaryThread()
2214
2215         Fixes the following build error:
2216
2217             WebCore/platform/Scrollbar.cpp:552:22: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
2218             #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 && ENABLE(ASYNC_SCROLLING)
2219                                  ^
2220
2221         * platform/Scrollbar.cpp:
2222         (WebCore::Scrollbar::supportsUpdateOnSecondaryThread):
2223
2224 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2225
2226         Fix RenderFileUploadControl.o for iOS. Unreviewed build fix.
2227
2228         WebCore::theme() returns a reference now, not a pointer.
2229
2230         * rendering/RenderFileUploadControl.cpp:
2231         (WebCore::RenderFileUploadControl::paintObject):
2232
2233 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2234
2235         Fix HTMLPlugInImageElement.o for iOS. Unreviewed build fix.
2236
2237         Forgot to upstream YouTubeEmbedShadowElement.*. Do so and
2238         add the files to the Xcode project so they build.
2239
2240         * WebCore.xcodeproj/project.pbxproj:
2241         * html/shadow/YouTubeEmbedShadowElement.cpp: Added.
2242         (WebCore::YouTubeEmbedShadowElement::create):
2243         (WebCore::YouTubeEmbedShadowElement::YouTubeEmbedShadowElement):
2244         (WebCore::YouTubeEmbedShadowElement::pluginElement):
2245         (WebCore::YouTubeEmbedShadowElement::shadowPseudoId):
2246         * html/shadow/YouTubeEmbedShadowElement.h: Added.
2247
2248 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2249
2250         [iOS] Update EditorIOS.mm to switch from pointers to references
2251
2252         * editing/ios/EditorIOS.mm:
2253         (WebCore::Editor::setTextAlignmentForChangedBaseWritingDirection):
2254         (WebCore::Editor::insertParagraphSeparatorInQuotedContent):
2255         (WebCore::styleForSelectionStart):
2256         (WebCore::Editor::selectionInWebArchiveFormat):
2257         (WebCore::Editor::writeImageToPasteboard):
2258         (WebCore::Editor::WebContentReader::readWebArchive):
2259         (WebCore::Editor::WebContentReader::readRTFD):
2260         (WebCore::Editor::WebContentReader::readRTF):
2261         (WebCore::uniqueURLWithRelativePart):
2262         (WebCore::Editor::WebContentReader::readPlainText):
2263         (WebCore::Editor::webContentFromPasteboard):
2264         (WebCore::Editor::createFragmentAndAddResources):
2265         (WebCore::Editor::createFragmentForImageResourceAndAddResource):
2266
2267 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2268
2269         Web Inspector: Push InspectorAgent down into JSC, give JSC an InspectorController
2270         https://bugs.webkit.org/show_bug.cgi?id=126763
2271
2272         Reviewed by Timothy Hatcher.
2273
2274         No new tests, no observable change in functionality.
2275
2276         * CMakeLists.txt:
2277         * ForwardingHeaders/inspector/agent/InspectorAgent.h: Added.
2278         * GNUmakefile.list.am:
2279         * WebCore.vcxproj/WebCore.vcxproj:
2280         * WebCore.vcxproj/WebCore.vcxproj.filters:
2281         * WebCore.xcodeproj/project.pbxproj:
2282         * inspector/InspectorAllInOne.cpp:
2283         InspectorAgent moved to JavaScriptCore. Include forwarding header.
2284
2285         * inspector/PageConsoleAgent.cpp:
2286         (WebCore::PageConsoleAgent::PageConsoleAgent):
2287         (WebCore::PageConsoleAgent::~PageConsoleAgent):
2288         * inspector/PageConsoleAgent.h:
2289         (WebCore::PageConsoleAgent::create):
2290         * inspector/InspectorApplicationCacheAgent.cpp:
2291         * inspector/InspectorApplicationCacheAgent.h:
2292         InspectorAgent was not used by these files, remove it.
2293
2294         * inspector/CommandLineAPIHost.cpp:
2295         * inspector/CommandLineAPIHost.h:
2296         (WebCore::CommandLineAPIHost::init):
2297         * inspector/InspectorInstrumentation.cpp:
2298         * inspector/InstrumentingAgents.h:
2299         (WebCore::InstrumentingAgents::inspectorAgent):
2300         (WebCore::InstrumentingAgents::setInspectorAgent):
2301         Switch to Inspector::InspectorAgent where applicable.
2302
2303         * inspector/InspectorController.cpp:
2304         (WebCore::InspectorController::InspectorController):
2305         * inspector/InspectorController.h:
2306         Manually add InspectorAgent to the InstrumentingAgents. It is one
2307         of the agents that is always available in InstrumentingAgents.
2308
2309 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2310
2311        Add TextAutoSizing.* for iOS, and fix DeviceOrientationController creation.
2312
2313         * WebCore.xcodeproj/project.pbxproj:
2314         * dom/Document.cpp:
2315         (WebCore::Document::Document):
2316         * rendering/TextAutoSizing.cpp: Added.
2317         (WebCore::cloneRenderStyleWithState):
2318         (WebCore::TextAutoSizingKey::TextAutoSizingKey):
2319         (WebCore::TextAutoSizingKey::~TextAutoSizingKey):
2320         (WebCore::TextAutoSizingKey::operator=):
2321         (WebCore::TextAutoSizingKey::ref):
2322         (WebCore::TextAutoSizingKey::deref):
2323         (WebCore::TextAutoSizingValue::numNodes):
2324         (WebCore::TextAutoSizingValue::addNode):
2325         (WebCore::TextAutoSizingValue::adjustNodeSizes):
2326         (WebCore::TextAutoSizingValue::reset):
2327         * rendering/TextAutoSizing.h: Added.
2328         (WebCore::TextAutoSizingKey::doc):
2329         (WebCore::TextAutoSizingKey::style):
2330         (WebCore::TextAutoSizingKey::isValidDoc):
2331         (WebCore::TextAutoSizingKey::isValidStyle):
2332         (WebCore::TextAutoSizingKey::deletedKeyDoc):
2333         (WebCore::TextAutoSizingKey::deletedKeyStyle):
2334         (WebCore::operator==):
2335         (WebCore::TextAutoSizingHash::hash):
2336         (WebCore::TextAutoSizingHash::equal):
2337         (WebCore::TextAutoSizingValue::create):
2338         (WebCore::TextAutoSizingValue::TextAutoSizingValue):
2339
2340 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2341
2342         Fix GraphicsLayerCA.o for iOS. Unreviewed build fix.
2343
2344         Use of systemMemoryLevel was missing include of SystemMemory.h.
2345
2346         * platform/graphics/ca/GraphicsLayerCA.cpp:
2347
2348 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2349
2350         Fix iOS build.
2351
2352         * bindings/objc/DOM.mm:
2353         (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]):
2354         * bindings/objc/DOMExtensions.h:
2355         * platform/DragImage.h:
2356
2357 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2358
2359         Fix iOS build.
2360         
2361         Generated DOMTouch* and DOMGesture* files need to be in the project.
2362         Exclude them on Mac via EXCLUDED_SOURCE_FILE_NAMES_macosx.
2363         
2364         Use TARGET_OS_IPHONE instead of TARGET_OS_EMBEDDED in DOMPrivate.h
2365
2366         * Configurations/WebCore.xcconfig:
2367         * WebCore.xcodeproj/project.pbxproj:
2368         * bindings/objc/DOMPrivate.h:
2369
2370 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2371
2372         Fix RenderThemeIOS.o for iOS. Unreviewed build fix.
2373
2374         Typo referring to generated name. Should be "iOS" not "IOS".
2375
2376         * rendering/RenderThemeIOS.mm:
2377         (WebCore::RenderThemeIOS::mediaControlsScript):
2378
2379 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2380
2381         Fix WebAccessibilityObjectWrapperIOS.o for iOS. Unreviewed build fix.
2382
2383         The upstreamed WebAccessibilityObjectWrapperIOS.mm was out of date, e.g.
2384         it was using GSFonts. Just upstream a newer version of the file. Also
2385         explicitly namespace qualify std::pair.
2386
2387         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
2388         (AXAttributeStringSetStyle):
2389
2390 2014-01-10  Jinwoo Song  <jinwoo7.song@samsung.com>
2391
2392         Remove willRespondToTouchEvents() which was used by chromium port
2393         https://bugs.webkit.org/show_bug.cgi?id=126739
2394
2395         Reviewed by Alexey Proskuryakov.
2396
2397         willRespondToTouchEvents() was added to check if a node listens to touch events in r126945.
2398         However, it is not used anywhere after chromium port is removed.
2399
2400         * dom/Node.cpp:
2401         * dom/Node.h:
2402
2403 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2404
2405         Fix SystemVersionMac.o for iOS. Unreviewed build fix.
2406
2407         Add missing expected function. Maybe we can avoid including
2408         this file entirely on iOS, there was already a FIXME.
2409
2410         * platform/mac/SystemVersionMac.mm:
2411         (WebCore::systemMarketingVersion):
2412
2413 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2414
2415         Fix JSDOMWindowBase.o for iOS. Unreviewed build fix.
2416
2417         Add missing iOS method declarations.
2418
2419         * bindings/js/JSDOMWindowBase.h:
2420
2421 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2422
2423         Fix InputType.o for iOS. Unreviewed build fix.
2424
2425         The RuntimeEnabledFeatures function pointer type should have a
2426         const qualifier, because the implementations are all const.
2427
2428         * html/InputType.cpp:
2429
2430 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2431
2432         Fix MediaPlayerPrivateIOS.o for iOS. Unreviewed build fix.
2433
2434         Add missing MediaPlayerProxy Objective C methods and forward declarations.
2435
2436         * platform/graphics/mac/MediaPlayerProxy.h:
2437
2438 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2439
2440         Fix FrameSelection.o for iOS. Unreviewed build fix.
2441
2442         r160966 renamed rendererIsEditable to hasEditableStyle.
2443
2444         * editing/FrameSelection.cpp:
2445         (WebCore::FrameSelection::setSelectionFromNone):
2446
2447 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2448
2449         Fix DragData.o for iOS. Unreviewed build fix.
2450
2451         String m_pasteboardName is unused on iOS, so ifdef it out.
2452
2453         * platform/DragData.h:
2454
2455 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2456
2457         Fix FrameIOS.o for iOS. Unreviewed build fix.
2458
2459         Remove stale include to file that no longer exists. It was not needed.
2460
2461         * page/ios/FrameIOS.mm:
2462
2463 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2464
2465         Fix MonthInputType.o for iOS. Unreviewed build fix.
2466
2467         When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876,
2468         the wrong class name lingered. Fix it to be the base class.
2469
2470         * html/TimeInputType.cpp:
2471         (WebCore::TimeInputType::TimeInputType):
2472
2473 2014-01-10  Andy Estes  <aestes@apple.com>
2474
2475         [iOS] Build fix: make sure WTF_PLATFORM_IOS is defined when preprocessing
2476
2477         * DerivedSources.make:
2478         * bindings/scripts/preprocessor.pm:
2479         (applyPreprocessor):
2480
2481 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2482
2483         Use TARGET_OS_IPHONE in this API file, and #if TARGET_OS_MAC
2484         for a non-iOS function.
2485
2486         * bindings/objc/DOMExtensions.h:
2487
2488 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2489
2490         Clean up architectures in xcconfig files
2491         <http://webkit.org/b/126794>
2492
2493         Reviewed by Andy Estes.
2494
2495         * Configurations/Base.xcconfig:
2496         * Configurations/WebCore.xcconfig: Remove armv6.
2497         * DerivedSources.make: Remove armv6, armv7f. Sort.
2498         - Add new arch.
2499
2500 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2501
2502         Fix iOS build
2503
2504         * Configurations/WebCore.xcconfig:
2505         * css/DeprecatedStyleBuilder.cpp:
2506         (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyValue):
2507
2508 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2509
2510         Fix iOS build.
2511         
2512         * html/DateTimeLocalInputType.h:
2513         (WebCore::DateTimeLocalInputType::DateTimeLocalInputType):
2514         * loader/ios/DiskImageCacheIOS.h:
2515
2516 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2517
2518         iOS build fix: add StyleRareInheritedData::compositionFillColor
2519
2520         * rendering/style/RenderStyle.h:
2521         * rendering/style/StyleRareInheritedData.cpp:
2522         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
2523         (WebCore::StyleRareInheritedData::operator==):
2524         * rendering/style/StyleRareInheritedData.h:
2525
2526 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2527
2528         Fix MonthInputType.o for iOS. Unreviewed build fix.
2529
2530         When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876, the
2531         BaseMonthInputType typedef was removed. However a use of it lingered.
2532         Changing to match the base class name.
2533
2534         * html/MonthInputType.h:
2535         (WebCore::MonthInputType::MonthInputType):
2536
2537 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2538
2539         Fix RenderButton.o for iOS. Unreviewed build fix.
2540
2541         Missing prototype in header for override of the layout method.
2542
2543         * rendering/RenderButton.h:
2544
2545 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2546
2547         A couple of iOS build fixes.
2548
2549         * accessibility/ios/AXObjectCacheIOS.mm:
2550         (WebCore::AXObjectCache::handleFocusedUIElementChanged):
2551         * html/canvas/CanvasRenderingContext2D.cpp:
2552         (WebCore::CanvasRenderingContext2D::drawImage):
2553
2554 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2555
2556         Fix PlatformScreenIOS.mm for iOS. Unreviewed build fix.
2557
2558         PlatformScreen.h removed screenVerticalDPI and screenHorizontalDPI in r132419,
2559         so remove the stale implementations on iOS. Also, add a notImplemented version
2560         of screenColorProfile, which matches Mac and is unused in WebCore for this port.
2561
2562         * platform/ios/PlatformScreenIOS.mm:
2563         (WebCore::screenColorProfile):
2564
2565 2014-01-10  Anders Carlsson  <andersca@apple.com>
2566
2567         CTTE FrameTree
2568         https://bugs.webkit.org/show_bug.cgi?id=126795
2569
2570         Reviewed by Tim Horton.
2571
2572         * page/Frame.cpp:
2573         (WebCore::Frame::Frame):
2574         * page/FrameTree.cpp:
2575         (WebCore::FrameTree::transferChild):
2576         (WebCore::FrameTree::appendChild):
2577         (WebCore::FrameTree::actuallyAppendChild):
2578         (WebCore::FrameTree::uniqueChildName):
2579         (WebCore::FrameTree::scopedChild):
2580         (WebCore::FrameTree::scopedChildCount):
2581         (WebCore::FrameTree::child):
2582         (WebCore::FrameTree::find):
2583         (WebCore::FrameTree::isDescendantOf):
2584         (WebCore::FrameTree::traverseNext):
2585         (WebCore::FrameTree::traverseNextWithWrap):
2586         (WebCore::FrameTree::traversePreviousWithWrap):
2587         (WebCore::FrameTree::deepLastChild):
2588         (WebCore::FrameTree::top):
2589         * page/FrameTree.h:
2590         (WebCore::FrameTree::FrameTree):
2591
2592 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2593
2594         Fix iOS build.
2595
2596         * loader/ResourceLoader.h:
2597
2598 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2599
2600         Fix iOS build.
2601
2602         * platform/graphics/ImageSource.h:
2603         (WebCore::ImageSource::acceleratedImageDecodingEnabled):
2604         (WebCore::ImageSource::setAcceleratedImageDecodingEnabled):
2605
2606 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2607
2608         Unreviewed EFL build fix after r161678.
2609
2610         static_cast a size_t to unsigned long for %lu format string.
2611
2612         * page/Console.cpp:
2613         (WebCore::internalAddMessage):
2614
2615 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
2616
2617         Remove the BlackBerry port from trunk
2618         https://bugs.webkit.org/show_bug.cgi?id=126715
2619
2620         Reviewed by Anders Carlsson.
2621
2622         * html/canvas/WebGLRenderingContext.cpp:
2623         (WebCore::WebGLRenderingContext::readPixels):
2624         * platform/graphics/ImageBuffer.cpp:
2625         * platform/graphics/ImageBufferData.h:
2626         * platform/graphics/IntPoint.h:
2627         * platform/graphics/IntRect.h:
2628         * platform/graphics/IntSize.h:
2629         * platform/graphics/MediaPlayer.cpp:
2630         * platform/graphics/NativeImagePtr.h:
2631         * platform/graphics/OpenGLESShims.h:
2632         * platform/graphics/Path.cpp:
2633         (WebCore::Path::addPathForRoundedRect):
2634         * platform/graphics/Path.h:
2635         * platform/graphics/PlatformLayer.h:
2636         * platform/graphics/filters/CustomFilterValidatedProgram.cpp:
2637         * platform/graphics/filters/CustomFilterValidatedProgram.h:
2638         * platform/graphics/filters/FilterOperation.h:
2639         * platform/graphics/gpu/DrawingBuffer.cpp:
2640         * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
2641         * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
2642         (WebCore::Extensions3DOpenGLES::getGraphicsResetStatusARB):
2643         * platform/graphics/opengl/Extensions3DOpenGLES.h:
2644         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
2645         (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
2646         (WebCore::GraphicsContext3D::prepareTexture):
2647         (WebCore::GraphicsContext3D::bindFramebuffer):
2648         (WebCore::GraphicsContext3D::compileShader):
2649         (WebCore::GraphicsContext3D::copyTexImage2D):
2650         (WebCore::GraphicsContext3D::copyTexSubImage2D):
2651         * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp:
2652         (WebCore::GraphicsContext3D::readPixels):
2653         (WebCore::GraphicsContext3D::readPixelsAndConvertToBGRAIfNecessary):
2654         (WebCore::GraphicsContext3D::reshapeFBOs):
2655         * platform/network/NetworkStateNotifier.h:
2656         * platform/network/ResourceHandle.h:
2657         * platform/network/ResourceHandleInternal.h:
2658         * platform/network/ResourceRequestBase.cpp:
2659
2660 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2661
2662         Fix CharsetData.cpp build for iOS
2663         https://bugs.webkit.org/show_bug.cgi?id=126792
2664
2665         Reviewed by Mark Rowe.
2666
2667         CharsetData.cpp should have an empty CharsetTable list for iOS.
2668         Achieve this with an iOS-specific encodings.txt file.
2669
2670         * DerivedSources.make:
2671         * WebCore.xcodeproj/project.pbxproj:
2672         * platform/text/mac/ios-encodings.txt: Added.
2673
2674 2014-01-10  Anders Carlsson  <andersca@apple.com>
2675
2676         CTTE in NavigationScheduler
2677         https://bugs.webkit.org/show_bug.cgi?id=126788
2678
2679         Reviewed by Tim Horton.
2680
2681         * inspector/InspectorInstrumentation.cpp:
2682         (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl):
2683         (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl):
2684         * inspector/InspectorInstrumentation.h:
2685         (WebCore::InspectorInstrumentation::frameScheduledNavigation):
2686         (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation):
2687         * inspector/InspectorPageAgent.cpp:
2688         (WebCore::InspectorPageAgent::frameScheduledNavigation):
2689         (WebCore::InspectorPageAgent::frameClearedScheduledNavigation):
2690         * inspector/InspectorPageAgent.h:
2691         * loader/NavigationScheduler.cpp:
2692         (WebCore::ScheduledNavigation::shouldStartTimer):
2693         (WebCore::ScheduledNavigation::didStartTimer):
2694         (WebCore::ScheduledNavigation::didStopTimer):
2695         (WebCore::NavigationScheduler::NavigationScheduler):
2696         (WebCore::NavigationScheduler::clear):
2697         (WebCore::NavigationScheduler::shouldScheduleNavigation):
2698         (WebCore::NavigationScheduler::scheduleRedirect):
2699         (WebCore::NavigationScheduler::mustLockBackForwardList):
2700         (WebCore::NavigationScheduler::scheduleLocationChange):
2701         (WebCore::NavigationScheduler::scheduleFormSubmission):
2702         (WebCore::NavigationScheduler::scheduleRefresh):
2703         (WebCore::NavigationScheduler::scheduleHistoryNavigation):
2704         (WebCore::NavigationScheduler::timerFired):
2705         (WebCore::NavigationScheduler::schedule):
2706         (WebCore::NavigationScheduler::startTimer):
2707         (WebCore::NavigationScheduler::cancel):
2708         * loader/NavigationScheduler.h:
2709         * page/Frame.cpp:
2710         (WebCore::Frame::Frame):
2711
2712 2014-01-10  Myles C. Maxfield  <mmaxfield@apple.com>
2713
2714         CSS word-spacing property does not obey percentages
2715         https://bugs.webkit.org/show_bug.cgi?id=126674
2716
2717         Reviewed by Simon Fraser.
2718
2719         One change between CSS2.1 and CSS3 is that the word-spacing CSS property can
2720         take percentages (of the width of the space character) in CSS3. In order to
2721         implement this, the datatype must be changed from a float to a Length, which
2722         can hold percentage values. Then, during layout, we can query the width of
2723         the space character and update the Font's word-spacing value appropriately.
2724         However, the RenderStyle still holds on to the Length (as a rare inherited
2725         value).
2726
2727         Tests: fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font.html
2728                fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse.html
2729                fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage.html
2730
2731         * css/CSSComputedStyleDeclaration.cpp:
2732         (WebCore::ComputedStyleExtractor::propertyValue): Use Font's computed value instead
2733         of style's Length value.
2734         * css/CSSParser.cpp:
2735         (WebCore::CSSParser::parseValue): word-spacing and letter-spacing no longer are
2736         parsed the same way.
2737         * css/DeprecatedStyleBuilder.cpp:
2738         (WebCore::ApplyPropertyWordSpacing::applyValue): Construct a length from a given
2739         CSSValue and set the style's word spacing with it.
2740         (WebCore::ApplyPropertyWordSpacing::createHandler):
2741         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Use ApplyPropertyWordSpacing.
2742         * page/animation/CSSPropertyAnimation.cpp:
2743         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
2744         * rendering/RenderBlockLineLayout.cpp:
2745         (WebCore::setLogicalWidthForTextRun): Use Font's computed value instead
2746         of style's Length value.
2747         * rendering/RenderText.cpp:
2748         (WebCore::RenderText::computePreferredLogicalWidths): Ditto.
2749         * rendering/SimpleLineLayout.cpp:
2750         (WebCore::SimpleLineLayout::canUseFor): Opt-out of the SimpleLineLayout
2751         if either the percentage or the length is nonzero.
2752         * rendering/line/BreakingContextInlineHeaders.h:
2753         (WebCore::BreakingContext::handleText): Use Font's computed value instead
2754         of style's Length value.
2755         * rendering/style/RenderStyle.cpp:
2756         (WebCore::RenderStyle::wordSpacing):
2757         (WebCore::RenderStyle::setWordSpacing): Consult the Font's space with to compute
2758         percentage values, but hold on to the original Length.
2759         * rendering/style/RenderStyle.h:
2760         * rendering/style/StyleRareInheritedData.cpp:
2761         * rendering/style/StyleRareInheritedData.h: Hold on to the specified Length
2762
2763 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2764
2765         Fix the iOS build.
2766
2767         * platform/audio/mac/MediaSessionManagerMac.cpp:
2768
2769 2014-01-10  Simon Fraser  <simon.fraser@apple.com>
2770
2771         iOS doesn't have <OpenGL/gl.h>; fix iOS build.
2772
2773         * platform/graphics/opengl/TemporaryOpenGLSetting.cpp:
2774
2775 2014-01-10  Andy Estes  <aestes@apple.com>
2776
2777         [iOS] Build Fix: Properly add $SDKROOT/usr/local/include/ to the search path when building PublicDOMInterfaces.h
2778
2779         * bindings/scripts/CodeGeneratorObjC.pm:
2780         (ReadPublicInterfaces):
2781
2782 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2783
2784         Web Inspector: Remove unimplemented or static ScriptDebugServer features
2785         https://bugs.webkit.org/show_bug.cgi?id=126784
2786
2787         Reviewed by Timothy Hatcher.
2788
2789         These features are unimplemented in the backend, and unused by the
2790         current frontend. Most deal with features that were supported by v8
2791         and are as yet unimplemented by JSC. If we decide to add such features
2792         we can reimplement without conforming to an old implementation.
2793
2794         * bindings/js/ScriptDebugServer.cpp:
2795         * bindings/js/ScriptDebugServer.h:
2796         * bindings/js/ScriptProfiler.h:
2797         * inspector/InspectorDebuggerAgent.cpp:
2798         (WebCore::InspectorDebuggerAgent::disable):
2799         * inspector/InspectorDebuggerAgent.h:
2800         * inspector/InspectorPageAgent.cpp:
2801         (WebCore::InspectorPageAgent::reload):
2802         (WebCore::InspectorPageAgent::frameNavigated):
2803         * inspector/InspectorPageAgent.h:
2804         * inspector/InspectorProfilerAgent.cpp:
2805         * inspector/InspectorProfilerAgent.h:
2806         * inspector/PageDebuggerAgent.cpp:
2807         (WebCore::PageDebuggerAgent::didClearMainFrameWindowObject):
2808         * inspector/protocol/Page.json:
2809         * inspector/protocol/Profiler.json:
2810
2811 2014-01-10  David Kilzer  <ddkilzer@apple.com>
2812
2813         [iOS] Remove unused variable from TileGrid::dropTilesBetweenRects()
2814
2815         Fixes the following build error:
2816
2817             WebCore/platform/ios/TileGrid.mm:88:23: error: unused variable 'end' [-Werror,-Wunused-variable]
2818                 TileMap::iterator end = m_tiles.end();
2819                                   ^
2820
2821         * platform/ios/TileGrid.mm:
2822         (WebCore::TileGrid::dropTilesBetweenRects): Remove unused
2823         variable now that the for loop uses an auto iterator.
2824
2825 2014-01-10  Dean Jackson  <dino@apple.com>
2826
2827         Implement OES texture half float linear
2828         https://bugs.webkit.org/show_bug.cgi?id=125060
2829
2830         Reviewed by Brent Fulgham.
2831
2832         Test: fast/canvas/webgl/oes-texture-half-float-linear.html
2833
2834         * CMakeLists.txt: Add new files.
2835         * DerivedSources.cpp: Ditto.
2836         * DerivedSources.make: Generate new file from IDL.
2837         * GNUmakefile.list.am: Add new files.
2838         * WebCore.vcxproj/WebCore.vcxproj: Ditto.
2839         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
2840         * WebCore.xcodeproj/project.pbxproj: New files for OESTextureHalfFloatLinear.
2841
2842         * bindings/js/JSWebGLRenderingContextCustom.cpp:
2843         (WebCore::toJS): Map from extension name to native object.
2844
2845         * html/canvas/OESTextureHalfFloatLinear.cpp: Added. New files. These are boiler-plate.
2846         * html/canvas/OESTextureHalfFloatLinear.h: Added.
2847         * html/canvas/OESTextureHalfFloatLinear.idl: Added.
2848
2849         * html/canvas/WebGLExtension.h: Add new enum for the new extension.
2850
2851         * html/canvas/WebGLRenderingContext.cpp:
2852         (WebCore::WebGLRenderingContext::getExtension): Create the extension object if the
2853         context is asked for one.
2854         (WebCore::WebGLRenderingContext::getSupportedExtensions): Add the new extension to the
2855         list of supported extensions. Actually remember to do it this time :)
2856         (WebCore::WebGLRenderingContext::checkTextureCompleteness): Need to check for the half-float
2857         extension as well, and update the log message.
2858         * html/canvas/WebGLRenderingContext.h: New extension object.
2859
2860         * html/canvas/WebGLTexture.cpp:
2861         (WebCore::WebGLTexture::WebGLTexture):
2862         (WebCore::WebGLTexture::needToUseBlackTexture): Check for half-float type.
2863         (WebCore::WebGLTexture::update): Mark a texture as half-float if necessary.
2864         * html/canvas/WebGLTexture.h:
2865
2866         * platform/graphics/Extensions3D.h: Add a comment about the new extension.
2867         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
2868         (WebCore::Extensions3DOpenGL::supportsExtension): This extension is available
2869         when GL_ARB_texture_float is supported, so add the name to the translation.
2870
2871 2014-01-10  Brent Fulgham  <bfulgham@apple.com>
2872
2873         [WebGL] Correct uniform input validation for texture sampler uniform
2874         https://bugs.webkit.org/show_bug.cgi?id=126775
2875
2876         Reviewed by Dean Jackson.
2877
2878         Added fast/canvas/webgl/uniform-samplers-test.html
2879
2880         * html/canvas/WebGLRenderingContext.cpp:
2881         (WebCore::WebGLRenderingContext::uniform1iv): Access Int32Array data properly.
2882
2883 2014-01-10  Manuel Rego Casasnovas  <rego@igalia.com>
2884
2885         [GTK] Unreviewed build fix after r161644.
2886
2887         * Modules/webaudio/MediaStreamAudioSourceNode.cpp:
2888         (WebCore::MediaStreamAudioSourceNode::setFormat):
2889
2890 2014-01-10  Anders Carlsson  <andersca@apple.com>
2891
2892         Remove an unused FrameLoader function
2893         https://bugs.webkit.org/show_bug.cgi?id=126785
2894
2895         Reviewed by Beth Dakin.
2896
2897         * WebCore.exp.in:
2898         * loader/FrameLoader.cpp:
2899         (WebCore::FrameLoader::setState):
2900         * loader/FrameLoader.h:
2901
2902 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
2903
2904         Remove the BlackBerry port from trunk
2905         https://bugs.webkit.org/show_bug.cgi?id=126715
2906
2907         Reviewed by Anders Carlsson.
2908
2909         * platform/MIMETypeRegistry.cpp:
2910         (WebCore::initializeSupportedImageMIMETypesForEncoding):
2911         * platform/PlatformKeyboardEvent.h:
2912         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2913         * platform/PlatformMouseEvent.h:
2914         * platform/PlatformTouchEvent.h:
2915         (WebCore::PlatformTouchEvent::PlatformTouchEvent):
2916         * platform/PlatformTouchPoint.h:
2917         * platform/ScrollAnimatorNone.cpp:
2918         (WebCore::ScrollAnimator::create):
2919         * platform/URL.cpp:
2920         (WebCore::URL::parse):
2921         (WebCore::portAllowed):
2922         * platform/Widget.h:
2923         * platform/graphics/ANGLEWebKitBridge.h:
2924         * platform/graphics/DisplayRefreshMonitor.cpp:
2925         (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor):
2926         * platform/graphics/DisplayRefreshMonitor.h:
2927         * platform/graphics/FloatPoint.h:
2928         * platform/graphics/FloatRect.h:
2929         * platform/graphics/FloatSize.h:
2930         * platform/graphics/FontCache.h:
2931         * platform/graphics/FontPlatformData.h:
2932         * platform/graphics/GlyphBuffer.h:
2933         * platform/graphics/Gradient.cpp:
2934         * platform/graphics/Gradient.h:
2935         * platform/graphics/GraphicsContext.h:
2936         * platform/graphics/GraphicsContext3D.h:
2937
2938 2014-01-10  Timothy Hatcher  <timothy@apple.com>
2939
2940         Clean up and fix some issues with stdout formatting of console messages.
2941
2942         * Fix URLs not printing line numbers unless column number is > 0.
2943         * Change "CONSOLEAPI" to "CONSOLE" for the source.
2944         * Clean up how console.trace outputs and print URL, line and column for each frame.
2945         * Print "(unknown)" for anonymous and native code call frames.
2946
2947         https://bugs.webkit.org/show_bug.cgi?id=126767
2948
2949         Reviewed by Joseph Pecoraro.
2950
2951         * page/Console.cpp:
2952         (WebCore::internalAddMessage):
2953         * page/PageConsole.cpp:
2954         (WebCore::PageConsole::printSourceURLAndPosition):
2955         (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
2956         * page/PageConsole.h:
2957
2958 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
2959
2960         [iOS] Fill in missing WebCoreThread function pointers
2961         https://bugs.webkit.org/show_bug.cgi?id=126776
2962
2963         Reviewed by Timothy Hatcher.
2964
2965         * platform/ios/wak/WebCoreThreadSystemInterface.cpp:
2966         (InitWebCoreThreadSystemInterface):
2967
2968 2014-01-10  Yongjun Zhang  <yongjun_zhang@apple.com>
2969
2970         Clear unparented tiled layers on memory pressure.
2971         https://bugs.webkit.org/show_bug.cgi?id=126737
2972
2973         Reviewed by Simon Fraser.
2974
2975         TileController hold unparented tiles for a short period of time (1 -3 sec); we should clear these unparented
2976         tiles immediately if we are under memory pressure.
2977         
2978         The patch does 3 things to improve the behavior:
2979         1) When the system free memory is low (<35%), reduce the tiling threshold.  This could reduce
2980         the peak memory usage when system is under low memory since we will convert more web layers into
2981         tiled backing.
2982         2) Under memory pressure, immediately clear all unparented tiles.
2983         3) Add a cap (16 tiles) to limit the total number of unparented tiles in TileController's.
2984
2985         * WebCore.exp.in:
2986         * WebCore.xcodeproj/project.pbxproj: Add a new class TileControllerMemoryHandler.
2987         * platform/graphics/ca/GraphicsLayerCA.cpp:
2988         (WebCore::GraphicsLayerCA::requiresTiledLayer):  Use a smaller tiling threshold if the system free memory is low.
2989         * platform/graphics/ca/mac/TileController.h:
2990         (WebCore::TileController::numberOfUnparentedTiles):
2991         * platform/graphics/ca/mac/TileController.mm:
2992         (WebCore::TileController::startedNewCohort):
2993         (WebCore::TileController::removeUnparentedTilesNow): Remove all unparentd tiles.
2994         * platform/ios/MemoryPressureHandlerIOS.mm:
2995         * platform/ios/TileControllerMemoryHandlerIOS.cpp: Added.
2996         (WebCore::TileControllerMemoryHandler::removeTileController):
2997         (WebCore::TileControllerMemoryHandler::totalUnparentedTiledLayers):
2998         (WebCore::TileControllerMemoryHandler::tileControllerGainUnparentedTiles):
2999         (WebCore::TileControllerMemoryHandler::trimUnparentedTilesToTarget): Trims the number of unparented tiles until
3000             it reaches the target.
3001         (WebCore::tileControllerMemoryHandler):
3002         * platform/ios/TileControllerMemoryHandlerIOS.h: Added.
3003         (WebCore::TileControllerMemoryHandler::TileControllerMemoryHandler):
3004
3005 2014-01-10  Joseph Pecoraro  <pecoraro@apple.com>
3006
3007         [CSS Blending] Log blending as a layer creation reason in the WI
3008         https://bugs.webkit.org/show_bug.cgi?id=126159
3009
3010         Reviewed by Timothy Hatcher.
3011
3012         * inspector/InspectorLayerTreeAgent.cpp:
3013         (WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer):
3014         * inspector/protocol/LayerTree.json:
3015
3016 2014-01-10  Andy Estes  <aestes@apple.com>
3017
3018         Fix some iOS build errors during bindings generation.
3019
3020         * bindings/objc/PublicDOMInterfaces.h: Included
3021         WebKitAdditions/PublicDOMInterfacesIOS.h and change
3022         -[DOMRGBColor color] to return a CGColorRef on iOS.
3023
3024 2014-01-10  Timothy Hatcher  <timothy@apple.com>
3025
3026         Prevent some resources from showing up in Web Inspector as years in duration.
3027
3028         No WebKit port passed a monotonic time to InspectorInstrumentation::didFinishLoading -- except Chromium.
3029
3030         https://bugs.webkit.org/show_bug.cgi?id=126760
3031
3032         Reviewed by Joseph Pecoraro.
3033
3034         * inspector/InspectorInstrumentation.cpp:
3035         (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
3036         Revert part of r102961 to use finishTime as-is and not expect a monotonic time.
3037
3038 2014-01-10  Dirk Schulze  <krit@webkit.org>
3039
3040         Make clipping path from basic-shapes relative to <box> value
3041         https://bugs.webkit.org/show_bug.cgi?id=126206
3042
3043         Reviewed by Simon Fraser.
3044
3045         Tests: css3/masking/clip-path-circle-border-box.html
3046                css3/masking/clip-path-circle-bounding-box.html
3047                css3/masking/clip-path-circle-content-box.html
3048                css3/masking/clip-path-circle-margin-box.html
3049                css3/masking/clip-path-circle-padding-box.html
3050
3051         * rendering/RenderLayer.cpp:
3052         (WebCore::RenderLayer::setupClipPath): Add switch to differ between boxes
3053             and use different reference boxes to size the clipping path.
3054
3055 2014-01-10  Youenn Fablet  <youennf@gmail.com>
3056
3057
3058         Correctly set XHR loadend attributes (loaded and total).
3059         https://bugs.webkit.org/show_bug.cgi?id=120828
3060
3061         Reviewed by Alexey Proskuryakov.
3062         
3063         Added correct initialization of lengthComputable, loaded and total attributes 
3064         to XHR ProgressEvent events (load, loadstart, loadend, abort, error and timeout).
3065
3066         XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload now keep persistent knowledge 
3067         of m_loaded and m_total values with this patch.
3068         
3069         Code refactoring to handle event dispatching in case of error in a single manner.
3070         XMLHttpRequestProgressEventThrottle::dispatchProgressEvent is renamed as dispatchThrottledProgressEvent
3071         XMLHttpRequestProgressEventThrottle::dispatchEventAndLoadend is replaced by dispatchProgressEvent(const AtomicString&)
3072         
3073         Fixed assertion issues over bug 120828 patch
3074
3075         Tests: http/tests/xmlhttprequest/loadstart-event-init.html
3076                http/tests/xmlhttprequest/onabort-progressevent-attributes.html
3077                http/tests/xmlhttprequest/onload-progressevent-attributes.html
3078                http/tests/xmlhttprequest/upload-onabort-progressevent-attributes.html
3079                http/tests/xmlhttprequest/upload-onload-progressevent-attributes.html
3080
3081         * xml/XMLHttpRequest.cpp:
3082         (WebCore::XMLHttpRequest::callReadyStateChangeListener): changed readystatechange event from ProgressEvent to Event (not cancellable, not bubblable) to better match the spec 
3083         (WebCore::XMLHttpRequest::createRequest):
3084         (WebCore::XMLHttpRequest::abort): code refactoring to handle error event dispatching in a single way
3085         (WebCore::XMLHttpRequest::networkError): code refactoring to handle error event dispatching in a single way
3086         (WebCore::XMLHttpRequest::abortError): code refactoring to handle error event dispatching in a single way
3087         (WebCore::XMLHttpRequest::didSendData):
3088         (WebCore::XMLHttpRequest::didReceiveData):
3089         (WebCore::XMLHttpRequest::dispatchErrorEvents): dispatch progress events in case of error
3090         (WebCore::XMLHttpRequest::didTimeout): code refactoring to handle error event dispatching in a single way
3091         * xml/XMLHttpRequest.h:
3092         * 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...) 
3093         (WebCore::XMLHttpRequestProgressEventThrottle::XMLHttpRequestProgressEventThrottle):
3094         (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. 
3095         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): used to send any ProgressEvent event that is not be throttled
3096         (WebCore::XMLHttpRequestProgressEventThrottle::flushProgressEvent): after the call, no progress event is throttled anymore
3097         (WebCore::XMLHttpRequestProgressEventThrottle::fired): after the call, no progress event is throttled anymore
3098         (WebCore::XMLHttpRequestProgressEventThrottle::hasEventToDispatch):
3099         (WebCore::XMLHttpRequestProgressEventThrottle::suspend):
3100         * 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
3101         * xml/XMLHttpRequestUpload.cpp:
3102         (WebCore::XMLHttpRequestUpload::XMLHttpRequestUpload):
3103         (WebCore::XMLHttpRequestUpload::dispatchProgressEvent):
3104         * xml/XMLHttpRequestUpload.h: introduced m_loaded, m_total and m_lengthComputable, similarly to XMLHttpRequestProgressEventThrottle
3105
3106 2014-01-10  Bear Travis  <betravis@adobe.com>
3107
3108         [CSS Shapes] Change parseBasicShape to return a CSSPrimitiveValue
3109         https://bugs.webkit.org/show_bug.cgi?id=126713
3110
3111         Reviewed by Dirk Schulze.
3112
3113         Avoid the duplicated code wrapping the CSSBasicShape in a CSSPrimitiveValue
3114         by having parseBasicShape return a CSSPrimitiveValue reference.
3115
3116         Refactoring, no new tests.
3117
3118         * css/CSSParser.cpp:
3119         (WebCore::CSSParser::parseShapeProperty):
3120         (WebCore::CSSParser::parseClipPath):
3121         (WebCore::CSSParser::parseBasicShape):
3122         * css/CSSParser.h:
3123
3124 2014-01-10  Piotr Grad  <p.grad@samsung.com>
3125
3126         Possible crash in ApplicationCache::removeResource.
3127         https://bugs.webkit.org/show_bug.cgi?id=126695
3128
3129         Reviewed by Alexey Proskuryakov.
3130
3131         No new tests.
3132
3133         Iterator variable was used after it was removed.
3134
3135         * loader/appcache/ApplicationCache.cpp:
3136         (WebCore::ApplicationCache::removeResource):
3137
3138 2014-01-10  Daniel Bates  <dabates@apple.com>
3139
3140         Another build fix for the Production Mac build following <http://trac.webkit.org/changeset/161638>
3141         (https://bugs.webkit.org/show_bug.cgi?id=126698)
3142
3143         Move the logic for appending the port-specific IDL files {Touch, TouchEvent, TouchList}.idl to the
3144         list of binding IDLs (BINDING_IDLS) before the definition of variables DOM_CLASSES and JS_DOM_HEADERS
3145         so that we generate the DOM and JS bindings for these IDLs.
3146
3147         * DerivedSources.make:
3148
3149 2014-01-10  Anders Carlsson  <andersca@apple.com>
3150
3151         Remove supportMultipleWindows setting
3152         https://bugs.webkit.org/show_bug.cgi?id=126772
3153
3154         Reviewed by Beth Dakin.
3155
3156         This setting was added in https://bugs.webkit.org/show_bug.cgi?id=99716 for the Chromium port
3157         and is unused by everyone else so get rid of it.
3158
3159         * loader/FrameLoader.cpp:
3160         (WebCore::createWindow):
3161         * page/ContextMenuController.cpp:
3162         (WebCore::openNewWindow):
3163         * page/Settings.in:
3164
3165 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
3166
3167         Remove the BlackBerry port from trunk
3168         https://bugs.webkit.org/show_bug.cgi?id=126715
3169
3170         Reviewed by Anders Carlsson.
3171
3172         * dom/TouchEvent.cpp:
3173         (WebCore::TouchEvent::TouchEvent):
3174         (WebCore::TouchEvent::initTouchEvent):
3175         * dom/TouchEvent.h:
3176         * dom/ViewportArguments.cpp:
3177         * dom/ViewportArguments.h:
3178         * history/HistoryItem.h:
3179         * loader/PingLoader.cpp:
3180         (WebCore::PingLoader::loadImage):
3181         (WebCore::PingLoader::sendPing):
3182         (WebCore::PingLoader::sendViolationReport):
3183         * loader/appcache/ApplicationCacheGroup.cpp:
3184         (WebCore::ApplicationCacheGroup::createResourceHandle):
3185         * loader/cache/CachedResource.cpp:
3186         (WebCore::CachedResource::load):
3187         * loader/icon/IconLoader.cpp:
3188         (WebCore::IconLoader::startLoading):
3189         * page/NavigatorBase.cpp:
3190         * page/Settings.cpp:
3191         * page/scrolling/ScrollingCoordinator.cpp:
3192         (WebCore::ScrollingCoordinator::create):
3193         * platform/Cursor.cpp:
3194         * platform/Cursor.h:
3195         (WebCore::Cursor::Cursor):
3196         * platform/DragData.h:
3197         * platform/DragImage.h:
3198         * plugins/PluginDatabase.cpp:
3199         (WebCore::PluginDatabase::defaultPluginDirectories):
3200         (WebCore::PluginDatabase::isPreferredPluginDirectory):
3201         * rendering/RenderLayerBacking.cpp:
3202         (WebCore::RenderLayerBacking::paintsIntoWindow):
3203         * rendering/RenderObject.cpp:
3204         (WebCore::RenderObject::shouldRespectImageOrientation):
3205         * testing/Internals.cpp:
3206         (WebCore::Internals::getCurrentCursorInfo):
3207         * workers/DefaultSharedWorkerRepository.cpp:
3208         (WebCore::SharedWorkerScriptLoader::load):
3209         * workers/Worker.cpp:
3210         (WebCore::Worker::create):
3211         * workers/WorkerGlobalScope.cpp:
3212         (WebCore::WorkerGlobalScope::importScripts):
3213         * workers/WorkerScriptLoader.cpp:
3214         (WebCore::WorkerScriptLoader::createResourceRequest):
3215         * workers/WorkerScriptLoader.h:
3216         * xml/XMLHttpRequest.cpp:
3217         (WebCore::XMLHttpRequest::createRequest):
3218
3219 2014-01-10  Benjamin Poulain  <bpoulain@apple.com>
3220
3221         Remove the BlackBerry port from trunk
3222         https://bugs.webkit.org/show_bug.cgi?id=126715
3223
3224         Reviewed by Anders Carlsson.
3225
3226         * Modules/navigatorcontentutils/NavigatorContentUtils.cpp:
3227         (WebCore::initProtocolHandlerWhitelist):
3228         * UseJSC.cmake:
3229         * bindings/generic/RuntimeEnabledFeatures.cpp:
3230         (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
3231         * bindings/js/GCController.cpp:
3232         (WebCore::GCController::GCController):
3233         (WebCore::GCController::garbageCollectSoon):
3234         * bindings/js/GCController.h:
3235
3236 2014-01-10  Daniel Bates  <dabates@apple.com>
3237
3238         Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
3239         (https://bugs.webkit.org/show_bug.cgi?id=126698)
3240
3241         Tell Xcode that the supported platforms for all WebKit targets are iOS and OS X.
3242
3243         * Configurations/Base.xcconfig:
3244
3245 2014-01-09  Andy Estes  <aestes@apple.com>
3246
3247         [iOS] Upstream iOS changes to MigrateHeaders.make
3248         https://bugs.webkit.org/show_bug.cgi?id=126731
3249
3250         Reviewed by David Kilzer.
3251
3252         * WebCore.xcodeproj/project.pbxproj: Mark an iOS-specific header at
3253         Private that will later be migrated by WebKit.
3254
3255 2014-01-10  Daniel Bates  <dabates@apple.com>
3256
3257         Fix the Production Mac build following <http://trac.webkit.org/changeset/161638>
3258         (https://bugs.webkit.org/show_bug.cgi?id=126698)
3259
3260         Substitute JAVASCRIPTCORE_PRIVATE_HEADERS_DIR_Production_ for JAVASCRIPTCORE_PRIVATE_HEADERS_Production_.
3261
3262         * Configurations/WebCore.xcconfig:
3263
3264 2014-01-10  Anders Carlsson  <andersca@apple.com>
3265
3266         Add a missing include.
3267
3268         * Modules/webdatabase/DatabaseManager.h:
3269
3270 2014-01-10  Anders Carlsson  <andersca@apple.com>
3271
3272         Use STL threading primitives in DatabaseDetails and DatabaseManager
3273         https://bugs.webkit.org/show_bug.cgi?id=126759
3274
3275         Reviewed by Geoffrey Garen.
3276
3277         * Modules/webdatabase/DatabaseDetails.h:
3278         (WebCore::DatabaseDetails::DatabaseDetails):
3279         (WebCore::DatabaseDetails::threadID):
3280         * Modules/webdatabase/DatabaseManager.cpp:
3281         (WebCore::DatabaseManager::existingDatabaseContextFor):
3282         (WebCore::DatabaseManager::registerDatabaseContext):
3283         (WebCore::DatabaseManager::unregisterDatabaseContext):
3284         (WebCore::DatabaseManager::didConstructDatabaseContext):
3285         (WebCore::DatabaseManager::didDestructDatabaseContext):
3286         (WebCore::DatabaseManager::addProposedDatabase):
3287         (WebCore::DatabaseManager::removeProposedDatabase):
3288         (WebCore::DatabaseManager::fullPathForDatabase):
3289         (WebCore::DatabaseManager::detailsForNameAndOrigin):
3290         * Modules/webdatabase/DatabaseManager.h:
3291
3292 2014-01-10  Commit Queue  <commit-queue@webkit.org>
3293
3294         Unreviewed, rolling out r161629.
3295         http://trac.webkit.org/changeset/161629
3296         https://bugs.webkit.org/show_bug.cgi?id=126762
3297
3298         Fails svg/custom/conditional-processing-2.html (Requested by
3299         ap on #webkit).
3300
3301         * svg/SVGSwitchElement.cpp:
3302         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
3303         * svg/SVGTests.cpp:
3304         (WebCore::SVGTests::hasExtension):
3305         (WebCore::SVGTests::isValid):
3306
3307 2014-01-10  ChangSeok Oh  <changseok.oh@collabora.com>
3308
3309         Unreviewed build fix since r161589.
3310
3311         The changeset causes a compile failure with --no-svg.
3312
3313         * platform/graphics/FontFastPath.cpp:
3314         (WebCore::Font::drawGlyphBuffer):
3315
3316 2014-01-10  Przemyslaw Szymanski  <p.szymanski3@samsung.com>
3317
3318         [WebGL] Removing unnecessary pointer checks
3319         https://bugs.webkit.org/show_bug.cgi?id=124046
3320
3321         Reviewed by Brent Fulgham.
3322
3323         We do not need to check for a null array three times in
3324         the same call. Let's just do it once!
3325
3326         No new tests. Covered by existing ones.
3327
3328         * html/canvas/WebGLBuffer.cpp:
3329         (WebCore::WebGLBuffer::associateBufferData):
3330
3331 2014-01-10  Daniel Bates  <dabates@apple.com>
3332
3333         Speculative build fix for Windows following <http://trac.webkit.org/changeset/161638>
3334         (https://bugs.webkit.org/show_bug.cgi?id=126698)
3335
3336         Reviewed by David Kilzer.
3337
3338         * bindings/scripts/preprocessor.pm:
3339         (applyPreprocessor):
3340
3341 2014-01-10  Przemyslaw Szymanski  <p.szymanski3@samsung.com>
3342
3343         [WebGL] Wrong condition order in the if statement
3344         https://bugs.webkit.org/show_bug.cgi?id=125000
3345
3346         Reviewed by Brent Fulgham.
3347
3348         We should only pay the cost of string comparison once. The
3349         current logic requires a string comparison every time we
3350         pass through the function. Instead, by reordering the statements
3351         we can short-circuit through the boolean test after the initial
3352         setup is complete.
3353
3354         No new tests. No behaviour changes.
3355
3356         * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
3357         (WebCore::Extensions3DOpenGLES::supportsExtension):
3358
3359 2014-01-10  Anders Carlsson  <andersca@apple.com>
3360
3361         CTTE in AudioContext::AutoLocker
3362         https://bugs.webkit.org/show_bug.cgi?id=126758
3363
3364         Reviewed by Antti Koivisto.
3365
3366         * Modules/webaudio/AudioBasicInspectorNode.cpp:
3367         (WebCore::AudioBasicInspectorNode::connect):
3368         (WebCore::AudioBasicInspectorNode::disconnect):
3369         * Modules/webaudio/AudioBufferSourceNode.cpp:
3370         (WebCore::AudioBufferSourceNode::setBuffer):
3371         * Modules/webaudio/AudioContext.cpp:
3372         (WebCore::AudioContext::refNode):
3373         (WebCore::AudioContext::deleteMarkedNodes):
3374         (WebCore::AudioContext::removeMarkedSummingJunction):
3375         * Modules/webaudio/AudioContext.h:
3376         (WebCore::AudioContext::AutoLocker::AutoLocker):
3377         (WebCore::AudioContext::AutoLocker::~AutoLocker):
3378         * Modules/webaudio/AudioNode.cpp:
3379         (WebCore::AudioNode::connect):
3380         (WebCore::AudioNode::disconnect):
3381         (WebCore::AudioNode::setChannelCount):
3382         (WebCore::AudioNode::setChannelCountMode):
3383         (WebCore::AudioNode::setChannelInterpretation):
3384         (WebCore::AudioNode::enableOutputsIfNecessary):
3385         * Modules/webaudio/MediaElementAudioSourceNode.cpp:
3386         (WebCore::MediaElementAudioSourceNode::setFormat):
3387         * Modules/webaudio/WaveShaperNode.cpp:
3388         (WebCore::WaveShaperNode::setOversample):
3389
3390 2014-01-10  Antti Koivisto  <antti@apple.com>
3391
3392         Use element iterators more
3393         https://bugs.webkit.org/show_bug.cgi?id=126756
3394
3395         Reviewed by Anders Carlsson.
3396
3397         * dom/VisitedLinkState.cpp:
3398         (WebCore::VisitedLinkState::invalidateStyleForAllLinks):
3399         (WebCore::VisitedLinkState::invalidateStyleForLink):
3400         * html/HTMLMeterElement.cpp:
3401         (WebCore::HTMLMeterElement::renderMeter):
3402         * html/HTMLProgressElement.cpp:
3403         (WebCore::HTMLProgressElement::renderProgress):
3404         * html/shadow/ContentDistributor.cpp:
3405         (WebCore::ContentDistributor::ensureInsertionPointList):
3406         * style/StyleResolveTree.cpp:
3407
3408 2014-01-10  Daniel Bates  <dabates@apple.com>
3409
3410         Attempt to fix the iOS build after <http://trac.webkit.org/changeset/161589>
3411         (https://bugs.webkit.org/show_bug.cgi?id=126654)
3412
3413         * platform/audio/ios/AudioSessionIOS.mm: Import header PassOwnPtr.h so that we can use adoptPtr().
3414
3415 2014-01-10  Daniel Bates  <dabates@apple.com>
3416
3417         Attempt to fix the build after <http://trac.webkit.org/changeset/161638>
3418         (https://bugs.webkit.org/show_bug.cgi?id=126698)
3419
3420         Substitute tab characters for space characters.
3421
3422         * DerivedSources.make:
3423
3424 2014-01-10  Anders Carlsson  <andersca@apple.com>
3425
3426         DOMWindow::showModalDialog should use std::function
3427         https://bugs.webkit.org/show_bug.cgi?id=126753
3428
3429         Reviewed by Antti Koivisto.
3430
3431         * bindings/js/JSDOMWindowCustom.cpp:
3432         (WebCore::DialogHandler::dialogCreated):
3433         (WebCore::JSDOMWindow::showModalDialog):
3434         * page/DOMWindow.cpp:
3435         (WebCore::DOMWindow::createWindow):
3436         (WebCore::DOMWindow::showModalDialog):
3437         * page/DOMWindow.h:
3438
3439 2014-01-10  Daniel Bates  <dabates@apple.com>
3440
3441         [iOS] Upstream WebCore and Tools miscellaneous changes
3442         https://bugs.webkit.org/show_bug.cgi?id=126698
3443
3444         Reviewed by David Kilzer.
3445
3446         * Configurations/Base.xcconfig:
3447         * Configurations/WebCore.xcconfig:
3448         * Configurations/WebCoreTestSupport.xcconfig:
3449         * Configurations/iOS.xcconfig: Added.
3450         * DerivedSources.make:
3451         * English.lproj/Localizable.strings:
3452         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp: Copied from Source/WebCore/editing/TextAffinity.h.
3453         (WebCore::stringForPlaybackTargetAvailability):
3454         (WebCore::WebKitPlaybackTargetAvailabilityEvent::WebKitPlaybackTargetAvailabilityEvent):
3455         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h: Added.
3456         (WebCore::WebKitPlaybackTargetAvailabilityEventInit::WebKitPlaybackTargetAvailabilityEventInit):
3457         (WebCore::WebKitPlaybackTargetAvailabilityEvent::~WebKitPlaybackTargetAvailabilityEvent):
3458         (WebCore::WebKitPlaybackTargetAvailabilityEvent::create):
3459         (WebCore::WebKitPlaybackTargetAvailabilityEvent::availability):
3460         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.idl: Copied from Source/WebCore/editing/DeleteButton.h.
3461         * Modules/geolocation/Geolocation.cpp:
3462         (WebCore::Geolocation::Geolocation):
3463         (WebCore::Geolocation::canSuspend):
3464         (WebCore::Geolocation::suspend):
3465         (WebCore::Geolocation::resume):
3466         (WebCore::Geolocation::resumeTimerFired):
3467         (WebCore::Geolocation::resetAllGeolocationPermission):
3468         (WebCore::Geolocation::stop):
3469         (WebCore::Geolocation::setIsAllowed):
3470         (WebCore::Geolocation::positionChanged):
3471         (WebCore::Geolocation::setError):
3472         * Modules/geolocation/Geolocation.h:
3473         * Modules/geolocation/NavigatorGeolocation.cpp:
3474         (WebCore::NavigatorGeolocation::resetAllGeolocationPermission):
3475         * Modules/geolocation/NavigatorGeolocation.h:
3476         * Modules/speech/SpeechSynthesis.cpp:
3477         (WebCore::SpeechSynthesis::SpeechSynthesis):
3478         (WebCore::SpeechSynthesis::speak):
3479         * Modules/speech/SpeechSynthesis.h:
3480         (WebCore::SpeechSynthesis::userGestureRequiredForSpeechStart):
3481         (WebCore::SpeechSynthesis::removeBehaviorRestriction):
3482         * Modules/webaudio/AudioContext.cpp:
3483         * Modules/webaudio/AudioContext.h:
3484         * Modules/webaudio/AudioScheduledSourceNode.cpp:
3485         * Modules/webdatabase/Database.cpp:
3486         * Modules/webdatabase/DatabaseBackendBase.cpp:
3487         (WebCore::DatabaseBackendBase::performOpenAndVerify):
3488         (WebCore::DatabaseBackendBase::incrementalVacuumIfNeeded):
3489         * Modules/webdatabase/DatabaseContext.cpp:
3490         (WebCore::DatabaseContext::DatabaseContext):
3491         (WebCore::DatabaseContext::databaseThread):
3492         (WebCore::DatabaseContext::setPaused):
3493         * Modules/webdatabase/DatabaseContext.h:
3494         * Modules/webdatabase/DatabaseManagerClient.h:
3495         * Modules/webdatabase/DatabaseTask.cpp:
3496         (WebCore::DatabaseTask::performTask):
3497         (WebCore::Database::DatabaseTransactionTask::shouldPerformWhilePaused):
3498         * Modules/webdatabase/DatabaseTask.h:
3499         * Modules/webdatabase/DatabaseThread.cpp:
3500         (WebCore::DatabaseThread::DatabaseThread):
3501         (WebCore::DatabaseThread::requestTermination):
3502         (WebCore::DatabaseUnpauseTask::create):
3503         (WebCore::DatabaseUnpauseTask::shouldPerformWhilePaused):
3504         (WebCore::DatabaseUnpauseTask::DatabaseUnpauseTask):
3505         (WebCore::DatabaseUnpauseTask::doPerformTask):
3506         (WebCore::DatabaseUnpauseTask::debugTaskName):
3507         (WebCore::DatabaseThread::setPaused):
3508         (WebCore::DatabaseThread::handlePausedQueue):
3509         (WebCore::DatabaseThread::databaseThread):
3510         * Modules/webdatabase/DatabaseThread.h:
3511         * Modules/webdatabase/DatabaseTracker.cpp:
3512         (WebCore::DatabaseTracker::setQuota):
3513         (WebCore::DatabaseTracker::deleteOrigin):
3514         (WebCore::DatabaseTracker::deleteDatabase):
3515         (WebCore::DatabaseTracker::deleteDatabaseFile):
3516         (WebCore::DatabaseTracker::removeDeletedOpenedDatabases):
3517         (WebCore::isZeroByteFile):
3518         (WebCore::DatabaseTracker::deleteDatabaseFileIfEmpty):
3519         (WebCore::DatabaseTracker::openDatabaseMutex):
3520         (WebCore::DatabaseTracker::emptyDatabaseFilesRemovalTaskWillBeScheduled):
3521         (WebCore::DatabaseTracker::emptyDatabaseFilesRemovalTaskDidFinish):
3522         (WebCore::DatabaseTracker::setDatabasesPaused):
3523         * Modules/webdatabase/DatabaseTracker.h:
3524         * Modules/webdatabase/SQLTransactionBackend.cpp:
3525         (WebCore::SQLTransactionBackend::shouldPerformWhilePaused):
3526         * Modules/webdatabase/SQLTransactionBackend.h:
3527         * Resources/DictationPhraseWithAlternativesDot.png: Added.
3528         * Resources/DictationPhraseWithAlternativesDot@2x.png: Added.