1. 19 Aug, 2011 40 commits
    • commit-queue@webkit.org's avatar
      [CSSRegions]Speed up RenderFlowThread repaint of regions · d837102e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66566
      
      Patch by Mihnea Ovidenie <mihnea@adobe.com> on 2011-08-19
      Reviewed by David Hyatt.
      
      When in printing or the repaint rectangle is empty, there is no need to iterate
      the render flow regions in order to repaint.
      Covered by existing tests.
      
      * rendering/RenderFlowThread.cpp:
      (WebCore::RenderFlowThread::shouldRepaint):
      (WebCore::RenderFlowThread::repaintRectangleInRegions):
      * rendering/RenderFlowThread.h:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93432 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d837102e
    • tony@chromium.org's avatar
      [chromium] Mark touch tests as failing on OSX 10.5. · bb2e7fd7
      tony@chromium.org authored
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93431 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      bb2e7fd7
    • commit-queue@webkit.org's avatar
      [CSSRegions]Parse -webkit-region-break(after, before, inside) · b8af032b
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66559
      
      Patch by Mihnea Ovidenie <mihnea@adobe.com> on 2011-08-19
      Reviewed by David Hyatt.
      
      Source/WebCore:
      
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
      * css/CSSMutableStyleDeclaration.cpp:
      * css/CSSParser.cpp:
      (WebCore::CSSParser::parseValue):
      * css/CSSPropertyNames.in:
      * css/CSSStyleSelector.cpp:
      (WebCore::CSSStyleSelector::applyProperty):
      * rendering/style/RenderStyle.h:
      (WebCore::InheritedFlags::regionBreakBefore):
      (WebCore::InheritedFlags::regionBreakInside):
      (WebCore::InheritedFlags::regionBreakAfter):
      (WebCore::InheritedFlags::setRegionBreakBefore):
      (WebCore::InheritedFlags::setRegionBreakInside):
      (WebCore::InheritedFlags::setRegionBreakAfter):
      * rendering/style/StyleRareNonInheritedData.cpp:
      (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
      (WebCore::StyleRareNonInheritedData::operator==):
      * rendering/style/StyleRareNonInheritedData.h:
      
      LayoutTests:
      
      * fast/css/getComputedStyle/computed-style-expected.txt:
      * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
      * svg/css/getComputedStyle-basic-expected.txt:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93430 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b8af032b
    • eae@chromium.org's avatar
      Switch RenderLayer to to new layout types · bcbbd0f3
      eae@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66507
      
      Reviewed by Eric Seidel.
      
      Convert RenderLayer to new layout abstraction.
      
      No new tests as no new functionality.
      
      * rendering/LayoutTypes.h:
      (WebCore::flooredLayoutSize):
      * rendering/RenderLayer.cpp:
      * rendering/RenderLayer.h:
      * rendering/RenderLayerBacking.cpp:
      * rendering/RenderLayerBacking.h:
      * rendering/RenderLayerCompositor.cpp:
      * rendering/RenderLayerCompositor.h:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93429 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      bcbbd0f3
    • commit-queue@webkit.org's avatar
      [CSSRegions]Content displayed in regions should not be scrollable · ed0a7ba2
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66459
      
      Patch by Mihnea Ovidenie <mihnea@adobe.com> on 2011-08-19
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      Initially, when creating the style for the RenderFlowThread, overflowX and overflowY were both set to hidden,
      so that RenderView did not display scrollbars when a RenderFlowThread exists. However, this allowed the possibility
      of scrolling the content displayed in region.
      
      Now, the RenderFlowThread objects are ignored in RenderBlock::insertPositionedObject and the style of the RenderFlowThread
      can be set to visible, thus preventing scrolling of the content displayed in regions.
      
      Test: fast/regions/content-flowed-into-regions-no-scroll.html
      
      * rendering/RenderFlowThread.cpp:
      (WebCore::RenderFlowThread::createFlowThreadStyle):
      
      LayoutTests:
      
      * fast/regions/content-flowed-into-regions-no-scroll-expected.txt: Added.
      * fast/regions/content-flowed-into-regions-no-scroll.html: Added.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93428 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      ed0a7ba2
    • caio.oliveira@openbossa.org's avatar
      [Qt] [WK2] Provide API for intercept (and possible ignore) links clicked in QDesktopWebView · b1d38722
      caio.oliveira@openbossa.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65920
      
      Reviewed by Benjamin Poulain.
      
      This patch makes QDesktopWebView delegate the decision of whether a navigation
      should proceed to a slot in QML. The user of the DesktopWebView must implement a
      'navigationPolicyForUrl()' if it wants to use the feature.
      
      Such feature is useful for implementing opening links in "new tab" by using a
      specific mouse button or mouse button plus keyboard modifiers.
      
      The patch introduces a internal Qt-level interface called PolicyInterface, that
      is used by QtWebPageProxy to delegate policy calls. A concrete implementation is
      provided for QDesktopWebView.
      
      * Shared/qt/WebCoreArgumentCodersQt.cpp:
      (CoreIPC::::encode):
      (CoreIPC::::decode):
      Implement the serialization of the Request URL, which is the only data
      we exposing from the Request.
      
      * WebKit2.pro:
      * UIProcess/qt/PolicyInterface.h: Added.
      * UIProcess/qt/QtWebPageProxy.cpp:
      (QtWebPageProxy::QtWebPageProxy):
      (QtWebPageProxy::init):
      * UIProcess/qt/QtWebPageProxy.h:
      Register a Policy Client in the WK2 C API only if there's a PolicyInterface available.
      
      * UIProcess/qt/ClientImpl.h:
      * UIProcess/qt/ClientImpl.cpp:
      (toPolicyInterface):
      (toQtMouseButton):
      (toQtKeyboardModifiers):
      (qt_wk_decidePolicyForNavigationAction):
      Implement the callback for the Page Policy Client. It will translate the
      arguments to Qt jargon and call PolicyInterface.
      
      * UIProcess/qt/qdesktopwebpageproxy.cpp:
      (QDesktopWebPageProxy::QDesktopWebPageProxy):
      * UIProcess/API/qt/qdesktopwebview.h:
      * UIProcess/API/qt/qdesktopwebview_p.h:
      * UIProcess/API/qt/qdesktopwebview.cpp:
      (toPolicyAction):
      (hasMetaMethod):
      (QDesktopWebViewPrivate::navigationPolicyForURL):
      The concrete implementation for QDesktopWebView. Its private object implements
      the PolicyInterface and try to call a possible function defined in QML (so return
      value and arguments all QVariants). If there's no such a function, returns the
      default UsePolicy, like if we haven't registered a PolicyClient in WK2 C API.
      
      * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_navigationPolicyForUrl.qml: Added.
      * UIProcess/API/qt/tests/qmltests/common/test2.html: Added.
      * UIProcess/API/qt/tests/qmltests/qmltests.pro:
      Add a test for DesktopWebView QML element making use of a button and a modifier to
      ignore a navigation.
      
      * UIProcess/qt/qtouchwebpageproxy.cpp:
      (QTouchWebPageProxy::QTouchWebPageProxy):
      For now, we don't have a PolicyInterface for QTouchWebView.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@93427 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b1d38722
    • 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