Permalink
Commits on Apr 4, 2013
  1. Merge pull request #22 from shr-project/master

    Fix build with bison-2.6
    jdapena committed Apr 4, 2013
Commits on Feb 6, 2013
  1. Build fix with newer bison 2.6.

    Backported from http://trac.webkit.org/changeset/124099
    Subversion Revision: 123651
    
    https://bugs.webkit.org/show_bug.cgi?id=92264
    
    Reviewed by Adam Barth.
    
    As stated in http://www.gnu.org/software/bison/manual/html_node/Table-of-Symbols.html
    YYLEX_PARAM and YYPARSE_PARAM are depecreated since version 1.875. So far all Mac OS
    version I had access to as well as recent Linux runs at least version 2.3 so it's safe
    to use the replacement of these deprecated macros in favor of %lex-param and %parse-param.
    As announced http://lists.gnu.org/archive/html/info-gnu/2012-07/msg00011.html with the release
    of version 2.6 YYLEX_PARAM and YYPARSE_PARAM are not supported anymore.
    
    No new tests : build fix and the patch should not trigger any regressions
    css/CSSGrammar.y:
    css/CSSParser.cpp:
    xml/XPathGrammar.y: Refactored a bit to not use an intermediate PARSER define.
    xml/XPathParser.cpp: bison 2.6 declare xpathyyparse in the .h file now, i.e. XPathGrammar.h
    
    therefore including this file within the namespace {} declarations leads to xpathyyparse being
    defined part of WebCore::XPath namespaces but the actual implementation of xpathyyparse is in XPathGrammar.cpp
    (generated) and not implemented within the WebCore::XPath so it lead to linking issues. Last, XPathGrammar.h needs
    to be included after the other includes as it uses some XPath types. It breaks the style but CSSParser.cpp is doing the same.
    
    Signed-off-by: Martin Jansa <martin.jansa@palm.com>
    alexis.menard@openbossa.org committed with Martin Jansa Feb 6, 2013
Commits on Jan 4, 2013
  1. Merge pull request #20 from kuta42/include-glib.h-before-lunaservice.h

    Stop relying on lunaservice.h to include glib.h
    jdapena committed Jan 4, 2013
Commits on Dec 11, 2012
  1. Stop relying on lunaservice.h to include glib.h

    In order to use the luna-service2 routines that require GLib, <glib.h>
    must be included before lunaservice.h .
    
    [OWEBOS-3048] Remove #include <glib.h> from lunaservice.h
    
    Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
    Herb Kuta committed Dec 11, 2012
Commits on Sep 26, 2012
  1. Merge pull request #18 from ssravan/master

    Fix for [OWEBOS-2504] JIRA Issue
    viveksekar committed Sep 26, 2012
  2. Get rid of redudandant LIBS line from WebCore.pri

    Change-Id: I791f361ea8daacf4940f37791f87309a641af7c0
    ssravan committed Sep 26, 2012
  3. Update luna-service2 lib and INC paths

    Change-Id: I2fe6118eb0333d39775e8df2d0086612c069a041
    ssravan committed Sep 26, 2012
Commits on Sep 18, 2012
  1. Merge pull request #15 from kuta42/patch-1

    Fix to compile with g++ 4.7
    SravanKumar S committed Sep 18, 2012
Commits on Sep 17, 2012
  1. Fix to compile with g++ 4.7

    Something no longer implicitly includes unistd.h so include it explicitly.
    Herb Kuta committed Sep 17, 2012
Commits on Jul 26, 2012
  1. Momentarily reveal last character when typing in a password field in

    OpenWebOS. Set default time to 1 second.
    anupamkaul committed Jul 26, 2012
Commits on Jul 19, 2012
  1. Merge pull request #13 from heeen/texmap-fixes

    Texmap fixes
    heeen committed Jul 19, 2012
  2. fixing some texture update issues

    heeen committed Jun 29, 2012
Commits on Jul 9, 2012
  1. Merge pull request #12 from isis-project/fullscreen

    Fullscreen support for QtWebKit1
    shillcock committed Jul 9, 2012
  2. qwebpage: handle Escape key in fullscreen mode

    Philippe Normand committed Jun 28, 2012
  3. QDeclarativeWebView: Fullscreen API support

    Philippe Normand committed Jun 27, 2012
  4. [Qt] Basic FULLSCREEN_API support WebKit1

    This API is used by several websites including Youtube. The WebBrowser
    needs to monitor the 2 new signals (enterFullScreenRequested and
    exitFullScreenRequested) to update its UI accordingly with current
    fullscreen state.
    Philippe Normand committed Jun 21, 2012
Commits on May 25, 2012
  1. Merge pull request #10 from isis-project/add-np-palm-touch-list-to-npapi

    Add back NpPalmTouchList structure to npapi.h
    philn committed May 25, 2012
  2. Add back NpPalmTouchList structure to npapi.h

    Needed by BrowserAdapter for the isis-project (webOS)
    Stuart Eichert committed May 25, 2012
Commits on May 16, 2012
  1. Merge branch 'master' into upstream-merge

    Philippe Normand committed May 16, 2012
  2. Merge remote-tracking branch 'webkitorg/master' into upstream-merge

    Conflicts:
    	Source/WebCore/bindings/v8/ScriptControllerQt.cpp
    	Source/WebCore/platform/graphics/qt/FontCustomPlatformDataQt.cpp
    	Source/WebCore/platform/graphics/qt/ImageQt.cpp
    	Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
    	Source/WebCore/plugins/PluginView.cpp
    	Source/WebCore/plugins/PluginView.h
    	Source/WebCore/plugins/npapi.h
    	Source/WebCore/plugins/qt/PluginViewQt.cpp
    	Tools/qmake/mkspecs/features/features.prf
    Philippe Normand committed May 15, 2012
Commits on May 15, 2012
  1. Unreviewed, rolling out r116811.

    http://trac.webkit.org/changeset/116811
    https://bugs.webkit.org/show_bug.cgi?id=86257
    
    Introduced layering violation
    
    Source/WebCore:
    
    * WebCore.gypi:
    
    Source/WebKit/chromium:
    
    * WebKit.gyp:
    * src/Extensions3DChromium.cpp: Renamed from Source/WebCore/platform/chromium/support/Extensions3DChromium.cpp.
    (WebCore):
    (WebCore::Extensions3DChromium::Extensions3DChromium):
    (WebCore::Extensions3DChromium::~Extensions3DChromium):
    (WebCore::Extensions3DChromium::supports):
    (WebCore::Extensions3DChromium::ensureEnabled):
    (WebCore::Extensions3DChromium::isEnabled):
    (WebCore::Extensions3DChromium::getGraphicsResetStatusARB):
    (WebCore::Extensions3DChromium::blitFramebuffer):
    (WebCore::Extensions3DChromium::renderbufferStorageMultisample):
    (WebCore::Extensions3DChromium::postSubBufferCHROMIUM):
    (WebCore::Extensions3DChromium::mapBufferSubDataCHROMIUM):
    (WebCore::Extensions3DChromium::unmapBufferSubDataCHROMIUM):
    (WebCore::Extensions3DChromium::mapTexSubImage2DCHROMIUM):
    (WebCore::Extensions3DChromium::unmapTexSubImage2DCHROMIUM):
    (WebCore::Extensions3DChromium::setVisibilityCHROMIUM):
    (WebCore::Extensions3DChromium::discardFramebufferEXT):
    (WebCore::Extensions3DChromium::ensureFramebufferCHROMIUM):
    (WebCore::Extensions3DChromium::setGpuMemoryAllocationChangedCallbackCHROMIUM):
    (WebCore::Extensions3DChromium::createVertexArrayOES):
    (WebCore::Extensions3DChromium::deleteVertexArrayOES):
    (WebCore::Extensions3DChromium::isVertexArrayOES):
    (WebCore::Extensions3DChromium::bindVertexArrayOES):
    (WebCore::Extensions3DChromium::getTranslatedShaderSourceANGLE):
    (WebCore::Extensions3DChromium::setSwapBuffersCompleteCallbackCHROMIUM):
    (WebCore::Extensions3DChromium::rateLimitOffscreenContextCHROMIUM):
    (WebCore::Extensions3DChromium::paintFramebufferToCanvas):
    (WebCore::Extensions3DChromium::texImageIOSurface2DCHROMIUM):
    (WebCore::Extensions3DChromium::texStorage2DEXT):
    (WebCore::Extensions3DChromium::createQueryEXT):
    (WebCore::Extensions3DChromium::deleteQueryEXT):
    (WebCore::Extensions3DChromium::isQueryEXT):
    (WebCore::Extensions3DChromium::beginQueryEXT):
    (WebCore::Extensions3DChromium::endQueryEXT):
    (WebCore::Extensions3DChromium::getQueryivEXT):
    (WebCore::Extensions3DChromium::getQueryObjectuivEXT):
    * src/GraphicsContext3DChromium.cpp: Renamed from Source/WebCore/platform/chromium/support/GraphicsContext3DChromium.cpp.
    (WebCore):
    (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
    (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
    (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext):
    (WebCore::GraphicsContext3DPrivate::extractWebGraphicsContext3D):
    (WebCore::GraphicsContext3DPrivate::platformGraphicsContext3D):
    (WebCore::GraphicsContext3DPrivate::platformTexture):
    (GrMemoryAllocationChangedCallback):
    (WebCore::GrMemoryAllocationChangedCallback::GrMemoryAllocationChangedCallback):
    (WebCore::GrMemoryAllocationChangedCallback::onGpuMemoryAllocationChanged):
    (WebCore::GraphicsContext3DPrivate::grContext):
    (WebCore::GraphicsContext3DPrivate::prepareTexture):
    (WebCore::GraphicsContext3DPrivate::markContextChanged):
    (WebCore::GraphicsContext3DPrivate::markLayerComposited):
    (WebCore::GraphicsContext3DPrivate::layerComposited):
    (WebCore::GraphicsContext3DPrivate::paintFramebufferToCanvas):
    (WebCore::GraphicsContext3DPrivate::paintRenderingResultsToCanvas):
    (WebCore::GraphicsContext3DPrivate::paintCompositedResultsToCanvas):
    (WebCore::GraphicsContext3DPrivate::paintRenderingResultsToImageData):
    (WebCore::GraphicsContext3DPrivate::reshape):
    (WebCore::GraphicsContext3DPrivate::getInternalFramebufferSize):
    (WebCore::GraphicsContext3DPrivate::isContextLost):
    (WebCore::GraphicsContext3DPrivate::isGLES2Compliant):
    (WebCore::GraphicsContext3DPrivate::bindAttribLocation):
    (WebCore::GraphicsContext3DPrivate::bufferData):
    (WebCore::GraphicsContext3DPrivate::bufferSubData):
    (WebCore::GraphicsContext3DPrivate::getActiveAttrib):
    (WebCore::GraphicsContext3DPrivate::getActiveUniform):
    (WebCore::GraphicsContext3DPrivate::getAttribLocation):
    (WebCore::GraphicsContext3DPrivate::getContextAttributes):
    (WebCore::GraphicsContext3DPrivate::getProgramInfoLog):
    (WebCore::GraphicsContext3DPrivate::getShaderInfoLog):
    (WebCore::GraphicsContext3DPrivate::getShaderSource):
    (WebCore::GraphicsContext3DPrivate::getString):
    (WebCore::GraphicsContext3DPrivate::getUniformLocation):
    (WebCore::GraphicsContext3DPrivate::shaderSource):
    (WebCore::GraphicsContext3DPrivate::texImage2D):
    (WebCore::GraphicsContext3DPrivate::texSubImage2D):
    (WebCore::GraphicsContext3DPrivate::uniform1fv):
    (WebCore::GraphicsContext3DPrivate::uniform1iv):
    (WebCore::GraphicsContext3DPrivate::uniform2fv):
    (WebCore::GraphicsContext3DPrivate::uniform2iv):
    (WebCore::GraphicsContext3DPrivate::uniform3fv):
    (WebCore::GraphicsContext3DPrivate::uniform3iv):
    (WebCore::GraphicsContext3DPrivate::uniform4fv):
    (WebCore::GraphicsContext3DPrivate::uniform4iv):
    (WebCore::GraphicsContext3DPrivate::uniformMatrix2fv):
    (WebCore::GraphicsContext3DPrivate::uniformMatrix3fv):
    (WebCore::GraphicsContext3DPrivate::uniformMatrix4fv):
    (WebCore::GraphicsContext3DPrivate::getExtensions):
    (WebCore::GraphicsContext3DPrivate::isResourceSafe):
    (WebCore::GraphicsContext3DPrivate::initializeExtensions):
    (WebCore::GraphicsContext3DPrivate::supportsExtension):
    (WebCore::GraphicsContext3DPrivate::ensureExtensionEnabled):
    (WebCore::GraphicsContext3DPrivate::isExtensionEnabled):
    (WebCore::GraphicsContext3D::GraphicsContext3D):
    (WebCore::GraphicsContext3D::~GraphicsContext3D):
    (WebCore::GraphicsContext3D::create):
    (WebCore::GraphicsContext3D::platformGraphicsContext3D):
    (WebCore::GraphicsContext3D::platformTexture):
    (WebCore::GraphicsContext3D::grContext):
    (WebCore::GraphicsContext3D::prepareTexture):
    (WebCore::GraphicsContext3D::getInternalFramebufferSize):
    (WebCore::GraphicsContext3D::isResourceSafe):
    (WebCore::GraphicsContext3D::platformLayer):
    (WebCore::GraphicsContext3D::layerComposited):
    (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
    (WebCore::GraphicsContext3D::paintRenderingResultsToImageData):
    (GraphicsContextLostCallbackAdapter):
    (WebCore::GraphicsContextLostCallbackAdapter::~GraphicsContextLostCallbackAdapter):
    (WebCore::GraphicsContextLostCallbackAdapter::GraphicsContextLostCallbackAdapter):
    (WebCore::GraphicsContextLostCallbackAdapter::onContextLost):
    (WebCore::GraphicsContextLostCallbackAdapter::create):
    (WebCore::GraphicsContext3DPrivate::setContextLostCallback):
    (GraphicsErrorMessageCallbackAdapter):
    (WebCore::GraphicsErrorMessageCallbackAdapter::~GraphicsErrorMessageCallbackAdapter):
    (WebCore::GraphicsErrorMessageCallbackAdapter::GraphicsErrorMessageCallbackAdapter):
    (WebCore::GraphicsErrorMessageCallbackAdapter::onErrorMessage):
    (WebCore::GraphicsErrorMessageCallbackAdapter::create):
    (WebCore::GraphicsContext3DPrivate::setErrorMessageCallback):
    (WebCore::GraphicsContext3D::isGLES2Compliant):
    (GraphicsContext3DSwapBuffersCompleteCallbackAdapter):
    (WebCore::GraphicsContext3DSwapBuffersCompleteCallbackAdapter::~GraphicsContext3DSwapBuffersCompleteCallbackAdapter):
    (WebCore::GraphicsContext3DSwapBuffersCompleteCallbackAdapter::GraphicsContext3DSwapBuffersCompleteCallbackAdapter):
    (WebCore::GraphicsContext3DSwapBuffersCompleteCallbackAdapter::onSwapBuffersComplete):
    (WebCore::GraphicsContext3DSwapBuffersCompleteCallbackAdapter::create):
    (WebCore::GraphicsContext3DPrivate::setSwapBuffersCompleteCallbackCHROMIUM):
    (GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
    (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
    (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::~GraphicsContext3DMemoryAllocationChangedCallbackAdapter):
    (WebCore::GraphicsContext3DMemoryAllocationChangedCallbackAdapter::onMemoryAllocationChanged):
    (WebCore::GraphicsContext3DPrivate::setGpuMemoryAllocationChangedCallbackCHROMIUM):
    * src/GraphicsContext3DPrivate.h: Renamed from Source/WebCore/platform/chromium/support/GraphicsContext3DPrivate.h.
    (WebKit):
    (WebCore):
    (GraphicsContext3DPrivate):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117110 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    jamesr@google.com committed May 15, 2012
  2. Font copy constructor unnecessarily recalculates transcoding

    https://bugs.webkit.org/show_bug.cgi?id=86490
    
    Reviewed by Dan Bernstein.
    
    * platform/graphics/Font.cpp:
    (WebCore::Font::Font): Copy m_needsTranscoding instead of recomputing it.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117109 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    darin@apple.com committed May 15, 2012
  3. Deep copy PluginModuleInfo before passing across thread boundary.

    <http://webkit.org/b/86491>
    <rdar://problem/11451178>
    
    Reviewed by Anders Carlsson.
    
    Source/WebCore:
    
    * plugins/PluginData.h:
    (MimeClassInfo):
    (WebCore::MimeClassInfo::isolatedCopy):
    (PluginInfo):
    (WebCore::PluginInfo::isolatedCopy):
    
    Source/WebKit2:
    
    Since the vector of PluginModuleInfo objects returned by PluginInfoStore::plugins()
    can end up being passed to another thread, we should clone it to make sure it's
    safe to do so.
    
    No new tests, speculative use-after-free fix.
    
    * Shared/Plugins/PluginModuleInfo.h:
    (PluginModuleInfo):
    (WebKit::PluginModuleInfo::isolatedCopy):
    * UIProcess/Plugins/PluginInfoStore.cpp:
    (WebKit::PluginInfoStore::plugins):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    kling@webkit.org committed May 15, 2012
  4. Unreviewed, rolling out r116712.

    http://trac.webkit.org/changeset/116712
    https://bugs.webkit.org/show_bug.cgi?id=86484
    
    This patch is causing crashes in Chromium Canary builds
    (Requested by pilgrim_google__ on #webkit).
    
    Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-05-15
    
    Source/WebCore:
    
    * storage/StorageArea.h:
    (StorageArea):
    * storage/StorageAreaImpl.cpp:
    (WebCore::StorageAreaImpl::disabledByPrivateBrowsingInFrame):
    (WebCore::StorageAreaImpl::setItem):
    (WebCore::StorageAreaImpl::removeItem):
    (WebCore::StorageAreaImpl::clear):
    * storage/StorageAreaImpl.h:
    (StorageAreaImpl):
    
    Source/WebKit/chromium:
    
    * WebKit.gyp:
    * public/WebStorageArea.h:
    (WebKit):
    * public/WebStorageEventDispatcher.h:
    (WebStorageEventDispatcher):
    (WebKit::WebStorageEventDispatcher::~WebStorageEventDispatcher):
    * public/WebStorageNamespace.h:
    (WebStorageNamespace):
    (WebKit::WebStorageNamespace::close):
    * public/platform/WebKitPlatformSupport.h:
    (WebKitPlatformSupport):
    (WebKit::WebKitPlatformSupport::dispatchStorageEvent):
    * src/StorageAreaProxy.cpp:
    (WebCore::StorageAreaProxy::setItem):
    (WebCore::StorageAreaProxy::removeItem):
    (WebCore::StorageAreaProxy::clear):
    (WebCore):
    (WebCore::StorageAreaProxy::storageEvent):
    (WebCore::StorageAreaProxy::dispatchLocalStorageEvent):
    (WebCore::findPageWithSessionStorageNamespace):
    (WebCore::StorageAreaProxy::dispatchSessionStorageEvent):
    * src/StorageAreaProxy.h:
    (WebCore):
    (StorageAreaProxy):
    * src/StorageEventDispatcherImpl.cpp: Added.
    (WebCore):
    (WebCore::StorageEventDispatcherImpl::StorageEventDispatcherImpl):
    (WebCore::StorageEventDispatcherImpl::dispatchStorageEvent):
    * src/StorageEventDispatcherImpl.h: Copied from Source/WebKit/chromium/public/WebStorageEventDispatcher.h.
    (WebCore):
    (StorageEventDispatcherImpl):
    * src/WebStorageEventDispatcherImpl.cpp:
    (WebKit):
    (WebKit::WebStorageEventDispatcher::dispatchLocalStorageEvent):
    (WebKit::WebStorageEventDispatcher::dispatchSessionStorageEvent):
    (WebKit::WebStorageEventDispatcher::create):
    (WebKit::WebStorageEventDispatcherImpl::WebStorageEventDispatcherImpl):
    (WebKit::WebStorageEventDispatcherImpl::dispatchStorageEvent):
    * src/WebStorageEventDispatcherImpl.h: Copied from Source/WebKit/chromium/public/WebStorageEventDispatcher.h.
    (WebKit):
    (WebStorageEventDispatcherImpl):
    * src/WebViewImpl.cpp:
    * src/WebViewImpl.h:
    (WebCore):
    (WebViewImpl):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117107 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    commit-queue@webkit.org committed May 15, 2012
  5. Optimize save/restore with no drawing operations between them (shows …

    …up on some canvas benchmarks)
    
    
    https://bugs.webkit.org/show_bug.cgi?id=86448
    
    Reviewed by Simon Fraser.
    
    Since canvas programmers sometimes end up doing extra save/restore pairs with no actual drawing
    in between, optimize that case by not realizing saves until we have to. This is doubly important
    because saves are costly.
    
    * html/canvas/CanvasRenderingContext2D.cpp:
    (WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D): Initialize m_unrealizedSaveCount.
    (WebCore::CanvasRenderingContext2D::isAccelerated): Improve performance by calling the
    drawingContext function only once.
    (WebCore::CanvasRenderingContext2D::reset): Set m_unrealizedSaveCount to 0.
    (WebCore::CanvasRenderingContext2D::realizeSavesLoop): Added. Replaces the save function as the
    function that actually pushes context onto the state stack.
    (WebCore::CanvasRenderingContext2D::restore): Added code to do an early return if we can do the
    restore just by decrementing the unrealized save count.
    (WebCore::CanvasRenderingContext2D::setStrokeStyle): Added calls to realizeSaves and replaced
    calls to state with calls to modifiableState.
    (WebCore::CanvasRenderingContext2D::setFillStyle): Ditto.
    (WebCore::CanvasRenderingContext2D::setLineWidth): Ditto. Also added an early out for cases where
    the line width is not changing.
    (WebCore::CanvasRenderingContext2D::setLineCap): Ditto.
    (WebCore::CanvasRenderingContext2D::setLineJoin): Ditto.
    (WebCore::CanvasRenderingContext2D::setMiterLimit): Ditto.
    (WebCore::CanvasRenderingContext2D::setShadowOffsetX): Ditto.
    (WebCore::CanvasRenderingContext2D::setShadowOffsetY): Ditto.
    (WebCore::CanvasRenderingContext2D::setShadowBlur): Ditto.
    (WebCore::CanvasRenderingContext2D::setShadowColor): Ditto.
    (WebCore::CanvasRenderingContext2D::setWebkitLineDash): Ditto.
    (WebCore::CanvasRenderingContext2D::setWebkitLineDashOffset): Ditto.
    (WebCore::CanvasRenderingContext2D::setGlobalAlpha): Ditto.
    (WebCore::CanvasRenderingContext2D::setGlobalCompositeOperation): Ditto.
    (WebCore::CanvasRenderingContext2D::scale): Ditto.
    (WebCore::CanvasRenderingContext2D::rotate): Ditto.
    (WebCore::CanvasRenderingContext2D::translate): Ditto.
    (WebCore::CanvasRenderingContext2D::transform): Ditto.
    (WebCore::CanvasRenderingContext2D::setTransform): Ditto.
    (WebCore::CanvasRenderingContext2D::setStrokeColor): Ditto.
    (WebCore::CanvasRenderingContext2D::setFillColor): Ditto.
    (WebCore::CanvasRenderingContext2D::clip): Ditto.
    (WebCore::CanvasRenderingContext2D::clearRect): Changed implementation so it does not save
    the graphics context in the common case where shadows, global alpha, and global compositing
    operators do not interfer with the function's operation. This allowed us to get rid of the
    setAllAttributesToDefault function, which was used nowhere else.
    (WebCore::CanvasRenderingContext2D::setShadow): Added a new common bottleneck and made all
    the setShadow functions call it.
    (WebCore::CanvasRenderingContext2D::clearShadow): Changed to call the new setShadow.
    (WebCore::CanvasRenderingContext2D::setFont): Renamed tempDecl to the more friendly
    parsedStyle. Changed code structure so the CSS parser is deleted right after parsing is
    done. Used string concatenation instead of more expensive string append. Added calls to
    realizeSaves and modifiableState.
    (WebCore::CanvasRenderingContext2D::setTextAlign): Added calls to realizeSaves and replaced
    calls to state with calls to modifiableState. Also added an early out for cases where the
    alignment is not changing.
    (WebCore::CanvasRenderingContext2D::setTextBaseline): Ditto.
    
    * html/canvas/CanvasRenderingContext2D.h: Made save an inline function that bumps
    m_unrealizedSaveCount. Removed setAllAttributesToDefault. Added OVERRIDE for all the
    virtual function overrides, and made them all private. Moved m_path down with the other data
    members. Renamed the non-const state function to modifiableState. Added a realizeSaves
    function and the realizeSavesLoop for the unusual case where there is work to do.
    Added m_unrealizedSaveCount.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117106 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    darin@apple.com committed May 15, 2012
  6. MediaStream API: Setting onended on a LocalMediaStream triggers an as…

    …sertion in V8
    
    
    https://bugs.webkit.org/show_bug.cgi?id=86459
    
    Reviewed by Adam Barth.
    
    Source/WebCore:
    
    LocalMediaStream inherits from MediaStream, but only MediaStream have the
    EventTarget idl attribute. Adding the attribute to LocalMediaStream as well fixes the issue.
    
    Test: fast/mediastream/LocalMediaStream-onended.html
    
    * Modules/mediastream/LocalMediaStream.idl:
    
    LayoutTests:
    
    * fast/mediastream/LocalMediaStream-onended-expected.txt: Added.
    * fast/mediastream/LocalMediaStream-onended.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117102 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    tommyw@google.com committed May 15, 2012
  7. [chromium] Remove unused code for tap target fuzzing

    https://bugs.webkit.org/show_bug.cgi?id=86252
    
    Patch by Terry Anderson <tdanderson@chromium.org> on 2012-05-15
    Reviewed by Adam Barth.
    
    Source/WebCore:
    
    No tests required since this is a cleanup of unused code.
    
    * page/EventHandler.cpp:
    (WebCore::EventHandler::handleGestureTap):
    * page/EventHandler.h:
    (EventHandler):
    The touch adjustment code will be used to determine the best target
    for a GestureTap event instead of passing in a pre-targeted node.
    * platform/PlatformGestureEvent.h:
    (WebCore::PlatformGestureEvent::PlatformGestureEvent):
    (PlatformGestureEvent):
    A rectangular touch region is defined by the touch center and the
    delta values only, so gammaX and gammaY are not needed.
    
    Source/WebKit/chromium:
    
    * public/WebInputEvent.h:
    (WebGestureEvent):
    (WebKit::WebGestureEvent::WebGestureEvent):
    * src/WebInputEvent.cpp:
    (SameSizeAsWebGestureEvent):
    * src/WebInputEventConversion.cpp:
    (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder):
    A rectangular touch region is defined by the touch center and the
    delta values only, so gammaX and gammaY are not needed.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117098 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    commit-queue@webkit.org committed May 15, 2012
  8. Guard Netscape plug-in code with ENABLE(NETSCAPE_PLUGIN_API)

    https://bugs.webkit.org/show_bug.cgi?id=86496
    
    Reviewed by Dan Bernstein.
    
    * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
    * Shared/Plugins/Netscape/NetscapePluginModule.h:
    * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
    * Shared/Plugins/Netscape/win/NetscapePluginModuleWin.cpp:
    * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
    * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
    (WebKit::PluginInfoStore::individualPluginPaths):
    (WebKit::PluginInfoStore::getPluginInfo):
    * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
    * WebProcess/Plugins/Netscape/JSNPMethod.h:
    * WebProcess/Plugins/Netscape/JSNPObject.cpp:
    * WebProcess/Plugins/Netscape/JSNPObject.h:
    * WebProcess/Plugins/Netscape/NPJSObject.cpp:
    * WebProcess/Plugins/Netscape/NPJSObject.h:
    * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
    * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h:
    * WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp:
    * WebProcess/Plugins/Netscape/NPRuntimeUtilities.h:
    * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
    * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.h:
    * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
    * WebProcess/Plugins/Netscape/NetscapePlugin.h:
    * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp:
    * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
    * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
    * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
    * WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.h:
    * WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm:
    * WebProcess/Plugins/Netscape/qt/PluginProxyQt.cpp:
    * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
    * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117095 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    aestes@apple.com committed May 15, 2012
  9. [Qt] WebKit with Qt5 hangs on Mac

    https://bugs.webkit.org/show_bug.cgi?id=79785
    
    Reviewed by Tor Arne Vestbø.
    
    Delay the initialization of our QNetworkConfigurationManager used in
    NetworkStateNotifierPrivate. On Mac it was causing a race condition because it
    spawns a thread that triggers a static initializer in Qt, while in the main
    thread NetworkStateNotifier is being static initialized. On Mac the lock for
    static initializers is shared between all of them, causing a deadlock.
    
    The issue was also reported in http://openradar.appspot.com/11217150.
    
    * platform/network/qt/NetworkStateNotifierPrivate.h:
    (NetworkStateNotifierPrivate):
    (WebCore::NetworkStateNotifierPrivate::effectivelyOnline):
    * platform/network/qt/NetworkStateNotifierQt.cpp:
    (WebCore::NetworkStateNotifierPrivate::NetworkStateNotifierPrivate):
    (WebCore::NetworkStateNotifierPrivate::setNetworkAccessAllowed):
    (WebCore::NetworkStateNotifierPrivate::setOnlineState):
    (WebCore::NetworkStateNotifierPrivate::initialize):
    (WebCore):
    (WebCore::NetworkStateNotifierPrivate::~NetworkStateNotifierPrivate):
    (WebCore::NetworkStateNotifier::updateState):
    (WebCore::NetworkStateNotifier::NetworkStateNotifier):
    (WebCore::NetworkStateNotifier::setNetworkAccessAllowed):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    caio.oliveira@openbossa.org committed May 15, 2012
  10. Factor HitTestPoint out of HitTestResult.

    https://bugs.webkit.org/show_bug.cgi?id=85965
    
    Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-05-15
    Reviewed by Simon Fraser.
    
    In preparation for handling transformations on area-based hit-testing,
    we need to factor test-point and test-area out of HitTestResult so that
    it can be transformed independently.
    
    To maintain the current API as closely as possible HitTestResult now
    inherit from HitTestPoint, representing the original untransformed
    hitTestPoint.
    
    No change in functionality. No new tests.
    
    * rendering/HitTestResult.cpp:
    (WebCore::HitTestPoint::HitTestPoint):
    (WebCore::HitTestPoint::~HitTestPoint):
    (WebCore::HitTestPoint::operator=):
    (WebCore::HitTestPoint::rectForPoint):
    (WebCore::HitTestResult::HitTestResult):
    (WebCore::HitTestResult::operator=):
    (WebCore::HitTestResult::isSelected):
    (WebCore::HitTestResult::spellingToolTip):
    (WebCore::HitTestResult::replacedString):
    * rendering/HitTestResult.h:
    (HitTestPoint):
    (WebCore::HitTestPoint::point):
    (WebCore::HitTestPoint::roundedPoint):
    (WebCore::HitTestPoint::setPoint):
    (WebCore::HitTestPoint::isRectBasedTest):
    (WebCore::HitTestPoint::topPadding):
    (WebCore::HitTestPoint::rightPadding):
    (WebCore::HitTestPoint::bottomPadding):
    (WebCore::HitTestPoint::leftPadding):
    (HitTestResult):
    (WebCore::HitTestResult::hitTestPoint):
    (WebCore::HitTestPoint::rectForPoint):
    * rendering/RenderLayer.cpp:
    (WebCore::RenderLayer::hitTestLayer):
    (WebCore::RenderLayer::hitTestList):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    commit-queue@webkit.org committed May 15, 2012
  11. Skip a webarchive test I added that fails on WK2.

    * platform/wk2/Skipped:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117090 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    beidson@apple.com committed May 15, 2012
  12. Unreviewed. Updated chromium test expectations.

    * platform/chromium/test_expectations.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    jianli@chromium.org committed May 15, 2012
  13. [Chromium] Unreviewed. Rebaseline svg/repaint/mask-clip-target-transf…

    …orm-expected.png.
    
    Patch by Florin Malita <fmalita@chromium.org> on 2012-05-15
    
    * platform/chromium-mac/svg/repaint/mask-clip-target-transform-expected.png: Added.
    * platform/chromium-win/svg/repaint/mask-clip-target-transform-expected.png: Added.
    * platform/chromium/test_expectations.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fmalita@chromium.org committed May 15, 2012
  14. Refactor SVG parts of Node::addEventListener/removeEventListener

    https://bugs.webkit.org/show_bug.cgi?id=86426
    
    Reviewed by Nikolas Zimmermann.
    
    Move SVG parts of Node::addEventListener/removeEventListener into svg/. Now we do not
    have to check in Node::addEventListener/removeEventListener if we are dealing with an SVG
    element. Make tryAddEventListener/tryRemoveEventListener protected methods on Node to be able to use
    it in SVGElement.
    
    No new tests, since no change in behavior, just refactoring.
    
    * dom/Node.cpp:
    (WebCore::tryAddEventListener):
    (WebCore::Node::addEventListener):
    (WebCore::tryRemoveEventListener):
    (WebCore::Node::removeEventListener):
    * svg/SVGElement.cpp:
    (WebCore::collectInstancesForSVGElement):
    (WebCore):
    (WebCore::SVGElement::addEventListener):
    (WebCore::SVGElement::removeEventListener):
    * svg/SVGElement.h:
    (SVGElement):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117086 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    rwlbuis@webkit.org committed May 15, 2012