Skip to content
Commits on May 24, 2016
  1. Unreviwed, add a comment to describe the test's failure mode. Suggest…

    …ed by mlam.
    
    * tests/stress/override-map-constructor.js:
    (Map):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fpizlo@apple.com committed May 24, 2016
  2. Use lambda capture with initializer instead of StringCapture

    https://bugs.webkit.org/show_bug.cgi?id=158010
    
    Reviewed by Antti Koivisto.
    
    Source/WebCore:
    
    Use lambda capture with initializer instead of StringCapture now that
    we support C++14.
    
    * fileapi/AsyncFileStream.cpp:
    (WebCore::AsyncFileStream::getSize):
    (WebCore::AsyncFileStream::openForRead):
    (WebCore::AsyncFileStream::openForWrite):
    * loader/DocumentLoader.cpp:
    (WebCore::DocumentLoader::installContentFilterUnblockHandler):
    * loader/WorkerThreadableLoader.cpp:
    (WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
    * platform/ios/WebVideoFullscreenControllerAVKit.mm:
    (WebVideoFullscreenControllerContext::setExternalPlayback):
    * platform/network/curl/CurlDownload.cpp:
    (WebCore::CurlDownload::didReceiveHeader):
    * workers/WorkerMessagingProxy.cpp:
    (WebCore::WorkerMessagingProxy::postExceptionToWorkerObject):
    (WebCore::WorkerMessagingProxy::postConsoleMessageToWorkerObject):
    
    Source/WebKit2:
    
    Use lambda capture with initializer instead of StringCapture now that
    we support C++14.
    
    * NetworkProcess/cache/NetworkCache.cpp:
    (WebKit::NetworkCache::Cache::deleteDumpFile):
    * NetworkProcess/cache/NetworkCacheStatistics.cpp:
    (WebKit::NetworkCache::Statistics::initialize):
    (WebKit::NetworkCache::Statistics::shrinkIfNeeded):
    * NetworkProcess/cache/NetworkCacheStorage.cpp:
    (WebKit::NetworkCache::Storage::updateFileModificationTime):
    (WebKit::NetworkCache::Storage::clear):
    * UIProcess/API/APIUserContentExtensionStore.cpp:
    (API::UserContentExtensionStore::lookupContentExtension):
    (API::UserContentExtensionStore::compileContentExtension):
    (API::UserContentExtensionStore::removeContentExtension):
    * UIProcess/WebsiteData/WebsiteDataStore.cpp:
    (WebKit::WebsiteDataStore::fetchData):
    (WebKit::WebsiteDataStore::removeData):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cdumez@apple.com committed May 24, 2016
  3. Map should not be in JSGlobalObject's static hashtable because it's i…

    …nitialized eagerly via FOR_EACH_SIMPLE_BUILTIN_TYPE_WITH_CONSTRUCTOR
    
    
    https://bugs.webkit.org/show_bug.cgi?id=158031
    rdar://problem/26353661
    
    Reviewed by Geoffrey Garen.
            
    We were listing Map as being a lazy class structure. It's not. m_mapStructure is a WriteBarrier<>
    not a LazyClassStructure<> and there is nothing lazy about it.
    
    * runtime/JSGlobalObject.cpp: The fix is to remove Map here.
    * runtime/Lookup.cpp: Add some dumping on the assert path.
    (JSC::setUpStaticFunctionSlot):
    * tests/stress/override-map-constructor.js: Added. This test used to crash.
    (Map):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201340 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fpizlo@apple.com committed May 24, 2016
  4. We should have JSBench in PerformanceTests

    https://bugs.webkit.org/show_bug.cgi?id=157952
    
    Rubber-stamped by Saam Barati.
    
    PerformanceTests:
    
    There are some slight changes to the layout of the test directory
    to make it work nicely with run-jsc-benchmarks. Before JSBench
    had each of the browser specific sub-tests in a sub-directory.
    These have been flattened e.g. amazon/safari/ has become
    amazon-safari/.
    
    * JSBench/amazon-chrome-win/urem.html: Added.
    * JSBench/amazon-chrome-win/urem.js: Added.
    * JSBench/amazon-chrome/urem.html: Added.
    * JSBench/amazon-chrome/urem.js: Added.
    * JSBench/amazon-firefox-win/urm.html: Added.
    * JSBench/amazon-firefox-win/urm.js: Added.
    * JSBench/amazon-firefox/urm.html: Added.
    * JSBench/amazon-firefox/urm.js: Added.
    * JSBench/amazon-safari/urem.html: Added.
    * JSBench/amazon-safari/urem.js: Added.
    * JSBench/browsercheck.js: Added.
    * JSBench/facebook-chrome-win/urem.html: Added.
    * JSBench/facebook-chrome-win/urem.js: Added.
    * JSBench/facebook-chrome/urem.html: Added.
    * JSBench/facebook-chrome/urem.js: Added.
    * JSBench/facebook-firefox-win/urem.html: Added.
    * JSBench/facebook-firefox-win/urem.js: Added.
    * JSBench/facebook-firefox/urem.html: Added.
    * JSBench/facebook-firefox/urem.js: Added.
    * JSBench/facebook-safari/urem.html: Added.
    * JSBench/facebook-safari/urem.js: Added.
    * JSBench/google-chrome-win/urem.html: Added.
    * JSBench/google-chrome-win/urem.js: Added.
    * JSBench/google-chrome/urem.html: Added.
    * JSBench/google-chrome/urem.js: Added.
    * JSBench/google-firefox-win/urem.html: Added.
    * JSBench/google-firefox-win/urem.js: Added.
    * JSBench/google-firefox/uem.html: Added.
    * JSBench/google-firefox/uem.js: Added.
    * JSBench/google-safari/urem.html: Added.
    * JSBench/google-safari/urem.js: Added.
    * JSBench/harness.html: Added.
    * JSBench/harness.js: Added.
    * JSBench/harness.py: Added.
    * JSBench/index.html: Added.
    * JSBench/reload.html: Added.
    * JSBench/twitter-chrome-win/rem.html: Added.
    * JSBench/twitter-chrome-win/rem.js: Added.
    * JSBench/twitter-chrome/urem.html: Added.
    * JSBench/twitter-chrome/urem.js: Added.
    * JSBench/twitter-firefox-win/urem.html: Added.
    * JSBench/twitter-firefox-win/urem.js: Added.
    * JSBench/twitter-firefox/urem.html: Added.
    * JSBench/twitter-firefox/urem.js: Added.
    * JSBench/twitter-safari/urem.html: Added.
    * JSBench/twitter-safari/urem.js: Added.
    * JSBench/yahoo-chrome-win/urem.html: Added.
    * JSBench/yahoo-chrome-win/urem.js: Added.
    * JSBench/yahoo-chrome/urem.html: Added.
    * JSBench/yahoo-chrome/urem.js: Added.
    * JSBench/yahoo-firefox-win/urem.html: Added.
    * JSBench/yahoo-firefox-win/urem.js: Added.
    * JSBench/yahoo-firefox/urem.html: Added.
    * JSBench/yahoo-firefox/urem.js: Added.
    * JSBench/yahoo-safari/urem.html: Added.
    * JSBench/yahoo-safari/urem.js: Added.
    
    Tools:
    
    This changes the runner to use the layout of the newest version of JSBench.
    
    * Scripts/run-jsc-benchmarks:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    keith_miller@apple.com committed May 24, 2016
  5. Unskip passing test after r201336

    https://bugs.webkit.org/show_bug.cgi?id=156812
    
    * platform/ios-simulator/TestExpectations:
    compositing/webgl/webgl-reflection.html passes now.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    achristensen@apple.com committed May 24, 2016
  6. Another build fix after r201307.

    * public/v3/pages/page-router.js:
    (PageRouter.prototype._deserializeHashQueryValue):
    (PageRouter.prototype._countOccurrences): Moved from _deserializeHashQueryValue.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    rniwa@webkit.org committed May 24, 2016
  7. Fix iOS WebGL after r199738

    https://bugs.webkit.org/show_bug.cgi?id=158024
    rdar://problem/26446679
    
    Reviewed by Myles Maxfield.
    
    * ANGLE.xcodeproj/project.pbxproj:
    iOS needs the ESSL translator.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    achristensen@apple.com committed May 24, 2016
  8. LLInt64 should have typed array fast paths for get_by_val

    https://bugs.webkit.org/show_bug.cgi?id=157931
    
    Reviewed by Keith Miller.
    
    Source/JavaScriptCore:
    
    I think that the LLInt should be able to access typed arrays more quickly than it does now.
    Ideally we would have fast paths for every major typed array operation and we would use
    inline cache optimizations. I don't want to do this all in one go, so my plan is to
    incrementally add support for this as time allows.
            
    This change just adds the easy typed array fast paths for get_by_val in the 64-bit version
    of LLInt.
            
    Another bug, https://bugs.webkit.org/show_bug.cgi?id=157922, tracks the overall task of
    adding all typed array fast paths to both versions of the LLInt.
            
    This is a 30% speed-up on typed array benchmarks in LLInt. This is not a speed-up when the
    JITs are enabled.
    
    * llint/LLIntData.cpp:
    (JSC::LLInt::Data::performAssertions):
    * llint/LLIntOffsetsExtractor.cpp:
    * llint/LowLevelInterpreter.asm:
    * llint/LowLevelInterpreter64.asm:
    * offlineasm/backends.rb:
    * runtime/JSArrayBufferView.h:
    * runtime/JSType.h:
    
    LayoutTests:
    
    * js/regress/get_by_val-Int32Array-expected.txt: Added.
    * js/regress/get_by_val-Int32Array.html: Added.
    * js/regress/script-tests/get_by_val-Int32Array.js: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fpizlo@apple.com committed May 24, 2016
  9. In accelerated drawing mode, ImageBuffer::putByteArray() should copy …

    …the bytes directly to the IOSurface backing store
    
    
    https://bugs.webkit.org/show_bug.cgi?id=157966
    
    Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2016-05-24
    Reviewed by Dean Jackson.
    
    Roll out the the change of r106836 in ImageBuffer::putByteArray(). r106836
    was using CG to draw the image data as a native image in the accelerated
    drawing mode just to force invalidating the IOSurface cached image. Instead
    of doing that, we can use a light-weight fix, for now, to force recreating
    the IOSurface image if it is requested through CGIOSurfaceContextCreateImage().
    
    * platform/graphics/cg/ImageBufferCG.cpp:
    (WebCore::ImageBuffer::putByteArray):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    commit-queue@webkit.org committed May 24, 2016
  10. Use auto for some of our lambda function parameters

    https://bugs.webkit.org/show_bug.cgi?id=158001
    
    Reviewed by Darin Adler.
    
    Use auto for some of our lambda function parameters now that we build with c++14.
    
    Source/WebCore:
    
    * Modules/mediasource/MediaSource.cpp:
    (WebCore::MediaSource::buffered):
    (WebCore::MediaSource::monitorSourceBuffers):
    (WebCore::MediaSource::endOfStream):
    * Modules/mediasource/SampleMap.cpp:
    (WebCore::PresentationOrderSampleMap::findSamplesWithinPresentationRangeFromEnd):
    * accessibility/AccessibilityRenderObject.cpp:
    (WebCore::AccessibilityRenderObject::ariaSelectedRows):
    * bindings/js/SerializedScriptValue.cpp:
    (WebCore::SerializedScriptValue::writeBlobsToDiskForIndexedDB):
    * css/CSSValueList.cpp:
    (WebCore::CSSValueList::removeAll):
    * css/MediaList.cpp:
    (WebCore::MediaQuerySet::remove):
    * css/MediaQuery.cpp:
    (WebCore::MediaQuery::MediaQuery):
    * css/MediaQueryMatcher.cpp:
    (WebCore::MediaQueryMatcher::removeListener):
    * dom/Document.cpp:
    (WebCore::Document::validateAutoSizingNodes):
    * dom/Element.cpp:
    (WebCore::Element::detachAttrNodeFromElementWithValue):
    * dom/MutationObserver.cpp:
    (WebCore::MutationObserver::deliverAllMutations):
    * dom/Node.cpp:
    (WebCore::Node::unregisterMutationObserver):
    * html/LinkIconCollector.cpp:
    * inspector/InspectorIndexedDBAgent.cpp:
    (WebCore::InspectorIndexedDBAgent::requestDatabaseNames):
    * loader/ResourceLoader.cpp:
    (WebCore::ResourceLoader::loadDataURL):
    * page/CaptionUserPreferences.cpp:
    (WebCore::CaptionUserPreferences::sortedTrackListForMenu):
    * page/CaptionUserPreferencesMediaAF.cpp:
    (WebCore::CaptionUserPreferencesMediaAF::sortedTrackListForMenu):
    * page/animation/AnimationController.cpp:
    (WebCore::AnimationControllerPrivate::clear):
    * platform/graphics/FontCascade.cpp:
    (WebCore::pruneUnreferencedEntriesFromFontCascadeCache):
    * platform/graphics/FontCascadeFonts.cpp:
    (WebCore::FontCascadeFonts::pruneSystemFallbacks):
    * platform/graphics/PathUtilities.cpp:
    (WebCore::addIntersectionPoints):
    * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
    (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::updateTracks):
    * platform/graphics/texmap/TextureMapperGL.cpp:
    (WebCore::TextureMapperGLData::SharedGLData::~SharedGLData):
    * platform/mac/HIDGamepad.cpp:
    (WebCore::HIDGamepad::initElements):
    * svg/SVGToOTFFontConversion.cpp:
    (WebCore::SVGToOTFFontConverter::appendLigatureSubtable):
    (WebCore::SVGToOTFFontConverter::finishAppendingKERNSubtable):
    
    Source/WebKit2:
    
    * DatabaseProcess/IndexedDB/WebIDBConnectionToClient.cpp:
    (WebKit::WebIDBConnectionToClient::didGetRecord):
    * NetworkProcess/NetworkConnectionToWebProcess.cpp:
    (WebKit::NetworkConnectionToWebProcess::writeBlobsToTemporaryFiles):
    * NetworkProcess/NetworkProcess.cpp:
    (WebKit::fetchDiskCacheEntries):
    (WebKit::NetworkProcess::fetchWebsiteData):
    (WebKit::clearDiskCacheEntries):
    * NetworkProcess/NetworkResourceLoader.cpp:
    (WebKit::NetworkResourceLoader::retrieveCacheEntry):
    (WebKit::NetworkResourceLoader::tryStoreAsCacheEntry):
    * NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp:
    (WebKit::NetworkCache::SpeculativeLoad::didFinishLoading):
    * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
    (WebKit::NetworkCache::SpeculativeLoadManager::registerLoad):
    (WebKit::NetworkCache::SpeculativeLoadManager::retrieveEntryFromStorage):
    (WebKit::NetworkCache::SpeculativeLoadManager::revalidateEntry):
    (WebKit::NetworkCache::SpeculativeLoadManager::preloadEntry):
    (WebKit::NetworkCache::SpeculativeLoadManager::retrieveSubresourcesEntry):
    * NetworkProcess/cache/NetworkCacheStorage.cpp:
    (WebKit::NetworkCache::Storage::removeFromPendingWriteOperations):
    * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
    (-[WKNetworkSessionDelegate URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:]):
    (-[WKNetworkSessionDelegate URLSession:task:_schemeUpgraded:completionHandler:]):
    * Shared/API/Cocoa/_WKRemoteObjectInterface.mm:
    (-[_WKRemoteObjectInterface debugDescription]):
    * UIProcess/API/C/WKApplicationCacheManager.cpp:
    (WKApplicationCacheManagerGetApplicationCacheOrigins):
    * UIProcess/API/C/WKKeyValueStorageManager.cpp:
    (WKKeyValueStorageManagerGetKeyValueStorageOrigins):
    (WKKeyValueStorageManagerGetStorageDetailsByOrigin):
    * UIProcess/API/C/WKResourceCacheManager.cpp:
    (WKResourceCacheManagerGetCacheOrigins):
    * UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
    (-[WKWebsiteDataStore _fetchDataRecordsOfTypes:withOptions:completionHandler:]):
    * UIProcess/UserContent/WebUserContentControllerProxy.cpp:
    (WebKit::WebUserContentControllerProxy::removeAllUserScripts):
    (WebKit::WebUserContentControllerProxy::removeAllUserStyleSheets):
    (WebKit::WebUserContentControllerProxy::removeAllUserMessageHandlers):
    * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
    (WebKit::PlatformCALayerRemote::removeAnimationForKey):
    
    Source/WTF:
    
    * wtf/BubbleSort.h:
    (WTF::bubbleSort):
    
    Tools:
    
    * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
    (WTR::InjectedBundle::willDestroyPage):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cdumez@apple.com committed May 24, 2016
  11. REGRESSION (r196629): Safari can get into a state where switching Rea…

    …der theme doesn't apply to the webpage
    
    
    https://bugs.webkit.org/show_bug.cgi?id=158018
    <rdar://problem/24732776>
    
    Reviewed by Darin Adler.
    
    When a tab goes to background we clear the style resolver. It is recreated lazily when the tab is again active.
    However style invalidation code tests if the style resolver exists and skips the invalidation if it doesn't.
    With sufficiently simple document (like in Reader) we may never create one for other reasons and so style
    invalidation doesn't work.
    
    No test, don't know how to make one.
    
    * dom/Element.cpp:
    (WebCore::Element::needsStyleInvalidation):
    
        Remove styleResolverIfExists() check and do the invalidation normally.
        Instead check for forced style recalc. If there is one pending we don't need to bother with invalidation.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201332 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    antti@apple.com committed May 24, 2016
  12. Unreviewed, updating binding test results

    https://bugs.webkit.org/show_bug.cgi?id=157080
    
    * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
    (WebCore::jsTestActiveDOMObjectExcitingAttr):
    (WebCore::jsTestActiveDOMObjectConstructor):
    * bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp:
    (WebCore::jsTestClassWithJSBuiltinConstructorConstructor):
    * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp:
    (WebCore::jsTestCustomConstructorWithNoInterfaceObjectConstructor):
    * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
    (WebCore::jsTestCustomNamedGetterConstructor):
    * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
    (WebCore::jsTestEventConstructorAttr1):
    (WebCore::jsTestEventConstructorAttr2):
    (WebCore::jsTestEventConstructorAttr3):
    (WebCore::jsTestEventConstructorConstructor):
    * bindings/scripts/test/JS/JSTestEventTarget.cpp:
    (WebCore::jsTestEventTargetConstructor):
    * bindings/scripts/test/JS/JSTestException.cpp:
    (WebCore::jsTestExceptionName):
    (WebCore::jsTestExceptionConstructor):
    * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
    (WebCore::jsTestGenerateIsReachableConstructor):
    * bindings/scripts/test/JS/JSTestGlobalObject.cpp:
    (WebCore::jsTestGlobalObjectRegularAttribute):
    (WebCore::jsTestGlobalObjectEnabledAtRuntimeAttribute):
    (WebCore::jsTestGlobalObjectConstructor):
    * bindings/scripts/test/JS/JSTestInterface.cpp:
    (WebCore::jsTestInterfaceConstructorImplementsStaticReadOnlyAttr):
    (WebCore::jsTestInterfaceConstructorImplementsStaticAttr):
    (WebCore::jsTestInterfaceImplementsStr1):
    (WebCore::jsTestInterfaceImplementsStr2):
    (WebCore::jsTestInterfaceImplementsStr3):
    (WebCore::jsTestInterfaceImplementsNode):
    (WebCore::jsTestInterfaceConstructorSupplementalStaticReadOnlyAttr):
    (WebCore::jsTestInterfaceConstructorSupplementalStaticAttr):
    (WebCore::jsTestInterfaceSupplementalStr1):
    (WebCore::jsTestInterfaceSupplementalStr2):
    (WebCore::jsTestInterfaceSupplementalStr3):
    (WebCore::jsTestInterfaceSupplementalNode):
    (WebCore::jsTestInterfaceConstructor):
    * bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp:
    (WebCore::jsTestJSBuiltinConstructorTestAttributeCustom):
    (WebCore::jsTestJSBuiltinConstructorTestAttributeRWCustom):
    (WebCore::jsTestJSBuiltinConstructorConstructor):
    * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
    (WebCore::jsTestMediaQueryListListenerConstructor):
    * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
    (WebCore::jsTestNamedConstructorConstructor):
    * bindings/scripts/test/JS/JSTestNode.cpp:
    (WebCore::jsTestNodeName):
    (WebCore::jsTestNodeConstructor):
    * bindings/scripts/test/JS/JSTestNondeterministic.cpp:
    (WebCore::jsTestNondeterministicNondeterministicReadonlyAttr):
    (WebCore::jsTestNondeterministicNondeterministicWriteableAttr):
    (WebCore::jsTestNondeterministicNondeterministicExceptionAttr):
    (WebCore::jsTestNondeterministicNondeterministicGetterExceptionAttr):
    (WebCore::jsTestNondeterministicNondeterministicSetterExceptionAttr):
    (WebCore::jsTestNondeterministicConstructor):
    * bindings/scripts/test/JS/JSTestObj.cpp:
    (WebCore::jsTestObjReadOnlyLongAttr):
    (WebCore::jsTestObjReadOnlyStringAttr):
    (WebCore::jsTestObjReadOnlyTestObjAttr):
    (WebCore::jsTestObjConstructorStaticReadOnlyLongAttr):
    (WebCore::jsTestObjConstructorStaticStringAttr):
    (WebCore::jsTestObjConstructorTestSubObj):
    (WebCore::jsTestObjTestSubObjEnabledBySettingConstructor):
    (WebCore::jsTestObjEnumAttr):
    (WebCore::jsTestObjByteAttr):
    (WebCore::jsTestObjOctetAttr):
    (WebCore::jsTestObjShortAttr):
    (WebCore::jsTestObjClampedShortAttr):
    (WebCore::jsTestObjEnforceRangeShortAttr):
    (WebCore::jsTestObjUnsignedShortAttr):
    (WebCore::jsTestObjLongAttr):
    (WebCore::jsTestObjLongLongAttr):
    (WebCore::jsTestObjUnsignedLongLongAttr):
    (WebCore::jsTestObjStringAttr):
    (WebCore::jsTestObjTestObjAttr):
    (WebCore::jsTestObjTestNullableObjAttr):
    (WebCore::jsTestObjLenientTestObjAttr):
    (WebCore::jsTestObjUnforgeableAttr):
    (WebCore::jsTestObjStringAttrTreatingNullAsEmptyString):
    (WebCore::jsTestObjXMLObjAttr):
    (WebCore::jsTestObjCreate):
    (WebCore::jsTestObjReflectedStringAttr):
    (WebCore::jsTestObjReflectedIntegralAttr):
    (WebCore::jsTestObjReflectedUnsignedIntegralAttr):
    (WebCore::jsTestObjReflectedBooleanAttr):
    (WebCore::jsTestObjReflectedURLAttr):
    (WebCore::jsTestObjReflectedCustomIntegralAttr):
    (WebCore::jsTestObjReflectedCustomBooleanAttr):
    (WebCore::jsTestObjReflectedCustomURLAttr):
    (WebCore::jsTestObjEnabledAtRuntimeAttribute):
    (WebCore::jsTestObjTypedArrayAttr):
    (WebCore::jsTestObjAttrWithGetterException):
    (WebCore::jsTestObjAttrWithGetterExceptionWithMessage):
    (WebCore::jsTestObjAttrWithSetterException):
    (WebCore::jsTestObjAttrWithSetterExceptionWithMessage):
    (WebCore::jsTestObjStringAttrWithGetterException):
    (WebCore::jsTestObjStringAttrWithSetterException):
    (WebCore::jsTestObjStrictTypeCheckingAttribute):
    (WebCore::jsTestObjCustomAttr):
    (WebCore::jsTestObjOnfoo):
    (WebCore::jsTestObjOnwebkitfoo):
    (WebCore::jsTestObjWithScriptStateAttribute):
    (WebCore::jsTestObjWithCallWithAndSetterCallWithAttribute):
    (WebCore::jsTestObjWithScriptExecutionContextAttribute):
    (WebCore::jsTestObjWithScriptStateAttributeRaises):
    (WebCore::jsTestObjWithScriptExecutionContextAttributeRaises):
    (WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttribute):
    (WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
    (WebCore::jsTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute):
    (WebCore::jsTestObjWithScriptArgumentsAndCallStackAttribute):
    (WebCore::jsTestObjConditionalAttr1):
    (WebCore::jsTestObjConditionalAttr2):
    (WebCore::jsTestObjConditionalAttr3):
    (WebCore::jsTestObjConditionalAttr4Constructor):
    (WebCore::jsTestObjConditionalAttr5Constructor):
    (WebCore::jsTestObjConditionalAttr6Constructor):
    (WebCore::jsTestObjCachedAttribute1):
    (WebCore::jsTestObjCachedAttribute2):
    (WebCore::jsTestObjAnyAttribute):
    (WebCore::jsTestObjContentDocument):
    (WebCore::jsTestObjMutablePoint):
    (WebCore::jsTestObjImmutablePoint):
    (WebCore::jsTestObjStrawberry):
    (WebCore::jsTestObjStrictFloat):
    (WebCore::jsTestObjDescription):
    (WebCore::jsTestObjId):
    (WebCore::jsTestObjHash):
    (WebCore::jsTestObjReplaceableAttribute):
    (WebCore::jsTestObjNullableDoubleAttribute):
    (WebCore::jsTestObjNullableLongAttribute):
    (WebCore::jsTestObjNullableBooleanAttribute):
    (WebCore::jsTestObjNullableStringAttribute):
    (WebCore::jsTestObjNullableLongSettableAttribute):
    (WebCore::jsTestObjNullableStringSettableAttribute):
    (WebCore::jsTestObjNullableStringValue):
    (WebCore::jsTestObjAttribute):
    (WebCore::jsTestObjAttributeWithReservedEnumType):
    (WebCore::jsTestObjPutForwardsAttribute):
    (WebCore::jsTestObjPutForwardsNullableAttribute):
    (WebCore::jsTestObjConstructor):
    * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
    (WebCore::jsTestOverloadedConstructorsConstructor):
    * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
    (WebCore::jsTestOverrideBuiltinsConstructor):
    * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
    (WebCore::jsTestSerializedScriptValueInterfaceValue):
    (WebCore::jsTestSerializedScriptValueInterfaceReadonlyValue):
    (WebCore::jsTestSerializedScriptValueInterfaceCachedValue):
    (WebCore::jsTestSerializedScriptValueInterfacePorts):
    (WebCore::jsTestSerializedScriptValueInterfaceCachedReadonlyValue):
    (WebCore::jsTestSerializedScriptValueInterfaceConstructor):
    * bindings/scripts/test/JS/JSTestTypedefs.cpp:
    (WebCore::jsTestTypedefsUnsignedLongLongAttr):
    (WebCore::jsTestTypedefsImmutableSerializedScriptValue):
    (WebCore::jsTestTypedefsConstructorTestSubObj):
    (WebCore::jsTestTypedefsAttrWithGetterException):
    (WebCore::jsTestTypedefsAttrWithSetterException):
    (WebCore::jsTestTypedefsStringAttrWithGetterException):
    (WebCore::jsTestTypedefsStringAttrWithSetterException):
    (WebCore::jsTestTypedefsConstructor):
    * bindings/scripts/test/JS/JSattribute.cpp:
    (WebCore::jsattributeReadonly):
    (WebCore::jsattributeConstructor):
    * bindings/scripts/test/JS/JSreadonly.cpp:
    (WebCore::jsreadonlyConstructor):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201331 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    utatane.tea@gmail.com committed May 24, 2016
  13. Unreviewed GTK+ gardening. Rebaseline several tests after r200116.

    We are now correctly positioning RTL scrollbars.
    
    * platform/gtk/fast/block/float/026-expected.png:
    * platform/gtk/fast/block/float/026-expected.txt:
    * platform/gtk/fast/block/float/028-expected.png:
    * platform/gtk/fast/block/float/028-expected.txt:
    * platform/gtk/fast/overflow/unreachable-overflow-rtl-bug-expected.png:
    * platform/gtk/fast/overflow/unreachable-overflow-rtl-bug-expected.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    carlosgc@webkit.org committed May 24, 2016
  14. Unreviewed GTK+ gardening. Fix wrong expectations of fast/harness/sam…

    …ple-fail-mismatch-reftest.html.
    
    The test is flaky, but in this case  Pass means it failed and ImageOnlyFailure that it passed.
    
    * platform/gtk/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    carlosgc@webkit.org committed May 24, 2016
  15. ThisTDZMode is no longer needed

    https://bugs.webkit.org/show_bug.cgi?id=157209
    
    Reviewed by Saam Barati.
    
    ThisTDZMode is no longer needed because we have ConstructorKind
    and DerivedContextType. The value of ThisTDZMode is strictly less
    expressive than the combination of those two values. We were
    using those values anyways, and this patch just makes it official
    by removing ThisTDZMode.
    
    This patch also cleans up caching keys. We extract SourceCodeFlags
    from SourceCodeKey and use it in EvalCodeCache. It correctly
    contains needed cache attributes: EvalContextType, DerivedContextType,
    etc. Here, we still use specialized keys for EvalCodeCache instead
    of SourceCodeKey for performance; it does not include name String and
    does not allocate SourceCode.
    
    * bytecode/EvalCodeCache.h:
    (JSC::EvalCodeCache::CacheKey::CacheKey):
    (JSC::EvalCodeCache::CacheKey::operator==):
    (JSC::EvalCodeCache::CacheKey::Hash::equal):
    (JSC::EvalCodeCache::tryGet):
    (JSC::EvalCodeCache::getSlow):
    * bytecompiler/NodesCodegen.cpp:
    (JSC::ThisNode::emitBytecode): Deleted.
    * debugger/DebuggerCallFrame.cpp:
    (JSC::DebuggerCallFrame::evaluateWithScopeExtension):
    * interpreter/Interpreter.cpp:
    (JSC::eval):
    * parser/ASTBuilder.h:
    (JSC::ASTBuilder::createThisExpr):
    * parser/NodeConstructors.h:
    (JSC::ThisNode::ThisNode):
    * parser/Nodes.h:
    * parser/Parser.cpp:
    (JSC::Parser<LexerType>::Parser):
    (JSC::Parser<LexerType>::parsePrimaryExpression):
    * parser/Parser.h:
    (JSC::parse):
    * parser/ParserModes.h:
    * parser/SourceCodeKey.h:
    (JSC::SourceCodeFlags::SourceCodeFlags):
    (JSC::SourceCodeFlags::operator==):
    (JSC::SourceCodeKey::SourceCodeKey):
    (JSC::SourceCodeKey::Hash::hash):
    (JSC::SourceCodeKey::Hash::equal):
    (JSC::SourceCodeKey::HashTraits::isEmptyValue):
    (JSC::SourceCodeKeyHash::hash): Deleted.
    (JSC::SourceCodeKeyHash::equal): Deleted.
    (JSC::SourceCodeKeyHashTraits::isEmptyValue): Deleted.
    * parser/SyntaxChecker.h:
    (JSC::SyntaxChecker::createThisExpr):
    * runtime/CodeCache.cpp:
    (JSC::CodeCache::getGlobalCodeBlock):
    (JSC::CodeCache::getProgramCodeBlock):
    (JSC::CodeCache::getEvalCodeBlock):
    (JSC::CodeCache::getModuleProgramCodeBlock):
    (JSC::CodeCache::getFunctionExecutableFromGlobalCode):
    * runtime/CodeCache.h:
    * runtime/Executable.cpp:
    (JSC::EvalExecutable::create):
    * runtime/Executable.h:
    * runtime/JSGlobalObject.cpp:
    (JSC::JSGlobalObject::createEvalCodeBlock):
    * runtime/JSGlobalObject.h:
    * runtime/JSGlobalObjectFunctions.cpp:
    (JSC::globalFuncEval):
    * tests/stress/code-cache-incorrect-caching.js: Added.
    (shouldBe):
    (hello):
    (catch):
    (shouldBe.test.hello):
    (globalEval.ok):
    (global.hello.hello):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    utatane.tea@gmail.com committed May 24, 2016
  16. [css-grid] Fix behavior of flexible track breadths

    https://bugs.webkit.org/show_bug.cgi?id=157834
    
    Reviewed by Sergio Villar Senin.
    
    This patch is fixing 2 issues that are interrelated:
    Source/WebCore:
    
    1) Flex sizes are invalid as min track sizing function.
    
      The syntax has been recently updated on the spec:
        <track-size> =
          <track-breadth> |
          minmax( <inflexible-breadth> , <track-breadth> )
    
    2) Flex sizes outside minmax() behave as auto minimum.
    
      Flex sizes outside minmax() were previously behaving like
      minimum and maximum (e.g. 1fr => minmax(1fr, 1fr)).
      However the spec changed and now this would be invalid,
      so they should behave like auto minimum (e.g. minmax(auto, 1fr)).
    
    * css/CSSParser.cpp:
    (WebCore::CSSParser::parseGridTrackSize): Call parseGridBreadth()
    for min sizing function using "InflexibleSizeOnly" restriction
    when needed.
    (WebCore::CSSParser::parseGridBreadth): Add check for
    "InflexibleSizeOnly" resctriction.
    * css/CSSParser.h: Add new type of restriction "InflexibleSizeOnly".
    * rendering/RenderGrid.cpp:
    (WebCore::RenderGrid::gridTrackSize): Add new condition to make
    |minTrackBreadth| auto if it was a flex size.
    
    LayoutTests:
    
    1) Flex sizes are invalid as min track sizing function.
    2) Flex sizes outside minmax() behave as auto minimum.
    
    The patch includes new test cases checking specifically these 2 issues.
    In addition several tests results have been updated to reflect
    the new behavior. Also, some cases that are now invalid and
    were not testing anything new have been removed.
    
    * fast/css-grid-layout/flex-and-content-sized-resolution-columns-expected.txt:
    * fast/css-grid-layout/flex-and-content-sized-resolution-columns.html:
    * fast/css-grid-layout/flex-content-resolution-columns-expected.txt:
    * fast/css-grid-layout/flex-content-resolution-columns.html:
    * fast/css-grid-layout/flex-content-resolution-rows-expected.txt:
    * fast/css-grid-layout/flex-content-resolution-rows.html:
    * fast/css-grid-layout/grid-columns-rows-get-set-expected.txt:
    * fast/css-grid-layout/grid-gutters-and-flex-content-expected.txt:
    * fast/css-grid-layout/grid-gutters-and-flex-content.html:
    * fast/css-grid-layout/grid-preferred-logical-widths.html:
    * fast/css-grid-layout/non-grid-columns-rows-get-set-expected.txt:
    * fast/css-grid-layout/resources/grid-columns-rows-get-set.js:
    * fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    rego@igalia.com committed May 24, 2016
  17. [Fetch API] Implement Fetch redirect mode

    https://bugs.webkit.org/show_bug.cgi?id=157837
    
    Reviewed by Alex Christensen.
    
    LayoutTests/imported/w3c:
    
    * web-platform-tests/fetch/api/redirect/redirect-location-expected.txt:
    * web-platform-tests/fetch/api/redirect/redirect-location.js:
    * web-platform-tests/fetch/api/redirect/redirect-method.js:
    * web-platform-tests/fetch/api/redirect/redirect-method-expected.txt:
    * web-platform-tests/fetch/api/redirect/redirect-mode-expected.txt:
    
    Source/WebCore:
    
    Implementing step 5 of https://fetch.spec.whatwg.org/#http-fetch.
    Making ResourceLoaderOptions include FetchOptions.
    This allows SubresourceLoader to follow or not redirections based on that option.
    CachedResource is made responsible to handle the type of the response (opaqueredirect, opaque, cors, basic...).
    If redirection is not to be followed, either an error is returned or an empty response is returned.
    
    Moved Response type and redirected flag from FetchResponse to ResourceResponse.
    This allows CachedResource to easily communicate that information to FetchResponse.
    
    Made some clean-up refactoring in ThreadableLoaderOptions.
    
    http/tests/fetch/caching-with-different-options.html ensures that
    caching at CachedResourceLoader will not have bad effects on fetch.
    Covered by updated and rebased tests.
    
    * Modules/fetch/FetchLoader.cpp:
    (WebCore::FetchLoader::start):
    * Modules/fetch/FetchResponse.cpp:
    (WebCore::FetchResponse::error):
    (WebCore::FetchResponse::redirect):
    (WebCore::FetchResponse::FetchResponse):
    (WebCore::FetchResponse::clone):
    (WebCore::FetchResponse::startFetching):
    * Modules/fetch/FetchResponse.h:
    * WebCore.xcodeproj/project.pbxproj:
    * loader/FetchOptions.h: Moved from Source/WebCore/Modules/fetch/FetchOptions.h.
    * loader/ResourceLoaderOptions.h:
    (WebCore::ResourceLoaderOptions::fetchOptions):
    (WebCore::ResourceLoaderOptions::setFetchOptions):
    * loader/SubresourceLoader.cpp:
    (WebCore::SubresourceLoader::willSendRequestInternal):
    * loader/ThreadableLoader.cpp:
    * loader/ThreadableLoader.h:
    * loader/cache/CachedResource.cpp:
    (WebCore::CachedResource::setResponse):
    * loader/cache/CachedResource.h:
    (WebCore::CachedResource::setOpaqueRedirect):
    * platform/network/ResourceResponseBase.cpp:
    (WebCore::ResourceResponseBase::adopt):
    (WebCore::ResourceResponseBase::copyData):
    * platform/network/ResourceResponseBase.h:
    (WebCore::ResourceResponseBase::type):
    (WebCore::ResourceResponseBase::setType):
    (WebCore::ResourceResponseBase::encode):
    (WebCore::ResourceResponseBase::decode):
    
    LayoutTests:
    
    * http/tests/fetch/caching-with-different-options-expected.txt: Added.
    * http/tests/fetch/caching-with-different-options.html: Added.
    * http/tests/fetch/resources/redirect-with-cache.php: Added.
    * platform/gtk/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-location-expected.txt:
    * platform/gtk/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-expected.txt:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    youenn.fablet@crf.canon.fr committed May 24, 2016
  18. Add a few initiator tests to resource timing.

    https://bugs.webkit.org/show_bug.cgi?id=157986
    
    Reviewed by Darin Adler.
    
    Adds tests that make sure that when a resource is requested multiple times by different
    elements, its initiator type remain the first one that triggered the fetch.
    
    * http/tests/performance/performance-resource-timing-initiator-css-expected.txt: Added.
    * http/tests/performance/performance-resource-timing-initiator-css.html: Added.
    * http/tests/performance/performance-resource-timing-initiator-no-override-expected.txt: Added.
    * http/tests/performance/performance-resource-timing-initiator-no-override.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    yoav@yoav.ws committed May 24, 2016
  19. Assertion failure for Reflect.get with Proxy and primitive value as e…

    …xplicit receiver
    
    
    https://bugs.webkit.org/show_bug.cgi?id=157080
    
    Reviewed by Saam Barati.
    
    Source/JavaScriptCore:
    
    In custom accessor getter, the argument "thisValue" can be altered by using `Reflect.get`.
    In this patch, we add a new parameter, "slotBase". This represents the base value offering
    this custom getter. And use it in ProxyObject's performGet custom accessor getter.
    
    * API/JSCallbackObject.h:
    * API/JSCallbackObjectFunctions.h:
    (JSC::JSCallbackObject<Parent>::staticFunctionGetter):
    (JSC::JSCallbackObject<Parent>::callbackGetter):
    * bytecode/PolymorphicAccess.cpp:
    (JSC::AccessCase::generateImpl):
    In PolymorphicAccess case, the thisValue and the slotBase are always cells.
    This is because IC is enabled in the case that the base value is a cell.
    And slotBase is always on the prototype chain from this base value.
    
    * jit/CCallHelpers.h:
    (JSC::CCallHelpers::setupArgumentsWithExecState):
    * jsc.cpp:
    (WTF::CustomGetter::customGetter):
    (WTF::RuntimeArray::lengthGetter):
    * runtime/CustomGetterSetter.cpp:
    (JSC::callCustomSetter):
    * runtime/JSBoundSlotBaseFunction.cpp:
    (JSC::boundSlotBaseFunctionCall):
    * runtime/JSFunction.cpp:
    (JSC::JSFunction::argumentsGetter):
    (JSC::JSFunction::callerGetter):
    * runtime/JSFunction.h:
    * runtime/JSModuleNamespaceObject.cpp:
    (JSC::callbackGetter):
    * runtime/PropertySlot.cpp:
    (JSC::PropertySlot::customGetter):
    * runtime/PropertySlot.h:
    * runtime/ProxyObject.cpp:
    (JSC::performProxyGet):
    * runtime/RegExpConstructor.cpp:
    (JSC::regExpConstructorDollar):
    (JSC::regExpConstructorInput):
    (JSC::regExpConstructorMultiline):
    (JSC::regExpConstructorLastMatch):
    (JSC::regExpConstructorLastParen):
    (JSC::regExpConstructorLeftContext):
    (JSC::regExpConstructorRightContext):
    (JSC::regExpConstructorDollar1): Deleted.
    (JSC::regExpConstructorDollar2): Deleted.
    (JSC::regExpConstructorDollar3): Deleted.
    (JSC::regExpConstructorDollar4): Deleted.
    (JSC::regExpConstructorDollar5): Deleted.
    (JSC::regExpConstructorDollar6): Deleted.
    (JSC::regExpConstructorDollar7): Deleted.
    (JSC::regExpConstructorDollar8): Deleted.
    (JSC::regExpConstructorDollar9): Deleted.
    * tests/stress/proxy-get-with-primitive-receiver.js: Added.
    (shouldBe):
    
    Source/WebCore:
    
    * bindings/js/JSDOMBinding.h:
    (WebCore::nonCachingStaticFunctionGetter):
    * bindings/js/JSDOMWindowCustom.cpp:
    (WebCore::jsDOMWindowWebKit):
    * bindings/js/JSPluginElementFunctions.cpp:
    (WebCore::pluginElementPropertyGetter):
    * bindings/js/JSPluginElementFunctions.h:
    * bindings/scripts/CodeGeneratorJS.pm:
    (GenerateHeader):
    (GenerateImplementation):
    * bridge/runtime_array.cpp:
    (JSC::RuntimeArray::lengthGetter):
    * bridge/runtime_array.h:
    * bridge/runtime_method.cpp:
    (JSC::RuntimeMethod::lengthGetter):
    * bridge/runtime_method.h:
    * bridge/runtime_object.cpp:
    (JSC::Bindings::RuntimeObject::fallbackObjectGetter):
    (JSC::Bindings::RuntimeObject::fieldGetter):
    (JSC::Bindings::RuntimeObject::methodGetter):
    * bridge/runtime_object.h:
    
    Source/WebKit2:
    
    * WebProcess/Plugins/Netscape/JSNPObject.cpp:
    (WebKit::JSNPObject::propertyGetter):
    (WebKit::JSNPObject::methodGetter):
    * WebProcess/Plugins/Netscape/JSNPObject.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201322 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    utatane.tea@gmail.com committed May 24, 2016
  20. Modernize CSS code

    https://bugs.webkit.org/show_bug.cgi?id=157875
    
    Reviewed by Chris Dumez.
    
    * bindings/scripts/CodeGeneratorJS.pm:
    (GenerateImplementation):
    (GenerateParametersCheck):
    * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
    (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
    * bindings/scripts/test/JS/JSTestObj.cpp:
    (WebCore::JSTestObjConstructor::construct):
    (WebCore::setJSTestObjPutForwardsNullableAttribute):
    (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
    (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
    (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackFunctionArg):
    (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackFunctionArg):
    (WebCore::jsTestObjConstructorFunctionStaticMethodWithCallbackArg):
    (WebCore::jsTestObjPrototypeFunctionOverloadedMethod5):
    * bindings/scripts/test/JS/JSTestTypedefs.cpp:
    (WebCore::JSTestTypedefsConstructor::construct):
    * css/CSSBasicShapes.cpp:
    (WebCore::serializePositionOffset):
    (WebCore::buildSerializablePositionOffset):
    (WebCore::CSSBasicShapeCircle::cssText):
    (WebCore::CSSBasicShapeEllipse::cssText):
    * css/CSSCalculationValue.cpp:
    (WebCore::determineCategory):
    (WebCore::CSSCalcExpressionNodeParser::parseValue):
    * css/CSSMediaRule.cpp:
    (WebCore::CSSMediaRule::media):
    * css/CSSMediaRule.h:
    * css/CSSOMUtils.h:
    * css/CSSParser.cpp:
    (WebCore::CSSParser::createImportRule):
    (WebCore::CSSParser::createMediaRule):
    * css/CSSReflectValue.h:
    * css/CSSStyleSheet.cpp:
    (WebCore::CSSStyleSheet::setDisabled):
    (WebCore::CSSStyleSheet::setMediaQueries):
    (WebCore::CSSStyleSheet::insertRule):
    (WebCore::CSSStyleSheet::deleteRule):
    (WebCore::CSSStyleSheet::isLoading):
    (WebCore::CSSStyleSheet::media):
    (WebCore::CSSStyleSheet::parentStyleSheet):
    (WebCore::CSSStyleSheet::ownerDocument):
    (WebCore::CSSStyleSheet::clearChildRuleCSSOMWrappers):
    (WebCore::CSSStyleSheet::RuleMutationScope::RuleMutationScope):
    * css/CSSStyleSheet.h:
    * css/PropertySetCSSStyleDeclaration.cpp:
    * css/StyleRule.cpp:
    (WebCore::StyleRuleBase::createCSSOMWrapper):
    (WebCore::StyleRuleBase::destroy):
    (WebCore::StyleRuleGroup::wrapperRemoveRule):
    (WebCore::StyleRuleMedia::StyleRuleMedia):
    * css/StyleRule.h:
    (WebCore::StyleRuleBase::deref):
    (WebCore::StyleRuleBase::StyleRuleBase):
    (WebCore::StyleRuleMedia::create):
    (WebCore::StyleRuleMedia::mediaQueries):
    (WebCore::StyleRuleMedia::copy):
    (isType):
    * css/StyleRuleImport.cpp:
    (WebCore::StyleRuleImport::create):
    (WebCore::StyleRuleImport::StyleRuleImport):
    * css/StyleRuleImport.h:
    * css/StyleSheetContents.cpp:
    (WebCore::StyleSheetContents::isCacheable):
    (WebCore::StyleSheetContents::parserAppendRule):
    (WebCore::StyleSheetContents::ruleAt):
    (WebCore::StyleSheetContents::parserSetEncodingFromCharsetRule):
    (WebCore::StyleSheetContents::wrapperInsertRule):
    * css/StyleSheetContents.h:
    (WebCore::StyleSheetContents::hasSyntacticallyValidCSSHeader):
    (WebCore::StyleSheetContents::parserSetUsesRemUnits):
    (WebCore::StyleSheetContents::parserSetUsesStyleBasedEditability):
    (WebCore::StyleSheetContents::copy):
    * dom/InlineStyleSheetOwner.cpp:
    (WebCore::InlineStyleSheetOwner::createSheet):
    * inspector/InspectorStyleSheet.cpp:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    achristensen@apple.com committed May 24, 2016
  21. Skip fast/table/neighboring-cells-when-collapsed-border-changes on WK…

    …1 for now.
    
    Unreviewed.
    
    * platform/mac-wk1/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    zalan@apple.com committed May 24, 2016
  22. REGRESSION (196374): deleting a global property is expensive

    https://bugs.webkit.org/show_bug.cgi?id=158005
    
    Reviewed by Chris Dumez.
    
    * runtime/JSObject.cpp:
    (JSC::JSObject::deleteProperty): We only need to reify static properties
    if the name being deleted matches a static property. Otherwise, we can
    be sure that delete won't observe any static properties.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ggaren@apple.com committed May 24, 2016
  23. Speed up move of vectors of POD types that have an inline buffer

    https://bugs.webkit.org/show_bug.cgi?id=158003
    
    Reviewed by Benjamin Poulain.
    
    When moving a vector of POD types that have an inline buffer, we would
    call std::swap() on the inline buffers. This unnecessarily slow because:
    1. It does not consider the vector size, and therefore may end up doing
       more work than necessary when the inline buffer is not full.
    2. In the "move" case, the destination buffer is completely empty so
       we don't really want a swap. We merely want the move the content of
       the source's inline buffer into the destination's one.
    
    Instead of calling std::swap(), we now call swapInlineBuffers() which
    was already used for non-POD types. swapInlineBuffers() will do just
    what we want in the "move" case because swapBound is going to be 0.
    As a result, we will only move the content of the source buffer into
    the destination one. Also swapInlineBuffers() is aware of the source
    vector's size so it will only move what's strictly needed.
    
    This seems to be a 2% progression on Dromaeo DOM attributes test.
    
    * wtf/Vector.h:
    (WTF::VectorBuffer::swapInlineBuffer):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cdumez@apple.com committed May 24, 2016
  24. woff2_dec.cc triggers -Wsign-compare, -Wunused-but-set-variable

    https://bugs.webkit.org/show_bug.cgi?id=157732
    
    Reviewed by Darin Adler.
    
    * woff2/CMakeLists.txt:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201313 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    mcatanzaro@igalia.com committed May 24, 2016
  25. Changing border color and size simultaneously fails to repaint.

    https://bugs.webkit.org/show_bug.cgi?id=157967
    <rdar://problem/26423918>
    
    Reviewed by David Hyatt.
    
    This patch ensures that the neighboring tables cells are dirtied when collapsed border change requires layout.
    
    Source/WebCore:
    
    Test: fast/table/neighboring-cells-when-collapsed-border-changes.html
    
    * rendering/RenderTable.cpp:
    (WebCore::markCellDirtyWhenCollapsedBorderChanges):
    (WebCore::RenderTable::invalidateCollapsedBorders):
    
    LayoutTests:
    
    * fast/table/neighboring-cells-when-collapsed-border-changes-expected.html: Added.
    * fast/table/neighboring-cells-when-collapsed-border-changes.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    zalan@apple.com committed May 24, 2016
  26. Avoid unnecessary call to Document::completeURL() in HTMLLinkElement:…

    …:process()
    
    
    https://bugs.webkit.org/show_bug.cgi?id=157993
    
    Reviewed by Ryosuke Niwa.
    
    Avoid unnecessary call to Document::completeURL() in HTMLLinkElement::process().
    The call to getNonEmptyURLAttribute() already calls Document::completeURL()
    internally so we can just reuse the returned URL.
    
    * html/HTMLLinkElement.cpp:
    (WebCore::HTMLLinkElement::process):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cdumez@apple.com committed May 24, 2016
  27. Null popstate event fired when navigating back to a cached page with …

    …a stateless history entry
    
    
    https://bugs.webkit.org/show_bug.cgi?id=157963
    <rdar://problem/23414840>
    
    Source/WebCore:
    
    Popstate events are not fired when WebKit navigates back to a history entry that doesn't
    have a state object if the entry's page is not cached. However, we fire popstate events
    unconditionally if the page is cached. This results in inconsistent behavior between
    initial navigations and cached navigations. Align the behavior of initial and cached
    navigations so that we produce consistent events.
    
    Reviewed by Brent Fulgham.
    
    Tests: fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry-with-page-cache.html
           fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry.html
    
    * history/CachedFrame.cpp:
    (WebCore::CachedFrameBase::restore):
    
    LayoutTests:
    
    Reviewed by Brent Fulgham.
    
    * fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry-expected.txt: Added.
    * fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry-with-page-cache-expected.txt: Added.
    * fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry-with-page-cache.html: Added.
    * fast/loader/stateobjects/no-popstate-when-back-to-stateless-entry.html: Added.
    * fast/loader/stateobjects/resources/no-popstate-when-back-to-stateless-entry-1.html: Added.
    * fast/loader/stateobjects/resources/no-popstate-when-back-to-stateless-entry-2.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    jiewen_tan@apple.com committed May 24, 2016
  28. Build fix after r201307.

    * public/v3/pages/chart-pane.js:
    (ChartPane.prototype.serializeState):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    rniwa@webkit.org committed May 24, 2016
  29. Marking inspector/console/console-time.html as a flaky timeout

    https://bugs.webkit.org/show_bug.cgi?id=158006
    
    Unreviewed test gardening.
    
    * platform/mac/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ryanhaddad@apple.com committed May 24, 2016
  30. Some applications truncates the last closing parenthesis in perf dash…

    …board URL
    
    
    https://bugs.webkit.org/show_bug.cgi?id=157976
    
    Reviewed by Tim Horton.
    
    Unfortunately, different applications use different heuristics to determine the end of each URL. Two trailing
    parentheses, for example, is just fine in Radar as well as Apple Mail if the URL is short enough. Using other
    characters such as ] and } wouldn't work either because they would be %-escaped. At that point, we might as well
    as %-escape everything.
    
    Work around the bug by parsing the URL as if it had one extra ')' if the parsing had failed. Also shorten the charts
    page's URL by avoid emitting "-null" for each pane when the pane doesn't have a currently selected point or selection.
    This improves the odds of the entire URL being recognized by various applications.
    
    We could, in theory, implement some sort of a URL shorter but that can wait until when we support real user accounts.
    
    * public/v3/pages/chart-pane.js:
    (ChartPane.prototype.serializeState): Don't serialize the selection or the current point if nothing is selected.
    * public/v3/pages/page-router.js:
    (PageRouter.prototype._deserializeHashQueryValue): Try parsing the value again with one extra ] at the end if
    the JSON parsing had failed.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    rniwa@webkit.org committed May 24, 2016
  31. Marking mathml/wbr-in-mroot-crash.html as a timeout on mac release

    https://bugs.webkit.org/show_bug.cgi?id=157990
    
    Unreviewed test gardening.
    
    * platform/mac/TestExpectations:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ryanhaddad@apple.com committed May 24, 2016
  32. Generate bindings code for EventTarget.addEventListener() / removeEve…

    …ntListener()
    
    
    https://bugs.webkit.org/show_bug.cgi?id=157882
    
    Reviewed by Darin Adler.
    
    Generate bindings code for EventTarget.addEventListener() / removeEventListener()
    instead of hardcoding them in the bindings generator.
    
    Source/WebCore:
    
    No new tests, rebaselined existing test, no web-exposed behavior change.
    
    * Modules/webaudio/AudioScheduledSourceNode.cpp:
    (WebCore::AudioScheduledSourceNode::addEventListener):
    (WebCore::AudioScheduledSourceNode::removeEventListener):
    * Modules/webaudio/AudioScheduledSourceNode.h:
    * Modules/webaudio/ScriptProcessorNode.cpp:
    (WebCore::ScriptProcessorNode::addEventListener):
    (WebCore::ScriptProcessorNode::removeEventListener):
    * Modules/webaudio/ScriptProcessorNode.h:
    * bindings/gobject/GObjectEventListener.cpp:
    (WebCore::GObjectEventListener::operator==):
    * bindings/gobject/GObjectEventListener.h:
    * bindings/js/JSEventListener.cpp:
    (WebCore::JSEventListener::operator==):
    (WebCore::eventHandlerAttribute): Deleted.
    * bindings/js/JSEventListener.h:
    (WebCore::JSEventListener::create):
    (WebCore::JSEventListener::cast): Deleted.
    (WebCore::JSEventListener::jsFunction): Deleted.
    * bindings/objc/ObjCEventListener.h:
    * bindings/objc/ObjCEventListener.mm:
    (WebCore::ObjCEventListener::operator==):
    * bindings/scripts/CodeGeneratorJS.pm:
    (GenerateImplementation):
    (JSValueToNative):
    (GetParentClassName): Deleted.
    (GetCallbackClassName): Deleted.
    (GetJSCallbackDataType): Deleted.
    * dom/EventListener.h:
    * dom/EventListenerMap.cpp:
    (WebCore::addListenerToVector):
    (WebCore::EventListenerMap::add):
    (WebCore::removeListenerFromVector):
    (WebCore::EventListenerMap::remove):
    (WebCore::copyListenersNotCreatedFromMarkupToTarget):
    * dom/EventListenerMap.h:
    * dom/EventTarget.cpp:
    (WebCore::EventTarget::addEventListener):
    (WebCore::EventTarget::addEventListenerForBindings):
    (WebCore::EventTarget::removeEventListenerForBindings):
    (WebCore::EventTarget::removeEventListener):
    (WebCore::EventTarget::setAttributeEventListener):
    (WebCore::EventTarget::clearAttributeEventListener):
    * dom/EventTarget.h:
    * dom/EventTarget.idl:
    * dom/MessagePort.cpp:
    (WebCore::MessagePort::addEventListener):
    * dom/MessagePort.h:
    * dom/Node.cpp:
    (WebCore::tryAddEventListener):
    (WebCore::Node::addEventListener):
    (WebCore::tryRemoveEventListener):
    (WebCore::Node::removeEventListener):
    * dom/Node.h:
    * dom/RegisteredEventListener.h:
    (WebCore::RegisteredEventListener::RegisteredEventListener):
    * html/HTMLMediaElement.cpp:
    (WebCore::HTMLMediaElement::addEventListener):
    (WebCore::HTMLMediaElement::removeEventListener):
    * html/HTMLMediaElement.h:
    * html/ImageDocument.cpp:
    (WebCore::ImageDocument::createDocumentStructure):
    (WebCore::ImageEventListener::operator==):
    * html/shadow/MediaControlsApple.cpp:
    (WebCore::MediaControlsApple::showClosedCaptionTrackList):
    (WebCore::MediaControlsApple::hideClosedCaptionTrackList):
    (WebCore::MediaControlsAppleEventListener::operator==):
    * html/shadow/MediaControlsApple.h:
    * inspector/InspectorIndexedDBAgent.cpp:
    * page/DOMWindow.cpp:
    (WebCore::DOMWindow::addEventListener):
    (WebCore::DOMWindow::removeEventListener):
    * page/DOMWindow.h:
    * platform/cocoa/WebPlaybackSessionModelMediaElement.h:
    * platform/cocoa/WebVideoFullscreenModelVideoElement.h:
    * svg/SVGElement.cpp:
    (WebCore::SVGElement::addEventListener):
    (WebCore::SVGElement::removeEventListener):
    * svg/SVGElement.h:
    * svg/SVGTRefElement.cpp:
    (WebCore::SVGTRefTargetEventListener::attach):
    (WebCore::SVGTRefTargetEventListener::detach):
    (WebCore::SVGTRefTargetEventListener::operator==):
    * svg/animation/SVGSMILElement.cpp:
    (WebCore::ConditionEventListener::operator==):
    (WebCore::SVGSMILElement::connectConditions):
    (WebCore::SVGSMILElement::disconnectConditions):
    
    Source/WebKit/win:
    
    * DOMEventsClasses.cpp:
    (WebEventListener::operator==):
    * DOMEventsClasses.h:
    
    Source/WebKit2:
    
    * WebProcess/Plugins/PDF/PDFPluginAnnotation.h:
    * WebProcess/Plugins/PDF/PDFPluginAnnotation.mm:
    (WebKit::PDFPluginAnnotation::attach):
    (WebKit::PDFPluginAnnotation::~PDFPluginAnnotation):
    * WebProcess/Plugins/PDF/PDFPluginPasswordField.mm:
    (WebKit::PDFPluginPasswordField::~PDFPluginPasswordField):
    (WebKit::PDFPluginPasswordField::createAnnotationElement):
    * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
    (WebKit::PDFPluginTextAnnotation::~PDFPluginTextAnnotation):
    (WebKit::PDFPluginTextAnnotation::createAnnotationElement):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201305 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cdumez@apple.com committed May 24, 2016
Commits on May 23, 2016
  1. Web Inspector: Split console navigation bar doesn't wrap as expected

    https://bugs.webkit.org/show_bug.cgi?id=157950
    <rdar://problem/26395573>
    
    Reviewed by Timothy Hatcher.
    
    * UserInterface/Views/Main.css:
    (#split-content-browser > .navigation-bar .item):
    Fix the split console and don't touch any other navigation bars.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    nvasilyev@apple.com committed May 23, 2016
  2. Fix undefined behavior introduced in r201290.

    https://bugs.webkit.org/show_bug.cgi?id=157961
    
    Reviewed by Alex Christensen.
    
    The evaluation order of function arguments is undefined so it is unsafe to
    copyRef() and WTFMove() the same parameter in a function call.
    
    * css/CSSBasicShapes.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201303 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    cdumez@apple.com committed May 23, 2016
  3. Speculative fix for:

    Modern IDB: Some blob tests ASSERT sometimes on the bots.
    https://bugs.webkit.org/show_bug.cgi?id=157525
    
    Reviewed by Alex Christensen.
    
    No new tests (Should fix existing flakiness, not reproducibly testable).
    
    For all of the lambdas involved in this operation, explicitly WTFMove all of the arguments around.
    
    Critically, this includes the RefPtr<TransactionOperation> protector as well as the
    std::function<void ()> completionHandler(s).
    
    By doing so, this removes the possibility of a race between the background thread and the main thread
    tearing down the TransactionOperation, guaranteeing that it is torn down on its original thread.
    
    * Modules/indexeddb/IDBTransaction.cpp:
    (WebCore::IDBTransaction::putOrAddOnServer):
    * bindings/js/SerializedScriptValue.cpp:
    (WebCore::SerializedScriptValue::writeBlobsToDiskForIndexedDB):
    * platform/network/BlobRegistryImpl.cpp:
    (WebCore::BlobRegistryImpl::writeBlobsToTemporaryFiles):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    beidson@apple.com committed May 23, 2016
Something went wrong with that request. Please try again.