1. 19 Aug, 2011 40 commits
    • dslomov@google.com's avatar
      TestWebKitAPI breaks on Windows due to fast malloc incompatibility. · 6368fb03
      dslomov@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=66521
      
      This patch ensures that gtest uses new and delete operators that are defined in JavaScriptCore.
      
      Reviewed by David Levin.
      
      * gtest/include/gtest/internal/gtest-port.h:
      * gtest/msvc/gtest-md.vcproj:
      * gtest/README.WebKit:
      * gtest/xcode/Config/General.xcconfig:
      * gtest/xcode/gtest.xcodeproj/project.pbxproj:
      
      Tools:
      
      This patch ensures that gtest uses new and delete operators that are defined in JavaScriptCore.
      https://bugs.webkit.org/show_bug.cgi?id=66521
      
      Reviewed by David Levin.
      
      * TestWebKitAPI/Tests/WTF/StringOperators.cpp: Removed redefinition of JS_EXPORTDATA.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93426 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      6368fb03
    • jchaffraix@webkit.org's avatar
      REGRESSION (r84327-r84329): CSS stylesheets fail to load on www.flagstar.com login page · 79de6e0d
      jchaffraix@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65140
      <rdar://problem/9835905>
      
      Reviewed by Antti Koivisto.
      
      Source/WebCore:
      
      Tests: fast/css/stylesheet-enable-first-alternate-on-load.html
             fast/css/stylesheet-enable-first-alternate.html
             fast/css/stylesheet-enable-second-alternate-on-load.html
             fast/css/stylesheet-enable-second-alternate.html
             http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html
             http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html
      
      The gist of the issue is that we were ignoring calls to HTMLLinkElement::setDisabled that would enable a
      style sheet when we were loading a stylesheet (m_sheet was 0 and thus ignored the call per the spec).
      
      FF goes against the CSS OM spec in this case and always keep an associated sheet as long as 'rel' hints
      at a stylesheet link and href is present. Instead of siding with FF, I continued to follow the
      specification and store the enabled via javascript state into m_scriptState (renamed from
      m_isEnabledViaScript). This information gets merged back into the style sheet disabled state when it is
      available.
      
      While debugging the case at hand, I found some cases that were not properly handled and were fixed as
      part of this change.
      
      * html/HTMLLinkElement.cpp:
      (WebCore::HTMLLinkElement::HTMLLinkElement): Updated after m_isEnabledViaScript rename.
      (WebCore::HTMLLinkElement::setDisabled): Always call setIsEnabledViaScript so that
      the information is properly stored (either for recalcStyleSelector or just to store
      the state during loading).
      
      (WebCore::HTMLLinkElement::sheetLoaded): Merge back the state from m_scriptState to
      the sheet's disabled state.
      
      (WebCore::HTMLLinkElement::disabled): Account for the temporary state and return the
      right value. It matches FF and what people would expect.
      
      (WebCore::HTMLLinkElement::areDisabledAndScriptStatesConsistent): Debug only method
      that checks that disabled() and isEnabledViaScript() are consistent with each other
      (under some circumstances).
      
      * html/HTMLLinkElement.h:
      (WebCore::HTMLLinkElement::isEnabledViaScript): Updated after m_isEnabledViaScript rename.
      (WebCore::HTMLLinkElement::setIsEnabledViaScript): Added setter.
      
      LayoutTests:
      
      * fast/css/link-disabled-attr-expected.txt: This change is a progression, but we are still
      not handling updates to the selected style set properly (already covered by bug 62407).
      
      * fast/css/stylesheet-enable-first-alternate-expected.txt: Added.
      * fast/css/stylesheet-enable-first-alternate-on-load-expected.txt: Added.
      * fast/css/stylesheet-enable-first-alternate-on-load.html: Added.
      * fast/css/stylesheet-enable-first-alternate.html: Added.
      * fast/css/stylesheet-enable-second-alternate-expected.txt: Added.
      * fast/css/stylesheet-enable-second-alternate-on-load-expected.txt: Added.
      * fast/css/stylesheet-enable-second-alternate-on-load.html: Added.
      * fast/css/stylesheet-enable-second-alternate.html: Added.
      Those are a variation on the same theme: we disable some stylesheet and enable others,
      either directly or later.
      
      * http/tests/css/link-css-disabled-value-with-slow-loading-sheet-expected.txt: Added.
      * http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error-expected.txt: Added.
      * http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html: Added.
      * http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html: Added.
      * http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js: Added.
      (onSheetLoaded):
      (testWhenLoaded):
      * http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js: Added.
      (onSheetLoaded):
      (testWhenLoaded):
      * http/tests/css/resources/slow-loading-sheet-in-error.php: Added.
      * http/tests/css/resources/slow-loading-sheet.php: Added.
      Those 2 test cases relies on a slow loading stylesheet so that we can test the disabled() value while the alternate
      sheet is asynchronously loading and then check them again once the sheet is loaded.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93425 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      79de6e0d
    • enne@google.com's avatar
      [chromium] Split tiler into main thread / compositor thread versions · 8b1f331b
      enne@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=66065
      
      Reviewed by James Robinson.
      
      Source/WebCore:
      
      Covered by existing tests.
      
      LayerTilerChromium is renamed to be CCLayerTilingData. Invalidation
      and paint functionality is pushed into TiledLayerChromium and drawing
      with GL is pushed into CCTiledLayerImpl. During tree synchronization,
      the tiler properties and texture IDs are synchronized into
      CCTiledLayerImpl.
      
      * WebCore.gypi:
      * platform/graphics/chromium/ContentLayerChromium.cpp:
      (WebCore::ContentLayerChromium::paintContentsIfDirty):
      (WebCore::ContentLayerChromium::createTextureUpdaterIfNeeded):
      * platform/graphics/chromium/ContentLayerChromium.h:
      * platform/graphics/chromium/ImageLayerChromium.cpp:
      (WebCore::ImageLayerChromium::paintContentsIfDirty):
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      (WebCore::LayerRendererChromium::bestTextureFormat):
      (WebCore::LayerRendererChromium::initializeSharedObjects):
      (WebCore::LayerRendererChromium::tilerProgram):
      (WebCore::LayerRendererChromium::tilerProgramSwizzle):
      (WebCore::LayerRendererChromium::tilerProgramAA):
      (WebCore::LayerRendererChromium::tilerProgramSwizzleAA):
      * platform/graphics/chromium/LayerRendererChromium.h:
      * platform/graphics/chromium/LayerTextureUpdater.h:
      * platform/graphics/chromium/LayerTilerChromium.cpp: Removed.
      * platform/graphics/chromium/ManagedTexture.h:
      (WebCore::ManagedTexture::textureId):
      * platform/graphics/chromium/TiledLayerChromium.cpp:
      (WebCore::UpdatableTile::UpdatableTile):
      (WebCore::UpdatableTile::texture):
      (WebCore::UpdatableTile::dirty):
      (WebCore::UpdatableTile::clearDirty):
      (WebCore::TiledLayerChromium::TiledLayerChromium):
      (WebCore::TiledLayerChromium::cleanupResources):
      (WebCore::TiledLayerChromium::drawsContent):
      (WebCore::TiledLayerChromium::createTilerIfNeeded):
      (WebCore::TiledLayerChromium::updateCompositorResources):
      (WebCore::TiledLayerChromium::pushPropertiesTo):
      (WebCore::TiledLayerChromium::dumpLayerProperties):
      (WebCore::TiledLayerChromium::textureManager):
      (WebCore::TiledLayerChromium::tileAt):
      (WebCore::TiledLayerChromium::createTile):
      (WebCore::TiledLayerChromium::invalidateTiles):
      (WebCore::TiledLayerChromium::invalidateRect):
      (WebCore::TiledLayerChromium::protectVisibleTileTextures):
      (WebCore::TiledLayerChromium::protectTileTextures):
      (WebCore::TiledLayerChromium::prepareToUpdate):
      * platform/graphics/chromium/TiledLayerChromium.h:
      * platform/graphics/chromium/cc/CCLayerTilingData.cpp: Added.
      (WebCore::CCLayerTilingData::create):
      (WebCore::CCLayerTilingData::CCLayerTilingData):
      (WebCore::CCLayerTilingData::setTileSize):
      (WebCore::CCLayerTilingData::operator=):
      (WebCore::CCLayerTilingData::addTile):
      (WebCore::CCLayerTilingData::takeTile):
      (WebCore::CCLayerTilingData::tileAt):
      (WebCore::CCLayerTilingData::reset):
      (WebCore::CCLayerTilingData::contentRectToTileIndices):
      (WebCore::CCLayerTilingData::contentRectToLayerRect):
      (WebCore::CCLayerTilingData::layerRectToContentRect):
      (WebCore::CCLayerTilingData::tileContentRect):
      (WebCore::CCLayerTilingData::tileLayerRect):
      (WebCore::CCLayerTilingData::setLayerPosition):
      (WebCore::CCLayerTilingData::growLayerToContain):
      * platform/graphics/chromium/cc/CCLayerTilingData.h: Renamed from Source/WebCore/platform/graphics/chromium/LayerTilerChromium.h.
      (WebCore::CCLayerTilingData::numTiles):
      (WebCore::CCLayerTilingData::numTilesX):
      (WebCore::CCLayerTilingData::numTilesY):
      (WebCore::CCLayerTilingData::tileBounds):
      (WebCore::CCLayerTilingData::textureOffset):
      (WebCore::CCLayerTilingData::tileSize):
      (WebCore::CCLayerTilingData::hasBorderTexels):
      (WebCore::CCLayerTilingData::isEmpty):
      (WebCore::CCLayerTilingData::Tile::Tile):
      (WebCore::CCLayerTilingData::Tile::i):
      (WebCore::CCLayerTilingData::Tile::j):
      (WebCore::CCLayerTilingData::Tile::moveTo):
      (WebCore::CCLayerTilingData::TileMapKeyTraits::emptyValue):
      (WebCore::CCLayerTilingData::TileMapKeyTraits::constructDeletedValue):
      (WebCore::CCLayerTilingData::TileMapKeyTraits::isDeletedValue):
      (WebCore::CCLayerTilingData::tiles):
      * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
      (WebCore::DrawableTile::DrawableTile):
      (WebCore::DrawableTile::textureId):
      (WebCore::DrawableTile::setTextureId):
      (WebCore::CCTiledLayerImpl::CCTiledLayerImpl):
      (WebCore::CCTiledLayerImpl::bindContentsTexture):
      (WebCore::CCTiledLayerImpl::tileAt):
      (WebCore::CCTiledLayerImpl::createTile):
      (WebCore::CCTiledLayerImpl::draw):
      (WebCore::CCTiledLayerImpl::setTilingData):
      (WebCore::CCTiledLayerImpl::syncTextureId):
      (WebCore::isCCW):
      (WebCore::computeEdge):
      (WebCore::intersect):
      (WebCore::CCTiledLayerImpl::drawTiles):
      * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
      (WebCore::CCTiledLayerImpl::setSkipsDraw):
      (WebCore::CCTiledLayerImpl::setTextureOrientation):
      (WebCore::CCTiledLayerImpl::setSampledTexelFormat):
      * platform/graphics/gpu/TilingData.h:
      
      Source/WebKit/chromium:
      
      Add a test for assignment and copy constructor for TilingData.
      
      * tests/TilingDataTest.cpp:
      (WebCore::TEST):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93424 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8b1f331b
    • vitalyr@chromium.org's avatar
      2011-08-19 Vitaly Repeshko <vitalyr@chromium.org> · bb96a65a
      vitalyr@chromium.org authored
              [chromium] Cleaning up test expectations.
      
              Unreviewed.
      
              * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93423 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      bb96a65a
    • tony@chromium.org's avatar
      [chromium] Add correct baseline for merge-end-list.html on OSX 10.5. · e6acf42c
      tony@chromium.org authored
      * platform/chromium-cg-mac-leopard/editing/pasteboard/merge-end-list-expected.png: Added.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93422 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e6acf42c
    • mitz@apple.com's avatar
      Better build fix after r93384. · 31d3bcb2
      mitz@apple.com authored
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::RenderBlock::LineBreaker::nextLineBreak): Use WTF::Unicode wrapper instead of ICU.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93421 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      31d3bcb2
    • andersca@apple.com's avatar
      WebProcess crashes during startup if libdispatch is initialized by WebProcessShim.dylib · e27c9482
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=66508
      <rdar://problem/9828476>
      
      Reviewed by Mark Rowe.
      
      * mac/MainMac.cpp:
      (closeUnusedFileDescriptors):
      Check if a file descriptor is a kqueue and don't close it if that is the case. While this
      isn't a complete fix, (it won't work if other initializers end up creating non-kqueue file descriptors)
      it's good enough for Snow Leopard. For Lion, we should use the new posix_spawn API that lets you whitelist
      file descriptors from the parent process.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93420 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e27c9482
    • podivilov@chromium.org's avatar
      Web Inspector: update scope variables upon value changes via console. · 316cb619
      podivilov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=54720
      
      Reviewed by Pavel Feldman.
      
      * inspector/front-end/ScriptsPanel.js:
      (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93419 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      316cb619
    • aroben@apple.com's avatar
      Add project file changes I left out in r93417 · 3b9e1edd
      aroben@apple.com authored
      * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93418 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3b9e1edd
    • aroben@apple.com's avatar
      Add a helper class for swizzling ObjC instance methods to TestWebKitAPI · 707dcd04
      aroben@apple.com authored
      Fixes <http://webkit.org/b/66565> TestWebKitAPI needs a way to override instance methods of
      NSScreen
      
      Reviewed by Anders Carlsson.
      
      * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Added new files.
      
      * TestWebKitAPI/Tests/TestWebKitAPI/mac/InstanceMethodSwizzler.mm: Added.
      (-[SimpleObject setValue:]): Original implementation.
      
      (TestWebKitAPI::setValue2):
      (TestWebKitAPI::setValue3):
      Swizzled implementations.
      
      (TestWebKitAPI::TEST): Test that we can swizzle and re-swizzle and un-swizzle an ObjC
      instance method.
      
      * TestWebKitAPI/mac/InstanceMethodSwizzler.h: Added.
      * TestWebKitAPI/mac/InstanceMethodSwizzler.mm: Added.
      (TestWebKitAPI::InstanceMethodSwizzler::InstanceMethodSwizzler): Swizzle the method.
      (TestWebKitAPI::InstanceMethodSwizzler::~InstanceMethodSwizzler): Unswizzle the method.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93417 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      707dcd04
    • commit-queue@webkit.org's avatar
      Fix _path_to_apache() error reporting · 24947551
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66486
      
      Patch by Tom Zakrajsek <tomz@codeaurora.org> on 2011-08-19
      Reviewed by Ryosuke Niwa.
      
      * Scripts/webkitpy/layout_tests/port/webkit.py:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93416 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      24947551
    • podivilov@chromium.org's avatar
      Web Inspector: extract breakpoint management code to a separate class and add tests. · d9fc86d9
      podivilov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66224
      
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      Test: inspector/debugger/breakpoint-manager.html
      
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * inspector/front-end/BreakpointManager.js: Added.
      (WebInspector.BreakpointManager):
      (WebInspector.BreakpointManager.prototype.uiSourceCodeAdded):
      (WebInspector.BreakpointManager.prototype.breakpointsForUISourceCode):
      (WebInspector.BreakpointManager.prototype.setBreakpoint):
      (WebInspector.BreakpointManager.prototype.removeBreakpoint):
      (WebInspector.BreakpointManager.prototype._materializeBreakpoint):
      (WebInspector.BreakpointManager.prototype._breakpointDebuggerLocationChanged):
      (WebInspector.BreakpointManager.prototype._addBreakpointToUI):
      (WebInspector.BreakpointManager.prototype._deleteBreakpointFromUI):
      (WebInspector.BreakpointManager.prototype._moveBreakpointInUI):
      (WebInspector.BreakpointManager.prototype._breakpoints):
      (WebInspector.BreakpointManager.prototype._breakpoint):
      (WebInspector.BreakpointManager.prototype._forEachBreakpoint):
      (WebInspector.BreakpointManager.prototype._setBreakpointInDebugger):
      (WebInspector.BreakpointManager.prototype._removeBreakpointFromDebugger):
      (WebInspector.BreakpointManager.prototype._breakpointResolved):
      (WebInspector.BreakpointManager.prototype.serializeBreakpoints):
      (WebInspector.BreakpointManager.prototype.reset):
      (WebInspector.BreakpointManager.prototype.debuggerReset):
      (WebInspector.Breakpoint):
      (WebInspector.Breakpoint.prototype.serialize):
      (WebInspector.Breakpoint.deserialize):
      * inspector/front-end/DebuggerModel.js:
      (WebInspector.DebuggerModel.prototype.setBreakpointByScriptLocation):
      * inspector/front-end/SourceFile.js:
      (WebInspector.RawSourceCode.prototype.get rawSourceCode):
      * inspector/front-end/WebKit.qrc:
      * inspector/front-end/inspector.html:
      
      LayoutTests:
      
      * inspector/debugger/breakpoint-manager-expected.txt: Added.
      * inspector/debugger/breakpoint-manager.html: Added.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93415 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d9fc86d9
    • aroben@apple.com's avatar
      Windows build fix after r93404 · 668673fb
      aroben@apple.com authored
      * TestWebKitAPI/Tests/WebKit2/win/HideFindIndicator.cpp: Added missing #include.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93414 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      668673fb
    • tonyg@chromium.org's avatar
      Add leandrogracia to the committers list · f8f2b268
      tonyg@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66552
      
      Also fix line endings in file.
      
      No reviewed required.
      
      * Scripts/webkitpy/common/config/committers.py:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93413 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f8f2b268
    • commit-queue@webkit.org's avatar
      Fix compilation issue in WebKitTestRunner · a342460c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66554
      
      Patch by Amruth Raj <amruthraj@motorola.com> on 2011-08-19
      Reviewed by Martin Robinson.
      
      * WebKitTestRunner/PixelDumpSupport.cpp:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93412 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a342460c
    • aroben@apple.com's avatar
      Fix typo · f88ac01e
      aroben@apple.com authored
      * dom/DOMAllInOne.cpp:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93411 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f88ac01e
    • commit-queue@webkit.org's avatar
      [EFL] Add "return" statement corresponding to abnormal condition on _ewk_frame_smart_add. · 411af019
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65408
      
      Bail out when we fail to allocate an Ewk_Frame_Smart_Data object rather than continuing on as if the allocation had succeeded.
      
      Patch by KwangHyuk Kim <hyuki.kim@samsung.com> on 2011-08-19
      Reviewed by Adam Roben.
      
      * ewk/ewk_frame.cpp:
      (_ewk_frame_smart_add):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93410 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      411af019
    • commit-queue@webkit.org's avatar
      [EFL] Change condition checking logic related with both change of position and... · 47ae27d9
      commit-queue@webkit.org authored
      [EFL] Change condition checking logic related with both change of position and offset for backing store.
      https://bugs.webkit.org/show_bug.cgi?id=66028
      
      As backing store's position and offset change can occur at the same time,
      the checking of offset change shouldn't be "else if" statement.
      
      Patch by KwangHyuk Kim <hyuki.kim@samsung.com> on 2011-08-19
      Reviewed by Adam Roben.
      
      * ewk/ewk_tiled_backing_store.c:
      (_ewk_tiled_backing_store_smart_calculate):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93409 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      47ae27d9
    • aroben@apple.com's avatar
      Windows build fix after r93385 · c59d63a3
      aroben@apple.com authored
      * dom/DOMAllInOne.cpp: Added EventDispatcMediator.cpp.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93408 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      c59d63a3
    • commit-queue@webkit.org's avatar
      [Qt][WK2] Add a basic engine to control the content of the viewport · b9a0c591
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66383
      
      Patch by Benjamin Poulain <benjamin@webkit.org> on 2011-08-19
      Reviewed by Andreas Kling.
      
      Add ViewportInteractionEngine to handle the content of the viewport. The class make
      sure the QTouchWebPage stays in the viewport and in the boundaries.
      
      * UIProcess/API/qt/qdesktopwebview.cpp:
      (QDesktopWebViewPrivate::loadDidCommit):
      * UIProcess/API/qt/qdesktopwebview_p.h:
      * UIProcess/API/qt/qtouchwebpage.cpp:
      (QTouchWebPage::QTouchWebPage): Set the transform origin to the top left so
      we can asume the position 0, 0 is always the top left of the page.
      (QTouchWebPagePrivate::_q_commitScaleChange): Make commitScaleChange a slot
      in order to completely decouple the ViewportInteractionEngine and the WebKit classes.
      * UIProcess/API/qt/qtouchwebpage.h:
      * UIProcess/API/qt/qtouchwebpage_p.h:
      * UIProcess/API/qt/qtouchwebview.cpp:
      (QTouchWebViewPrivate::QTouchWebViewPrivate):
      (QTouchWebViewPrivate::loadDidCommit):
      (QTouchWebViewPrivate::_q_viewportRectUpdated): Make _q_viewportRectUpdated() a slot
      for reducing coupling.
      (QTouchWebViewPrivate::updateViewportConstraints):
      (QTouchWebViewPrivate::setViewportArguments):
      (QTouchWebView::geometryChanged):
      * UIProcess/API/qt/qtouchwebview.h:
      * UIProcess/API/qt/qtouchwebview_p.h:
      * UIProcess/qt/ClientImpl.cpp:
      (qt_wk_didCommitLoadForFrame):
      * UIProcess/qt/QtGestureRecognizer.cpp:
      (WebKit::QtGestureRecognizer::QtGestureRecognizer):
      * UIProcess/qt/QtGestureRecognizer.h: Change the gesture recognizer to talk directly
      to the ViewportInteractionEngine instead of interacting through TouchViewInterface.
      * UIProcess/qt/QtPanGestureRecognizer.cpp:
      (WebKit::QtPanGestureRecognizer::QtPanGestureRecognizer):
      (WebKit::QtPanGestureRecognizer::recognize):
      * UIProcess/qt/QtPanGestureRecognizer.h:
      * UIProcess/qt/QtPinchGestureRecognizer.cpp:
      (WebKit::QtPinchGestureRecognizer::QtPinchGestureRecognizer):
      (WebKit::QtPinchGestureRecognizer::recognize):
      * UIProcess/qt/QtPinchGestureRecognizer.h:
      * UIProcess/qt/QtWebPageProxy.cpp:
      (QtWebPageProxy::loadDidCommit): Add the loadCommited callback in order
      to reset the viewport state when the page change.
      * UIProcess/qt/QtWebPageProxy.h:
      * UIProcess/qt/TouchViewInterface.cpp:
      (WebKit::TouchViewInterface::TouchViewInterface):
      (WebKit::TouchViewInterface::contentSizeChanged):
      (WebKit::TouchViewInterface::loadDidCommit):
      * UIProcess/qt/TouchViewInterface.h:
      * UIProcess/qt/ViewInterface.h:
      * UIProcess/qt/ViewportInteractionEngine.cpp: Added.
      (WebKit::visibleRectInContentCoordinate):
      (WebKit::contentRectInViewportCoordinate):
      (WebKit::ViewportUpdateGuard::ViewportUpdateGuard):
      (WebKit::ViewportUpdateGuard::~ViewportUpdateGuard):
      (WebKit::ViewportInteractionEngine::ViewportInteractionEngine):
      (WebKit::ViewportInteractionEngine::reset):
      (WebKit::ViewportInteractionEngine::setConstraints):
      (WebKit::ViewportInteractionEngine::panGestureStarted):
      (WebKit::ViewportInteractionEngine::panGestureRequestScroll):
      (WebKit::ViewportInteractionEngine::panGestureCancelled):
      (WebKit::ViewportInteractionEngine::panGestureEnded):
      (WebKit::ViewportInteractionEngine::pinchGestureStarted):
      (WebKit::ViewportInteractionEngine::pinchGestureRequestUpdate):
      (WebKit::ViewportInteractionEngine::pinchGestureEnded):
      (WebKit::ViewportInteractionEngine::contentGeometryChanged):
      (WebKit::ViewportInteractionEngine::contentScaleChanged):
      (WebKit::ViewportInteractionEngine::updateContentIfNeeded):
      (WebKit::ViewportInteractionEngine::updateContentScaleIfNeeded):
      (WebKit::ViewportInteractionEngine::updateContentPositionIfNeeded):
      (WebKit::ViewportInteractionEngine::animateContentPositionToBoundaries):
      (WebKit::ViewportInteractionEngine::animateContentScaleToBoundaries):
      (WebKit::ViewportInteractionEngine::scaleContent):
      * UIProcess/qt/ViewportInteractionEngine.h: Added.
      (WebKit::ViewportInteractionEngine::Constraints::Constraints):
      (WebKit::operator==):
      * UIProcess/qt/qtouchwebpageproxy.cpp:
      (QTouchWebPageProxy::QTouchWebPageProxy):
      * UIProcess/qt/qtouchwebpageproxy.h:
      * WebKit2.pro:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93407 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b9a0c591
    • vitalyr@chromium.org's avatar
      2011-08-19 Vitaly Repeshko <vitalyr@chromium.org> · 09fba329
      vitalyr@chromium.org authored
              [chromium] Updating test expectations.
      
              Unreviewed.
      
              * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93406 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      09fba329
    • aroben@apple.com's avatar
      Pull some of DynamicDeviceScaleFactor's code up into a shareable base class · 124574cf
      aroben@apple.com authored
      This will make it easier to write other WebKit-agnostic tests
      
      Fixes <http://webkit.org/b/66558> Would like to be able to reuse DynamicDeviceScaleFactor's
      code in other WebKit-agnostic tests
      
      Reviewed by Anders Carlsson.
      
      * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Added new files.
      
      * TestWebKitAPI/Tests/mac/DynamicDeviceScaleFactor.mm: Fixed copyright. Moved a bunch of
      code to WebKitAgnosticTest.h/mm. Changed to inherit from WebKitAgnosticTest.
      (TestWebKitAPI::DynamicDeviceScaleFactor::url): Simple getter.
      (TestWebKitAPI::DynamicDeviceScaleFactor::didLoadURL): Calls through to runTest.
      (TestWebKitAPI::DynamicDeviceScaleFactor::runTest): Removed loading code which
      WebKitAgnosticTest handles for us.
      (TestWebKitAPI::TEST_F): Removed view-creation code which WebKitAgnosticTest handles for us.
      
      * TestWebKitAPI/mac/WebKitAgnosticTest.h: Added. Code came from DynamicDeviceScaleFactor.
      (TestWebKitAPI::WebKitAgnosticTest::loadSynchronously): Code came from
      DynamicDeviceScaleFactor::runTest.
      
      * TestWebKitAPI/mac/WebKitAgnosticTest.mm: Copied from Tools/TestWebKitAPI/Tests/mac/DynamicDeviceScaleFactor.mm.
      (TestWebKitAPI::WebKitAgnosticTest::runWebKit1Test): Code came from
      DynamicDeviceScaleFactor.WebKit.
      (TestWebKitAPI::WebKitAgnosticTest::runWebKit2Test): Code came from
      DynamicDeviceScaleFactor.WebKit2.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93405 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      124574cf
    • aroben@apple.com's avatar
      Clean up #includes in TestWebKitAPI · 8e9bf7c3
      aroben@apple.com authored
      Fixes <http://webkit.org/b/66556> TestWebKitAPI's prefix header isn't very helpful
      
      Reviewed by Anders Carlsson.
      
      * TestWebKitAPI/TestWebKitAPIPrefix.h: Added wtf/Platform.h. Added gtest/gtest.h for C++
      files and WebKit/WebKit.h for ObjC files.
      
      * TestWebKitAPI/InjectedBundleController.cpp:
      * TestWebKitAPI/JavaScriptTest.h:
      * TestWebKitAPI/PlatformUtilities.h:
      * TestWebKitAPI/PlatformWebView.h:
      * TestWebKitAPI/Test.h:
      * TestWebKitAPI/Tests/WTF/StringOperators.cpp:
      * TestWebKitAPI/Tests/WTF/VectorBasic.cpp:
      * TestWebKitAPI/Tests/WTF/VectorReverse.cpp:
      * TestWebKitAPI/Tests/WebKit2/AboutBlankLoad.cpp:
      * TestWebKitAPI/Tests/WebKit2/CanHandleRequest.cpp:
      * TestWebKitAPI/Tests/WebKit2/CookieManager.cpp:
      * TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp:
      * TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash_Bundle.cpp:
      * TestWebKitAPI/Tests/WebKit2/DownloadDecideDestinationCrash.cpp:
      * TestWebKitAPI/Tests/WebKit2/EvaluateJavaScript.cpp:
      * TestWebKitAPI/Tests/WebKit2/FailedLoad.cpp:
      * TestWebKitAPI/Tests/WebKit2/Find.cpp:
      * TestWebKitAPI/Tests/WebKit2/ForceRepaint.cpp:
      * TestWebKitAPI/Tests/WebKit2/FrameMIMETypeHTML.cpp:
      * TestWebKitAPI/Tests/WebKit2/FrameMIMETypePNG.cpp:
      * TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle.cpp:
      * TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle_Bundle.cpp:
      * TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic.cpp:
      * TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic_Bundle.cpp:
      * TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash.cpp:
      * TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp:
      * TestWebKitAPI/Tests/WebKit2/PageLoadDidChangeLocationWithinPageForFrame.cpp:
      * TestWebKitAPI/Tests/WebKit2/PreventEmptyUserAgent.cpp:
      * TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly.cpp:
      * TestWebKitAPI/Tests/WebKit2/RestoreSessionStateContainingFormData.cpp:
      * TestWebKitAPI/Tests/WebKit2/SpacebarScrolling.cpp:
      * TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp:
      * TestWebKitAPI/Tests/WebKit2/WKString.cpp:
      * TestWebKitAPI/Tests/WebKit2/WKStringJSString.cpp:
      * TestWebKitAPI/Tests/WebKit2/win/AltKeyGeneratesWMSysCommand.cpp:
      * TestWebKitAPI/Tests/WebKit2/win/DoNotCopyANullCFURLResponse.cpp:
      * TestWebKitAPI/Tests/WebKit2/win/HideFindIndicator.cpp:
      * TestWebKitAPI/Tests/WebKit2/win/ResizeViewWhileHidden.cpp:
      * TestWebKitAPI/Tests/WebKit2/win/TranslateMessageGeneratesWMChar.cpp:
      * TestWebKitAPI/Tests/WebKit2/win/WMCloseCallsUIClientClose.cpp:
      * TestWebKitAPI/Tests/WebKit2/win/WMPrint.cpp:
      * TestWebKitAPI/Tests/mac/DynamicDeviceScaleFactor.mm:
      * TestWebKitAPI/TestsController.cpp:
      * TestWebKitAPI/mac/PlatformUtilitiesMac.mm:
      Removed now-unnecessary #includes. Moved #includes of Test.h in with the rest of the
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93404 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8e9bf7c3
    • vitalyr@chromium.org's avatar
      2011-08-19 Vitaly Repeshko <vitalyr@chromium.org> · 2af4c7a1
      vitalyr@chromium.org authored
              [chromium] Updating baselines.
      
              Unreviewed.
      
              * platform/chromium-cg-mac-leopard/editing/pasteboard/paste-text-008-expected.png: Added.
              * platform/chromium-cg-mac/editing/pasteboard/merge-end-list-expected.png: Added.
              * platform/chromium-cg-mac/editing/pasteboard/paste-text-008-expected.png: Added.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93403 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      2af4c7a1
    • commit-queue@webkit.org's avatar
      [Qt][WK2] Change the rect argument of QtWebPageProxy::paint() to const ref · f67626d2
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66549
      
      Patch by Lars Knudsen <lars.knudsen@nokia.com> on 2011-08-19
      Reviewed by Benjamin Poulain.
      
      * UIProcess/qt/QtWebPageProxy.cpp:
      (QtWebPageProxy::paint):
      * UIProcess/qt/QtWebPageProxy.h:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93402 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f67626d2
    • commit-queue@webkit.org's avatar
      [EFL] Fix and update doxygen documentation for ewk_view. · df3f2dbe
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66293
      
      Patch by Grzegorz Czajkowski <g.czajkowski@samsung.com> on 2011-08-19
      Reviewed by Kent Tamura.
      
      Adds doxygen documentation to the structures in ewk_view.cpp.
      
      * ewk/ewk_view.cpp:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93401 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      df3f2dbe
    • caseq@chromium.org's avatar
      Web Inspector: [Extensions API][chromium] webInspector.resources deprecation... · edbdfc24
      caseq@chromium.org authored
      Web Inspector: [Extensions API][chromium] webInspector.resources deprecation warning is given even for extensions that don't use webInspector.resources
      https://bugs.webkit.org/show_bug.cgi?id=66553
      
      Reviewed by Pavel Feldman.
      
      * src/js/DevTools.js:
      (WebInspector.platformExtensionAPI):
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93400 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      edbdfc24
    • commit-queue@webkit.org's avatar
      [EFL] Modify type of both col and row parameters for backing store's internal api. · 671301c6
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65302
      
      As both col and row parameter's type for both _ewk_tiled_backing_store_item_fill
      and ewk_tiled_backing_store_item_add are different from each other, I modify type of them.
      
      Patch by KwangHyuk Kim <hyuki.kim@samsung.com> on 2011-08-19
      Reviewed by Adam Roben.
      
      * ewk/ewk_tiled_backing_store.c:
      (_ewk_tiled_backing_store_item_fill):
      (_ewk_tiled_backing_store_item_add):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93399 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      671301c6
    • pfeldman@chromium.org's avatar
      Web Inspector: getAttributes should work on a single node, not array. · be64dd3b
      pfeldman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66544
      
      Reviewed by Adam Roben.
      
      * inspector/Inspector.json:
      * inspector/InspectorDOMAgent.cpp:
      (WebCore::InspectorDOMAgent::getAttributes):
      * inspector/InspectorDOMAgent.h:
      * inspector/front-end/DOMAgent.js:
      (WebInspector.DOMAgent.prototype._loadNodeAttributes):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93398 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      be64dd3b
    • antonm@chromium.org's avatar
      [v8] CSS wrapper objects retention · 30b7aeaf
      antonm@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66377
      
      Reviewed by Pavel Feldman.
      
      Disable object grouping for CSS object wrappers.
      This logic leads to hard to debug use-after-free problems.
      
      Source/WebCore:
      
      * bindings/v8/V8GCController.cpp:
      (WebCore::GrouperVisitor::visitDOMWrapper):
      
      LayoutTests:
      
      * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93397 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      30b7aeaf
    • pfeldman@chromium.org's avatar
      Web Inspector: introduce NodeId inherited from integer in the DOM domain description. · a1521dc8
      pfeldman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66491
      
      Drive-by rename of couple of DOM domain protocol methods.
      
      Reviewed by Adam Roben.
      
      * inspector/Inspector.json:
      * inspector/InspectorDOMAgent.cpp:
      (WebCore::InspectorDOMAgent::requestChildNodes):
      (WebCore::InspectorDOMAgent::getAttributes):
      (WebCore::InspectorDOMAgent::requestNode):
      (WebCore::InspectorDOMAgent::buildObjectForNode):
      * inspector/InspectorDOMAgent.h:
      * inspector/front-end/DOMAgent.js:
      (WebInspector.DOMNode):
      (WebInspector.DOMNode.prototype.getChildNodes):
      (WebInspector.DOMAgent.prototype.pushNodeToFrontend):
      (WebInspector.DOMAgent.prototype._loadNodeAttributes):
      (WebInspector.DOMAgent.prototype._setDocument):
      (WebInspector.DOMAgent.prototype._setDetachedRoot):
      * inspector/generate-inspector-idl:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93396 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a1521dc8
    • jochen@chromium.org's avatar
      IDBSQLiteBackingStore::deleteObjectStore should maintain referential integrity. · cf0b05aa
      jochen@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66470
      
      Reviewed by Tony Gentilcore.
      
      * storage/IDBSQLiteBackingStore.cpp:
      (WebCore::IDBSQLiteBackingStore::deleteObjectStore):
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93395 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      cf0b05aa
    • zoltan@webkit.org's avatar
      [Qt] editing/selection/caret-at-bidi-boundary.html times out after r93369 · 9f2bc91f
      zoltan@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66514
      
      Skip it.
      
      * platform/qt/Skipped:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93394 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      9f2bc91f
    • commit-queue@webkit.org's avatar
      [WebSocket] CloseEvent's code and reason properties support. · cb8badea
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66362
      
      Patch by Takashi Toyoshima <toyoshim@chromium.org> on 2011-08-19
      Reviewed by Kent Tamura.
      
      Current WebSocket implementation miss code and reason properties
      in CloseEvent. This change expose incoming closing frame's code
      and reason to JavaScript API.
      
      Source/WebCore:
      
      Tests: http/tests/websocket/tests/hybi/close-code-and-reason.html
             http/tests/websocket/tests/hybi/workers/close-code-and-reason.html
      
      * websockets/CloseEvent.h:
      (WebCore::CloseEvent::initCloseEvent):
      (WebCore::CloseEvent::code):
      (WebCore::CloseEvent::reason):
      (WebCore::CloseEvent::CloseEvent):
      * websockets/CloseEvent.idl:
      Add code and reason properies.
      * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
      (WebCore::ThreadableWebSocketChannelClientWrapper::didCloseCallback):
      * websockets/ThreadableWebSocketChannelClientWrapper.h:
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::didConnect):
      (WebCore::WebSocket::didClose):
      * websockets/WebSocket.h:
      Add implement to handle code and reason.
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::WebSocketChannel):
      (WebCore::WebSocketChannel::didCloseSocketStream):
      (WebCore::WebSocketChannel::processFrame):
      * websockets/WebSocketChannel.h:
      Add closing frame payload parser.
      * websockets/WebSocketChannelClient.h:
      (WebCore::WebSocketChannelClient::didClose):
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::workerContextDidClose):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didClose):
      * websockets/WorkerThreadableWebSocketChannel.h:
      Add implement to handle code and reason.
      
      LayoutTests:
      
      * http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt: Added.
      * http/tests/websocket/tests/hybi/close-code-and-reason.html: Added.
      * http/tests/websocket/tests/hybi/close-code-and-reason_wsh.py: Added.
      * http/tests/websocket/tests/hybi/workers/close-code-and-reason-expected.txt: Added.
      * http/tests/websocket/tests/hybi/workers/close-code-and-reason.html: Added.
      * http/tests/websocket/tests/hybi/workers/resources/close-code-and-reason.js: Added.
      (postResult):
      (ws.onopen):
      (ws.onmessage):
      (ws.onclose):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93393 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      cb8badea
    • morrita@google.com's avatar
      .: Spell-checking doesn't recognize word boundaries on contests inserted by... · c74b6a4f
      morrita@google.com authored
      .: Spell-checking doesn't recognize word boundaries on contests inserted by execCommand('insertHTML')
      https://bugs.webkit.org/show_bug.cgi?id=65902
      
      Reviewed by Ryosuke Niwa.
      
      Add export for window.internals object.
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore: Spell-checking doesn't recognize word boundaries on contests inserted by execCommand('insertHTML')
      https://bugs.webkit.org/show_bug.cgi?id=65902
      
      Reviewed by Ryosuke Niwa.
      
      markMisspellingsAndBadGrammar() was using markSpelling() and markBadGrammar().
      But these are low-level API and caller should take care of word boundary.
      This change replaced these call with overloaded version of markMisspellingsAndBadGrammar(),
      which handles word boundary correctly.
      
      Test: editing/spelling/spelling-insert-html.html
      
      * WebCore.exp.in:
      * editing/Editor.cpp:
      (WebCore::Editor::markMisspellingsAndBadGrammar):
      * testing/Internals.cpp:
      (WebCore::Internals::markerCountOf): Added.
      (WebCore::Internals::markedRangeAt): Added.
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2: Spell-checking against execCommand() inserted HTML doesn't care word boundary.
      https://bugs.webkit.org/show_bug.cgi?id=65902
      
      Reviewed by Ryosuke Niwa.
      
      Add exports for window.internals object.
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests: Spell-checking doesn't recognize word boundaries on contests inserted by execCommand('insertHTML')
      https://bugs.webkit.org/show_bug.cgi?id=65902
      
      Reviewed by Ryosuke Niwa.
      
      Existing expectation was wrong because of some markers on substrings of words.
      With this fix, Editor now rejects such markers.
      
      * editing/spelling/spelling-insert-html-expected.txt: Added.
      * editing/spelling/spelling-insert-html.html: Added.
      * platform/mac/editing/pasteboard/merge-after-delete-1-expected.png:
      * platform/mac/editing/pasteboard/merge-after-delete-2-expected.png:
      * platform/mac/editing/pasteboard/merge-after-delete-expected.png:
      * platform/mac/editing/pasteboard/merge-end-blockquote-expected.png:
      * platform/mac/editing/pasteboard/merge-end-list-expected.png:
      * platform/mac/editing/pasteboard/merge-end-table-expected.png:
      * platform/mac/editing/pasteboard/paste-text-008-expected.png:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93392 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      c74b6a4f
    • commit-queue@webkit.org's avatar
      Run-time error fix in WebKit-GTK with video support disabled. · 443ccb11
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66541
      
      Definition of the function extraFullScreenStyleSheet() in webkit-gtk
      lies outside ENABLE(VIDEO) guard, resulting in runtime error while
      trying to launch GtkLauncher with video support disabled.
      
      Patch by Nayan Kumar K <nayankk@motorola.com> on 2011-08-19
      Reviewed by Philippe Normand.
      
      Run-time error fix. No test cases were added.
      
      * platform/gtk/RenderThemeGtk.h:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93391 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      443ccb11
    • commit-queue@webkit.org's avatar
      input[maxlength=0] should ignore text input. · 14426d87
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65497
      
      Patch by Shinya Kawanaka <shinyak@google.com> on 2011-08-19
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Changed the valid range of maxlength.
      
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::parseMaxLengthAttribute):
        Changed maxlength check condition.
      
      LayoutTests:
      
      * fast/forms/input-text-paste-maxlength-expected.txt:
        Added a case that maxlength=0
      * fast/forms/input-text-paste-maxlength.html: ditto.
      * fast/forms/script-tests/textarea-maxlength.js: ditto.
      (createFocusedTextAreaWithMaxLength):
      * fast/forms/textarea-maxlength-expected.txt: ditto.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93390 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      14426d87
    • loislo@chromium.org's avatar
      Web Inspector: backend js api: an ability to skip optional arguments in the... · 3f1e785c
      loislo@chromium.org authored
      Web Inspector: backend js api: an ability to skip optional arguments in the middle of the argument list is required.
      https://bugs.webkit.org/show_bug.cgi?id=66482
      
      There are functions in the API with multiple optional arguments.
      When we call it we have to specify an optional argument as 'undefined' if we want to pass non default value for the next one.
      This can be solved with passing the arguments as an object.
      
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      * inspector/CodeGeneratorInspector.pm:
      * inspector/front-end/RemoteObject.js:
      
      LayoutTests:
      
      * inspector/debugger/debugger-set-breakpoint-regex.html:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93389 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3f1e785c
    • zoltan@webkit.org's avatar
      [Qt] Build fix after r93384. · 75112776
      zoltan@webkit.org authored
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::RenderBlock::LineBreaker::nextLineBreak):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93388 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      75112776
    • commit-queue@webkit.org's avatar
      Computing screen-space transform for LayerChromium and CCLayerImpl · 17e2cb03
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66114
      
      Source/WebCore:
      
      Added a data member to LayerChromium and CCLayerImpl that holds
      the screen-space transform.   The transform is computed in
      calculateDrawTransformsAndVisibility(), which is used during
      updating (LayerChromium) and drawing (CCLayerImpl).
      
      Also fixed a FIXME in LayerRendererChromium::drawLayer, which
      was not computing the entire hierarchy of transforms to determine
      back-face visibility.  Now it simply uses the world space transform.
      
      Patch by Shawn Singh <shawnsingh@chromium.org> on 2011-08-18
      Reviewed by James Robinson.
      
      Test: compositing/backface-visibility-hierarchical-transform.html
      
      * platform/graphics/chromium/LayerChromium.h:
      (WebCore::LayerChromium::screenSpaceTransform):
      (WebCore::LayerChromium::setScreenSpaceTransform):
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      (WebCore::LayerRendererChromium::updateLayers):
      (WebCore::LayerRendererChromium::drawLayersInternal):
      (WebCore::LayerRendererChromium::drawLayer):
      * platform/graphics/chromium/cc/CCLayerImpl.h:
      (WebCore::CCLayerImpl::screenSpaceTransform):
      (WebCore::CCLayerImpl::setScreenSpaceTransform):
      
      LayoutTests:
      
      This case tests if backface visibility properly accounts for a hierarchy
      of transforms.  In particular, this test forces Chromium to create a
      hierarchy of RenderSurfaces.
      
      Patch by Shawn Singh <shawnsingh@chromium.org> on 2011-08-18
      Reviewed by James Robinson.
      
      * compositing/backface-visibility-hierarchical-transform-expected.png: Added.
      * compositing/backface-visibility-hierarchical-transform-expected.txt: Added.
      * compositing/backface-visibility-hierarchical-transform.html: Added.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93387 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      17e2cb03