1. 03 Feb, 2012 13 commits
    • haraken@chromium.org's avatar
      Add the "CPP" prefix to CPP specific IDL attributes · afeb95d4
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77707
      
      Reviewed by Adam Barth.
      
      This patch adds the "CPP" prefix to a CPP specific IDL attribute.
      Specifically, this patch renames [PureInterface] to [CPPPureInterface]
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorCPP.pm:
      (GenerateHeader):
      (GenerateImplementation):
      * css/MediaQueryListListener.idl:
      * dom/EventListener.idl:
      * dom/EventTarget.idl:
      * dom/NodeFilter.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      afeb95d4
    • apavlov@chromium.org's avatar
      Implement touch event emulation in the WebCore layer · 4362021b
      apavlov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77105
      
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      This change essentially maps mouse events into single-touch events in the following way:
      - mousedown -> touchstart
      - mouseup -> touchend
      - mousemove -> touchmove (between mousedown and mouseup).
      
      Test: fast/events/touch/emulate-touch-events.html
      
      * page/EventHandler.cpp:
      (SyntheticTouchPoint): A synthetic touch point built from PlatformMouseEvent.
      (WebCore::SyntheticTouchPoint::SyntheticTouchPoint):
      (SyntheticSingleTouchEvent): A synthetic touch point event built from PlatformMouseEvent.
      (WebCore::SyntheticSingleTouchEvent::SyntheticSingleTouchEvent):
      (WebCore::EventHandler::handleMouseReleaseEvent): Invoke maybeDispatchSyntheticTouchEvent() and bail out if necessary.
      (WebCore::EventHandler::handleMousePressEvent): Invoke maybeDispatchSyntheticTouchEvent() and bail out if necessary.
      (WebCore::EventHandler::mouseMoved): Invoke maybeDispatchSyntheticTouchEvent() and bail out if necessary.
      (WebCore::EventHandler::dispatchSyntheticTouchEventIfEnabled): Dispatch a synthetic touch event if necessary.
      * page/EventHandler.h: Added new method.
      * page/Settings.cpp:
      (WebCore::Settings::Settings): Added m_touchEventEmulationEnabled initializer.
      * page/Settings.h: Added m_touchEventEmulationEnabled, getter, and setter.
      (WebCore::Settings::setTouchEventEmulationEnabled): Added.
      (WebCore::Settings::isTouchEventEmulationEnabled): Added.
      * platform/PlatformTouchPoint.h:
      (WebCore::PlatformTouchPoint::PlatformTouchPoint): Unconditionally compile the parameterless ctor.
      * testing/InternalSettings.cpp:
      (WebCore::InternalSettings::setTouchEventEmulationEnabled): Added for testing.
      * testing/InternalSettings.h: Added setTouchEventEmulationEnabled() for testing.
      * testing/InternalSettings.idl: Added setTouchEventEmulationEnabled() for testing.
      
      LayoutTests:
      
      * fast/events/touch/emulate-touch-events-expected.txt: Added.
      * fast/events/touch/emulate-touch-events.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4362021b
    • abarth@webkit.org's avatar
      Group all the security failures together. · 51f54b6b
      abarth@webkit.org authored
      * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      51f54b6b
    • haraken@chromium.org's avatar
      Remove [NoCPPCustom] IDL · 0e4ddfea
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77704
      
      Reviewed by Adam Barth.
      
      This patch removes [NoCPPCustom], by replacing [Custom, NoCPPCustom]
      in HTMLDocument.idl with [JSCCustom, V8Custom].
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorCPP.pm:
      (ShouldSkipType):
      * html/HTMLDocument.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e4ddfea
    • haraken@chromium.org's avatar
      Remove [LegacyParent] from CodeGeneratorGObject.pm, and rename it to [JSLegacyParent] · ef73ea8b
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77706
      
      Reviewed by Adam Barth.
      
      This patch removes dead code about [LegacyParent] from CodeGeneratorGObject.pm,
      and renames [LegacyParent] to [JSLegacyParent].
      
      No tests. No changes in behavior.
      
      * bindings/scripts/CodeGeneratorGObject.pm:
      (Generate):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GetParentClassName):
      (GenerateHeader):
      (GenerateImplementation):
      * page/DOMWindow.idl:
      * workers/WorkerContext.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef73ea8b
    • pfeldman@chromium.org's avatar
      Web Inspector: preserve elements panel selection upon node drag'n'drop · f985d588
      pfeldman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77722
      
      Reviewed by Vsevolod Vlasov.
      
      Source/WebCore:
      
      Test: inspector/elements/move-node.html
      
      * inspector/front-end/DOMAgent.js:
      (WebInspector.DOMAgent.prototype._markRevision):
      * inspector/front-end/ElementsTreeOutline.js:
      (WebInspector.ElementsTreeOutline.prototype._ondrop):
      (WebInspector.ElementsTreeOutline.prototype._doMove.callback):
      (WebInspector.ElementsTreeOutline.prototype._doMove):
      
      LayoutTests:
      
      * inspector/elements/move-node-expected.txt: Added.
      * inspector/elements/move-node.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f985d588
    • commit-queue@webkit.org's avatar
      Source/WebCore: Reimplement DETAILS and SUMMARY using selector query. · 4a5af418
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75930
      
      Patch by Shinya Kawanaka <shinyak@google.com> on 2012-02-03
      Reviewed by Hajime Morita.
      
      DETAILS is reimplemented using content element and its fallback feature.
      We don't need to recreate DOM even if SUMMARY is removed from or added into DETAILS.
      
      No new tests, should be covered by existing tests.
      
      * html/HTMLDetailsElement.cpp:
      (WebCore::DetailsSummaryElement::fallbackSummary):
        Takes fallback element of content summary.
      (DetailsSummaryElement):
      (WebCore::DetailsSummaryElement::create):
        Creates a fallback element also.
      (WebCore):
      (WebCore::HTMLDetailsElement::create):
      (WebCore::HTMLDetailsElement::HTMLDetailsElement):
      (WebCore::HTMLDetailsElement::createShadowSubtree):
      (WebCore::HTMLDetailsElement::findMainSummary):
      (WebCore::HTMLDetailsElement::parseMappedAttribute):
      (WebCore::HTMLDetailsElement::childShouldCreateRenderer):
      (WebCore::HTMLDetailsElement::toggleOpen):
      * html/HTMLDetailsElement.h:
      (HTMLDetailsElement):
      * html/HTMLSummaryElement.cpp:
      (WebCore::HTMLSummaryElement::isMainSummary):
      
      LayoutTests: Reimplement DETAILS and SUMMARY using selector query.
      https://bugs.webkit.org/show_bug.cgi?id=75930
      
      Since the implementation of DETAILS shadow tree, the path of caret position is also changed.
      
      Patch by Shinya Kawanaka <shinyak@google.com> on 2012-02-03
      Reviewed by Hajime Morita.
      
      * platform/chromium-win/fast/html/details-remove-summary-1-and-click-expected.txt:
      * platform/chromium-win/fast/html/details-remove-summary-4-and-click-expected.txt:
      * platform/gtk/fast/html/details-remove-summary-1-and-click-expected.txt:
      * platform/gtk/fast/html/details-remove-summary-4-and-click-expected.txt:
      * platform/mac/fast/html/details-remove-summary-1-and-click-expected.txt:
      * platform/mac/fast/html/details-remove-summary-4-and-click-expected.txt:
      * platform/qt/fast/html/details-remove-summary-1-and-click-expected.txt:
      * platform/qt/fast/html/details-remove-summary-4-and-click-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4a5af418
    • jochen@chromium.org's avatar
      Crash when trying to add a timer to a detached document. · b7158476
      jochen@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77692
      
      Reviewed by Alexey Proskuryakov.
      
      In http://webkit.org/b/77370, a timer is fired on a detached document.
      Since a document clears all timers when it is detached, and it
      shouldn't be possible to add a timer to a detached document, we crash
      if this should happen anyway. This will hopefully result in an easier
      to debug crash dump.
      
      * page/DOMTimer.cpp:
      (WebCore::DOMTimer::DOMTimer):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b7158476
    • commit-queue@webkit.org's avatar
      Stop calling Element::ensureShadowRoot in Internals. · eb51612e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77612
      
      Patch by Shinya Kawanaka <shinyak@google.com> on 2012-02-03
      Reviewed by Hajime Morita.
      
      .:
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore:
      
      We want to check a shadow root is built-in or created by users to support multiple shadow subtrees.
      But Element::ensureShadowRoot() makes it difficult, because it doesn't care about the returning shadow element
      is built-in or user generated, so let's remove Element::ensureShadowRoot().
      
      As a first step, this patch removes ensureShadowRoot() in Internals.
      
      No new tests, because no changes in behavior.
      
      * WebCore.exp.in:
      * testing/Internals.cpp:
      (WebCore::Internals::ensureShadowRoot):
      
      Source/WebKit2:
      
      Exports symbols.
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb51612e
    • mrowe@apple.com's avatar
      <http://webkit.org/b/77717> Makefile should provide control over output verbosity · aac5dabe
      mrowe@apple.com authored
      Allow the filtering of the output of our Makefile to be configured via a user default
      and overriden via a command-line argument to make.
      
      The Makefile takes the verbosity from BuildTranscriptVerbosity default in the
      org.webkit.BuildConfiguration domain. The supported values are "default", "quiet"
      and "noisy". "default" maintains the existing behavior of only filtering out
      the setenv lines from Xcode's shell script build phases. "quiet" filters all output
      through filter-build-webkit. "noisy" provides unfiltered output. The verbosity can
      be overriden for a single invocation of make by specifying the VERBOSITY variable
      on the make command line.
      
      To always get full output:
      defaults write org.webkit.BuildConfiguration BuildTranscriptVerbosity noisy
      
      To always get filtered ouptut:
      defaults write org.webkit.BuildConfiguration BuildTranscriptVerbosity quiet
      
      To get full output for a single build:
      make VERBOSITY=noisy
      
      Reviewed by Dan Bernstein.
      
      * Makefile.shared:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aac5dabe
    • commit-queue@webkit.org's avatar
      Web Inspector: Always show percents together with counters in heap inspector. · 3398423f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77434
      
      Source/WebCore:
      
      Patch by Alexei Filippov <alexeif@chromium.org> on 2012-02-02
      Reviewed by Pavel Feldman.
      
      * inspector/front-end/DetailedHeapshotGridNodes.js:
      (WebInspector.HeapSnapshotGridNode.prototype._toPercentString):
      (WebInspector.HeapSnapshotGridNode.prototype._createValueCell):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.createCell):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.get data):
      (WebInspector.HeapSnapshotConstructorNode.prototype.createCell):
      (WebInspector.HeapSnapshotConstructorNode.prototype.get data):
      (WebInspector.HeapSnapshotDiffNode.prototype.get data):
      * inspector/front-end/DetailedHeapshotView.js:
      (WebInspector.HeapSnapshotContainmentDataGrid):
      (WebInspector.HeapSnapshotConstructorsDataGrid):
      (WebInspector.HeapSnapshotDiffDataGrid):
      (WebInspector.HeapSnapshotDominatorsDataGrid):
      (WebInspector.DetailedHeapshotView.prototype._mouseDownInContentsGrid):
      (WebInspector.DetailedHeapshotView.prototype.get _isShowingAsPercent):
      (WebInspector.DetailedHeapshotView.prototype._percentClicked):
      * inspector/front-end/heapProfiler.css:
      (.detailed-heapshot-view .data-grid span.percent-column):
      
      LayoutTests:
      
      Added parseInt conversion as counters are now strings not ints.
      
      Patch by Alexei Filippov <alexeif@chromium.org> on 2012-02-02
      Reviewed by Pavel Feldman.
      
      * inspector/profiler/detailed-heapshots-comparison-show-all.html:
      * inspector/profiler/detailed-heapshots-comparison-show-next.html:
      * inspector/profiler/detailed-heapshots-summary-show-all.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3398423f
    • commit-queue@webkit.org's avatar
      Use content-language from http-equiv to set document locale and font · 335d75e4
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76701
      
      Patch by Matt Falkenhagen <falken@chromium.org> on 2012-02-02
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      So far, only content-language set through http-equiv is used; the HTTP Content-Language
      header is not yet supported.
      
      Tests: fast/text/content-language-case-insensitivity.html
             fast/text/content-language-mapped-to-webkit-locale.html
             fast/text/international/content-language-font-selection-expected.html
             fast/text/international/content-language-font-selection.html
             fast/text/international/content-language-with-subtags-expected.html
             fast/text/international/content-language-with-subtags.html
      
      * css/CSSStyleSelector.cpp:
      (WebCore::CSSStyleSelector::styleForDocument): Use content language when selecting initial font.
      * dom/Document.cpp:
      (WebCore::Document::setContentLanguage): Recalculate style so language is taken into account.
      (WebCore):
      * dom/Document.h:
      (Document):
      
      LayoutTests:
      
      Add tests that content-language from http-equiv sets document locale and is used in font selection.
      
      * fast/text/content-language-case-insensitivity-expected.txt: Added.
      * fast/text/content-language-case-insensitivity.html: Added.
      * fast/text/content-language-mapped-to-webkit-locale-expected.txt: Added.
      * fast/text/content-language-mapped-to-webkit-locale.html: Added.
      * fast/text/international/content-language-font-selection-expected.html: Added.
      * fast/text/international/content-language-font-selection.html: Added.
      * fast/text/international/content-language-with-subtags-expected.html: Added.
      * fast/text/international/content-language-with-subtags.html: Added.
      * fast/text/lang-mapped-to-webkit-locale-expected.txt:
      * fast/text/lang-mapped-to-webkit-locale.xhtml: Fix some style issues.
      * fast/text/xml-lang-ignored-in-html-expected.txt:
      * fast/text/xml-lang-ignored-in-html.html: Fix some style issues.
      * platform/efl/Skipped: Skip tests using overridePreference("WebKit*FontMap"...) on non-Chromium ports.
      * platform/gtk-wk2/Skipped: Ditto.
      * platform/gtk/Skipped: Ditto.
      * platform/mac/Skipped: Ditto.
      * platform/qt/Skipped: Ditto.
      * platform/win/Skipped: Ditto.
      * platform/wincairo/Skipped: Ditto.
      * platform/wk2/Skipped: Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      335d75e4
    • ossy@webkit.org's avatar
      [Qt] Unreviewed gardening after r106554. · 1dfe7331
      ossy@webkit.org authored
      * platform/qt/Skipped: Skip one more failing test.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1dfe7331
  2. 02 Feb, 2012 27 commits
    • ossy@webkit.org's avatar
      Unreviewed, rolling out r106620. · d514cb61
      ossy@webkit.org authored
      http://trac.webkit.org/changeset/106620
      https://bugs.webkit.org/show_bug.cgi?id=77716
      
      It broke non ENABLE(3D_RENDERING) builds (Requested by
      Ossy_morning on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-02-02
      
      Source/WebCore:
      
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * platform/graphics/GraphicsContext.h:
      (WebCore):
      (GraphicsContext):
      * platform/graphics/cairo/TextureMapperCairo.cpp:
      (WebCore::TextureMapper::create):
      (WebCore):
      * platform/graphics/opengl/TextureMapperGL.cpp:
      (Entry):
      (DirectlyCompositedImageRepository):
      (WebCore::TextureMapperGLData::DirectlyCompositedImageRepository::findOrCreate):
      (WebCore::TextureMapperGLData::DirectlyCompositedImageRepository::deref):
      (WebCore::TextureMapperGLData::DirectlyCompositedImageRepository::DirectlyCompositedImageRepository):
      (WebCore::TextureMapperGLData::DirectlyCompositedImageRepository::~DirectlyCompositedImageRepository):
      (TextureMapperGLData):
      (BitmapTextureGL):
      (WebCore::BitmapTextureGL::isOpaque):
      (WebCore::BitmapTextureGL::pack):
      (WebCore::BitmapTextureGL::unpack):
      (WebCore::BitmapTextureGL::isPacked):
      (WebCore::BitmapTextureGL::BitmapTextureGL):
      (WebCore::TextureMapperGL::beginPainting):
      (WebCore::BitmapTextureGL::reset):
      (WebCore::BitmapTextureGL::beginPaint):
      (WebCore::BitmapTextureGL::endPaint):
      (WebCore):
      (WebCore::BitmapTextureGL::updateContents):
      (WebCore::BitmapTextureGL::updateRawContents):
      (WebCore::BitmapTextureGL::setContentsToImage):
      (WebCore::BitmapTextureGL::destroy):
      (WebCore::TextureMapperGL::bindSurface):
      * platform/graphics/opengl/TextureMapperGL.h:
      (TextureMapperGL):
      (WebCore::TextureMapperGL::allowSurfaceForRoot):
      (BGRA32PremultimpliedBuffer):
      (WebCore::BGRA32PremultimpliedBuffer::~BGRA32PremultimpliedBuffer):
      (WebCore):
      * platform/graphics/qt/GraphicsContext3DQt.cpp:
      (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
      * platform/graphics/qt/GraphicsContextQt.cpp:
      * platform/graphics/qt/TextureMapperQt.cpp: Added.
      (WebCore):
      (WebCore::BitmapTextureQt::destroy):
      (WebCore::BitmapTextureQt::reset):
      (WebCore::BitmapTextureQt::beginPaint):
      (WebCore::BitmapTextureQt::endPaint):
      (WebCore::BitmapTextureQt::updateContents):
      (WebCore::BitmapTextureQt::save):
      (WebCore::BitmapTextureQt::setContentsToImage):
      (WebCore::BitmapTextureQt::pack):
      (WebCore::BitmapTextureQt::unpack):
      (WebCore::TextureMapperQt::beginClip):
      (WebCore::TextureMapperQt::endClip):
      (WebCore::TextureMapperQt::viewportSize):
      (WebCore::TextureMapperQt::TextureMapperQt):
      (WebCore::TextureMapperQt::setGraphicsContext):
      (WebCore::TextureMapperQt::graphicsContext):
      (WebCore::TextureMapperQt::bindSurface):
      (WebCore::TextureMapperQt::drawTexture):
      (WebCore::TextureMapper::create):
      (WebCore::TextureMapperQt::createTexture):
      (WebCore::BitmapTextureQt::BitmapTextureQt):
      (WebCore::TextureMapperQt::beginPainting):
      (WebCore::TextureMapperQt::endPainting):
      (BGRA32PremultimpliedBufferQt):
      (WebCore::BGRA32PremultimpliedBufferQt::beginPaint):
      (WebCore::BGRA32PremultimpliedBufferQt::endPaint):
      (WebCore::BGRA32PremultimpliedBufferQt::data):
      (WebCore::BGRA32PremultimpliedBuffer::create):
      (WebCore::uidForImage):
      * platform/graphics/qt/TextureMapperQt.h: Added.
      (WebCore):
      (BitmapTextureQt):
      (WebCore::BitmapTextureQt::~BitmapTextureQt):
      (WebCore::BitmapTextureQt::size):
      (WebCore::BitmapTextureQt::isValid):
      (WebCore::BitmapTextureQt::sourceRect):
      (WebCore::BitmapTextureQt::isPacked):
      (WebCore::BitmapTextureQt::painter):
      (TextureMapperQt):
      (WebCore::TextureMapperQt::allowSurfaceForRoot):
      (WebCore::TextureMapperQt::initialize):
      (WebCore::TextureMapperQt::create):
      (WebCore::TextureMapperQt::currentPainter):
      * platform/graphics/texmap/TextureMapper.cpp:
      * platform/graphics/texmap/TextureMapper.h:
      (WebCore::BitmapTexture::BitmapTexture):
      (WebCore::BitmapTexture::allowOfflineTextureUpload):
      (BitmapTexture):
      (WebCore::BitmapTexture::pack):
      (WebCore::BitmapTexture::unpack):
      (WebCore::BitmapTexture::isPacked):
      (WebCore::BitmapTexture::updateRawContents):
      (WebCore::BitmapTexture::beginPaintMedia):
      (WebCore::BitmapTexture::save):
      (WebCore::BitmapTexture::lock):
      (WebCore::BitmapTexture::unlock):
      (WebCore::BitmapTexture::isLocked):
      (TextureMapper):
      (WebCore::TextureMapper::viewportSize):
      (WebCore::TextureMapper::setViewportSize):
      (WebCore::TextureMapper::allowPartialUpdates):
      (WebCore::TextureMapper::isOpenGLBacked):
      (WebCore::TextureMapper::setTransform):
      (WebCore::TextureMapper::transform):
      * platform/graphics/texmap/TextureMapperImageBuffer.cpp: Removed.
      * platform/graphics/texmap/TextureMapperImageBuffer.h: Removed.
      * platform/graphics/texmap/TextureMapperNode.cpp:
      (WebCore::TextureMapperNode::renderContent):
      (WebCore::TextureMapperNode::setContentsTileBackBuffer):
      * platform/graphics/texmap/TextureMapperNode.h:
      (TextureMapperNode):
      
      Source/WebKit/qt:
      
      * Api/qwebframe.cpp:
      (QWebFramePrivate::renderCompositedLayers):
      * WebCoreSupport/PageClientQt.cpp:
      (WebCore::PageClientQWidget::setRootGraphicsLayer):
      (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
      
      Source/WebKit2:
      
      * UIProcess/qt/LayerTreeHostProxyQt.cpp:
      (WebKit::LayerTreeHostProxy::paintToCurrentGLContext):
      (WebKit::LayerTreeHostProxy::paintToGraphicsContext):
      (WebKit::LayerTreeHostProxy::createImage):
      (WebKit::LayerTreeHostProxy::ensureRootLayer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d514cb61
    • mikelawther@chromium.org's avatar
      gradient tests for CSS3 calc · b59b0543
      mikelawther@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75822
      
      Reviewed by Hajime Morita.
      
      Tests for future implementation of CSS3 calc() (see http://webkit.org/b/16662)
      
      These tests are expected to 'fail', and will pass once calc() functionality is landed.
      For now, they serve to demonstrate that the current code doesn't crash on these tests.
      
      * css3/calc/css3-radial-gradients-expected-mismatch.html: Added.
      * css3/calc/css3-radial-gradients.html: Added.
      * css3/calc/gradient-color-stops-expected-mismatch.html: Added.
      * css3/calc/gradient-color-stops.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b59b0543
    • keishi@webkit.org's avatar
      ColorInputType needs to use ensureInlineStyleDecl · ee81440f
      keishi@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77699
      
      Reviewed by Kent Tamura.
      
      Because WebCore internally should use the more specific CSSMutableStyleDeclaration
      http://trac.webkit.org/changeset/105739
      
      * html/ColorInputType.cpp:
      (WebCore::ColorInputType::updateColorSwatch):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee81440f
    • commit-queue@webkit.org's avatar
      [EFL] Add contentsSize flag into ewk_tiled_backing_store's private data. · 22390e18
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77586
      
      Patch by KwangHyuk Kim <hyuki.kim@samsung.com> on 2012-02-02
      Reviewed by Andreas Kling.
      
      As both zoom and content size change are identified by model flag,
      ewk_tiled_backing_store can not detect the conflict between them.
      In order to prevent conflict between zoom and contents size change,
      contentsSize flag is newly added.
      
      * ewk/ewk_tiled_backing_store.cpp:
      (_Ewk_Tiled_Backing_Store_Item):
      (_Ewk_Tiled_Backing_Store_Data):
      (_ewk_tiled_backing_store_smart_calculate):
      (ewk_tiled_backing_store_contents_resize):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106627 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22390e18
    • rolandsteiner@chromium.org's avatar
      Simplify SelectorChecker::checkSelector and checkOneSelector · 868aa8a8
      rolandsteiner@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77697
      
      Make use of Element::previous/nextElementSibling.
      Made those methods inline.
      Simplify code in checkSelector and checkOneSelector, esp. for first/nth/nth-last/last/only-child implementations.
      
      Reviewed by Andreas Kling.
      
      No new tests. (refactoring)
      
      * css/SelectorChecker.cpp:
      (WebCore::SelectorChecker::checkSelector):
      (WebCore::SelectorChecker::checkOneSelector):
      * dom/Element.cpp:
      * dom/Element.h:
      (WebCore::Element::previousElementSibling):
      (WebCore):
      (WebCore::Element::nextElementSibling):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106626 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      868aa8a8
    • keishi@webkit.org's avatar
      ColorChooserClient is missing a virtual destructor · cfbc827a
      keishi@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77698
      
      Reviewed by Kent Tamura.
      
      * platform/ColorChooserClient.h:
      (WebCore::ColorChooserClient::~ColorChooserClient): Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cfbc827a
    • keishi@webkit.org's avatar
      Remove OVERRIDE from ColorInputType::valueAsColor · deeddc9f
      keishi@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77701
      
      Reviewed by Kent Tamura.
      
      * html/ColorInputType.h:
      (WebCore::ColorInputType::valueAsColor):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      deeddc9f
    • commit-queue@webkit.org's avatar
      Support 'disabled' attribute on SVGStyleElement · 268cc3d2
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=52130
      
      Source/WebCore:
      
      Adding disabled property to SVGStyleElement, which
      mirrors the functionality added to HTMLStyleElement
      for DOM1. The disabled property reflects and sets
      the disabled state of its style sheet.
      
      Based off of patch for bug 25287
      
      Patch by Bear Travis <betravis@adobe.com> on 2012-02-02
      Reviewed by Dirk Schulze.
      
      Test: svg/dom/SVGStyleElement/disable-svg-style-element.html
      
      * svg/SVGStyleElement.cpp:
      (WebCore::SVGStyleElement::disabled):
      (WebCore):
      (WebCore::SVGStyleElement::setDisabled):
      * svg/SVGStyleElement.h:
      (SVGStyleElement):
      * svg/SVGStyleElement.idl:
      
      LayoutTests:
      
      Test the disabled property of an svg style element.
      Based off of the patch for bug 25287.
      
      Patch by Bear Travis <betravis@adobe.com> on 2012-02-02
      Reviewed by Dirk Schulze.
      
      * svg/dom/SVGStyleElement/disable-svg-style-element-expected.txt: Added.
      * svg/dom/SVGStyleElement/disable-svg-style-element.html: Added.
      * svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js: Added.
      (createStyle):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106623 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      268cc3d2
    • hayato@chromium.org's avatar
      Make ShadowRoot interface inherit DocumentFragment interface in IDL. · 36251e60
      hayato@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77511
      
      Reviewed by Kentaro Hara.
      
      This patch contains only the change of IDL to isolate issues.
      Other changes, such as tests for querySelector of ShadowRoot, will be added in follow-up patches.
      
      No tests. No change in behavior.
      
      * dom/ShadowRoot.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106622 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36251e60
    • commit-queue@webkit.org's avatar
      Check parameters to biquad filters · 183b9cc4
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=71413
      
      Source/WebCore:
      
      Patch by Raymond Toy <rtoy@google.com> on 2012-02-02
      Reviewed by Kenneth Russell.
      
      Tests added for each filter type and for the limiting cases for
      each filter type.
      
      * platform/audio/Biquad.cpp:
      (WebCore::Biquad::setLowpassParams):
      (WebCore::Biquad::setHighpassParams):
      (WebCore::Biquad::setLowShelfParams):
      (WebCore::Biquad::setHighShelfParams):
      (WebCore::Biquad::setPeakingParams):
      (WebCore::Biquad::setAllpassParams):
      (WebCore::Biquad::setNotchParams):
      (WebCore::Biquad::setBandpassParams):
      Check for invalid parameters and clip them to something sensible.
      Also check for the limiting cases and try to use the limiting form
      of the z-transform for the biquad.  Some issues cannot be
      consistently handled because the z-transform is not continuous as
      the parameters approach the limit.
      
      LayoutTests:
      
      Patch by Raymond Toy <rtoy@chromium.org> on 2012-02-02
      Reviewed by Kenneth Russell.
      
      * webaudio/biquad-allpass-expected.txt: Added
      * webaudio/biquad-allpass.html: Added
      * webaudio/biquad-bandpass-expected.txt: Added
      * webaudio/biquad-bandpass.html: Added
      * webaudio/biquad-highpass-expected.txt: Added
      * webaudio/biquad-highpass.html: Added
      * webaudio/biquad-highshelf-expected.txt: Added
      * webaudio/biquad-highshelf.html: Added
      * webaudio/biquad-lowpass-expected.txt: Added
      * webaudio/biquad-lowpass.html: Added
      * webaudio/biquad-lowshelf-expected.txt: Added
      * webaudio/biquad-lowshelf.html: Added
      * webaudio/biquad-notch-expected.txt: Added
      * webaudio/biquad-notch.html: Added
      * webaudio/biquad-peaking-expected.txt: Added
      * webaudio/biquad-peaking.html: Added
      * webaudio/resources/biquad-testing.js: Added
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106621 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      183b9cc4
    • noam.rosenthal@nokia.com's avatar
      [Qt][Texmap] Refactor TextureMapper API to use ImageBuffers when possible. · ea92bee0
      noam.rosenthal@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=77148
      
      Reviewed by Martin Robinson.
      
      Source/WebCore:
      
      Removed TextureMapperQt, and instead created a TextureMapperImageBuffer class,
      which responds to an "Software" mode of TextureMapper, instead of creating subclasses
      of TextureMapper directly. This allows using the software fallback of TextureMapper by any
      sort.
      
      To make the ImageBuffer backend easier, content updates to BitmapTexture can now use either
      an image, or a raw data pointer. The raw data pointer is provided for performance reasons,
      as converting data to/from Image references in Qt generates unnecessary deep copies of the
      image data.
      
      Also, functions that use TransformationMatrix were added to GraphicsContext, to allow for
      3D transforms in cross platform code.
      After this patch everything renders the same. An additional bug report was created to allow
      ImageBuffer shallow image copies: https://bugs.webkit.org/show_bug.cgi?id=77689
      
      Covered extensively by existing tests, no behavioral changes.
      
      * Target.pri:
      * platform/graphics/GraphicsContext.cpp:
      * platform/graphics/GraphicsContext.h:
      (WebCore):
      (GraphicsContext):
      * platform/graphics/cairo/TextureMapperCairo.cpp:
      * platform/graphics/opengl/TextureMapperGL.cpp:
      (TextureMapperGLData):
      (BitmapTextureGL):
      (WebCore::BitmapTextureGL::BitmapTextureGL):
      (WebCore::TextureMapperGL::beginPainting):
      (WebCore::BitmapTextureGL::reset):
      (WebCore):
      (WebCore::swizzleBGRAToRGBA):
      (WebCore::BitmapTextureGL::updateContents):
      (WebCore::BitmapTextureGL::destroy):
      (WebCore::TextureMapperGL::bindSurface):
      (WebCore::TextureMapper::platformCreateAccelerated):
      * platform/graphics/opengl/TextureMapperGL.h:
      (TextureMapperGL):
      (WebCore::TextureMapperGL::accelerationMode):
      (WebCore):
      * platform/graphics/qt/GraphicsContext3DQt.cpp:
      (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
      * platform/graphics/qt/GraphicsContextQt.cpp:
      (WebCore):
      (WebCore::GraphicsContext::get3DTransform):
      (WebCore::GraphicsContext::concat3DTransform):
      (WebCore::GraphicsContext::set3DTransform):
      * platform/graphics/qt/TextureMapperQt.cpp: Removed.
      * platform/graphics/qt/TextureMapperQt.h: Removed.
      * platform/graphics/texmap/TextureMapper.cpp:
      (WebCore):
      (BitmapTextureImageBuffer):
      (TextureMapperImageBuffer):
      * platform/graphics/texmap/TextureMapper.h:
      (WebCore::BitmapTexture::BitmapTexture):
      (BitmapTexture):
      (WebCore::BitmapTexture::bpp):
      (WebCore::BitmapTexture::isOpaque):
      (WebCore::TextureMapper::setGraphicsContext):
      (WebCore::TextureMapper::graphicsContext):
      (TextureMapper):
      (WebCore::TextureMapper::TextureMapper):
      (WebCore::TextureMapper::platformCreateAccelerated):
      * platform/graphics/texmap/TextureMapperNode.cpp:
      (WebCore::TextureMapperNode::renderContent):
      (WebCore::TextureMapperNode::setContentsTileBackBuffer):
      * platform/graphics/texmap/TextureMapperNode.h:
      (TextureMapperNode):
      
      Source/WebKit/qt:
      
      Use TextureMapper::create instead of creating TextureMapperGL/TextureMapperQt directly.
      
      * Api/qwebframe.cpp:
      (QWebFramePrivate::renderCompositedLayers):
      * WebCoreSupport/PageClientQt.cpp:
      (WebCore::PageClientQWidget::setRootGraphicsLayer):
      (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
      
      Source/WebKit2:
      
      Use TextureMapper::create instead of creating TextureMapperGL/TextureMapperQt directly.
      Remove calls to unused API.
      
      * UIProcess/qt/LayerTreeHostProxyQt.cpp:
      (WebKit::LayerTreeHostProxy::paintToCurrentGLContext):
      (WebKit::LayerTreeHostProxy::paintToGraphicsContext):
      (WebKit::LayerTreeHostProxy::createImage):
      (WebKit::LayerTreeHostProxy::ensureRootLayer):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ea92bee0
    • commit-queue@webkit.org's avatar
      Refactoring: Share test drivers of shadow content tests. · 9c3e0d4b
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77584
      
      Extracts shared test code from content-element-move.html and content-element-select-dynamic.html.
      This test framework will be used a few more times.
      
      Patch by Shinya Kawanaka <shinyak@google.com> on 2012-02-02
      Reviewed by Hajime Morita.
      
      * fast/dom/resources/shadow-test-driver.js: Added.
      (log):
      (cleanUp):
      (removeContainerLines):
      (check):
      (createSpanWithText):
      (createContentWithSelect):
      (appendShadow):
      (appendShadowDeep):
      (doTestIfLeft.callIfDone):
      (doneTest):
      (doTest):
      * fast/dom/shadow/content-element-move.html:
      * fast/dom/shadow/content-element-select-dynamic.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c3e0d4b
    • abarth@webkit.org's avatar
      Rename checkNodeSecurity and allowsAccessFromFrame to have sensible names · 0609530b
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75796
      
      Reviewed by Eric Seidel.
      
      As requested by Darin Adler, this patch renames these functions be
      clear that we're asking whether the access should be allowed rather
      than explicitly allowing the access.
      
      * bindings/generic/BindingSecurity.h:
      (BindingSecurity):
      (WebCore::::shouldAllowAccessToNode):
      (WebCore::::allowSettingFrameSrcToJavascriptUrl):
      * bindings/js/JSDOMBinding.cpp:
      (WebCore::shouldAllowAccessToNode):
      (WebCore::shouldAllowAccessToFrame):
      * bindings/js/JSDOMBinding.h:
      (WebCore):
      * bindings/js/JSHTMLFrameElementCustom.cpp:
      (WebCore::allowSettingJavascriptURL):
      * bindings/js/JSHistoryCustom.cpp:
      (WebCore::JSHistory::getOwnPropertySlotDelegate):
      (WebCore::JSHistory::getOwnPropertyDescriptorDelegate):
      (WebCore::JSHistory::putDelegate):
      (WebCore::JSHistory::deleteProperty):
      (WebCore::JSHistory::getOwnPropertyNames):
      * bindings/js/JSLocationCustom.cpp:
      (WebCore::JSLocation::getOwnPropertySlotDelegate):
      (WebCore::JSLocation::getOwnPropertyDescriptorDelegate):
      (WebCore::JSLocation::putDelegate):
      (WebCore::JSLocation::deleteProperty):
      (WebCore::JSLocation::getOwnPropertyNames):
      (WebCore::JSLocation::toStringFunction):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::canAccessFromCurrentOrigin):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateGetOwnPropertyDescriptorBody):
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateNormalAttrGetter):
      (GenerateFunctionCallback):
      * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
      (WebCore::JSTestActiveDOMObject::getOwnPropertyDescriptor):
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore::jsTestObjContentDocument):
      (WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::contentDocumentAttrGetter):
      (WebCore::TestObjInternal::getSVGDocumentCallback):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0609530b
    • jochen@chromium.org's avatar
      [chromium] add support for --makeargs to the ninja-based build · dd2d2d2f
      jochen@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77688
      
      Reviewed by Adam Barth.
      
      * Scripts/webkitdirs.pm:
      (buildChromiumNinja):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106617 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd2d2d2f
    • eric@webkit.org's avatar
      Run tests in serial on SnowLeopard to avoid CFURLCache crashes · 69850c90
      eric@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75145
      
      Reviewed by Dirk Pranke.
      
      * Scripts/webkitpy/layout_tests/port/mac.py:
      (MacPort.default_child_processes):
      * Scripts/webkitpy/layout_tests/port/mac_unittest.py:
      (test_operating_system):
      (test_default_child_processes):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69850c90
    • commit-queue@webkit.org's avatar
      [GTK] Make gtk+ symbols available to WidgetBackingStoreCairo.cpp · 61c2a808
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77679
      
      WidgetBackingStoreCairo.cpp uses GTK+ symbols, so we need it in
      webcoregtk_sources instead of webcore_sources.
      
      Patch by Kalev Lember <kalevlember@gmail.com> on 2012-02-02
      Reviewed by Martin Robinson.
      
      * GNUmakefile.list.am: Move WidgetBackingStoreCairo.cpp to webcoregtk.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106615 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      61c2a808
    • morrita@google.com's avatar
      Unreviewed, removing an unnecessarily JS_PRIVATE_EXPORT annotation. · 663cf6f6
      morrita@google.com authored
      * interpreter/Interpreter.h:
      (Interpreter):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106614 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      663cf6f6
    • commit-queue@webkit.org's avatar
      StyleRecalc should occur when shadow root exists and light children are changed. · e093195b
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76262
      
      Patch by Shinya Kawanaka <shinyak@google.com> on 2012-02-02
      Reviewed by Hajime Morita.
      
      Source/WebCore:
      
      When light children is changed, the element included in HTMLContentElement may also be changed.
      So we have to recalculate inclusion of content element again.
      
      Test: fast/dom/shadow/shadow-contents-fallback-dynamic.html
      
      * dom/Element.cpp:
      (WebCore::Element::childrenChanged):
      
      LayoutTests:
      
      Tests for dynamic content fallback.
      Also, unnecessary RenderText objects in previous test expectations were removed.
      
      * fast/dom/shadow/shadow-contents-fallback-dynamic-expected.txt: Added.
      * fast/dom/shadow/shadow-contents-fallback-dynamic.html: Added.
      * platform/chromium-win/fast/html/details-remove-child-2-expected.txt:
      * platform/gtk/fast/html/details-remove-child-2-expected.txt:
      * platform/mac/fast/html/details-remove-child-2-expected.txt:
      * platform/qt/fast/html/details-remove-child-2-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e093195b
    • commit-queue@webkit.org's avatar
      noteGrainOn needs more tests · e49b5036
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77225
      
      Patch by Raymond Toy <rtoy@google.com> on 2012-02-02
      Reviewed by Kenneth Russell.
      
      * webaudio/note-grain-on-play.html: Added.
      * webaudio/note-grain-on-play-expected.txt: Added.
      * webaudio/note-grain-on-timing.html: Refactored to use new
      functions in note-grain-on-testing.js.
      * webaudio/note-grain-on-timing-expected.txt: Updated.
      * webaudio/resources/audio-testing.js:
      (grainLengthInSampleFrames):  Utility to compute length of a grain
      in samples.
      * webaudio/resources/note-grain-on-testing.js: Added.
      (createSignalBuffer):
      (findStartAndEndSamples):
      (playGrain):
      (playAllGrains):
      (verifyStarAndtEndTimes): Common functions for note-grain-on-play and
      note-grain-on-timing tests to use.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e49b5036
    • commit-queue@webkit.org's avatar
      Typo in sample-accurate-scheduling layout test? · bece4e06
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75996
      
      Patch by Raymond Toy <rtoy@google.com> on 2012-02-02
      Reviewed by Kenneth Russell.
      
      * webaudio/sample-accurate-scheduling-expected.txt: Updated
      * webaudio/sample-accurate-scheduling.html: Fix typo, add test for
      expected number of events.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bece4e06
    • commit-queue@webkit.org's avatar
      Avoid crashing renderer when GPU process dies by not caching textures between video frames. · ccf91c05
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77654
      
      Patch by Ami Fischman <fischman@chromium.org> on 2012-02-02
      Reviewed by James Robinson.
      
      * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
      (WebCore::CCVideoLayerImpl::draw):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ccf91c05
    • andersca@apple.com's avatar
      Add ScrollingTree class · 750e8245
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=77695
      
      Reviewed by Andreas Kling.
      
      * WebCore.xcodeproj/project.pbxproj:
      Add new files.
      
      * page/scrolling/ScrollingCoordinator.cpp:
      (WebCore::ScrollingCoordinator::ScrollingCoordinator):
      Create a scrolling tree.
      
      (WebCore::ScrollingCoordinator::~ScrollingCoordinator):
      Assert that the scrolling tree is null.
      
      (WebCore::ScrollingCoordinator::pageDestroyed):
      Null out the scrolling tree member variable and tell it to invalidate itself.
      
      * page/scrolling/ScrollingTree.cpp: Added.
      
      (WebCore::ScrollingTree::invalidate):
      Null out the scrolling coordinator, breaking the reference cycle between the scrolling
      coordinator and the scrolling tree.
      
      * page/scrolling/ScrollingTree.h: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      750e8245
    • commit-queue@webkit.org's avatar
      [GTK] Don't use uint · c7fce1e0
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77678
      
      Patch by Kalev Lember <kalevlember@gmail.com> on 2012-02-02
      Reviewed by Martin Robinson.
      
      With the MingGW cross compiler toolchain in Fedora, uint wasn't
      defined, so use unsigned int instead.
      
      * WebCoreSupport/ChromeClientGtk.h:
      (ChromeClient): Use unsigned int instead of uint
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106608 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c7fce1e0
    • commit-queue@webkit.org's avatar
      Refactor plugin drawing to be more data driven · c13f2aa8
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76715
      
      Patch by Tim Dresser <tdresser@chromium.org> on 2012-02-02
      Reviewed by James Robinson.
      
      CCPluginLayerImpl no longer handles drawing itself, but produces a list of CCPluginDrawQuads.
      These quads are then drawn by LayerRendererChromium.
      
      CCLayerImpl::willDraw(LayerRendererChromium*) is called directly before appendQuads.
      This allows for CCLayerImpl objects to allocate textures before appendQuads is called.
      
      This is a refactor, so no new tests were added.
      Flash was tested manually on Linux and Mac.
      
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      (WebCore::PluginProgramBinding::set):
      (PluginProgramBinding):
      (WebCore):
      (WebCore::TexStretchPluginProgramBinding::set):
      (TexStretchPluginProgramBinding):
      (WebCore::TexTransformPluginProgramBinding::set):
      (TexTransformPluginProgramBinding):
      (WebCore::LayerRendererChromium::drawPluginQuad):
      * platform/graphics/chromium/cc/CCLayerImpl.h:
      (WebCore::CCLayerImpl::willDraw):
      * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
      (WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
      * platform/graphics/chromium/cc/CCPluginDrawQuad.cpp:
      (WebCore::CCPluginDrawQuad::create):
      (WebCore::CCPluginDrawQuad::CCPluginDrawQuad):
      * platform/graphics/chromium/cc/CCPluginDrawQuad.h:
      (CCPluginDrawQuad):
      (WebCore::CCPluginDrawQuad::uvRect):
      (WebCore::CCPluginDrawQuad::textureId):
      (WebCore::CCPluginDrawQuad::flipped):
      (WebCore::CCPluginDrawQuad::ioSurfaceWidth):
      (WebCore::CCPluginDrawQuad::ioSurfaceHeight):
      (WebCore::CCPluginDrawQuad::ioSurfaceTextureId):
      * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
      (WebCore::CCPluginLayerImpl::willDraw):
      (WebCore::CCPluginLayerImpl::appendQuads):
      * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
      (CCPluginLayerImpl):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106607 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c13f2aa8
    • morrita@google.com's avatar
      [Mac] eliminate JavaScriptCore.exp · 515e95f9
      morrita@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=72854
      
      Reviewed by Darin Adler.
      
      - Removed exp files and corresponding makefile entries.
      - Changed the build configuration no to use exp file.
      
      * Configurations/JavaScriptCore.xcconfig:
      * DerivedSources.make:
      * JavaScriptCore.JSVALUE32_64only.exp: Removed.
      * JavaScriptCore.JSVALUE64only.exp: Removed.
      * JavaScriptCore.exp: Removed.
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      515e95f9
    • haraken@chromium.org's avatar
      V8 idl code generator doesn't handle SerializedScriptValue attributes properly. · f476e54e
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77295
      
      Patch by Pablo Flouret <pablof@motorola.com> on 2012-01-29
      Reviewed by Kentaro Hara.
      
      Only the case of one (and only one) SerializedScriptValue attribute was
      handled, and it was deserialized eagerly in the constructor instead of
      generating getters/setters. This patch gets rid of that behavior and
      generates the getters and setters instead (similar to what the JSC
      generator does).
      Also handle the case of SSV attributes with [CachedAttribute]
      declaration, caching the deserialized value in a hidden attribute on the
      object.
      
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateNormalAttrGetter):
      (GenerateNormalAttrSetter):
      (GenerateConstructorCallback):
      (GenerateNamedConstructorCallback):
      (GenerateSingleBatchedAttribute):
      (GenerateImplementation):
      (GenerateToV8Converters):
      (JSValueToNative):
      (NativeToJSValue):
      * bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.cpp:
      (WebDOMTestSerializedScriptValueInterface::setValue):
      (WebDOMTestSerializedScriptValueInterface::readonlyValue):
      (WebDOMTestSerializedScriptValueInterface::cachedValue):
      (WebDOMTestSerializedScriptValueInterface::setCachedValue):
      (WebDOMTestSerializedScriptValueInterface::cachedReadonlyValue):
      * bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.h:
      (WebDOMTestSerializedScriptValueInterface):
      * bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterface.cpp:
      (webkit_dom_test_serialized_script_value_interface_set_value):
      (webkit_dom_test_serialized_script_value_interface_get_readonly_value):
      (webkit_dom_test_serialized_script_value_interface_get_cached_value):
      (webkit_dom_test_serialized_script_value_interface_set_cached_value):
      (webkit_dom_test_serialized_script_value_interface_get_cached_readonly_value):
      (webkit_dom_test_serialized_script_value_interface_get_property):
      (webkit_dom_test_serialized_script_value_interface_class_init):
      * bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterface.h:
      * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
      ():
      (WebCore::jsTestSerializedScriptValueInterfaceReadonlyValue):
      (WebCore):
      (WebCore::jsTestSerializedScriptValueInterfaceCachedValue):
      (WebCore::jsTestSerializedScriptValueInterfaceCachedReadonlyValue):
      (WebCore::JSTestSerializedScriptValueInterface::put):
      (WebCore::setJSTestSerializedScriptValueInterfaceValue):
      (WebCore::setJSTestSerializedScriptValueInterfaceCachedValue):
      * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
      (JSTestSerializedScriptValueInterface):
      (JSTestSerializedScriptValueInterfacePrototype):
      (WebCore):
      * bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterface.h:
      * bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterface.mm:
      (-[DOMTestSerializedScriptValueInterface setValue:]):
      (-[DOMTestSerializedScriptValueInterface readonlyValue]):
      (-[DOMTestSerializedScriptValueInterface cachedValue]):
      (-[DOMTestSerializedScriptValueInterface setCachedValue:]):
      (-[DOMTestSerializedScriptValueInterface cachedReadonlyValue]):
      * bindings/scripts/test/TestSerializedScriptValueInterface.idl:
      * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
      (WebCore::TestSerializedScriptValueInterfaceInternal::valueAttrGetter):
      (TestSerializedScriptValueInterfaceInternal):
      (WebCore::TestSerializedScriptValueInterfaceInternal::valueAttrSetter):
      (WebCore::TestSerializedScriptValueInterfaceInternal::readonlyValueAttrGetter):
      (WebCore::TestSerializedScriptValueInterfaceInternal::cachedValueAttrGetter):
      (WebCore::TestSerializedScriptValueInterfaceInternal::cachedValueAttrSetter):
      (WebCore::TestSerializedScriptValueInterfaceInternal::cachedReadonlyValueAttrGetter):
      ():
      (WebCore::V8TestSerializedScriptValueInterface::constructorCallback):
      (WebCore::ConfigureV8TestSerializedScriptValueInterfaceTemplate):
      (WebCore::V8TestSerializedScriptValueInterface::wrapSlow):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f476e54e
    • abarth@webkit.org's avatar
      BMW Car Configuration Page doesn't work (Only manifests in Chromium) · 49ef62d0
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77312
      
      Reviewed by Dimitri Glazkov.
      
      When we autogenerated the event factory, we missed the check for
      whether touch events were enabled at runtime:
      http://trac.webkit.org/changeset/97933/trunk/Source/WebCore/dom/Document.cpp
      
      This patch adds the check back.
      
      Unfortunately, there isn't a testing frame work for
      RuntimeEnabledFeatures.  The main difficulty is that these static bools
      need to be set when WebKit is initialized and can't be changed (which
      is why they're not part of WebCore::Settings).  To test them properly,
      we'd need a testing framework that booted up WebKit for each test.
      
      We could test this particular change (which doesn't need the bool to be
      constant through the runtime of WebKit), but that would create a
      sandtrap for future patches who might thing that this testing framework
      can really be used to test RuntimeEnabledFeatures.
      
      The net result is that Chromium is going to end up living with the
      non-default codepath for these settings being untested, which will lead
      to regressions like this one.  If we ened up with a bunch of these
      regressions, we'll likely end up with a testing framework similar to
      Chromium's browsers_tests, which create a fresh subprocess for each
      test.
      
      * dom/EventFactory.in:
      * dom/make_event_factory.pl:
      (defaultItemFactory):
      (generateImplementation):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106603 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      49ef62d0