1 2014-01-13 Myles C. Maxfield <mmaxfield@apple.com>
3 Highlighting password field then making a Sticky Note via Safari Services exposes password
4 https://bugs.webkit.org/show_bug.cgi?id=126946
6 Reviewed by Enrica Casucci.
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.
11 Testing is not possible because the Services menu is not accessible to our tests.
13 * editing/mac/EditorMac.mm:
14 (WebCore::Editor::stringSelectionForPasteboard):
15 (WebCore::Editor::stringSelectionForPasteboardWithImageAltText):
16 (WebCore::Editor::dataSelectionForPasteboard):
18 2014-01-13 Brent Fulgham <bfulgham@apple.com>
20 [WebGL] Crash due to forceLostContext
21 https://bugs.webkit.org/show_bug.cgi?id=126947
23 Reviewed by Dean Jackson.
25 Covered by webgl/conformance/textures/origin-clean-conformance.html.
27 * html/canvas/WebGLRenderingContext.cpp:
28 (WebCore::WebGLRenderingContext::isContextLost): Make const.
29 (WebCore::WebGLRenderingContext::platformLayer): Don't attempt to use
31 * html/canvas/WebGLRenderingContext.h: isContextLost should be const.
33 2014-01-13 Martin Robinson <mrobinson@igalia.com>
35 [GTK][CMake] WebCorePlatform build can sometimes fail due to missing generated headers
36 https://bugs.webkit.org/show_bug.cgi?id=126911
38 Reviewed by Daniel Bates.
40 * PlatformGTK.cmake: Add an explicit dependency from WebCorePlatform to WebCore.
42 2014-01-13 Benjamin Poulain <benjamin@webkit.org>
44 Use the Selector Code Generator for resolving style
45 https://bugs.webkit.org/show_bug.cgi?id=126199
47 Reviewed by Ryosuke Niwa.
49 * css/ElementRuleCollector.cpp:
50 (WebCore::ElementRuleCollector::ruleMatches):
53 2014-01-13 Benjamin Poulain <benjamin@webkit.org>
55 Update the SelectorQuery code using compiled selector after r161196
56 https://bugs.webkit.org/show_bug.cgi?id=126860
58 Reviewed by Andreas Kling.
60 Update tree traversal code to the current traversal functions.
62 * dom/SelectorQuery.cpp:
63 (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
64 (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
66 2014-01-13 Simon Fraser <simon.fraser@apple.com>
68 Various iOS WebKit1 build fixes.
70 * WebCore.xcodeproj/project.pbxproj: iOS WebKit1 needs various
71 headers to be Private.
73 2014-01-13 Andreas Kling <akling@apple.com>
75 Map RootInlineBox to containing region via bit+hashmap.
76 <https://webkit.org/b/126917>
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.
82 148 kB progression on Membuster3.
84 Reviewed by Antti Koivisto.
86 * rendering/InlineFlowBox.h:
87 (WebCore::InlineFlowBox::InlineFlowBox):
88 * rendering/RootInlineBox.cpp:
89 (WebCore::RootInlineBox::RootInlineBox):
91 Added m_hasContainingRegion bit.
93 (WebCore::containingRegionMap):
95 Global map between RootInlineBox and RenderRegion.
97 (WebCore::RootInlineBox::~RootInlineBox):
99 Remove self from aforementioned global map if needed.
101 (WebCore::RootInlineBox::paint):
103 Tweak a condition to avoid double hash lookup.
105 * rendering/RootInlineBox.h:
106 (WebCore::RootInlineBox::containingRegion):
107 (WebCore::RootInlineBox::clearContainingRegion):
108 (WebCore::RootInlineBox::setContainingRegion):
110 Store the containing region in a bit+hashmap.
112 2014-01-13 Brent Fulgham <bfulgham@apple.com>
114 [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
115 https://bugs.webkit.org/show_bug.cgi?id=126925
117 Reviewed by Dean Jackson.
119 Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.
121 * html/canvas/WebGLRenderingContext.cpp:
122 (WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error
124 2014-01-13 Daniel Bates <dabates@apple.com>
126 Add uint8_t specialization for WebCore::writeLittleEndian()
127 https://bugs.webkit.org/show_bug.cgi?id=126924
129 Reviewed by Darin Adler.
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.
135 * bindings/js/SerializedScriptValue.cpp:
136 (WebCore::writeLittleEndian<uint8_t>): Added.
138 2014-01-13 Daniel Bates <dabates@apple.com>
140 r161638 broke the Windows build
141 https://bugs.webkit.org/show_bug.cgi?id=126916
143 * DerivedSources.make:
145 2014-01-13 Eric Carlson <eric.carlson@apple.com>
147 Allow MediaSessionManager to restrict media playback
148 https://bugs.webkit.org/show_bug.cgi?id=126780
150 Reviewed by Jer Noble.
152 Test: media/video-concurrent-playback.html
154 * WebCore.exp.in: Export functions needed by Internals.
156 Add HTMLMediaSession.
157 * WebCore.xcodeproj/project.pbxproj:
159 * GNUmakefile.list.am:
160 * WebCore.vcxproj/WebCore.vcxproj:
161 * WebCore.vcxproj/WebCore.vcxproj.filters:
162 * WebCore.xcodeproj/project.pbxproj:
164 Add a media session object to manage HTMLMediaElement restrictions.
165 * html/HTMLMediaSession.cpp: Added.
166 * html/HTMLMediaSession.h: Added.
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:
191 * html/HTMLVideoElement.cpp:
192 (WebCore::HTMLVideoElement::webkitEnterFullscreen): Use the media session to manage restrictions.
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:
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:
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:]):
218 * platform/audio/mac/AudioDestinationMac.h: Add pausePlayback.
220 Allow tests to set media session restrictions.
221 * testing/Internals.cpp:
222 * testing/Internals.h:
223 * testing/Internals.idl:
225 2014-01-13 Alexey Proskuryakov <ap@apple.com>
229 * xml/XMLHttpRequestProgressEventThrottle.cpp:
230 (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent):
232 2014-01-13 Alexey Proskuryakov <ap@apple.com>
236 * xml/XMLHttpRequestProgressEventThrottle.cpp:
237 (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent):
239 2014-01-13 Simon Fraser <simon.fraser@apple.com>
241 Fix copy of SystemMemory.h in iOS WebKit build.
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.
248 * WebCore.xcodeproj/project.pbxproj:
249 * platform/ios/SystemMemory.h: Renamed from Source/WebCore/platform/SystemMemory.h.
251 2014-01-13 Youenn Fablet <youennf@gmail.com>
253 Dispatch a progress event before dispatching abort, error or timeout event
254 https://bugs.webkit.org/show_bug.cgi?id=126575
256 Reviewed by Alexey Proskuryakov.
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.
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
268 2014-01-13 Carlos Garcia Campos <cgarcia@igalia.com>
270 [SOUP] Add SoupNetworkSession class to wrap a SoupSession
271 https://bugs.webkit.org/show_bug.cgi?id=126813
273 Reviewed by Gustavo Noronha Silva.
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.
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
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
301 (WebCore::NetworkStorageSession::switchToNewTestingSession): Call
302 SoupNetworkSession::createTestingSession() to create the testing
304 (WebCore::NetworkStorageSession::soupNetworkSession): Return the
305 SoupNetworkSession or the default one.
306 (WebCore::NetworkStorageSession::setSoupNetworkSession): Set a new
308 * platform/network/soup/ResourceHandleSoup.cpp:
309 (WebCore::sessionFromContext): Use SoupNetworkSession to get the
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
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.
354 2014-01-13 Brent Fulgham <bfulgham@apple.com>
356 [WebGL] Error messages should use source code labels, not internal mangled symbols.
357 https://bugs.webkit.org/show_bug.cgi?id=126832
359 Reviewed by Dean Jackson.
361 Revised fast/canvas/webgl/glsl-conformance.html.
363 * platform/graphics/ANGLEWebKitBridge.cpp:
364 (WebCore::getSymbolInfo): Correct missing 'break'.
365 (WebCore::ANGLEWebKitBridge::compileShaderSource): Call 'getSymbolInfo'
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
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.
378 2014-01-13 David Kilzer <ddkilzer@apple.com>
380 [iOS] Include RenderElement.h to fix BaseChooserOnlyDateAndTimeInputType.cpp
382 Fixes the following build failure:
384 Undefined symbols for architecture x86_64:
385 "__ZNK7WebCore13ContainerNode8rendererEv", referenced from:
386 __ZN7WebCore35BaseChooserOnlyDateAndTimeInputType22handleDOMActivateEventEPNS_5EventE in BaseChooserOnlyDateAndTimeInputType.o
388 * html/BaseChooserOnlyDateAndTimeInputType.cpp: Include
391 2014-01-13 Andy Estes <aestes@apple.com>
393 [iOS] Build Fix: copy iOS-specific generated headers
395 * Configurations/WebCore.xcconfig: Excluded DOMTouch* and DOMGesture* headers on Mac.
396 * WebCore.xcodeproj/project.pbxproj:
398 2014-01-13 Zalan Bujtas <zalan@apple.com>
400 Enable SUBPIXEL_LAYOUT on Mac
401 <https://webkit.org/b/126283>
403 Reviewed by Simon Fraser.
405 * Configurations/FeatureDefines.xcconfig:
407 2014-01-13 Tibor Meszaros <tmeszaros.u-szeged@partner.samsung.com>
409 REGRESSION(r161715): Use of uninitialized value $ENV{"PLATFORM_NAME"}
410 https://bugs.webkit.org/show_bug.cgi?id=126873
412 Reviewed by Csaba Osztrogonác.
414 * bindings/scripts/CodeGeneratorObjC.pm:
415 * bindings/scripts/preprocessor.pm:
418 2014-01-13 Andreas Kling <akling@apple.com>
420 CTTE: Autoscroll renderer is always a RenderBox.
421 <https://webkit.org/b/126884>
423 Reviewed by Antti Koivisto.
425 * page/EventHandler.h:
426 * page/EventHandler.cpp:
427 (WebCore::EventHandler::autoscrollRenderer):
429 Make autoscrollRenderer() return a RenderBox*.
431 * rendering/RenderObject.cpp:
432 (WebCore::RenderObject::willBeDestroyed):
433 * rendering/RenderBox.cpp:
434 (WebCore::RenderBox::willBeDestroyed):
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.
440 2014-01-13 László Langó <llango.u-szeged@partner.samsung.com>
442 Text should be constructable.
443 https://bugs.webkit.org/show_bug.cgi?id=115640
445 Reviewed by Csaba Osztrogonác.
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')".
451 Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/cdd5a914daf3862379a5ce4596149bd690d0fa08
453 Test: fast/dom/Text/text-constructor.html
456 (WebCore::Text::create):
460 2014-01-13 Zan Dobersek <zdobersek@igalia.com>
462 Avoid unnecessary copies of AccessibilityObject::AccessibilityChildrenVector
463 https://bugs.webkit.org/show_bug.cgi?id=126876
465 Reviewed by Andreas Kling.
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.
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):
523 (webkitAccessibleSelectionSelectAllSelection):
524 * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
525 (getNChildrenForTable):
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:]):
537 2014-01-13 László Langó <llango.u-szeged@partner.samsung.com>
539 Comment should be consructable.
540 https://bugs.webkit.org/show_bug.cgi?id=115642
542 Reviewed by Andreas Kling.
544 http://dom.spec.whatwg.org/#comment
545 This allows us to do `new Comment('abc')` instead of `document.createComment('abc')`.
547 Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/06e4a37f6b11348606de5405edac1ada97499d2a%5E%21
549 Test: fast/dom/Comment/comment-constructor.html
552 (WebCore::Comment::create):
556 2014-01-13 Commit Queue <commit-queue@webkit.org>
558 Unreviewed, rolling out r161808.
559 http://trac.webkit.org/changeset/161808
560 https://bugs.webkit.org/show_bug.cgi?id=126874
562 This patch make several files to be always regenerated on
563 every make (Requested by KaL on #webkit).
566 * bindings/gobject/GNUmakefile.am:
568 2014-01-12 Commit Queue <commit-queue@webkit.org>
570 Unreviewed, rolling out r161843.
571 http://trac.webkit.org/changeset/161843
572 https://bugs.webkit.org/show_bug.cgi?id=126871
574 Caused CSS custom filter tests to assert (Requested by smfr on
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):
586 2014-01-12 Commit Queue <commit-queue@webkit.org>
588 Unreviewed, rolling out r161840.
589 http://trac.webkit.org/changeset/161840
590 https://bugs.webkit.org/show_bug.cgi?id=126870
592 Caused jsscore and layout test failures (Requested by smfr on
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:
635 2014-01-12 Jinwoo Song <jinwoo7.song@samsung.com>
637 Fix build warnings by unused parameter
638 https://bugs.webkit.org/show_bug.cgi?id=126867
640 Reviewed by Gyuyoung Kim.
642 * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
643 (WebCore::IDBServerConnectionLevelDB::changeDatabaseVersion): Remove unused parameter 'operation'.
645 2014-01-12 Brent Fulgham <bfulgham@apple.com>
647 Unreviewed build fix for WinCairo.
649 * WebCore.vcxproj/WebCoreCairo.props: Add missing include path
650 to locate SelectorCompiler.h.
652 2014-01-12 Maciej Stachowiak <mjs@apple.com>
654 Fix iOS build breakage from http://trac.webkit.org/changeset/161844
655 https://bugs.webkit.org/show_bug.cgi?id=126866
657 Reviewed by Simon Fraser.
659 * platform/text/TextBreakIteratorICU.cpp:
660 (WebCore::cursorMovementIterator): Use initializeIterator instead of createSharedIterator,
661 which does not exist.
663 2014-01-12 Darin Adler <darin@apple.com>
665 Add PLATFORM(COCOA) and USE(FOUNDATION)
666 https://bugs.webkit.org/show_bug.cgi?id=126859
668 Reviewed by Anders Carlsson.
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.
676 2014-01-12 Darin Adler <darin@apple.com>
678 Add deprecatedCharacters as a synonym for characters and convert most call sites
679 https://bugs.webkit.org/show_bug.cgi?id=126858
681 Reviewed by Anders Carlsson.
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):
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):
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):
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):
820 (WebCore::SVGGlyphMap::addGlyph):
821 (WebCore::SVGGlyphMap::collectGlyphsForString):
822 * svg/SVGGlyphRefElement.cpp:
823 (WebCore::SVGGlyphRefElement::parseAttribute):
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.
861 2014-01-12 Darin Adler <darin@apple.com>
863 Add type checking to isEqual methods
864 https://bugs.webkit.org/show_bug.cgi?id=126862
866 Reviewed by Anders Carlsson.
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.
873 2014-01-12 Anders Carlsson <andersca@apple.com>
875 Try to fix the 32-bit build.
877 * platform/text/icu/UTextProviderLatin1.cpp:
878 (WebCore::uTextLatin1Clone):
879 (WebCore::uTextLatin1Extract):
880 (WebCore::uTextLatin1MapNativeIndexToUTF16):
882 2014-01-12 Anders Carlsson <andersca@apple.com>
884 Remove all uses of AtomicallyInitializedStatic from WebCore
885 https://bugs.webkit.org/show_bug.cgi?id=126861
887 Reviewed by Darin Adler.
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):
901 2014-01-12 Anders Carlsson <andersca@apple.com>
903 Use an std::atomic<uint32_t> when computing IDBDatabase transaction IDs
904 https://bugs.webkit.org/show_bug.cgi?id=126853
906 Reviewed by Sam Weinig.
908 * Modules/indexeddb/IDBDatabase.cpp:
909 (WebCore::IDBDatabase::nextTransactionId):
911 2014-01-12 Sam Weinig <sam@webkit.org>
913 TextBreakIterator's should support Latin-1 for all iterator types (Part 1)
914 https://bugs.webkit.org/show_bug.cgi?id=126856
916 Reviewed by Darin Adler.
918 - Do some initial cleanup before adding complete Latin-1 support.
920 * platform/text/TextBreakIterator.cpp:
921 Remove non-ICU acquireLineBreakIterator() implementation.
923 * platform/text/TextBreakIterator.h:
924 - Changes acquireLineBreakIterator() to take a StringView.
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).
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.
935 * platform/text/icu/UTextProviderUTF16.cpp:
936 * platform/text/icu/UTextProviderUTF16.h:
937 - Rename context aware provider.
939 2014-01-12 Brent Fulgham <bfulgham@apple.com>
941 [WebGL] Error messages should use source code labels, not internal mangled symbols.
942 https://bugs.webkit.org/show_bug.cgi?id=126832
944 Reviewed by Dean Jackson.
946 Revised fast/canvas/webgl/glsl-conformance.html.
948 * platform/graphics/ANGLEWebKitBridge.cpp:
949 (WebCore::getSymbolInfo): Correct missing 'break'.
950 (WebCore::ANGLEWebKitBridge::compileShaderSource): Call 'getSymbolInfo'
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.
960 2014-01-12 Dan Bernstein <mitz@apple.com>
962 Try to fix the Windows build after r161839.
964 * WebCore.vcxproj/WebCoreCommon.props:
966 2014-01-12 Darin Adler <darin@apple.com>
968 Reduce use of String::characters
969 https://bugs.webkit.org/show_bug.cgi?id=126854
971 Reviewed by Sam Weinig.
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.
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.
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.
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.)
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.
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.
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).
1016 * platform/graphics/Color.cpp:
1017 (WebCore::Color::parseHexColor): Use characters16 since we already checked is8Bit.
1018 (WebCore::Color::Color): Ditto.
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).
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.
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).
1034 * rendering/RenderCombineText.cpp:
1035 (WebCore::RenderCombineText::width): Check for zero length instead of checking
1036 for null characters.
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.
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
1049 * xml/XPathNodeSet.h: Added begin and end functions so we can use a C++11 for
1050 loop with this class.
1052 2014-01-12 Benjamin Poulain <benjamin@webkit.org>
1054 Use the Selector Code Generator for matching in SelectorQuery
1055 https://bugs.webkit.org/show_bug.cgi?id=126185
1057 Reviewed by Ryosuke Niwa.
1059 Compile selectors on demand and use the generated binary to perform
1060 element matching in SelectorQuery.
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
1069 * dom/SelectorQuery.cpp:
1070 (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
1071 (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
1072 (WebCore::SelectorDataList::execute):
1073 * dom/SelectorQuery.h:
1075 2014-01-12 Anders Carlsson <andersca@apple.com>
1077 Simplify creation of XMLHttpRequestStaticData
1078 https://bugs.webkit.org/show_bug.cgi?id=126852
1080 Reviewed by Sam Weinig.
1082 Add a staticData() getter that does the initialization and get rid of the explicit
1083 calls to initializeXMLHttpRequestStaticData().
1085 * xml/XMLHttpRequest.cpp:
1086 (WebCore::XMLHttpRequestStaticData::XMLHttpRequestStaticData):
1087 (WebCore::staticData):
1088 (WebCore::XMLHttpRequest::XMLHttpRequest):
1089 (WebCore::XMLHttpRequest::isAllowedHTTPHeader):
1091 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1093 Final WebCore link error: update a symbol in WebCoreSystemInterfaceIOS.mm.
1095 * platform/ios/WebCoreSystemInterfaceIOS.mm:
1097 2014-01-12 Anders Carlsson <andersca@apple.com>
1099 Use std::call_once instead of AtomicallyInitializedStatic in DatabaseBackendBase
1100 https://bugs.webkit.org/show_bug.cgi?id=126851
1102 Reviewed by Sam Weinig.
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):
1116 2014-01-12 Dan Bernstein <mitz@apple.com>
1118 Try to fix the Windows build after r161830.
1120 * platform/network/NetworkStateNotifier.h:
1122 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1124 Don't build JSTouch* and JSGesture* files on Mac.
1126 * Configurations/WebCore.xcconfig:
1128 2014-01-12 Anders Carlsson <andersca@apple.com>
1130 Clean up NetworkStateNotifier class
1131 https://bugs.webkit.org/show_bug.cgi?id=126850
1133 Reviewed by Andreas Kling.
1135 Use std::call_once instead of AtomicallyInitializedStatic and a std::function
1136 instead of a custom function pointer typedef.
1138 * platform/network/NetworkStateNotifier.cpp:
1139 (WebCore::networkStateNotifier):
1140 (WebCore::NetworkStateNotifier::addNetworkStateChangeListener):
1141 (WebCore::NetworkStateNotifier::notifyNetworkStateChange):
1142 * platform/network/NetworkStateNotifier.h:
1144 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1146 Add implementations of Frame::viewportArguments() and
1147 Frame::setViewportArguments().
1149 * page/ios/FrameIOS.mm:
1150 (WebCore::Frame::viewportArguments):
1151 (WebCore::Frame::setViewportArguments):
1153 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1155 Add JSWebKitPlaybackTargetAvailabilityEvent.* to the project.
1157 * WebCore.xcodeproj/project.pbxproj:
1159 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1161 Stub out some DragImage functions for iOS.
1163 * WebCore.xcodeproj/project.pbxproj:
1164 * platform/ios/DragImageIOS.mm: Added.
1165 (WebCore::dragImageSize):
1166 (WebCore::scaleDragImage):
1167 (WebCore::createDragImageFromImage):
1169 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1171 We need DragImage.cpp code even when ENABLE_DRAG_SUPPORT is
1172 not defined, because these are actually generic snapshotting
1175 * platform/DragImage.cpp:
1177 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1179 Fix linker errors: add DateTimeFormat.cpp to the project,
1180 and make DateInputType::DateInputType not inline.
1182 * WebCore.xcodeproj/project.pbxproj:
1183 * html/DateInputType.cpp:
1184 (WebCore::DateInputType::DateInputType):
1185 * platform/DragImage.cpp:
1187 2014-01-12 Simon Fraser <simon.fraser@apple.com>
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
1195 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1197 Add generated JSTouch* and JSGestureEvent.* files to the project.
1199 * WebCore.xcodeproj/project.pbxproj:
1201 2014-01-12 David Kilzer <ddkilzer@apple.com>
1203 Move implementation of AuthenticationChallenge::setAuthenticationClient() to source file for USE(CFNETWORK)
1204 <http://webkit.org/b/126848>
1206 Reviewed by Simon Fraser.
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).
1214 2014-01-12 Sam Weinig <sam@webkit.org>
1218 * WebCore.vcxproj/WebCore.vcxproj:
1220 2014-01-12 Anders Carlsson <andersca@apple.com>
1222 Replace more uses of AtomicallyInitializedStatic with std::call_once
1223 https://bugs.webkit.org/show_bug.cgi?id=126847
1225 Reviewed by Sam Weinig.
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):
1247 2014-01-11 Sam Weinig <sam@webkit.org>
1249 Split ICU UText providers out into their own files
1250 https://bugs.webkit.org/show_bug.cgi?id=126834
1252 Reviewed by Anders Carlsson.
1254 Moves the implementation of our custom UText providers out into
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.
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.
1287 2014-01-12 Carlos Garcia Campos <cgarcia@igalia.com>
1289 Unreviewed. Fix make distcheck.
1291 * GNUmakefile.list.am: Add missing files.
1293 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1295 Fix some CoreVideo linker errors on iOS by softlinking with more CoreVideo
1298 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1300 2014-01-12 Andreas Kling <akling@apple.com>
1302 REGRESSION(r160806): line-height is not applied when only present in :link style.
1303 <http://webkit.org/b/126839>
1304 <rdar://problem/15799899>
1306 Reviewed by Antti Koivisto.
1308 Test: fast/css/line-height-link-style.html
1310 * css/StyleResolver.cpp:
1311 (WebCore::StyleResolver::CascadedProperties::Property::apply):
1313 Use the CSSValue for SelectorChecker::MatchLink when applying
1314 style inside a link.
1316 2014-01-12 David Kilzer <ddkilzer@apple.com>
1318 [iOS] Fix link errors for iOS: Part 3
1321 - Move some Mac-only symbols to Mac-only section.
1322 * WebCore.xcodeproj/project.pbxproj:
1323 - Add missing references to AuthenticationCF.cpp and
1326 2014-01-11 Anders Carlsson <andersca@apple.com>
1328 Remove unsafe uses of AtomicallyInitializedStatic
1329 https://bugs.webkit.org/show_bug.cgi?id=126838
1331 Reviewed by Andreas Kling.
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.
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).
1340 * loader/CrossOriginAccessControl.cpp:
1341 (WebCore::passesAccessControlCheck):
1342 * page/PerformanceResourceTiming.cpp:
1343 (WebCore::passesTimingAllowCheck):
1345 2014-01-12 David Kilzer <ddkilzer@apple.com>
1347 [iOS] Fix link errors for iOS: Part 2
1350 - Move some Mac-only symbols to Mac-only section.
1352 2014-01-12 David Kilzer <ddkilzer@apple.com>
1354 [iOS] First of many iOS fixes to WebCore.exp.in
1357 - Move some Mac-only symbols to Mac-only section.
1358 - Upstream some changes to iOS-only section.
1360 2014-01-12 David Kilzer <ddkilzer@apple.com>
1362 [iOS] Don't link to Mac-only frameworks when building iOS
1363 <http://webkit.org/b/126841>
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
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.
1375 2014-01-12 Tobias Mueller <tobiasmue@gnome.org>
1377 --disable-dependency-tracking causes build failure due to missing directories
1378 https://bugs.webkit.org/show_bug.cgi?id=94488
1380 Reviewed by Gustavo Noronha Silva.
1382 Ensure output directory existing
1383 before generating DerivedSources. This allows for
1384 --disable-dependency-tracking to be run.
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
1389 2014-01-12 David Kilzer <ddkilzer@apple.com>
1391 [iOS] WebFontCache is Mac-only
1393 * WebCore.exp.in: Move export to Mac-only section.
1395 2014-01-12 David Kilzer <ddkilzer@apple.com>
1397 [iOS] Upstream WebEventRegion.{h|mm} to fix the build
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]):
1409 2014-01-11 Anders Carlsson <andersca@apple.com>
1411 Use std::call_once instead of AtomicallyInitializedStatic when creating a HTTP header set
1412 https://bugs.webkit.org/show_bug.cgi?id=126837
1414 Reviewed by Sam Weinig.
1416 Use std::call_once when constructing the HTTPHeaderSet.
1418 * loader/CrossOriginAccessControl.cpp:
1419 (WebCore::isOnAccessControlResponseHeaderWhitelist):
1421 2014-01-11 David Kilzer <ddkilzer@apple.com>
1423 [iOS] Do not link to ApplicationServices.framework for iOS
1424 <http://webkit.org/b/126835>
1426 Reviewed by Dan Bernstein.
1428 * Configurations/WebCore.xcconfig:
1429 (OTHER_LDFLAGS_macosx): Add -framework ApplicationServices.
1430 * WebCore.xcodeproj/project.pbxproj: Remove reference to
1431 ApplicationServices.framework.
1433 2014-01-11 David Kilzer <ddkilzer@apple.com>
1435 [iOS] Build fix for StyleResolver.cpp
1437 * rendering/style/RenderStyle.h:
1438 (WebCore::RenderStyle::setCompositionFillColor): Added.
1440 2014-01-11 David Kilzer <ddkilzer@apple.com>
1442 [iOS] Fix build of RenderLayerCompositor::registerAllViewportConstrainedLayers()
1444 * rendering/RenderLayerCompositor.cpp:
1445 (WebCore::RenderLayerCompositor::registerAllViewportConstrainedLayers):
1446 Fix use of std::make_unique<>() and add an adoptPtr() call.
1448 2014-01-11 Alexey Proskuryakov <ap@apple.com>
1450 [Mac] [Windows] Stop scheduling network requests in WebCore
1451 https://bugs.webkit.org/show_bug.cgi?id=126789
1452 <rdar://problem/15114727>
1454 Reviewed by Sam Weinig.
1456 We'll just send all requests to CFNetwork now, along with associated priorities.
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):
1486 2014-01-11 David Kilzer <ddkilzer@apple.com>
1488 [iOS] Fix build failure in WebCore::findEndWordBoundary()
1490 Filed Bug 126830 for the proper fix:
1491 <http://webkit.org/b/126830>
1493 * editing/VisibleUnits.cpp:
1494 (WebCore::endWordBoundary): Switch back to using
1495 WebCore::findWordBoundary() on iOS.
1497 * platform/text/mac/TextBoundaries.mm:
1498 (WebCore::findEndWordBoundary): Add FIXME for iOS implementation
1499 that doesn't use NSAttributedString.
1501 2014-01-11 Andy Estes <aestes@apple.com>
1503 [iOS] Move text autosizing code from RenderBlock to RenderBlockFlow
1504 https://bugs.webkit.org/show_bug.cgi?id=126829
1506 Reviewed by Sam Weinig.
1508 Some newly-upstreamed iOS text autosizing code needs to move to
1509 RenderBlockFlow in order to build.
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):
1529 2014-01-11 Daniel Bates <dabates@apple.com>
1533 Only call CGContextFlush() when building for OS X < 10.9.
1535 * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
1536 (WebCore::ImageBufferBackingStoreCache::deallocate):
1538 2014-01-11 Anders Carlsson <andersca@apple.com>
1540 InspectorAgentRegistry should use std::unique_ptr
1541 https://bugs.webkit.org/show_bug.cgi?id=126826
1543 Reviewed by Sam Weinig.
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:
1582 2014-01-11 Sam Weinig <sam@webkit.org>
1584 Extract the FormatConverter class out of GraphicsContext3D.cpp and into its own file
1585 https://bugs.webkit.org/show_bug.cgi?id=126820
1587 Reviewed by Anders Carlsson.
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):
1611 2014-01-11 Simon Fraser <simon.fraser@apple.com>
1613 Fix updateScrollingLayerWithClient() for iOS.
1615 * rendering/RenderLayerCompositor.cpp:
1616 (WebCore::updateScrollingLayerWithClient):
1618 2014-01-11 Simon Fraser <simon.fraser@apple.com>
1620 Unfork GraphicsContext::drawNativeImage for iOS
1621 https://bugs.webkit.org/show_bug.cgi?id=126824
1623 Reviewed by Dean Jackson.
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).
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):
1644 2014-01-11 Simon Fraser <simon.fraser@apple.com>
1646 Work around USE(CFNETWORK) build failure on iOS.
1648 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1649 (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForResponseToAuthenticationChallenge):
1651 2014-01-11 Simon Fraser <simon.fraser@apple.com>
1653 Fix LegacyWebArchive.cpp:567:91: error: calling 'utf8' with incomplete return type 'WTF::CString'
1655 * loader/archive/cf/LegacyWebArchive.cpp:
1657 2014-01-11 David Kilzer <ddkilzer@apple.com>
1659 [iOS] Fix the easy half of the build errors in RenderBlock.cpp
1661 * rendering/RenderBlock.cpp:
1662 (WebCore::isNonBlocksOrNonFixedHeightListItems):
1663 (WebCore::oneLineTextMultiplier):
1664 (WebCore::textMultiplier):
1665 (WebCore::RenderBlock::adjustComputedFontSizes):
1667 2014-01-11 Simon Fraser <simon.fraser@apple.com>
1669 Change touch-related headers to include WebKitAdditions headers,
1670 which have been renamed to have IOS suffixes.
1672 * WebCore.xcodeproj/project.pbxproj:
1673 * bindings/js/ios/TouchConstructors.cpp:
1677 * dom/ios/TouchEvents.cpp:
1679 2014-01-11 Anders Carlsson <andersca@apple.com>
1681 ScriptDebugServer should use a separate member function for its timer handler
1682 https://bugs.webkit.org/show_bug.cgi?id=126819
1684 Reviewed by Sam Weinig.
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.
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):
1703 2014-01-11 Anders Carlsson <andersca@apple.com>
1705 Simplify Timer and DeferrableOneShotTimer using std::function
1706 https://bugs.webkit.org/show_bug.cgi?id=126816
1708 Reviewed by Sam Weinig.
1711 (WebCore::Timer::Timer):
1713 2014-01-11 Anders Carlsson <andersca@apple.com>
1715 CTTE Timer and DeferrableOneShotTimer
1716 https://bugs.webkit.org/show_bug.cgi?id=126814
1718 Reviewed by Antti Koivisto.
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.
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:
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):
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):
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:
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:
1962 2014-01-11 Simon Fraser <simon.fraser@apple.com>
1964 #ifdef out the contents of Touch* files for iOS.
1970 2014-01-11 Simon Fraser <simon.fraser@apple.com>
1972 No need to include <ApplicationServices/ApplicationServices.h> in
1973 the header. Can use <CoreGraphics/CoreGraphics.h> in the .cpp file.
1975 * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
1976 * platform/graphics/cg/ImageBufferBackingStoreCache.h:
1978 2014-01-11 Simon Fraser <simon.fraser@apple.com>
1980 Fix DOM headers: TARGET_OS_EMBEDDED -> TARGET_OS_IPHONE
1981 and a drive-by cleanup of DOMUIKitExtensions.mm #includes.
1983 * bindings/objc/DOMPrivate.h:
1984 * bindings/objc/DOMUIKitExtensions.h:
1985 * bindings/objc/DOMUIKitExtensions.mm:
1987 2014-01-11 Simon Fraser <simon.fraser@apple.com>
1989 Fix use of GL_HALF_FLOAT_ARB on iOS.
1991 * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1992 (WebCore::GraphicsContext3D::texSubImage2D):
1994 2014-01-11 Simon Fraser <simon.fraser@apple.com>
1996 Fix build of SourceBufferPrivateAVFObjC.mm on iOS.
1998 * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
2000 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2002 Fix use of nonexistent kCGColorSpaceSRGB on iOS.
2004 * platform/graphics/cg/GraphicsContextCG.cpp:
2005 (WebCore::sRGBColorSpaceRef):
2007 2014-01-11 Joseph Pecoraro <pecoraro@apple.com>
2009 Web Inspector: Some ScriptDebugServer Cleanup
2010 https://bugs.webkit.org/show_bug.cgi?id=126793
2012 Reviewed by Timothy Hatcher.
2014 * bindings/js/PageScriptDebugServer.cpp:
2015 (WebCore::PageScriptDebugServer::didContinue):
2016 (WebCore::PageScriptDebugServer::runEventLoopWhilePaused):
2017 Move the special iOS WebThread EventLoop nesting handling here.
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.
2027 2014-01-11 David Kilzer <ddkilzer@apple.com>
2029 [iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build
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).
2036 2014-01-11 David Kilzer <ddkilzer@apple.com>
2038 [iOS] Multisampling is not available on iOS
2040 * platform/graphics/mac/GraphicsContext3DMac.mm:
2041 (WebCore::GraphicsContext3D::GraphicsContext3D):
2043 2014-01-10 David Kilzer <ddkilzer@apple.com>
2045 [iOS] Fix build for HTMLImageElement::willRespondToMouseClickEvents()
2047 * html/HTMLImageElement.cpp:
2048 (WebCore::HTMLImageElement::willRespondToMouseClickEvents):
2050 2014-01-10 Anders Carlsson <andersca@apple.com>
2054 * loader/ProgressTracker.cpp:
2055 (WebCore::ProgressTracker::~ProgressTracker):
2056 Comment out the call to progressTrackerDestroyed for now.
2058 2014-01-10 David Kilzer <ddkilzer@apple.com>
2060 [iOS] Fix build for RenderEmbeddedObject::canHaveChildren()
2062 * rendering/RenderEmbeddedObject.cpp:
2063 (WebCore::RenderEmbeddedObject::canHaveChildren):
2065 2014-01-10 Anders Carlsson <andersca@apple.com>
2067 Tweak ProgressTrackerClient functions
2068 https://bugs.webkit.org/show_bug.cgi?id=126808
2070 Reviewed by Sam Weinig.
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.
2077 Finally, tweak ProgressTracker::completeProgress to get rid of an unnecessary hash lookup.
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:
2088 2014-01-10 David Kilzer <ddkilzer@apple.com>
2090 [iOS] Fix COMPILE_ASSERT by updating struct SameSizeAsStyleRareInheritedData
2092 * rendering/style/StyleRareInheritedData.cpp:
2094 2014-01-10 David Kilzer <ddkilzer@apple.com>
2096 [iOS] Fix build of SubframeLoader.cpp
2098 * loader/SubframeLoader.cpp:
2099 (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
2100 (WebCore::SubframeLoader::loadPlugin):
2101 * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
2103 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2105 Fix Mac after r161747. One part of that is iOS specific.
2107 Unreviewed build fix.
2109 * bindings/js/GCController.cpp:
2110 (WebCore::GCController::releaseExecutableMemory):
2112 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2114 [iOS] Fix GCController::releaseExecutableMemory
2115 https://bugs.webkit.org/show_bug.cgi?id=126805
2117 Reviewed by Sam Weinig and Mark Lam.
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.
2123 * bindings/js/GCController.h:
2124 * bindings/js/GCController.cpp:
2125 (WebCore::GCController::releaseExecutableMemory):
2127 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2129 Fix HTMLMediaElement.o for iOS. Unreviewed build fix.
2131 There is now local variable mediaElement. Just call the
2132 functions since they are methods on this class.
2134 Fix RequireUserGestureToShowPlaybackTargetPickerRestriction typos.
2136 * html/HTMLMediaElement.cpp:
2137 (WebCore::HTMLMediaElement::parseAttribute):
2139 2014-01-10 Anders Carlsson <andersca@apple.com>
2141 Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
2142 https://bugs.webkit.org/show_bug.cgi?id=126801
2144 Reviewed by Sam Weinig.
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):
2168 (WebCore::Page::Page):
2169 (WebCore::Page::PageClients::PageClients):
2172 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2174 Fix RenderObject.o for iOS. Unreviewed build fix.
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.
2180 * rendering/RenderObject.cpp:
2181 (WebCore::RenderObject::traverseNext):
2182 (WebCore::includeNonFixedHeight):
2184 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2186 Fix MediaPlayerPrivateMediaSourceAVFObjC.o for iOS. Unreviewed build fix.
2188 Import CALayer, which Mac must have been getting some other way.
2190 * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
2192 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2194 Fix TileGrid.o for iOS. Unreviewed build fix.
2196 Explicitly use namespace std in std::pair.
2198 * platform/ios/TileGrid.mm:
2199 (WebCore::isFartherAway):
2200 (WebCore::TileGrid::dropDistantTiles):
2202 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2204 Fix RenderImage.o for iOS. Unreviewed build fix.
2206 inlineBoxWrapper() returns an InlineElementBox type, which is an InlineBox but
2207 without including InlineElementBox.h, iOS didn't know what an InlineElementBox was!
2209 * rendering/RenderImage.cpp:
2211 2014-01-10 David Kilzer <ddkilzer@apple.com>
2213 [iOS] Fix macros in Scrollbar::supportsUpdateOnSecondaryThread()
2215 Fixes the following build error:
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)
2221 * platform/Scrollbar.cpp:
2222 (WebCore::Scrollbar::supportsUpdateOnSecondaryThread):
2224 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2226 Fix RenderFileUploadControl.o for iOS. Unreviewed build fix.
2228 WebCore::theme() returns a reference now, not a pointer.
2230 * rendering/RenderFileUploadControl.cpp:
2231 (WebCore::RenderFileUploadControl::paintObject):
2233 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2235 Fix HTMLPlugInImageElement.o for iOS. Unreviewed build fix.
2237 Forgot to upstream YouTubeEmbedShadowElement.*. Do so and
2238 add the files to the Xcode project so they build.
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.
2248 2014-01-10 David Kilzer <ddkilzer@apple.com>
2250 [iOS] Update EditorIOS.mm to switch from pointers to references
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):
2267 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2269 Web Inspector: Push InspectorAgent down into JSC, give JSC an InspectorController
2270 https://bugs.webkit.org/show_bug.cgi?id=126763
2272 Reviewed by Timothy Hatcher.
2274 No new tests, no observable change in functionality.
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.
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.
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.
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.
2309 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2311 Add TextAutoSizing.* for iOS, and fix DeviceOrientationController creation.
2313 * WebCore.xcodeproj/project.pbxproj:
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):
2340 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2342 Fix GraphicsLayerCA.o for iOS. Unreviewed build fix.
2344 Use of systemMemoryLevel was missing include of SystemMemory.h.
2346 * platform/graphics/ca/GraphicsLayerCA.cpp:
2348 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2352 * bindings/objc/DOM.mm:
2353 (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]):
2354 * bindings/objc/DOMExtensions.h:
2355 * platform/DragImage.h:
2357 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2361 Generated DOMTouch* and DOMGesture* files need to be in the project.
2362 Exclude them on Mac via EXCLUDED_SOURCE_FILE_NAMES_macosx.
2364 Use TARGET_OS_IPHONE instead of TARGET_OS_EMBEDDED in DOMPrivate.h
2366 * Configurations/WebCore.xcconfig:
2367 * WebCore.xcodeproj/project.pbxproj:
2368 * bindings/objc/DOMPrivate.h:
2370 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2372 Fix RenderThemeIOS.o for iOS. Unreviewed build fix.
2374 Typo referring to generated name. Should be "iOS" not "IOS".
2376 * rendering/RenderThemeIOS.mm:
2377 (WebCore::RenderThemeIOS::mediaControlsScript):
2379 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2381 Fix WebAccessibilityObjectWrapperIOS.o for iOS. Unreviewed build fix.
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.
2387 * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
2388 (AXAttributeStringSetStyle):
2390 2014-01-10 Jinwoo Song <jinwoo7.song@samsung.com>
2392 Remove willRespondToTouchEvents() which was used by chromium port
2393 https://bugs.webkit.org/show_bug.cgi?id=126739
2395 Reviewed by Alexey Proskuryakov.
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.
2403 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2405 Fix SystemVersionMac.o for iOS. Unreviewed build fix.
2407 Add missing expected function. Maybe we can avoid including
2408 this file entirely on iOS, there was already a FIXME.
2410 * platform/mac/SystemVersionMac.mm:
2411 (WebCore::systemMarketingVersion):
2413 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2415 Fix JSDOMWindowBase.o for iOS. Unreviewed build fix.
2417 Add missing iOS method declarations.
2419 * bindings/js/JSDOMWindowBase.h:
2421 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2423 Fix InputType.o for iOS. Unreviewed build fix.
2425 The RuntimeEnabledFeatures function pointer type should have a
2426 const qualifier, because the implementations are all const.
2428 * html/InputType.cpp:
2430 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2432 Fix MediaPlayerPrivateIOS.o for iOS. Unreviewed build fix.
2434 Add missing MediaPlayerProxy Objective C methods and forward declarations.
2436 * platform/graphics/mac/MediaPlayerProxy.h:
2438 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2440 Fix FrameSelection.o for iOS. Unreviewed build fix.
2442 r160966 renamed rendererIsEditable to hasEditableStyle.
2444 * editing/FrameSelection.cpp:
2445 (WebCore::FrameSelection::setSelectionFromNone):
2447 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2449 Fix DragData.o for iOS. Unreviewed build fix.
2451 String m_pasteboardName is unused on iOS, so ifdef it out.
2453 * platform/DragData.h:
2455 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2457 Fix FrameIOS.o for iOS. Unreviewed build fix.
2459 Remove stale include to file that no longer exists. It was not needed.
2461 * page/ios/FrameIOS.mm:
2463 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2465 Fix MonthInputType.o for iOS. Unreviewed build fix.
2467 When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876,
2468 the wrong class name lingered. Fix it to be the base class.
2470 * html/TimeInputType.cpp:
2471 (WebCore::TimeInputType::TimeInputType):
2473 2014-01-10 Andy Estes <aestes@apple.com>
2475 [iOS] Build fix: make sure WTF_PLATFORM_IOS is defined when preprocessing
2477 * DerivedSources.make:
2478 * bindings/scripts/preprocessor.pm:
2479 (applyPreprocessor):
2481 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2483 Use TARGET_OS_IPHONE in this API file, and #if TARGET_OS_MAC
2484 for a non-iOS function.
2486 * bindings/objc/DOMExtensions.h:
2488 2014-01-10 David Kilzer <ddkilzer@apple.com>
2490 Clean up architectures in xcconfig files
2491 <http://webkit.org/b/126794>
2493 Reviewed by Andy Estes.
2495 * Configurations/Base.xcconfig:
2496 * Configurations/WebCore.xcconfig: Remove armv6.
2497 * DerivedSources.make: Remove armv6, armv7f. Sort.
2500 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2504 * Configurations/WebCore.xcconfig:
2505 * css/DeprecatedStyleBuilder.cpp:
2506 (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyValue):
2508 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2512 * html/DateTimeLocalInputType.h:
2513 (WebCore::DateTimeLocalInputType::DateTimeLocalInputType):
2514 * loader/ios/DiskImageCacheIOS.h:
2516 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2518 iOS build fix: add StyleRareInheritedData::compositionFillColor
2520 * rendering/style/RenderStyle.h:
2521 * rendering/style/StyleRareInheritedData.cpp:
2522 (WebCore::StyleRareInheritedData::StyleRareInheritedData):
2523 (WebCore::StyleRareInheritedData::operator==):
2524 * rendering/style/StyleRareInheritedData.h:
2526 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2528 Fix MonthInputType.o for iOS. Unreviewed build fix.
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.
2534 * html/MonthInputType.h:
2535 (WebCore::MonthInputType::MonthInputType):
2537 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2539 Fix RenderButton.o for iOS. Unreviewed build fix.
2541 Missing prototype in header for override of the layout method.
2543 * rendering/RenderButton.h:
2545 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2547 A couple of iOS build fixes.
2549 * accessibility/ios/AXObjectCacheIOS.mm:
2550 (WebCore::AXObjectCache::handleFocusedUIElementChanged):
2551 * html/canvas/CanvasRenderingContext2D.cpp:
2552 (WebCore::CanvasRenderingContext2D::drawImage):
2554 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2556 Fix PlatformScreenIOS.mm for iOS. Unreviewed build fix.
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.
2562 * platform/ios/PlatformScreenIOS.mm:
2563 (WebCore::screenColorProfile):
2565 2014-01-10 Anders Carlsson <andersca@apple.com>
2568 https://bugs.webkit.org/show_bug.cgi?id=126795
2570 Reviewed by Tim Horton.
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):
2590 (WebCore::FrameTree::FrameTree):
2592 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2596 * loader/ResourceLoader.h:
2598 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2602 * platform/graphics/ImageSource.h:
2603 (WebCore::ImageSource::acceleratedImageDecodingEnabled):
2604 (WebCore::ImageSource::setAcceleratedImageDecodingEnabled):
2606 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2608 Unreviewed EFL build fix after r161678.
2610 static_cast a size_t to unsigned long for %lu format string.
2613 (WebCore::internalAddMessage):
2615 2014-01-10 Benjamin Poulain <bpoulain@apple.com>
2617 Remove the BlackBerry port from trunk
2618 https://bugs.webkit.org/show_bug.cgi?id=126715
2620 Reviewed by Anders Carlsson.
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:
2660 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2662 Fix CharsetData.cpp build for iOS
2663 https://bugs.webkit.org/show_bug.cgi?id=126792
2665 Reviewed by Mark Rowe.
2667 CharsetData.cpp should have an empty CharsetTable list for iOS.
2668 Achieve this with an iOS-specific encodings.txt file.
2670 * DerivedSources.make:
2671 * WebCore.xcodeproj/project.pbxproj:
2672 * platform/text/mac/ios-encodings.txt: Added.
2674 2014-01-10 Anders Carlsson <andersca@apple.com>
2676 CTTE in NavigationScheduler
2677 https://bugs.webkit.org/show_bug.cgi?id=126788
2679 Reviewed by Tim Horton.
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:
2710 (WebCore::Frame::Frame):
2712 2014-01-10 Myles C. Maxfield <mmaxfield@apple.com>
2714 CSS word-spacing property does not obey percentages
2715 https://bugs.webkit.org/show_bug.cgi?id=126674
2717 Reviewed by Simon Fraser.
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
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
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
2763 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2767 * platform/audio/mac/MediaSessionManagerMac.cpp:
2769 2014-01-10 Simon Fraser <simon.fraser@apple.com>
2771 iOS doesn't have <OpenGL/gl.h>; fix iOS build.
2773 * platform/graphics/opengl/TemporaryOpenGLSetting.cpp:
2775 2014-01-10 Andy Estes <aestes@apple.com>
2777 [iOS] Build Fix: Properly add $SDKROOT/usr/local/include/ to the search path when building PublicDOMInterfaces.h
2779 * bindings/scripts/CodeGeneratorObjC.pm:
2780 (ReadPublicInterfaces):
2782 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2784 Web Inspector: Remove unimplemented or static ScriptDebugServer features
2785 https://bugs.webkit.org/show_bug.cgi?id=126784
2787 Reviewed by Timothy Hatcher.
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.
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:
2811 2014-01-10 David Kilzer <ddkilzer@apple.com>
2813 [iOS] Remove unused variable from TileGrid::dropTilesBetweenRects()
2815 Fixes the following build error:
2817 WebCore/platform/ios/TileGrid.mm:88:23: error: unused variable 'end' [-Werror,-Wunused-variable]
2818 TileMap::iterator end = m_tiles.end();
2821 * platform/ios/TileGrid.mm:
2822 (WebCore::TileGrid::dropTilesBetweenRects): Remove unused
2823 variable now that the for loop uses an auto iterator.
2825 2014-01-10 Dean Jackson <dino@apple.com>
2827 Implement OES texture half float linear
2828 https://bugs.webkit.org/show_bug.cgi?id=125060
2830 Reviewed by Brent Fulgham.
2832 Test: fast/canvas/webgl/oes-texture-half-float-linear.html
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.
2842 * bindings/js/JSWebGLRenderingContextCustom.cpp:
2843 (WebCore::toJS): Map from extension name to native object.
2845 * html/canvas/OESTextureHalfFloatLinear.cpp: Added. New files. These are boiler-plate.
2846 * html/canvas/OESTextureHalfFloatLinear.h: Added.
2847 * html/canvas/OESTextureHalfFloatLinear.idl: Added.
2849 * html/canvas/WebGLExtension.h: Add new enum for the new extension.
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.
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:
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.
2871 2014-01-10 Brent Fulgham <bfulgham@apple.com>
2873 [WebGL] Correct uniform input validation for texture sampler uniform
2874 https://bugs.webkit.org/show_bug.cgi?id=126775
2876 Reviewed by Dean Jackson.
2878 Added fast/canvas/webgl/uniform-samplers-test.html
2880 * html/canvas/WebGLRenderingContext.cpp:
2881 (WebCore::WebGLRenderingContext::uniform1iv): Access Int32Array data properly.
2883 2014-01-10 Manuel Rego Casasnovas <rego@igalia.com>
2885 [GTK] Unreviewed build fix after r161644.
2887 * Modules/webaudio/MediaStreamAudioSourceNode.cpp:
2888 (WebCore::MediaStreamAudioSourceNode::setFormat):
2890 2014-01-10 Anders Carlsson <andersca@apple.com>
2892 Remove an unused FrameLoader function
2893 https://bugs.webkit.org/show_bug.cgi?id=126785
2895 Reviewed by Beth Dakin.
2898 * loader/FrameLoader.cpp:
2899 (WebCore::FrameLoader::setState):
2900 * loader/FrameLoader.h:
2902 2014-01-10 Benjamin Poulain <bpoulain@apple.com>
2904 Remove the BlackBerry port from trunk
2905 https://bugs.webkit.org/show_bug.cgi?id=126715
2907 Reviewed by Anders Carlsson.
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):
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:
2938 2014-01-10 Timothy Hatcher <timothy@apple.com>
2940 Clean up and fix some issues with stdout formatting of console messages.
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.
2947 https://bugs.webkit.org/show_bug.cgi?id=126767
2949 Reviewed by Joseph Pecoraro.
2952 (WebCore::internalAddMessage):
2953 * page/PageConsole.cpp:
2954 (WebCore::PageConsole::printSourceURLAndPosition):
2955 (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
2956 * page/PageConsole.h:
2958 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2960 [iOS] Fill in missing WebCoreThread function pointers
2961 https://bugs.webkit.org/show_bug.cgi?id=126776
2963 Reviewed by Timothy Hatcher.
2965 * platform/ios/wak/WebCoreThreadSystemInterface.cpp:
2966 (InitWebCoreThreadSystemInterface):
2968 2014-01-10 Yongjun Zhang <yongjun_zhang@apple.com>
2970 Clear unparented tiled layers on memory pressure.
2971 https://bugs.webkit.org/show_bug.cgi?id=126737
2973 Reviewed by Simon Fraser.
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.
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
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.
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):
3005 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3007 [CSS Blending] Log blending as a layer creation reason in the WI
3008 https://bugs.webkit.org/show_bug.cgi?id=126159
3010 Reviewed by Timothy Hatcher.
3012 * inspector/InspectorLayerTreeAgent.cpp:
3013 (WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer):
3014 * inspector/protocol/LayerTree.json:
3016 2014-01-10 Andy Estes <aestes@apple.com>
3018 Fix some iOS build errors during bindings generation.
3020 * bindings/objc/PublicDOMInterfaces.h: Included
3021 WebKitAdditions/PublicDOMInterfacesIOS.h and change
3022 -[DOMRGBColor color] to return a CGColorRef on iOS.
3024 2014-01-10 Timothy Hatcher <timothy@apple.com>
3026 Prevent some resources from showing up in Web Inspector as years in duration.
3028 No WebKit port passed a monotonic time to InspectorInstrumentation::didFinishLoading -- except Chromium.
3030 https://bugs.webkit.org/show_bug.cgi?id=126760
3032 Reviewed by Joseph Pecoraro.
3034 * inspector/InspectorInstrumentation.cpp:
3035 (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
3036 Revert part of r102961 to use finishTime as-is and not expect a monotonic time.
3038 2014-01-10 Dirk Schulze <krit@webkit.org>
3040 Make clipping path from basic-shapes relative to <box> value
3041 https://bugs.webkit.org/show_bug.cgi?id=126206
3043 Reviewed by Simon Fraser.
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
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.
3055 2014-01-10 Youenn Fablet <youennf@gmail.com>
3058 Correctly set XHR loadend attributes (loaded and total).
3059 https://bugs.webkit.org/show_bug.cgi?id=120828
3061 Reviewed by Alexey Proskuryakov.
3063 Added correct initialization of lengthComputable, loaded and total attributes
3064 to XHR ProgressEvent events (load, loadstart, loadend, abort, error and timeout).
3066 XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload now keep persistent knowledge
3067 of m_loaded and m_total values with this patch.
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&)
3073 Fixed assertion issues over bug 120828 patch
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
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
3106 2014-01-10 Bear Travis <betravis@adobe.com>
3108 [CSS Shapes] Change parseBasicShape to return a CSSPrimitiveValue
3109 https://bugs.webkit.org/show_bug.cgi?id=126713
3111 Reviewed by Dirk Schulze.
3113 Avoid the duplicated code wrapping the CSSBasicShape in a CSSPrimitiveValue
3114 by having parseBasicShape return a CSSPrimitiveValue reference.
3116 Refactoring, no new tests.
3118 * css/CSSParser.cpp:
3119 (WebCore::CSSParser::parseShapeProperty):
3120 (WebCore::CSSParser::parseClipPath):
3121 (WebCore::CSSParser::parseBasicShape):
3124 2014-01-10 Piotr Grad <p.grad@samsung.com>
3126 Possible crash in ApplicationCache::removeResource.
3127 https://bugs.webkit.org/show_bug.cgi?id=126695
3129 Reviewed by Alexey Proskuryakov.
3133 Iterator variable was used after it was removed.
3135 * loader/appcache/ApplicationCache.cpp:
3136 (WebCore::ApplicationCache::removeResource):
3138 2014-01-10 Daniel Bates <dabates@apple.com>
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)
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.
3147 * DerivedSources.make:
3149 2014-01-10 Anders Carlsson <andersca@apple.com>
3151 Remove supportMultipleWindows setting
3152 https://bugs.webkit.org/show_bug.cgi?id=126772
3154 Reviewed by Beth Dakin.
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.
3159 * loader/FrameLoader.cpp:
3160 (WebCore::createWindow):
3161 * page/ContextMenuController.cpp:
3162 (WebCore::openNewWindow):
3165 2014-01-10 Benjamin Poulain <bpoulain@apple.com>
3167 Remove the BlackBerry port from trunk
3168 https://bugs.webkit.org/show_bug.cgi?id=126715
3170 Reviewed by Anders Carlsson.
3172 * dom/TouchEvent.cpp:
3173 (WebCore::TouchEvent::TouchEvent):
3174 (WebCore::TouchEvent::initTouchEvent):
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):
3219 2014-01-10 Benjamin Poulain <bpoulain@apple.com>
3221 Remove the BlackBerry port from trunk
3222 https://bugs.webkit.org/show_bug.cgi?id=126715
3224 Reviewed by Anders Carlsson.
3226 * Modules/navigatorcontentutils/NavigatorContentUtils.cpp:
3227 (WebCore::initProtocolHandlerWhitelist):
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:
3236 2014-01-10 Daniel Bates <dabates@apple.com>
3238 Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
3239 (https://bugs.webkit.org/show_bug.cgi?id=126698)
3241 Tell Xcode that the supported platforms for all WebKit targets are iOS and OS X.
3243 * Configurations/Base.xcconfig:
3245 2014-01-09 Andy Estes <aestes@apple.com>
3247 [iOS] Upstream iOS changes to MigrateHeaders.make
3248 https://bugs.webkit.org/show_bug.cgi?id=126731
3250 Reviewed by David Kilzer.
3252 * WebCore.xcodeproj/project.pbxproj: Mark an iOS-specific header at
3253 Private that will later be migrated by WebKit.
3255 2014-01-10 Daniel Bates <dabates@apple.com>
3257 Fix the Production Mac build following <http://trac.webkit.org/changeset/161638>
3258 (https://bugs.webkit.org/show_bug.cgi?id=126698)
3260 Substitute JAVASCRIPTCORE_PRIVATE_HEADERS_DIR_Production_ for JAVASCRIPTCORE_PRIVATE_HEADERS_Production_.
3262 * Configurations/WebCore.xcconfig:
3264 2014-01-10 Anders Carlsson <andersca@apple.com>
3266 Add a missing include.
3268 * Modules/webdatabase/DatabaseManager.h:
3270 2014-01-10 Anders Carlsson <andersca@apple.com>
3272 Use STL threading primitives in DatabaseDetails and DatabaseManager
3273 https://bugs.webkit.org/show_bug.cgi?id=126759
3275 Reviewed by Geoffrey Garen.
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:
3292 2014-01-10 Commit Queue <commit-queue@webkit.org>
3294 Unreviewed, rolling out r161629.
3295 http://trac.webkit.org/changeset/161629
3296 https://bugs.webkit.org/show_bug.cgi?id=126762
3298 Fails svg/custom/conditional-processing-2.html (Requested by
3301 * svg/SVGSwitchElement.cpp:
3302 (WebCore::SVGSwitchElement::childShouldCreateRenderer):
3304 (WebCore::SVGTests::hasExtension):
3305 (WebCore::SVGTests::isValid):
3307 2014-01-10 ChangSeok Oh <changseok.oh@collabora.com>
3309 Unreviewed build fix since r161589.
3311 The changeset causes a compile failure with --no-svg.
3313 * platform/graphics/FontFastPath.cpp:
3314 (WebCore::Font::drawGlyphBuffer):
3316 2014-01-10 Przemyslaw Szymanski <p.szymanski3@samsung.com>
3318 [WebGL] Removing unnecessary pointer checks
3319 https://bugs.webkit.org/show_bug.cgi?id=124046
3321 Reviewed by Brent Fulgham.
3323 We do not need to check for a null array three times in
3324 the same call. Let's just do it once!
3326 No new tests. Covered by existing ones.
3328 * html/canvas/WebGLBuffer.cpp:
3329 (WebCore::WebGLBuffer::associateBufferData):
3331 2014-01-10 Daniel Bates <dabates@apple.com>
3333 Speculative build fix for Windows following <http://trac.webkit.org/changeset/161638>
3334 (https://bugs.webkit.org/show_bug.cgi?id=126698)
3336 Reviewed by David Kilzer.
3338 * bindings/scripts/preprocessor.pm:
3339 (applyPreprocessor):
3341 2014-01-10 Przemyslaw Szymanski <p.szymanski3@samsung.com>
3343 [WebGL] Wrong condition order in the if statement
3344 https://bugs.webkit.org/show_bug.cgi?id=125000
3346 Reviewed by Brent Fulgham.
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
3354 No new tests. No behaviour changes.
3356 * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
3357 (WebCore::Extensions3DOpenGLES::supportsExtension):
3359 2014-01-10 Anders Carlsson <andersca@apple.com>
3361 CTTE in AudioContext::AutoLocker
3362 https://bugs.webkit.org/show_bug.cgi?id=126758
3364 Reviewed by Antti Koivisto.
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):
3390 2014-01-10 Antti Koivisto <antti@apple.com>
3392 Use element iterators more
3393 https://bugs.webkit.org/show_bug.cgi?id=126756
3395 Reviewed by Anders Carlsson.
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:
3408 2014-01-10 Daniel Bates <dabates@apple.com>
3410 Attempt to fix the iOS build after <http://trac.webkit.org/changeset/161589>
3411 (https://bugs.webkit.org/show_bug.cgi?id=126654)
3413 * platform/audio/ios/AudioSessionIOS.mm: Import header PassOwnPtr.h so that we can use adoptPtr().
3415 2014-01-10 Daniel Bates <dabates@apple.com>
3417 Attempt to fix the build after <http://trac.webkit.org/changeset/161638>
3418 (https://bugs.webkit.org/show_bug.cgi?id=126698)
3420 Substitute tab characters for space characters.
3422 * DerivedSources.make:
3424 2014-01-10 Anders Carlsson <andersca@apple.com>
3426 DOMWindow::showModalDialog should use std::function
3427 https://bugs.webkit.org/show_bug.cgi?id=126753
3429 Reviewed by Antti Koivisto.
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):
3439 2014-01-10 Daniel Bates <dabates@apple.com>
3441 [iOS] Upstream WebCore and Tools miscellaneous changes
3442 https://bugs.webkit.org/show_bug.cgi?id=126698
3444 Reviewed by David Kilzer.
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.