1. 03 Mar, 2012 20 commits
    • barraclough@apple.com's avatar
      Split JSArray's [[Put]] & [[DefineOwnProperty]] traps. · cd37404e
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=80217
      
      Reviewed by Filip Pizlo.
      
      putByIndex() provides similar behavior to put(), but for indexed property names.
      Many places in ArrayPrototype call putByIndex() where they really mean to call
      [[DefineOwnProperty]]. This is only okay due to a bug – putByIndex should be
      calling numeric accessors (& respecting numeric read only properties) on the
      prototype chain, but isn't. Add a new putDirectIndex (matching JSObject's
      putDirect* methods), to correctly provide a fast [[DefineOwnProperty]] interface.
      
      * runtime/ArrayPrototype.cpp:
      (JSC::arrayProtoFuncConcat):
      (JSC::arrayProtoFuncSlice):
      (JSC::arrayProtoFuncFilter):
      (JSC::arrayProtoFuncMap):
      * runtime/JSArray.cpp:
      (JSC):
      (JSC::reject):
      (JSC::SparseArrayValueMap::putDirect):
      (JSC::JSArray::defineOwnNumericProperty):
      (JSC::JSArray::putByIndexBeyondVectorLength):
      (JSC::JSArray::putDirectIndexBeyondVectorLength):
      * runtime/JSArray.h:
      (SparseArrayValueMap):
      (JSArray):
      (JSC::JSArray::putDirectIndex):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109673 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd37404e
    • benjamin@webkit.org's avatar
      Remove the unused function WebCore::protocolIsInHTTPFamily() · 65a6a829
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80218
      
      Reviewed by Anders Carlsson.
      
      * WebCore.order:
      * platform/KURL.cpp:
      * platform/KURL.h:
      (WebCore):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      65a6a829
    • benjamin@webkit.org's avatar
      Implement the basis of KURLWTFURL · 5bb535d1
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79600
      
      Reviewed by Adam Barth.
      
      Source/JavaScriptCore: 
      
      Add an API to know if a ParsedURL is valid.
      
      * wtf/url/api/ParsedURL.cpp:
      (WTF::ParsedURL::ParsedURL):
      (WTF):
      (WTF::ParsedURL::isolatedCopy): This is needed by APIs moving URL objects between thread
      and by KURL's detach() on write.
      (WTF::ParsedURL::baseAsString):
      (WTF::ParsedURL::segment):
      Add a stronger constraint on accessors: the client of this API should never ask for the segments
      on an invalid URL.
      * wtf/url/api/ParsedURL.h:
      (WTF):
      (WTF::ParsedURL::ParsedURL):
      (ParsedURL):
      (WTF::ParsedURL::isValid):
      
      Source/WebCore: 
      
      Add a simple, non-optimized, implementation for the main methods of KURL based
      on ParsedURL.
      
      * platform/KURLWTFURL.cpp:
      (WebCore):
      (WebCore::detach):
      (WebCore::KURL::KURL):
      (WebCore::KURL::copy):
      (WebCore::KURL::isEmpty):
      (WebCore::KURL::isValid):
      (WebCore::KURL::string):
      (WebCore::KURL::protocol):
      (WebCore::KURL::host):
      (WebCore::KURL::hasPort):
      (WebCore::KURL::port):
      (WebCore::KURL::user):
      (WebCore::KURL::pass):
      (WebCore::KURL::hasPath):
      (WebCore::KURL::path):
      (WebCore::KURL::lastPathComponent):
      (WebCore::KURL::query):
      (WebCore::KURL::hasFragmentIdentifier):
      (WebCore::KURL::fragmentIdentifier):
      (WebCore::KURL::baseAsString):
      (WebCore::KURL::fileSystemPath):
      (WebCore::KURL::protocolIs):
      (WebCore::KURL::protocolIsInHTTPFamily):
      (WebCore::KURL::setProtocol):
      (WebCore::KURL::setHost):
      (WebCore::KURL::removePort):
      (WebCore::KURL::setPort):
      (WebCore::KURL::setHostAndPort):
      (WebCore::KURL::setUser):
      (WebCore::KURL::setPass):
      (WebCore::KURL::setPath):
      (WebCore::KURL::setQuery):
      (WebCore::KURL::setFragmentIdentifier):
      (WebCore::KURL::removeFragmentIdentifier):
      (WebCore::protocolHostAndPortAreEqual):
      * platform/KURLWTFURLImpl.h:
      (KURLWTFURLImpl):
      (WebCore::KURLWTFURLImpl::copy):
      (WebCore):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5bb535d1
    • benjamin@webkit.org's avatar
      Remove the redundant method KURL::protocolInHTTPFamily() · f726d63c
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80216
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore: 
      
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::open):
      (WebCore::FrameLoader::addExtraFieldsToRequest):
      * loader/ResourceLoadScheduler.cpp:
      (WebCore::ResourceLoadScheduler::hostForURL):
      (WebCore::ResourceLoadScheduler::scheduleLoad):
      * loader/appcache/ApplicationCache.cpp:
      (WebCore::ApplicationCache::requestIsHTTPOrHTTPSGet):
      * loader/cache/CachedResource.cpp:
      (WebCore::CachedResource::freshnessLifetime):
      * loader/cache/MemoryCache.cpp:
      (WebCore::MemoryCache::removeFragmentIdentifierIfNeeded):
      * loader/icon/IconController.cpp:
      (WebCore::IconController::defaultURL):
      * platform/KURL.h:
      (KURL):
      * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
      * platform/network/CredentialStorage.cpp:
      (WebCore::CredentialStorage::set):
      (WebCore::findDefaultProtectionSpaceForURL):
      * platform/network/ResourceRequestBase.cpp:
      (WebCore::ResourceRequestBase::setCachePolicy):
      (WebCore::ResourceRequestBase::setTimeoutInterval):
      (WebCore::ResourceRequestBase::setHTTPMethod):
      (WebCore::ResourceRequestBase::setHTTPHeaderField):
      (WebCore::ResourceRequestBase::clearHTTPAuthorization):
      (WebCore::ResourceRequestBase::clearHTTPReferrer):
      (WebCore::ResourceRequestBase::clearHTTPOrigin):
      (WebCore::ResourceRequestBase::setResponseContentDispositionEncodingFallbackArray):
      (WebCore::ResourceRequestBase::setHTTPBody):
      (WebCore::ResourceRequestBase::setAllowCookies):
      (WebCore::ResourceRequestBase::setPriority):
      (WebCore::ResourceRequestBase::addHTTPHeaderField):
      * platform/network/blackberry/NetworkManager.cpp:
      (WebCore::NetworkManager::startJob):
      * platform/network/cf/ResourceHandleCFNet.cpp:
      (WebCore::ResourceHandle::createCFURLConnection):
      * platform/network/mac/ResourceHandleMac.mm:
      (WebCore::ResourceHandle::createNSURLConnection):
      * platform/network/qt/QNetworkReplyHandler.cpp:
      (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::send):
      
      Source/WebKit/chromium: 
      
      * src/FrameLoaderClientImpl.cpp:
      (WebKit::FrameLoaderClientImpl::dispatchWillPerformClientRedirect):
      * src/WebPageSerializer.cpp:
      (WebCore::retrieveResourcesForElement):
      
      Source/WebKit/mac: 
      
      * WebCoreSupport/WebFrameLoaderClient.mm:
      (WebFrameLoaderClient::createPlugin):
      
      Source/WebKit/win: 
      
      * WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebFrameLoaderClient::dispatchDidFailToStartPlugin):
      * WebHistory.cpp:
      (WebHistory::visitedURL):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f726d63c
    • commit-queue@webkit.org's avatar
      [Qt] Fix static_libs_as_shared build · 067aacfa
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80214
      
      Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2012-03-03
      Reviewed by Tor Arne Vestbø.
      
      Source/WebKit/qt:
      
      Add helper function to be called by WebProcess main
      to potentially initialize the QStyle theme.
      
      * WebCoreSupport/InitWebCoreQt.cpp:
      (WebKit):
      (WebKit::initializeWebKit2Theme):
      
      Source/WebKit2:
      
      Replace (static) link time dependency to WK1 with entrypoint
      in the separate WebProcess for activating the QStyle theme if
      necessary.
      
      * Target.pri:
      * UIProcess/Launcher/ProcessLauncher.h:
      * WebProcess/qt/WebProcessMainQt.cpp:
      (WebKit::WebProcessMainQt):
      * qt/MainQt.cpp:
      (WebKit):
      (main):
      
      Tools:
      
      * WebKitTestRunner/qt/main.cpp:
      (main): Set the correct environment variable for choosing the theme in the
      web process.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      067aacfa
    • commit-queue@webkit.org's avatar
      [BlackBerry] Upstream LayerWebKitThread and its derived classes · 0204bc83
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79871
      
      Patch by Robin Cao <robin.cao@torchmobile.com.cn> on 2012-03-03
      Reviewed by Antonio Gomes.
      
      Initial upstream, no new tests.
      
      * platform/graphics/blackberry/CanvasLayerWebKitThread.cpp: Added.
      (WebCore):
      (WebCore::CanvasLayerWebKitThread::CanvasLayerWebKitThread):
      (WebCore::CanvasLayerWebKitThread::~CanvasLayerWebKitThread):
      (WebCore::CanvasLayerWebKitThread::setCanvas):
      (WebCore::CanvasLayerWebKitThread::setNeedsDisplay):
      (WebCore::CanvasLayerWebKitThread::updateTextureContentsIfNeeded):
      * platform/graphics/blackberry/CanvasLayerWebKitThread.h: Added.
      (WebCore):
      (CanvasLayerWebKitThread):
      (WebCore::CanvasLayerWebKitThread::create):
      * platform/graphics/blackberry/LayerData.h: Added.
      (WebCore):
      (LayerData):
      (WebCore::LayerData::LayerData):
      (WebCore::LayerData::~LayerData):
      (WebCore::LayerData::anchorPoint):
      (WebCore::LayerData::anchorPointZ):
      (WebCore::LayerData::backgroundColor):
      (WebCore::LayerData::borderColor):
      (WebCore::LayerData::borderWidth):
      (WebCore::LayerData::bounds):
      (WebCore::LayerData::doubleSided):
      (WebCore::LayerData::frame):
      (WebCore::LayerData::masksToBounds):
      (WebCore::LayerData::opacity):
      (WebCore::LayerData::opaque):
      (WebCore::LayerData::position):
      (WebCore::LayerData::sublayerTransform):
      (WebCore::LayerData::transform):
      (WebCore::LayerData::preserves3D):
      (WebCore::LayerData::getTextureID):
      (WebCore::LayerData::setTextureID):
      (WebCore::LayerData::needsTexture):
      (WebCore::LayerData::layerProgramShader):
      (WebCore::LayerData::isFixedPosition):
      (WebCore::LayerData::hasFixedContainer):
      (WebCore::LayerData::hasFixedAncestorInDOMTree):
      (WebCore::LayerData::pluginView):
      (WebCore::LayerData::holePunchRect):
      (WebCore::LayerData::hasHolePunchRect):
      (WebCore::LayerData::mediaPlayer):
      (WebCore::LayerData::canvas):
      (WebCore::LayerData::replicate):
      (WebCore::LayerData::layerType):
      (WebCore::LayerData::includeVisibility):
      * platform/graphics/blackberry/LayerWebKitThread.cpp: Added.
      (WebCore):
      (WebCore::LayerWebKitThread::create):
      (WebCore::LayerWebKitThread::LayerWebKitThread):
      (WebCore::LayerWebKitThread::~LayerWebKitThread):
      (WebCore::LayerWebKitThread::paintContents):
      (WebCore::LayerWebKitThread::contentsVisible):
      (WebCore::LayerWebKitThread::createFrontBufferLock):
      (WebCore::LayerWebKitThread::updateTextureContentsIfNeeded):
      (WebCore::LayerWebKitThread::setContents):
      (WebCore::LayerWebKitThread::setDrawable):
      (WebCore::LayerWebKitThread::setNeedsCommit):
      (WebCore::LayerWebKitThread::notifyAnimationStarted):
      (WebCore::LayerWebKitThread::commitOnWebKitThread):
      (WebCore::LayerWebKitThread::startAnimations):
      (WebCore::LayerWebKitThread::updateTextureContents):
      (WebCore::LayerWebKitThread::commitOnCompositingThread):
      (WebCore::LayerWebKitThread::addSublayer):
      (WebCore::LayerWebKitThread::insertSublayer):
      (WebCore::LayerWebKitThread::removeFromSuperlayer):
      (WebCore::LayerWebKitThread::removeSublayer):
      (WebCore::LayerWebKitThread::replaceSublayer):
      (WebCore::LayerWebKitThread::indexOfSublayer):
      (WebCore::LayerWebKitThread::setBounds):
      (WebCore::LayerWebKitThread::setFrame):
      (WebCore::LayerWebKitThread::rootLayer):
      (WebCore::LayerWebKitThread::removeAllSublayers):
      (WebCore::LayerWebKitThread::setSublayers):
      (WebCore::LayerWebKitThread::setNeedsDisplayInRect):
      (WebCore::LayerWebKitThread::setNeedsDisplay):
      (WebCore::LayerWebKitThread::updateLayerHierarchy):
      (WebCore::LayerWebKitThread::setIsMask):
      * platform/graphics/blackberry/LayerWebKitThread.h: Added.
      (WebCore):
      (LayerWebKitThread):
      (WebCore::LayerWebKitThread::setAnchorPoint):
      (WebCore::LayerWebKitThread::setAnchorPointZ):
      (WebCore::LayerWebKitThread::setBackgroundColor):
      (WebCore::LayerWebKitThread::setBorderColor):
      (WebCore::LayerWebKitThread::setBorderWidth):
      (WebCore::LayerWebKitThread::setDoubleSided):
      (WebCore::LayerWebKitThread::setMasksToBounds):
      (WebCore::LayerWebKitThread::setMaskLayer):
      (WebCore::LayerWebKitThread::maskLayer):
      (WebCore::LayerWebKitThread::setReplicaLayer):
      (WebCore::LayerWebKitThread::replicaLayer):
      (WebCore::LayerWebKitThread::setNeedsDisplayOnBoundsChange):
      (WebCore::LayerWebKitThread::setOpacity):
      (WebCore::LayerWebKitThread::setOpaque):
      (WebCore::LayerWebKitThread::setPosition):
      (WebCore::LayerWebKitThread::getSublayers):
      (WebCore::LayerWebKitThread::setSublayerTransform):
      (WebCore::LayerWebKitThread::superlayer):
      (WebCore::LayerWebKitThread::setTransform):
      (WebCore::LayerWebKitThread::setPreserves3D):
      (WebCore::LayerWebKitThread::setFixedPosition):
      (WebCore::LayerWebKitThread::setHasFixedContainer):
      (WebCore::LayerWebKitThread::setHasFixedAncestorInDOMTree):
      (WebCore::LayerWebKitThread::contents):
      (WebCore::LayerWebKitThread::setOwner):
      (WebCore::LayerWebKitThread::drawsContent):
      (WebCore::LayerWebKitThread::layerCompositingThread):
      (WebCore::LayerWebKitThread::setAbsoluteOffset):
      (WebCore::LayerWebKitThread::contentsScale):
      (WebCore::LayerWebKitThread::setRunningAnimations):
      (WebCore::LayerWebKitThread::setSuspendedAnimations):
      (WebCore::LayerWebKitThread::setNeedsTexture):
      (WebCore::LayerWebKitThread::setLayerProgramShader):
      (WebCore::LayerWebKitThread::isDrawable):
      (WebCore::LayerWebKitThread::boundsChanged):
      (WebCore::LayerWebKitThread::setSuperlayer):
      (WebCore::LayerWebKitThread::numSublayers):
      * platform/graphics/blackberry/PluginLayerWebKitThread.cpp: Added.
      (WebCore):
      (WebCore::PluginLayerWebKitThread::PluginLayerWebKitThread):
      (WebCore::PluginLayerWebKitThread::~PluginLayerWebKitThread):
      (WebCore::PluginLayerWebKitThread::setPluginView):
      (WebCore::PluginLayerWebKitThread::setHolePunchRect):
      (WebCore::PluginLayerWebKitThread::setNeedsDisplay):
      (WebCore::PluginLayerWebKitThread::updateTextureContentsIfNeeded):
      * platform/graphics/blackberry/PluginLayerWebKitThread.h: Added.
      (WebCore):
      (PluginLayerWebKitThread):
      (WebCore::PluginLayerWebKitThread::create):
      * platform/graphics/blackberry/VideoLayerWebKitThread.cpp: Added.
      (WebCore):
      (WebCore::VideoLayerWebKitThread::VideoLayerWebKitThread):
      (WebCore::VideoLayerWebKitThread::~VideoLayerWebKitThread):
      (WebCore::VideoLayerWebKitThread::setMediaPlayer):
      (WebCore::VideoLayerWebKitThread::setHolePunchRect):
      (WebCore::VideoLayerWebKitThread::setNeedsDisplay):
      (WebCore::VideoLayerWebKitThread::boundsChanged):
      (WebCore::VideoLayerWebKitThread::updateTextureContentsIfNeeded):
      * platform/graphics/blackberry/VideoLayerWebKitThread.h: Added.
      (WebCore):
      (VideoLayerWebKitThread):
      (WebCore::VideoLayerWebKitThread::create):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0204bc83
    • hans@chromium.org's avatar
      Implement Speech JavaScript API · 71874940
      hans@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80019
      
      Reviewed by Adam Barth.
      
      .:
      
      Add ENABLE_SCRIPTED_SPEECH.
      
      * configure.ac:
      
      Source/JavaScriptCore:
      
      Add ENABLE_SCRIPTED_SPEECH.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Add ENABLE_SCRIPTED_SPEECH and runtime flag.
      
      No functionality yet, so no new tests.
      
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.am:
      * Target.pri:
      * bindings/generic/RuntimeEnabledFeatures.cpp:
      (WebCore):
      * bindings/generic/RuntimeEnabledFeatures.h:
      (RuntimeEnabledFeatures):
      (WebCore::RuntimeEnabledFeatures::setScriptedSpeechEnabled):
      (WebCore::RuntimeEnabledFeatures::scriptedSpeechEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitSpeechRecognitionEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitSpeechRecognitionErrorEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitSpeechGrammarEnabled):
      (WebCore::RuntimeEnabledFeatures::webkitSpeechGrammarListEnabled):
      
      Source/WebKit/chromium:
      
      Add ENABLE_SCRIPTED_SPEECH and runtime flag.
      
      * fea...
      71874940
    • commit-queue@webkit.org's avatar
      DelayNode has a fixed one second max delay time · ef2e4996
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78758
      
      Source/WebCore:
      
      Change DelayNode to accept an optional parameter to specify the
      maximum delay allowed. If not specified, the default is 1 sec.
      
      Patch by Raymond Toy <rtoy@google.com> on 2012-03-03
      Reviewed by Chris Rogers.
      
      Test: webaudio/delaynode-maxdelay.html
            webaudio/delaynode-maxdelay-expected.txt
      
      * webaudio/AudioContext.cpp:
      (WebCore::AudioContext::createDelayNode): Allow maxDelayTime
      parameter to specify max delay.
      * webaudio/AudioContext.h: Allow maxDelayTime
      parameter to specify max delay but default to 1.
      (AudioContext):
      * webaudio/AudioContext.idl: createDelayNode takes optional max
      delay time parameter.
      * webaudio/DelayDSPKernel.cpp:
      (WebCore::DelayDSPKernel::DelayDSPKernel): Remove unused
      DefaultMaxDelayTime. Set m_maxDelayTime from processor
      maxDelayTime.
      * webaudio/DelayNode.cpp:
      (WebCore::DelayNode::DelayNode): Add maxDelayTime parameter.
      * webaudio/DelayNode.h:
      (WebCore::DelayNode::create): Add maxDelayTime parameter.
      (DelayNode): Add maxDelayTime parameter.
      * webaudio/DelayProcessor.cpp:
      (WebCore::DelayProcessor::DelayProcessor): Add maxDelayTime
      parameter.
      * webaudio/DelayProcessor.h:
      (DelayProcessor): Add maxDelayTime parameter.
      (WebCore::DelayProcessor::maxDelayTime): New slot to hold
      maxDelayTime.
      
      LayoutTests:
      
      Patch by Raymond Toy <rtoy@google.com> on 2012-03-03
      Reviewed by Chris Rogers.
      
      * webaudio/resources/delay-testing.js: Added more informative
      messages.
      * webaudio/delaynode-expected.txt: Updated result for more
      informative messages
      * webaudio/delaynode-scheduling-expected.txt: Updated result for
      more informative messages.
      * webaudio/delaynode-maxdelay-expected.txt: Added
      * webaudio/delaynode-maxdelay.html: Added
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef2e4996
    • commit-queue@webkit.org's avatar
      Simplified discreteTimeConstantForSampleRate · 516e358f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=78051
      
      Remove hardcoded constant and simplify computation of discrete
      time constant.
      
      Patch by Raymond Toy <rtoy@google.com> on 2012-03-03
      Reviewed by Chris Rogers.
      
      No new tests needed.  Covered by existing AudioParam tests.
      
      * platform/audio/AudioUtilities.cpp:
      (WebCore::AudioUtilities::discreteTimeConstantForSampleRate):
      Simplify formula.
      * platform/audio/AudioUtilities.h:
      (AudioUtilities): Update function signature.
      * platform/audio/DynamicsCompressorKernel.cpp:
      (WebCore::DynamicsCompressorKernel::DynamicsCompressorKernel):
      cast to float to avoid warnings.
      * webaudio/AudioParamTimeline.cpp:
      (WebCore::AudioParamTimeline::valuesForTimeRangeImpl): cast to
      float to avoid warnings.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      516e358f
    • noam.rosenthal@nokia.com's avatar
      [Qt] Use the existing inheritedOpacity/matrix properties of QSGNode · 468bf846
      noam.rosenthal@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79543
      
      Use QSGNode::inheritedOpacity() and QSGNode::matrix().
      Also, remove flags from changedStates() that we don't actually touch.
      This is covered by existing API tests.
      
      Reviewed by Kenneth Rohde Christiansen.
      
      * UIProcess/API/qt/qquickwebpage.cpp:
      (QQuickWebPagePrivate::paintToCurrentGLContext):
      (PageProxyNode::changedStates):
      (PageProxyNode::render):
      * UIProcess/API/qt/qquickwebpage_p_p.h:
      (QQuickWebPagePrivate):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      468bf846
    • andersca@apple.com's avatar
      Fix build with newer versions of clang. · 43578ad3
      andersca@apple.com authored
      Source/WebCore:
      
      * bindings/objc/DOM.mm:
      (-[DOMNode description]):
      Remove an unused parameter.
      
      * bridge/objc/objc_instance.mm:
      (ObjcInstance::getClass):
      Use object_getClass instead of accessing isa directly.
      
      * platform/LocalizedStrings.cpp:
      (WebCore::formatLocalizedString):
      Disable the -Wformat-nonliteral warning around the call to CFStringCreateWithFormatAndArguments.
      
      * platform/graphics/mac/WebLayer.mm:
      (-[CALayer _descriptionWithPrefix:]):
      Use %p for the CALayer pointer, and use %lu for the number of sublayers.
      
      * platform/mac/HTMLConverter.mm:
      (-[WebHTMLConverter _addAttachmentForElement:URL:needsParagraph:usePlaceholder:]):
      Cast the NSAttachmentCharacte enum to unichar.
      
      Source/WebKit/mac:
      
      * Panels/WebAuthenticationPanel.m:
      (-[WebAuthenticationPanel setUpForChallenge:]):
      Use %ld and cast to long.
      
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView getVariable:value:]):
      Cast the switch parameter to unsigned to prevent warnings about case values not being part of the enum type.
      
      Source/WebKit2:
      
      * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
      (WebKit::NPN_GetValue):
      Cast the switch parameter to unsigned to prevent warnings about case values not being part of the enum type.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43578ad3
    • commit-queue@webkit.org's avatar
      Biquad getFrequencyResponse needs a layout test. · 589a0c3b
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79503
      
      Add simple test for getFrequencyResponse.
      
      Patch by Raymond Toy <rtoy@google.com> on 2012-03-03
      Reviewed by Chris Rogers.
      
      * webaudio/biquad-getFrequencyResponse-expected.txt: Added.
      * webaudio/biquad-getFrequencyResponse.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      589a0c3b
    • bbudge@chromium.org's avatar
      Fixes AssociatedURLLoader support for Access-Control-Expose-Headers field in response. · 05513330
      bbudge@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80198
      
      Reviewed by Adam Barth.
      
      * src/AssociatedURLLoader.cpp:
      * tests/AssociatedURLLoaderTest.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109661 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      05513330
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r109343. · bea9f394
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/109343
      https://bugs.webkit.org/show_bug.cgi?id=80212
      
      Int32array can't handle values for native nodes because they
      have int64 ids (Requested by loislo1 on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-03-03
      
      Source/WebCore:
      
      * inspector/front-end/HeapSnapshot.js:
      (WebInspector.HeapSnapshotLoader.prototype._parseNodes):
      (WebInspector.HeapSnapshotLoader.prototype.pushJSONChunk):
      (WebInspector.HeapSnapshot):
      (WebInspector.HeapSnapshot.prototype._init):
      
      LayoutTests:
      
      * inspector/profiler/heap-snapshot-loader.html:
      * inspector/profiler/heap-snapshot-test.js:
      (initialize_HeapSnapshotTest.InspectorTest.createHeapSnapshotMock):
      (initialize_HeapSnapshotTest.InspectorTest.createHeapSnapshotMockWithDOM):
      (initialize_HeapSnapshotTest):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bea9f394
    • philn@webkit.org's avatar
      Unreviewed, GTK tests_expectations update. · 3e2bf037
      philn@webkit.org authored
      * platform/gtk/Skipped:
      * platform/gtk/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e2bf037
    • commit-queue@webkit.org's avatar
      Free up a bit in RenderObject. · 281256bf
      commit-queue@webkit.org authored
      http://webkit.org/b/80208
      
      Patch by Andreas Kling <awesomekling@apple.com> on 2012-03-03
      Reviewed by Anders Carlsson.
      
      Move m_hasMarkupTruncation to RenderBlock, stealing one bit from m_lineHeight.
      This flag is only used by RenderBlock.
      
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::RenderBlock):
      * rendering/RenderBlock.h:
      (WebCore::RenderBlock::setHasMarkupTruncation):
      (WebCore::RenderBlock::hasMarkupTruncation):
      (RenderBlock):
      * rendering/RenderObject.h:
      (RenderObject):
      (WebCore::RenderObject::RenderObjectBitfields::RenderObjectBitfields):
      (RenderObjectBitfields):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      281256bf
    • philn@webkit.org's avatar
      Unreviewed, rebaseline after r109623. · 818ff067
      philn@webkit.org authored
      * editing/selection/select-line-break-with-opposite-directionality-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      818ff067
    • commit-queue@webkit.org's avatar
      Implement vw/vh/vmin (viewport sizes) from CSS 3 Values and Units · 90b8f299
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=27160
      
      The specification related to this implementation is located at http://dev.w3.org/csswg/css3-values/#viewport-relative-lengths.
      vw/vh/vmin are implemented as primitive length units. Added the parsing logic for these new units and creation of primitive values.
      
      Added new Length types such as ViewportRelativeWidth, ViewportRelativeHeight and ViewportRelativeMin for viewport-relative lengths
      and included the support for fetching the value of these relative length units based on the current viewport size.
      
      Patch by Joe Thomas <joethomas@motorola.com> on 2012-03-03
      Reviewed by Antti Koivisto.
      
      Source/WebCore:
      
      Tests: css3/viewport-relative-lengths/css3-viewport-relative-lengths-getStyle.html
             css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh-absolute.html
             css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh.html
             css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin-absolute.html
             css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin.html
             css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw-absolute.html
             css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw.html
      
      * css/CSSComputedStyleDeclaration.cpp: Modified to support viewport relative Length types.
      (WebCore::getPositionOffsetValue): Ditto.
      (WebCore::getBorderRadiusCornerValues): Ditto.
      (WebCore::getBorderRadiusCornerValue): Ditto.
      (WebCore::getBorderRadiusShorthandValue): Ditto.
      (WebCore::lineHeightFromStyle): Ditto.
      (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Ditto.
      * css/CSSGrammar.y: Added vw/vh/vmin support.
      * css/CSSParser.cpp: Parsing of relative units and creation of CSSPrimitiveValue.
      (WebCore::CSSParser::validUnit): Added vw/vh/vmin to the valid units.
      (WebCore::CSSParser::createPrimitiveNumericValue): Added vw/vh/vmin as valid primitive units.
      (WebCore::unitFromString):
      (WebCore::CSSParser::parseValidPrimitive): Creation of CSSPrimitiveValue for vw/vh/vmin.
      (WebCore::CSSParser::detectNumberToken): Parsing the vw/vh/vmin tokens.
      * css/CSSPrimitiveValue.cpp:
      (WebCore::isValidCSSUnitTypeForDoubleConversion): Added support for vw/vh/vmin.
      (WebCore::unitCategory): Ditto.
      (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
      (WebCore::CSSPrimitiveValue::canonicalUnitTypeForCategory): Added support for vw/vh/vmin.
      (WebCore::CSSPrimitiveValue::customCssText): Ditto.
      (WebCore::CSSPrimitiveValue::viewportRelativeLength): Function to create the Length structure for the viewport-relative unit types.
      (WebCore):
      * css/CSSPrimitiveValue.h:
      (WebCore::CSSPrimitiveValue::isViewportRelativeLength): Checks whether the primitive value is ViewportRelative Lengths.
      (CSSPrimitiveValue):
      * css/CSSPrimitiveValue.idl: Added support for vw/vh/vmin.
      * css/CSSStyleApplyProperty.cpp:
      (WebCore::ApplyPropertyLength::applyValue): Applying relative viewport length units to the specific CSS property.
      (WebCore::ApplyPropertyBorderRadius::applyValue): Ditto.
      (WebCore::ApplyPropertyFontSize::applyValue): Ditto.
      (WebCore::ApplyPropertyLineHeight::applyValue): Ditto.
      (WebCore::ApplyPropertyVerticalAlign::applyValue): Ditto.
      * css/CSSStyleSelector.cpp:
      (WebCore::convertToLength): Added support for viewport relative units.
      (WebCore::createGridTrackBreadth): Ditto.
      (WebCore::CSSStyleSelector::mapFillSize): Ditto.
      (WebCore::CSSStyleSelector::mapFillXPosition): Ditto.
      (WebCore::CSSStyleSelector::mapFillYPosition): Ditto.
      * dom/Document.cpp:
      (WebCore::Document::pageSizeAndMarginsInPixels): Modified to support viewport relative Length types.
      (WebCore::Document::viewportSize): New function to fetch the current viewport size.
      (WebCore):
      * dom/Document.h: Ditto.
      (Document):
      * html/HTMLAreaElement.cpp:
      (WebCore::HTMLAreaElement::getRegion): Modified to support viewport relative Length types.
      * platform/Length.h: New LengthTypes such as ViewportRelativeWidth, ViewportRelativeHeight and ViewportRelativeMin added.
      (WebCore::Length::calcValue): Modified to support viewport relative Length types.
      (WebCore::Length::calcMinValue): Ditto.
      (WebCore::Length::calcFloatValue): Ditto.
      (Length):
      (WebCore::Length::isViewportRelative): To check the Length is of type ViewportRelative.
      (WebCore::Length::viewportRelativeLength): To get the relative value.
      * rendering/RenderBR.cpp:
      (WebCore::RenderBR::lineHeight): Modified to support viewport relative Length types.
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::lineHeight): Ditto.
      * rendering/RenderBox.cpp:
      (WebCore::RenderBox::reflectionOffset): Ditto.
      (WebCore::RenderBox::paintBoxDecorations): Ditto.
      (WebCore::RenderBox::clipRect): Ditto.
      (WebCore::RenderBox::computeLogicalWidthInRegion): Ditto.
      (WebCore::RenderBox::computeLogicalWidthInRegionUsing): Ditto.
      (WebCore::RenderBox::computeInlineDirectionMargins): Ditto.
      (WebCore::RenderBox::computeLogicalHeightUsing): Ditto.
      (WebCore::RenderBox::computePercentageLogicalHeight): Ditto.
      (WebCore::RenderBox::computeReplacedLogicalHeightUsing): Ditto.
      (WebCore::RenderBox::computeBlockDirectionMargins): Ditto.
      (WebCore::RenderBox::computePositionedLogicalWidthUsing): Ditto.
      (WebCore::RenderBox::computePositionedLogicalHeightUsing): Ditto.
      (WebCore::RenderBox::computePositionedLogicalWidthReplaced): Ditto.
      (WebCore::RenderBox::computePositionedLogicalHeightReplaced): Ditto.
      * rendering/RenderBoxModelObject.cpp:
      (WebCore::RenderBoxModelObject::relativePositionOffsetX): Ditto.
      (WebCore::RenderBoxModelObject::relativePositionOffsetY): Ditto.
      (WebCore::RenderBoxModelObject::paddingTop): Ditto.
      (WebCore::RenderBoxModelObject::paddingBottom): Ditto.
      (WebCore::RenderBoxModelObject::paddingLeft): Ditto.
      (WebCore::RenderBoxModelObject::paddingRight): Ditto.
      (WebCore::RenderBoxModelObject::paddingBefore): Ditto.
      (WebCore::RenderBoxModelObject::paddingAfter): Ditto.
      (WebCore::RenderBoxModelObject::paddingStart): Ditto.
      (WebCore::RenderBoxModelObject::paddingEnd): Ditto.
      (WebCore::RenderBoxModelObject::getBackgroundRoundedRect): Ditto.
      (WebCore::RenderBoxModelObject::calculateFillTileSize): Ditto.
      (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry): Ditto.
      (WebCore::computeBorderImageSide): Ditto.
      (WebCore::RenderBoxModelObject::paintNinePieceImage): Ditto.
      (WebCore::RenderBoxModelObject::paintBorder): Ditto.
      (WebCore::RenderBoxModelObject::paintBoxShadow): Ditto.
      * rendering/RenderFlexibleBox.cpp:
      (WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild): Ditto.
      (WebCore::RenderFlexibleBox::computeMainAxisPreferredSizes): Ditto.
      (WebCore::RenderFlexibleBox::runFreeSpaceAllocationAlgorithm): Ditto.
      * rendering/RenderInline.cpp:
      (WebCore::computeMargin): Ditto.
      (WebCore::RenderInline::lineHeight): Ditto.
      * rendering/RenderMenuList.cpp:
      (WebCore::RenderMenuList::updateOptionsWidth): Ditto.
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::repaintAfterLayoutIfNeeded): Ditto.
      * rendering/RenderObject.h:
      (WebCore::RenderObject::viewportSize): New function to fetch the current viewport size.
      (RenderObject):
      * rendering/RenderReplaced.cpp:
      (WebCore::RenderReplaced::paint): Modified to support viewport relative Length types.
      * rendering/RenderScrollbarPart.cpp:
      (WebCore::calcScrollbarThicknessUsing): Ditto.
      (WebCore::RenderScrollbarPart::computeScrollbarWidth): Ditto.
      (WebCore::RenderScrollbarPart::computeScrollbarHeight): Ditto.
      * rendering/RenderTable.cpp:
      (WebCore::RenderTable::computeLogicalWidth): Ditto.
      (WebCore::RenderTable::convertStyleLogicalWidthToComputedWidth): Ditto.
      * rendering/RenderTableCell.cpp:
      (WebCore::RenderTableCell::logicalHeightForRowSizing): Ditto.
      * rendering/RenderTableSection.cpp:
      (WebCore::RenderTableSection::calcRowLogicalHeight): Ditto.
      * rendering/RenderText.h:
      (WebCore::RenderText::marginLeft): Ditto.
      (WebCore::RenderText::marginRight): Ditto.
      * rendering/RenderThemeMac.mm:
      (WebCore::RenderThemeMac::paintMenuListButtonGradients): Ditto.
      * rendering/RenderWidget.cpp:
      (WebCore::RenderWidget::paint): Ditto.
      * rendering/RootInlineBox.cpp:
      (WebCore::RootInlineBox::verticalPositionForBox): Ditto.
      * rendering/style/RenderStyle.cpp:
      (WebCore::calcRadiiFor): Ditto.
      (WebCore::RenderStyle::getRoundedBorderFor): Ditto.
      * rendering/style/RenderStyle.h: Ditto.
      * rendering/svg/RenderSVGRoot.cpp:
      (WebCore::resolveLengthAttributeForSVG): Ditto.
      (WebCore::RenderSVGRoot::computeReplacedLogicalWidth): Ditto.
      (WebCore::RenderSVGRoot::computeReplacedLogicalHeight): Ditto.
      
      LayoutTests:
      
      * css3/viewport-relative-lengths: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-getStyle-expected.txt: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-getStyle.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh-absolute-expected.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh-absolute.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh-expected.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vh.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin-absolute-expected.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin-absolute.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin-expected.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vmin.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw-absolute-expected.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw-absolute.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw-expected.html: Added.
      * css3/viewport-relative-lengths/css3-viewport-relative-lengths-vw.html: Added.
      * fast/dom/Window/window-properties-expected.txt:
      * platform/gtk/fast/dom/Window/window-properties-expected.txt:
      * platform/mac/fast/dom/Window/window-properties-expected.txt:
      * platform/qt/fast/dom/Window/window-properties-expected.txt:
      * platform/win/fast/dom/Window/window-properties-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90b8f299
    • ossy@webkit.org's avatar
      [Qt] Unreviewed gardening, skip a new crashing test. · 0a2cd5cf
      ossy@webkit.org authored
      * platform/qt-5.0-wk2/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0a2cd5cf
    • ossy@webkit.org's avatar
      [Qt] Unreviewed gardening, updated expected files. · 8d88b40c
      ossy@webkit.org authored
      * platform/qt/editing/selection/select-line-break-with-opposite-directionality-expected.png: Added.
      * platform/qt/editing/selection/select-line-break-with-opposite-directionality-expected.txt: Added.
      * platform/qt/fast/dom/prototype-inheritance-2-expected.png:
      * platform/qt/fast/dom/prototype-inheritance-2-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d88b40c
  2. 02 Mar, 2012 20 commits
    • commit-queue@webkit.org's avatar
      Editor's default paragraph separator is not reset when a frame's document is changed · 9c6d99b2
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80065
      
      Patch by Pablo Flouret <pablof@motorola.com> on 2012-03-02
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      Test: editing/execCommand/reset-values-after-navigation.html
      
      * editing/Editor.cpp:
      (WebCore::Editor::clear):
      
      LayoutTests:
      
      * editing/execCommand/default-paragraph-separator.html: Last line of the test did a manual reset of the value to work around this problem. Removed.
      * editing/execCommand/reset-values-after-navigation-expected.txt: Added.
      * editing/execCommand/reset-values-after-navigation.html: Added.
      * editing/execCommand/resources/reset-default-values-helper-1.html: Added.
      * editing/execCommand/resources/reset-default-values-helper-2.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c6d99b2
    • ap@apple.com's avatar
      Have a copy of plug-in sandboxing API header in WebCore · 57b0503e
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=80185
      <rdar://problem/8242128>
      
      Reviewed by Anders Carlsson.
      
      * plugins/npapi-sandbox.h: Added.
      
      * WebCore.xcodeproj/project.pbxproj: Added as unused file.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57b0503e
    • noel.gordon@gmail.com's avatar
      :empty should apply to elements made empty via page dynamics · 512fd853
      noel.gordon@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=79734
      
      Reviewed by Antonio Gomes.
      
      * fast/css/pseudo-empty-dynamic-empty-expected.txt: Added.
      * fast/css/pseudo-empty-dynamic-empty.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109651 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      512fd853
    • ap@apple.com's avatar
      Fix commit queue, remove duplicate entry. · 68f89949
      ap@apple.com authored
              * Scripts/webkitpy/common/config/committers.py:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68f89949
    • commit-queue@webkit.org's avatar
      [BlackBerry] Expose WebInspector state to client and clean up WebSettings · 75b4354f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80177
      
      Patch by Mike Fenton <mifenton@rim.com> on 2012-03-02
      Reviewed by Antonio Gomes.
      
      Expose the Web Inspector state to WebPage client's and
      re-order initialization of WebSettings to be alphabetical
      matching their definitions.
      
      * Api/WebPage.cpp:
      (BlackBerry::WebKit::WebPage::isWebInspectorEnabled):
      * Api/WebPage.h:
      * Api/WebSettings.cpp:
      (BlackBerry::WebKit::WebSettings::standardSettings):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109646 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      75b4354f
    • schenney@chromium.org's avatar
    • barraclough@apple.com's avatar
      ES5.1-15.3.5.4. prohibits Function.caller from [[Get]]ting a strict caller · b33f91fb
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=80011
      
      We now support getting the caller from within an accessor.
      
      Reviewed by Sam Weinig.
      
      * fast/js/function-dot-arguments-and-caller.html:
      * platform/qt/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b33f91fb
    • eric@webkit.org's avatar
      Chrome 18 fails html5test.com XHR Blob response test · ba516cf8
      eric@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76760
      
      Unreviewed rebaselining.  Cr-Linux returns
      application/javascript for .js files instead of text/javascript.
      
      * platform/chromium-linux/fast/files/xhr-response-blob-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba516cf8
    • eae@chromium.org's avatar
      Revert borders to integers for subpixel layout · 373d230c
      eae@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80175
      
      Reviewed by Eric Seidel.
      
      Change border representation and calculation back to integers to ensure
      that borders given the same width are rendered with the same actual width.
      
      This will also avoid unnecessary type conversions when we switch over
      to subpixel precision.
      
      No new tests.
      
      * rendering/LayoutTypes.h:
      (WebCore::pixelSnappedIntRect):
      (WebCore):
      * rendering/RenderBoxModelObject.h:
      (WebCore::RenderBoxModelObject::borderTop):
      (WebCore::RenderBoxModelObject::borderBottom):
      (WebCore::RenderBoxModelObject::borderLeft):
      (WebCore::RenderBoxModelObject::borderRight):
      (WebCore::RenderBoxModelObject::borderBefore):
      (WebCore::RenderBoxModelObject::borderAfter):
      (WebCore::RenderBoxModelObject::borderStart):
      (WebCore::RenderBoxModelObject::borderEnd):
      * rendering/RenderTable.cpp:
      (WebCore::RenderTable::convertStyleLogicalWidthToComputedWidth):
      (WebCore::RenderTable::calcBorderStart):
      (WebCore::RenderTable::calcBorderEnd):
      (WebCore::RenderTable::borderBefore):
      (WebCore::RenderTable::borderAfter):
      (WebCore::RenderTable::outerBorderBefore):
      (WebCore::RenderTable::outerBorderAfter):
      (WebCore::RenderTable::outerBorderStart):
      (WebCore::RenderTable::outerBorderEnd):
      * rendering/RenderTable.h:
      (WebCore::RenderTable::borderStart):
      (WebCore::RenderTable::borderEnd):
      (RenderTable):
      (WebCore::RenderTable::borderLeft):
      (WebCore::RenderTable::borderRight):
      (WebCore::RenderTable::borderTop):
      (WebCore::RenderTable::borderBottom):
      (WebCore::RenderTable::outerBorderLeft):
      (WebCore::RenderTable::outerBorderRight):
      (WebCore::RenderTable::outerBorderTop):
      (WebCore::RenderTable::outerBorderBottom):
      * rendering/RenderTableCell.cpp:
      (WebCore::RenderTableCell::clippedOverflowRectForRepaint):
      (WebCore::RenderTableCell::borderLeft):
      (WebCore::RenderTableCell::borderRight):
      (WebCore::RenderTableCell::borderTop):
      (WebCore::RenderTableCell::borderBottom):
      (WebCore::RenderTableCell::borderStart):
      (WebCore::RenderTableCell::borderEnd):
      (WebCore::RenderTableCell::borderBefore):
      (WebCore::RenderTableCell::borderAfter):
      (WebCore::RenderTableCell::borderHalfLeft):
      (WebCore::RenderTableCell::borderHalfRight):
      (WebCore::RenderTableCell::borderHalfTop):
      (WebCore::RenderTableCell::borderHalfBottom):
      (WebCore::RenderTableCell::borderHalfStart):
      (WebCore::RenderTableCell::borderHalfEnd):
      (WebCore::RenderTableCell::borderHalfBefore):
      (WebCore::RenderTableCell::borderHalfAfter):
      (WebCore::RenderTableCell::paintCollapsedBorders):
      * rendering/RenderTableCell.h:
      (RenderTableCell):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      373d230c
    • michaeln@google.com's avatar
      Unreviewed, remove an erroneous expected result that showed up in r109303. · f267c92a
      michaeln@google.com authored
      * platform/chromium-linux/fast/workers/storage/use-same-database-in-page-and-workers-expected.txt: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f267c92a
    • adamk@chromium.org's avatar
      Mark a few tests as flaky on Leopard debug. · b5f9052f
      adamk@chromium.org authored
      Unreviewed gardening.
      
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b5f9052f
    • commit-queue@webkit.org's avatar
      Accelerated compositing: Checkerboard never goes away · fd8340f6
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79020
      RIM PR #134164
      
      Patch by Arvid Nilsson <anilsson@rim.com> on 2012-03-02
      Reviewed by Adam Treat.
      
      Checkerboard appears in accelerated compositing layers when there's no
      texture for (part of) a layer. The layer renderer queues up some render
      jobs and schedules a commit to make the WebKit thread process those
      jobs. Render jobs performed during commit cause texture upload jobs to
      be scheduled on the UI thread. Texture uploads are performed when next
      drawing the layers.
      
      Unfortunately, sometimes commit operation happens without a subsequent
      call draw the layers.
      
      In order to implement one-shot drawing sync, I added a call to
      commitRootLayerIfNeeded() in BackingStore::renderContents(), and
      I was lucky that most of the time, renderContents() is followed by
      blit(Visible)Contents() which in turn draws the layers.
      However, render is not always followed by a blit, for example when
      rendering offscreen tiles in BackingStore::renderOnIdle(), and in
      direct rendering mode.
      
      Fixed by making sure that every call to commitRootLayerIfNeeded() that
      returns true is followed by a call to drawLayersOnCommit(), unless a
      blit was requested already.
      
      Also tweak the logic for one-shot drawing sync to make the code in
      drawLayersOnCommit() reusable outside of rootLayerCommitTimerFired().
      
      * Api/BackingStore.cpp:
      (BlackBerry::WebKit::BackingStorePrivate::BackingStorePrivate):
      (BlackBerry::WebKit::BackingStorePrivate::renderOnTimer):
      (BlackBerry::WebKit::BackingStorePrivate::renderOnIdle):
      (BlackBerry::WebKit::BackingStorePrivate::willFireTimer):
      (BlackBerry::WebKit::BackingStorePrivate::renderDirectToWindow):
      (BlackBerry::WebKit::BackingStorePrivate::render):
      (BlackBerry::WebKit::BackingStorePrivate::blitVisibleContents):
      (BlackBerry::WebKit::BackingStorePrivate::blitContents):
      (BlackBerry::WebKit::BackingStorePrivate::renderContents):
      (WebKit):
      (BlackBerry::WebKit::BackingStorePrivate::drawLayersOnCommitIfNeeded):
      * Api/BackingStore_p.h:
      (BackingStorePrivate):
      (BlackBerry::WebKit::BackingStorePrivate::willDrawLayersOnCommit):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fd8340f6
    • rniwa@webkit.org's avatar
      Another test fix after r109593. Remove the extra start body tag. · e810538a
      rniwa@webkit.org authored
      * editing/selection/select-line-break-with-opposite-directionality.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e810538a
    • adamk@chromium.org's avatar
      Unreviewed rebaseline for Leopard. · a8db1f8b
      adamk@chromium.org authored
      * platform/chromium-mac-leopard/fast/dom/scroll-reveal-left-overflow-expected.png: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a8db1f8b
    • eric@webkit.org's avatar
      Chrome 18 fails html5test.com XHR Blob response test · 3da6e5c6
      eric@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76760
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Most of the code was already there, this just fixes the FIXME
      which was causing this feature not to work.  Chromium already
      had this #ifdef enabled, but other ports (at least Mac) do not.
      
      Test: fast/files/xhr-response-blob.html
      
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::didFinishLoading):
      
      LayoutTests:
      
      * fast/files/script-tests/xhr-response-blob.js: Added.
      (xhr.onreadystatechange):
      * fast/files/xhr-response-blob-expected.txt: Added.
      * fast/files/xhr-response-blob.html: Added.
      * platform/chromium/fast/files/xhr-response-blob-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3da6e5c6
    • haraken@chromium.org's avatar
      Revert Worker-related APIs from DOMWindowWorker.idl back to DOMWindow.idl · ef502e14
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80151
      
      Reviewed by Adam Barth.
      
      Based on the discussion on webkit-dev@
      (http://markmail.org/message/kagvswmah67zmrry#query:+page:1+mid:h34vzbiu5suub3ld+state:results),
      this patch reverts Worker-related APIs from DOMWindowWorker.idl back to DOMWindow.idl.
      
      No tests. No change in behavior.
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.list.am:
      * WebCore.gypi:
      * page/DOMWindow.idl:
      * workers/DOMWindowWorker.idl: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef502e14
    • aestes@apple.com's avatar
      Move nsStringFromWebCoreString out of PageClientImpl · ca3955cc
      aestes@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=80202
      
      Reviewed by Sam Weinig.
      
      nsStringFromWebCoreString() doesn't really belong in PageClientImpl.mm,
      and it makes us include PageClientImpl.h in places where we shouldn't.
      Move this function into StringUtilities.{h, mm}.
      
      * Platform/mac/StringUtilities.h: Added.
      * Platform/mac/StringUtilities.mm: Added.
      (WebKit::nsStringFromWebCoreString):
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      * UIProcess/API/mac/WKView.mm:
      * UIProcess/mac/WebContextMenuProxyMac.mm:
      * UIProcess/mac/WebPageProxyMac.mm:
      * UIProcess/mac/WebPopupMenuProxyMac.mm:
      * UIProcess/mac/WebPreferencesMac.mm:
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ca3955cc
    • adamk@chromium.org's avatar
      Unreviewed test expectations cleanup. · 9f740ad1
      adamk@chromium.org authored
      Marked a bunch of flakiness as happening only in DEBUG,
      and removed a whole set of tests that are no longer flaky.
      
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f740ad1
    • adamk@chromium.org's avatar
      Unreviewed rebaseline of SVG feImage tests after r105612 and r106113. · e211251d
      adamk@chromium.org authored
      * platform/chromium-linux/svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-objectBoundingBox-expected.png: Added.
      * platform/chromium-linux/svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-userSpaceOnUse-expected.png: Added.
      * platform/chromium-linux/svg/filters/feImage-filterUnits-userSpaceOnUse-primitiveUnits-objectBoundingBox-expected.png: Added.
      * platform/chromium-linux/svg/filters/feImage-filterUnits-userSpaceOnUse-primitiveUnits-userSpaceOnUse-expected.png: Added.
      * platform/chromium-mac-leopard/svg/filters/feImage-subregions-expected.png: Added.
      * platform/chromium-mac-leopard/svg/filters/feImage-subregions-preseveAspectRatio-none-expected.png: Added.
      * platform/chromium-mac-leopard/svg/filters/feImage-subregions-preseveAspectRatio-none-with-viewBox-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-objectBoundingBox-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-userSpaceOnUse-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-filterUnits-userSpaceOnUse-primitiveUnits-objectBoundingBox-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-filterUnits-userSpaceOnUse-primitiveUnits-userSpaceOnUse-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-position-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-subregions-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-subregions-preseveAspectRatio-none-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-subregions-preseveAspectRatio-none-with-viewBox-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-target-add-to-document-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-target-changes-id-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-target-id-change-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-target-reappend-to-document-expected.png: Added.
      * platform/chromium-mac-snowleopard/svg/filters/feImage-target-remove-from-document-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-objectBoundingBox-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-userSpaceOnUse-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-filterUnits-userSpaceOnUse-primitiveUnits-objectBoundingBox-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-filterUnits-userSpaceOnUse-primitiveUnits-userSpaceOnUse-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-position-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-subregions-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-subregions-preseveAspectRatio-none-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-subregions-preseveAspectRatio-none-with-viewBox-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-target-add-to-document-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-target-changes-id-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-target-id-change-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-target-reappend-to-document-expected.png: Added.
      * platform/chromium-win/svg/filters/feImage-target-remove-from-document-expected.png: Added.
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e211251d
    • haraken@chromium.org's avatar
      Revert HTML-related APIs from DOMWindowHTML.idl back to DOMWindow.idl · 6e23fff0
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=80140
      
      Reviewed by Adam Barth.
      
      Based on the discussion on webkit-dev@
      (http://markmail.org/message/kagvswmah67zmrry#query:+page:1+mid:h34vzbiu5suub3ld+state:results),
      we should revert HTML-related APIs from DOMWindowHTML.idl back to DOMWindow.idl.
      
      No tests. No change in behavior.
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.list.am:
      * WebCore.gypi:
      * WebCore.xcodeproj/project.pbxproj:
      * html/DOMWindowHTML.idl: Removed.
      * page/DOMWindow.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e23fff0