WebKit-https.git
8 years ago2011-04-15 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Fri, 15 Apr 2011 23:38:04 +0000 (23:38 +0000)]
2011-04-15  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Oliver Hunt.

        DOM object handles are never removed from cache
        https://bugs.webkit.org/show_bug.cgi?id=58707

        We were trying to remove hash table items by value instead of by key.

        * bindings/js/DOMWrapperWorld.cpp:
        (WebCore::JSNodeHandleOwner::finalize): Changed to work more like
        DOMObjectHandleOwner::finalize because I'm going to merge them.

        (WebCore::DOMObjectHandleOwner::finalize): Remove hash table items
        by key, not value. (Oops!) Use a helper function to make sure we get
        this right.

        * bindings/js/JSDOMBinding.cpp:
        (WebCore::cacheDOMObjectWrapper): Store the hash table key as our weak
        handle context, so we can use it at destruction time.

        * bindings/js/JSDOMBinding.h: Removed unnecessary include.

        * bindings/js/JSNodeCustom.h:
        (WebCore::cacheDOMNodeWrapper): Store the hash table key as our weak
        handle context, so we can use it at destruction time.

        * bindings/js/ScriptWrappable.h:
        (WebCore::ScriptWrappable::setWrapper): Forward context parameter, to
        support the above.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84049 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Fridrich Strba <fridrich.strba@bluewin.ch>
commit-queue@webkit.org [Fri, 15 Apr 2011 23:35:48 +0000 (23:35 +0000)]
2011-04-15  Fridrich Strba  <fridrich.strba@bluewin.ch>

        Reviewed by Gavin Barraclough.

        Correctly prefix symbols. Since gcc 4.5.0, Windows x64 symbols
        are not prefixed by underscore anymore. This is consistent with
        what MSVC does.
        https://bugs.webkit.org/show_bug.cgi?id=58573

        * jit/JITStubs.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84048 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Fri, 15 Apr 2011 23:10:43 +0000 (23:10 +0000)]
2011-04-15  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Martin Robinson.

        * configure.ac: bump to 1.5.0, 1.4.0 will be released from a
        branch and was already cut off.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84047 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Kenneth Russell <kbr@google.com>
kbr@google.com [Fri, 15 Apr 2011 23:03:02 +0000 (23:03 +0000)]
2011-04-15  Kenneth Russell  <kbr@google.com>

        Unreviewed. Chromium Linux Release build fix due to unused variables.

        * platform/audio/mkl/FFTFrameMKL.cpp:
        (WebCore::FFTFrame::doFFT):
        (WebCore::FFTFrame::doInverseFFT):
        (WebCore::FFTFrame::cleanup):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84046 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoBug 58705 - DFG JIT Add support for flow control (branch, jump).
barraclough@apple.com [Fri, 15 Apr 2011 23:02:09 +0000 (23:02 +0000)]
Bug 58705 - DFG JIT Add support for flow control (branch, jump).

Reviewed by Geoff Garen.

Add support for control flow by breaking the CodeBlock up into multiple
basic blocks, generating code for each basic block in turn through the
speculative JIT & then the non-speculative JIT.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::setTemporary):
(JSC::DFG::ByteCodeParser::addToGraph):
(JSC::DFG::ByteCodeParser::parseBlock):
(JSC::DFG::ByteCodeParser::parse):
* dfg/DFGGraph.cpp:
(JSC::DFG::Graph::dump):
* dfg/DFGGraph.h:
(JSC::DFG::BasicBlock::BasicBlock):
(JSC::DFG::BasicBlock::getBytecodeOffset):
(JSC::DFG::Graph::blockIndexForBytecodeOffset):
* dfg/DFGJITCodeGenerator.h:
(JSC::DFG::JITCodeGenerator::JITCodeGenerator):
(JSC::DFG::JITCodeGenerator::addBranch):
(JSC::DFG::JITCodeGenerator::linkBranches):
(JSC::DFG::JITCodeGenerator::BranchRecord::BranchRecord):
* dfg/DFGNode.h:
(JSC::DFG::Node::Node):
(JSC::DFG::Node::isJump):
(JSC::DFG::Node::isBranch):
(JSC::DFG::Node::takenBytecodeOffset):
(JSC::DFG::Node::notTakenBytecodeOffset):
* dfg/DFGNonSpeculativeJIT.cpp:
(JSC::DFG::NonSpeculativeJIT::compile):
* dfg/DFGNonSpeculativeJIT.h:
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84045 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoUnreviewed build change after r83945.
bfulgham@webkit.org [Fri, 15 Apr 2011 22:56:34 +0000 (22:56 +0000)]
Unreviewed build change after r83945.

New 'PlatformPathCairo.cpp' was not added to the WinCairo build.

* WebCore.vcproj/WebCore.vcproj: Add missing file to WinCairo
  build.  Exclude for standard Apple build.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84044 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAdd API to get the bundle page overlay fade in fraction.
andersca@apple.com [Fri, 15 Apr 2011 22:54:49 +0000 (22:54 +0000)]
Add API to get the bundle page overlay fade in fraction.

Reviewed by Sam Weinig.

* WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
(WKBundlePageOverlayFractionFadedIn):
* WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84043 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Fri, 15 Apr 2011 22:31:29 +0000 (22:31 +0000)]
2011-04-15  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.

        Fade the find page overlay
        https://bugs.webkit.org/show_bug.cgi?id=58697

        Add a symbol that WebKit2 needs.

        * WebCore.exp.in:
2011-04-15  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.

        Fade the find page overlay
        https://bugs.webkit.org/show_bug.cgi?id=58697

        * WebProcess/WebPage/FindController.cpp:
        Make the color components floats.

        (WebKit::overlayBackgroundColor):
        (WebKit::holeShadowColor):
        (WebKit::holeFillColor):
        Add helper functions for returning the colors given the fraction faded in.

        (WebKit::FindController::drawRect):
        Use the new helper functions.

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::installPageOverlay):
        Start the fade animation unless we're replacing an already existing page overlay
        with another.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84042 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoBug 58701 - DFG JIT - add GetLocal/SetLocal nodes
barraclough@apple.com [Fri, 15 Apr 2011 22:30:06 +0000 (22:30 +0000)]
Bug 58701 - DFG JIT - add GetLocal/SetLocal nodes

Reviewed by Geoff Garen.

Use these for both access to arguments & local variables, adds ability
to set locals, such that values will persist between basic blocks.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::ByteCodeParser):
(JSC::DFG::ByteCodeParser::get):
(JSC::DFG::ByteCodeParser::set):
(JSC::DFG::ByteCodeParser::getVariable):
(JSC::DFG::ByteCodeParser::setVariable):
(JSC::DFG::ByteCodeParser::getArgument):
(JSC::DFG::ByteCodeParser::setArgument):
(JSC::DFG::ByteCodeParser::getThis):
(JSC::DFG::ByteCodeParser::setThis):
(JSC::DFG::ByteCodeParser::VariableRecord::VariableRecord):
(JSC::DFG::ByteCodeParser::parseBlock):
* dfg/DFGGraph.cpp:
(JSC::DFG::Graph::dump):
(JSC::DFG::Graph::derefChildren):
* dfg/DFGGraph.h:
(JSC::DFG::Graph::ref):
(JSC::DFG::Graph::deref):
* dfg/DFGNode.h:
(JSC::DFG::Node::hasLocal):
(JSC::DFG::Node::local):
* dfg/DFGNonSpeculativeJIT.cpp:
(JSC::DFG::NonSpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compile):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84041 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Fri, 15 Apr 2011 22:17:20 +0000 (22:17 +0000)]
2011-04-15  Andreas Kling  <kling@webkit.org>

        Unreviewed, remove a Qt-specific expectation that's no longer needed.

        * platform/qt/Skipped:
        * platform/qt/fast/loader/onload-policy-ignore-for-frame-expected.txt: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84040 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 MORITA Hajime <morrita@google.com>
morrita@google.com [Fri, 15 Apr 2011 21:56:48 +0000 (21:56 +0000)]
2011-04-15  MORITA Hajime  <morrita@google.com>

        Reviewed by Dimitri Glazkov.

        RenderDetailsMarker should belong to shadow element.
        https://bugs.webkit.org/show_bug.cgi?id=58591

        * Render tree structure has changed.
        * Changed style rule on details-writing-mode.html to avoid to hit shadow CSS leak bug.

        * fast/html/details-writing-mode.html:
        * platform/chromium/test_expectations.txt:
        * platform/mac/fast/html/details-add-summary-1-and-click-expected.checksum:
        * platform/mac/fast/html/details-add-summary-1-and-click-expected.png:
        * platform/mac/fast/html/details-add-summary-1-and-click-expected.txt:
        * platform/mac/fast/html/details-add-summary-1-expected.checksum:
        * platform/mac/fast/html/details-add-summary-1-expected.png:
        * platform/mac/fast/html/details-add-summary-1-expected.txt:
        * platform/mac/fast/html/details-add-summary-10-and-click-expected.checksum:
        * platform/mac/fast/html/details-add-summary-10-and-click-expected.png:
        * platform/mac/fast/html/details-add-summary-10-and-click-expected.txt:
        * platform/mac/fast/html/details-add-summary-10-expected.checksum:
        * platform/mac/fast/html/details-add-summary-10-expected.png:
        * platform/mac/fast/html/details-add-summary-10-expected.txt:
        * platform/mac/fast/html/details-add-summary-2-and-click-expected.checksum:
        * platform/mac/fast/html/details-add-summary-2-and-click-expected.png:
        * platform/mac/fast/html/details-add-summary-2-and-click-expected.txt:
        * platform/mac/fast/html/details-add-summary-2-expected.checksum:
        * platform/mac/fast/html/details-add-summary-2-expected.png:
        * platform/mac/fast/html/details-add-summary-2-expected.txt:
        * platform/mac/fast/html/details-add-summary-3-and-click-expected.checksum:
        * platform/mac/fast/html/details-add-summary-3-and-click-expected.png:
        * platform/mac/fast/html/details-add-summary-3-and-click-expected.txt:
        * platform/mac/fast/html/details-add-summary-3-expected.checksum:
        * platform/mac/fast/html/details-add-summary-3-expected.png:
        * platform/mac/fast/html/details-add-summary-3-expected.txt:
        * platform/mac/fast/html/details-add-summary-4-and-click-expected.checksum:
        * platform/mac/fast/html/details-add-summary-4-and-click-expected.png:
        * platform/mac/fast/html/details-add-summary-4-and-click-expected.txt:
        * platform/mac/fast/html/details-add-summary-4-expected.checksum:
        * platform/mac/fast/html/details-add-summary-4-expected.png:
        * platform/mac/fast/html/details-add-summary-4-expected.txt:
        * platform/mac/fast/html/details-add-summary-5-and-click-expected.checksum:
        * platform/mac/fast/html/details-add-summary-5-and-click-expected.png:
        * platform/mac/fast/html/details-add-summary-5-and-click-expected.txt:
        * platform/mac/fast/html/details-add-summary-5-expected.checksum:
        * platform/mac/fast/html/details-add-summary-5-expected.png:
        * platform/mac/fast/html/details-add-summary-5-expected.txt:
        * platform/mac/fast/html/details-add-summary-6-and-click-expected.checksum:
        * platform/mac/fast/html/details-add-summary-6-and-click-expected.png:
        * platform/mac/fast/html/details-add-summary-6-and-click-expected.txt:
        * platform/mac/fast/html/details-add-summary-6-expected.checksum:
        * platform/mac/fast/html/details-add-summary-6-expected.png:
        * platform/mac/fast/html/details-add-summary-6-expected.txt:
        * platform/mac/fast/html/details-add-summary-7-and-click-expected.checksum:
        * platform/mac/fast/html/details-add-summary-7-and-click-expected.png:
        * platform/mac/fast/html/details-add-summary-7-and-click-expected.txt:
        * platform/mac/fast/html/details-add-summary-7-expected.checksum:
        * platform/mac/fast/html/details-add-summary-7-expected.png:
        * platform/mac/fast/html/details-add-summary-7-expected.txt:
        * platform/mac/fast/html/details-add-summary-8-and-click-expected.checksum:
        * platform/mac/fast/html/details-add-summary-8-and-click-expected.png:
        * platform/mac/fast/html/details-add-summary-8-and-click-expected.txt:
        * platform/mac/fast/html/details-add-summary-8-expected.checksum:
        * platform/mac/fast/html/details-add-summary-8-expected.png:
        * platform/mac/fast/html/details-add-summary-8-expected.txt:
        * platform/mac/fast/html/details-add-summary-9-and-click-expected.checksum:
        * platform/mac/fast/html/details-add-summary-9-and-click-expected.png:
        * platform/mac/fast/html/details-add-summary-9-and-click-expected.txt:
        * platform/mac/fast/html/details-add-summary-9-expected.checksum:
        * platform/mac/fast/html/details-add-summary-9-expected.png:
        * platform/mac/fast/html/details-add-summary-9-expected.txt:
        * platform/mac/fast/html/details-no-summary1-expected.checksum:
        * platform/mac/fast/html/details-no-summary1-expected.png:
        * platform/mac/fast/html/details-no-summary1-expected.txt:
        * platform/mac/fast/html/details-no-summary2-expected.checksum:
        * platform/mac/fast/html/details-no-summary2-expected.png:
        * platform/mac/fast/html/details-no-summary2-expected.txt:
        * platform/mac/fast/html/details-no-summary3-expected.checksum:
        * platform/mac/fast/html/details-no-summary3-expected.png:
        * platform/mac/fast/html/details-no-summary3-expected.txt:
        * platform/mac/fast/html/details-no-summary4-expected.checksum:
        * platform/mac/fast/html/details-no-summary4-expected.png:
        * platform/mac/fast/html/details-no-summary4-expected.txt:
        * platform/mac/fast/html/details-open-javascript-expected.checksum:
        * platform/mac/fast/html/details-open-javascript-expected.png:
        * platform/mac/fast/html/details-open-javascript-expected.txt:
        * platform/mac/fast/html/details-open1-expected.checksum:
        * platform/mac/fast/html/details-open1-expected.png:
        * platform/mac/fast/html/details-open1-expected.txt:
        * platform/mac/fast/html/details-open2-expected.checksum:
        * platform/mac/fast/html/details-open2-expected.png:
        * platform/mac/fast/html/details-open2-expected.txt:
        * platform/mac/fast/html/details-open3-expected.checksum:
        * platform/mac/fast/html/details-open3-expected.png:
        * platform/mac/fast/html/details-open3-expected.txt:
        * platform/mac/fast/html/details-open4-expected.checksum:
        * platform/mac/fast/html/details-open4-expected.png:
        * platform/mac/fast/html/details-open4-expected.txt:
        * platform/mac/fast/html/details-open5-expected.checksum:
        * platform/mac/fast/html/details-open5-expected.png:
        * platform/mac/fast/html/details-open5-expected.txt:
        * platform/mac/fast/html/details-open6-expected.checksum:
        * platform/mac/fast/html/details-open6-expected.png:
        * platform/mac/fast/html/details-open6-expected.txt:
        * platform/mac/fast/html/details-position-expected.checksum:
        * platform/mac/fast/html/details-position-expected.png:
        * platform/mac/fast/html/details-position-expected.txt:
        * platform/mac/fast/html/details-remove-summary-1-and-click-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-1-and-click-expected.png:
        * platform/mac/fast/html/details-remove-summary-1-and-click-expected.txt:
        * platform/mac/fast/html/details-remove-summary-1-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-1-expected.png:
        * platform/mac/fast/html/details-remove-summary-1-expected.txt:
        * platform/mac/fast/html/details-remove-summary-2-and-click-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-2-and-click-expected.png:
        * platform/mac/fast/html/details-remove-summary-2-and-click-expected.txt:
        * platform/mac/fast/html/details-remove-summary-2-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-2-expected.png:
        * platform/mac/fast/html/details-remove-summary-2-expected.txt:
        * platform/mac/fast/html/details-remove-summary-3-and-click-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-3-and-click-expected.png:
        * platform/mac/fast/html/details-remove-summary-3-and-click-expected.txt:
        * platform/mac/fast/html/details-remove-summary-3-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-3-expected.png:
        * platform/mac/fast/html/details-remove-summary-3-expected.txt:
        * platform/mac/fast/html/details-remove-summary-4-and-click-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-4-and-click-expected.png:
        * platform/mac/fast/html/details-remove-summary-4-and-click-expected.txt:
        * platform/mac/fast/html/details-remove-summary-4-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-4-expected.png:
        * platform/mac/fast/html/details-remove-summary-4-expected.txt:
        * platform/mac/fast/html/details-remove-summary-5-and-click-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-5-and-click-expected.png:
        * platform/mac/fast/html/details-remove-summary-5-and-click-expected.txt:
        * platform/mac/fast/html/details-remove-summary-5-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-5-expected.png:
        * platform/mac/fast/html/details-remove-summary-5-expected.txt:
        * platform/mac/fast/html/details-remove-summary-6-and-click-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-6-and-click-expected.png:
        * platform/mac/fast/html/details-remove-summary-6-and-click-expected.txt:
        * platform/mac/fast/html/details-remove-summary-6-expected.checksum:
        * platform/mac/fast/html/details-remove-summary-6-expected.png:
        * platform/mac/fast/html/details-remove-summary-6-expected.txt:
        * platform/mac/fast/html/details-writing-mode-expected.checksum:
        * platform/mac/fast/html/details-writing-mode-expected.png:
        * platform/mac/fast/html/details-writing-mode-expected.txt:
2011-04-15  MORITA Hajime  <morrita@google.com>

        Reviewed by Dimitri Glazkov.

        RenderDetailsMarker should belong to shadow element.
        https://bugs.webkit.org/show_bug.cgi?id=58591

        - Introduced DetailsMarkerControl element, which is a shadow element of <summary>, creates RenderDetailsMarker.
        - Removed custom layout code from RenderDetails, RenderDetailsMarker, which is now done by usual CSS layout.
          Note that marker size is given via style for -webkit-details-marker pseudo class.
        - Converted default summary implementation from pure-renderer style to shadow of HTMLDetailsElement.
          Now RenderDetails knows nothing about default summary.
        - Moved event handling code from HTMLDetailsElement to HTMLSummaryElement because now the marker is always child of
          <summary>, and the clickable area is now <summary> itself.

        - Note that the rendering result is changed due to the conversion from custom layout code to usual CSS styling.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.list.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * css/html.css:
        (summary::-webkit-details-marker):
        * dom/Element.cpp:
        (WebCore::Element::attach):
        * dom/Node.cpp:
        (WebCore::shouldCreateRendererFor):
        * dom/Node.h:
        (WebCore::Node::canHaveLightChildRendererWithShadow):
        * html/HTMLDetailsElement.cpp:
        (WebCore::HTMLDetailsElement::findSummaryFor):
        (WebCore::HTMLDetailsElement::findMainSummary):
        (WebCore::HTMLDetailsElement::refreshMainSummary):
        (WebCore::HTMLDetailsElement::createShadowSubtree):
        (WebCore::HTMLDetailsElement::childrenChanged):
        (WebCore::HTMLDetailsElement::finishParsingChildren):
        (WebCore::HTMLDetailsElement::toggleOpen):
        * html/HTMLDetailsElement.h:
        (WebCore::HTMLDetailsElement::canHaveLightChildRendererWithShadow):
        * html/HTMLSummaryElement.cpp:
        (WebCore::HTMLSummaryElement::create):
        (WebCore::HTMLSummaryElement::createShadowSubtree):
        (WebCore::HTMLSummaryElement::detailsElement):
        (WebCore::HTMLSummaryElement::isMainSummary):
        (WebCore::HTMLSummaryElement::defaultEventHandler):
        * html/HTMLSummaryElement.h:
        (WebCore::HTMLSummaryElement::canHaveLightChildRendererWithShadow):
        * html/shadow/DetailsMarkerControl.cpp: Added.
        (WebCore::DetailsMarkerControl::DetailsMarkerControl):
        (WebCore::DetailsMarkerControl::createRenderer):
        (WebCore::DetailsMarkerControl::rendererIsNeeded):
        (WebCore::DetailsMarkerControl::shadowPseudoId):
        (WebCore::DetailsMarkerControl::summaryElement):
        * html/shadow/DetailsMarkerControl.h: Added.
        (WebCore::DetailsMarkerControl::create):
        * rendering/RenderDetails.cpp:
        (WebCore::RenderDetails::RenderDetails):
        (WebCore::RenderDetails::styleDidChange):
        (WebCore::RenderDetails::moveSummaryToContents):
        (WebCore::RenderDetails::checkMainSummary):
        (WebCore::RenderDetails::layout):
        * rendering/RenderDetails.h:
        * rendering/RenderDetailsMarker.cpp:
        (WebCore::RenderDetailsMarker::RenderDetailsMarker):
        (WebCore::RenderDetailsMarker::isOpen):
        (WebCore::RenderDetailsMarker::getPath):
        (WebCore::RenderDetailsMarker::paint):
        (WebCore::RenderDetailsMarker::details):
        * rendering/RenderDetailsMarker.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84039 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoBug 58696 - DFG JIT split handling of vars/temporaries
barraclough@apple.com [Fri, 15 Apr 2011 21:45:42 +0000 (21:45 +0000)]
Bug 58696 - DFG JIT split handling of vars/temporaries

Reviewed by Sam Weinig.

Presently all callee registers are treated as having single block scope,
since the DFG JIT can only compile single block functions. In order to
expand the JIT to support control flow we will need to change to retaining
locals (but not temporaries) across basic block boundaries.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::ByteCodeParser):
(JSC::DFG::ByteCodeParser::get):
(JSC::DFG::ByteCodeParser::set):
(JSC::DFG::ByteCodeParser::getVariable):
(JSC::DFG::ByteCodeParser::setVariable):
(JSC::DFG::ByteCodeParser::getTemporary):
(JSC::DFG::ByteCodeParser::setTemporary):
(JSC::DFG::ByteCodeParser::getArgument):
(JSC::DFG::ByteCodeParser::getInt32Constant):
(JSC::DFG::ByteCodeParser::getDoubleConstant):
(JSC::DFG::ByteCodeParser::getJSConstant):
(JSC::DFG::ByteCodeParser::constantUndefined):
(JSC::DFG::ByteCodeParser::constantNull):
(JSC::DFG::ByteCodeParser::one):
(JSC::DFG::ByteCodeParser::parseBlock):
(JSC::DFG::ByteCodeParser::parse):
(JSC::DFG::parse):
* dfg/DFGNode.h:
* dfg/DFGScoreBoard.h:
(JSC::DFG::ScoreBoard::ScoreBoard):
(JSC::DFG::ScoreBoard::~ScoreBoard):
(JSC::DFG::ScoreBoard::allocate):
(JSC::DFG::ScoreBoard::use):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84037 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoFix Windows build.
andersca@apple.com [Fri, 15 Apr 2011 21:44:35 +0000 (21:44 +0000)]
Fix Windows build.

* WebProcess/WebPage/PageOverlay.cpp:
(WebKit::PageOverlay::fadeAnimationTimerFired):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84036 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Adrienne Walker <enne@google.com>
enne@google.com [Fri, 15 Apr 2011 21:44:14 +0000 (21:44 +0000)]
2011-04-15  Adrienne Walker  <enne@google.com>

        [chromium] Unreviewed, update baselines for compositing changes.
        https://bugs.webkit.org/show_bug.cgi?id=57113

        * platform/chromium-gpu-linux/compositing/geometry/fixed-position-expected.png:
        * platform/chromium-gpu-linux/compositing/geometry/horizontal-scroll-composited-expected.png:
        * platform/chromium-gpu-linux/compositing/geometry/vertical-scroll-composited-expected.png:
        * platform/chromium-gpu-linux/compositing/overflow/fixed-position-ancestor-clip-expected.png:
        * platform/chromium-gpu-linux/platform/chromium/compositing/huge-layer-rotated-expected.png: Added.
        * platform/chromium-gpu-linux/platform/chromium/compositing/layout-width-change-expected.png:
        * platform/chromium-gpu-mac/compositing/geometry/fixed-position-expected.png:
        * platform/chromium-gpu-mac/compositing/geometry/horizontal-scroll-composited-expected.png:
        * platform/chromium-gpu-mac/compositing/geometry/vertical-scroll-composited-expected.png:
        * platform/chromium-gpu-mac/compositing/overflow/fixed-position-ancestor-clip-expected.png:
        * platform/chromium-gpu-mac/compositing/tiling/huge-layer-img-expected.png: Added.
        * platform/chromium-gpu-mac/compositing/tiling/huge-layer-img-expected.txt: Added.
        * platform/chromium-gpu-mac/platform/chromium/compositing/huge-layer-rotated-expected.png:
        * platform/chromium-gpu-mac/platform/chromium/compositing/layout-width-change-expected.png:
        * platform/chromium-gpu-win/compositing/geometry/fixed-position-expected.png:
        * platform/chromium-gpu-win/compositing/geometry/horizontal-scroll-composited-expected.png:
        * platform/chromium-gpu-win/compositing/geometry/vertical-scroll-composited-expected.png:
        * platform/chromium-gpu-win/compositing/overflow/fixed-position-ancestor-clip-expected.png:
        * platform/chromium-gpu-win/compositing/tiling/huge-layer-img-expected.png: Added.
        * platform/chromium-gpu-win/platform/chromium/compositing/huge-layer-rotated-expected.png:
        * platform/chromium-gpu-win/platform/chromium/compositing/layout-width-change-expected.png:
        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84035 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Fri, 15 Apr 2011 21:36:13 +0000 (21:36 +0000)]
2011-04-15  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Add the ability for PageOverlays to fade in and out
        https://bugs.webkit.org/show_bug.cgi?id=58694

        * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
        (WKBundlePageUninstallPageOverlay):
        WebPage::uninstallPageOverlay now takes a boolean. Default to false for now.

        * WebProcess/WebPage/FindController.cpp:
        (WebKit::FindController::findString):
        Pass false to uninstallPageOverlay.

        (WebKit::FindController::hideFindUI):
        Pass true to uninstallPageOverlay.

        * WebProcess/WebPage/PageOverlay.cpp:
        (WebKit::PageOverlay::PageOverlay):
        Initialize new member variables.

        (WebKit::PageOverlay::bounds):
        Get rid of an unnecessary webPage() getter.

        (WebKit::PageOverlay::setPage):
        Stop the animation timer.

        (WebKit::PageOverlay::startFadeInAnimation):
        Update m_fractionFadedIn and call startFadeAnimation.

        (WebKit::PageOverlay::startFadeOutAnimation):
        Ditto.

        (WebKit::PageOverlay::startFadeAnimation):
        Initialize m_fadeAnimationStartTime and start the fade animation timer.

        (WebKit::PageOverlay::fadeAnimationTimerFired):
        Update m_fractionFadedIn and call setNeedsDisplay().

        * WebProcess/WebPage/PageOverlay.h:
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::uninstallPageOverlay):
        If fadeOut is true, tell the page overlay to start the fade out animation.
        When the fade animation is complete, the page overlay will uninstall itself.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84034 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Sam Weinig <sam@webkit.org>
weinig@apple.com [Fri, 15 Apr 2011 21:18:20 +0000 (21:18 +0000)]
2011-04-15  Sam Weinig  <sam@webkit.org>

        Reviewed by Adam Roben.

        Implement localize strings for windows WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=58688

        * platform/win/LocalizedStringsWin.cpp:
        (WebCore::createWebKitBundle):
        (WebCore::webKitBundle):
        (WebCore::localizedString):
        Add implementation of localizedString for Windows.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84033 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago Fixing build.
msaboff@apple.com [Fri, 15 Apr 2011 21:13:30 +0000 (21:13 +0000)]
Fixing build.

    Inadvertantly checked in
    Source/JavaScriptCore/Configurations/JavaScriptCore.xcconfig
    instead of Source/JavaScriptCore/JavaScriptCore.exp

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84032 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Fri, 15 Apr 2011 20:56:18 +0000 (20:56 +0000)]
2011-04-15  Andreas Kling  <kling@webkit.org>

        Skip failing tests after r84010 and r84012.

        * platform/qt/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84031 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Michael Saboff <msaboff@apple.com>
msaboff@apple.com [Fri, 15 Apr 2011 20:51:24 +0000 (20:51 +0000)]
2011-04-15  Michael Saboff  <msaboff@apple.com>

        Reviewed by Oliver Hunt.

        globalObject moved to JSObjectWithGlobalObject.cpp inhibits inlining
        https://bugs.webkit.org/show_bug.cgi?id=58677

        Moved JSObjectWithGlobalObject::globalObject() to
        runtime/JSObjectWithGlobalObject.h to allow the compiler to inline
        it for a performance benefit.  An equivalent instance had been in
        a header file before r60057.

        * JavaScriptCore.exp:
        * runtime/JSObjectWithGlobalObject.cpp:
        * runtime/JSObjectWithGlobalObject.h:
        (JSC::JSObjectWithGlobalObject::globalObject):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84030 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Fri, 15 Apr 2011 20:47:54 +0000 (20:47 +0000)]
2011-04-15  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Oliver Hunt.

        Some mechanical DOM wrapper cleanup
        https://bugs.webkit.org/show_bug.cgi?id=58689

        * WebCore.exp.in: Export!

        * bindings/js/DOMWrapperWorld.cpp:
        (WebCore::isReachableFromDOM): Inverted the inDocument test to make the
        relationship of the special cases to the normal case clearer.

        * bindings/js/JSArrayBufferViewHelper.h:
        (WebCore::toJSArrayBufferView):
        * bindings/js/JSCSSRuleCustom.cpp:
        (WebCore::toJS):
        * bindings/js/JSCSSValueCustom.cpp:
        (WebCore::toJS):
        * bindings/js/JSDOMBinding.cpp:
        (WebCore::getCachedDOMObjectWrapper):
        (WebCore::cacheDOMObjectWrapper):
        * bindings/js/JSDOMBinding.h:
        (WebCore::createDOMObjectWrapper):
        (WebCore::getDOMObjectWrapper):
        (WebCore::createDOMNodeWrapper):
        (WebCore::getDOMNodeWrapper): Changed DOM wrapper functions to operate
        in terms of DOMWrapperWorlds instead of ExecStates. This is clearer,
        and ever-so-slightly faster.

        Removed hasCachedXXX functions, now that they're unused.

        * bindings/js/JSDOMWindowCustom.cpp:
        (WebCore::JSDOMWindow::history):
        (WebCore::JSDOMWindow::location):
        * bindings/js/JSDocumentCustom.cpp:
        (WebCore::JSDocument::location):
        (WebCore::toJS):
        * bindings/js/JSElementCustom.cpp:
        (WebCore::toJSNewlyCreated):
        * bindings/js/JSEventCustom.cpp:
        (WebCore::toJS):
        * bindings/js/JSHTMLCollectionCustom.cpp:
        (WebCore::toJS):
        * bindings/js/JSImageDataCustom.cpp:
        (WebCore::toJS):
        * bindings/js/JSNodeCustom.cpp:
        (WebCore::createWrapperInline):
        * bindings/js/JSNodeCustom.h:
        (WebCore::getCachedDOMNodeWrapper):
        (WebCore::cacheDOMNodeWrapper):
        (WebCore::toJS):
        * bindings/js/JSSVGPathSegCustom.cpp:
        (WebCore::toJS):
        * bindings/js/JSStyleSheetCustom.cpp:
        (WebCore::toJS): Updated for changes above.

        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::dropProtection): Removed use of hasCachedDOMObjectWrapper
        because XHR is almost always created and used by JavaScript, so it's
        simpler to just always report extra cost.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84029 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoREGRESSION(r81262): plugins/refcount-leaks.html failing on Windows
bweinstein@apple.com [Fri, 15 Apr 2011 20:45:46 +0000 (20:45 +0000)]
REGRESSION(r81262): plugins/refcount-leaks.html failing on Windows
https://bugs.webkit.org/show_bug.cgi?id=56478

Unskip plugins/refcount-leaks.html on Windows because it is now
passing on release and debug.

* platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84028 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 James Robinson <jamesr@chromium.org>
jamesr@google.com [Fri, 15 Apr 2011 20:33:56 +0000 (20:33 +0000)]
2011-04-15  James Robinson  <jamesr@chromium.org>

        Add chromium linux expectations for direct-image-compositing.html

        * platform/chromium-gpu-linux/compositing/direct-image-compositing-expected.checksum:
        * platform/chromium-gpu-linux/compositing/direct-image-compositing-expected.png:
        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84027 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Chris Rogers <crogers@google.com>
crogers@google.com [Fri, 15 Apr 2011 20:25:40 +0000 (20:25 +0000)]
2011-04-15  Chris Rogers  <crogers@google.com>

        Unreviewed.

        Update test_expectations.txt with more failing fast/borders tests
        https://bugs.webkit.org/show_bug.cgi?id=58685

        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84026 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Fri, 15 Apr 2011 20:11:31 +0000 (20:11 +0000)]
2011-04-15  Andreas Kling  <kling@webkit.org>

        Rolling out accidental part of r84010.

        * platform/qt/RenderThemeQt.cpp:
        (WebCore::RenderThemeQt::computeSizeBasedOnStyle):
        (WebCore::RenderThemeQt::setButtonPadding):
2011-04-15  Andreas Kling  <kling@webkit.org>

        Rolling out accidental part of r84010.

        * fast/forms/button-line-break.html: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84025 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoForgot windows build fix.
oliver@apple.com [Fri, 15 Apr 2011 20:07:10 +0000 (20:07 +0000)]
Forgot windows build fix.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84024 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Fri, 15 Apr 2011 20:01:50 +0000 (20:01 +0000)]
2011-04-15  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by Yury Semikhatsky.

        Frontend Part of Web Inspector: Remote Web Inspector - Cross Platform InspectorServer
        https://bugs.webkit.org/show_bug.cgi?id=51364

        The front end should not use a transparent background when
        loaded as a web page (remote debugging) but should when loaded
        regularly in a custom window. This adds a "remote" style class
        onto the document body when the page is loaded remotely.

        * inspector/front-end/inspector.css:
        (body.detached.platform-mac-snowleopard:not(.remote) #toolbar): respect the "remote" class.
        * inspector/front-end/inspector.js: add a "remote" class on the body when loaded remotely.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84023 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Fri, 15 Apr 2011 20:01:33 +0000 (20:01 +0000)]
2011-04-15  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by David Kilzer.

        JSLock ASSERT seen often when using the inspector for long
        periods of time. We should take the JSLock whenever we
        might allocate memory in the JavaScript Heap.

        JSC InjectedScriptHost::nodeAsScriptValue should take JSLock before possible JavaScript Allocations
        https://bugs.webkit.org/show_bug.cgi?id=58674

        * bindings/js/JSInjectedScriptHostCustom.cpp:
        (WebCore::InjectedScriptHost::nodeAsScriptValue): take the JSLock.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84022 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Fri, 15 Apr 2011 19:55:54 +0000 (19:55 +0000)]
2011-04-14  Oliver Hunt  <oliver@apple.com>

        Reviewed by Geoffrey Garen.

        Make JSNodeFilterCondition handle its lifetime correctly
        https://bugs.webkit.org/show_bug.cgi?id=58622

        Add export

        * JavaScriptCore.exp:
2011-04-14  Oliver Hunt  <oliver@apple.com>

        Reviewed by Geoffrey Garen.

        Make JSNodeFilterCondition handle its lifetime correctly
        https://bugs.webkit.org/show_bug.cgi?id=58622

        Switch over to a WeakHandle and external roots to keep the
        condition value live.

        * bindings/js/JSNodeFilterCondition.cpp:
        (WebCore::JSNodeFilterCondition::JSNodeFilterCondition):
        (WebCore::JSNodeFilterCondition::markAggregate):
        (WebCore::JSNodeFilterCondition::acceptNode):
        (WebCore::JSNodeFilterCondition::WeakOwner::isReachableFromOpaqueRoots):
        * bindings/js/JSNodeFilterCondition.h:
        (WebCore::JSNodeFilterCondition::create):
        * bindings/js/JSNodeFilterCustom.cpp:
        (WebCore::toNodeFilter):
        * bindings/scripts/CodeGeneratorJS.pm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84021 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoViews should be made visible before painting in WM_PRINTCLIENT messages
bweinstein@apple.com [Fri, 15 Apr 2011 19:46:49 +0000 (19:46 +0000)]
Views should be made visible before painting in WM_PRINTCLIENT messages
https://bugs.webkit.org/show_bug.cgi?id=58676
<rdar://problem/9279211>

Reviewed by Adam Roben.

* UIProcess/win/WebView.cpp:
(WebKit::WebView::onPrintClientEvent): If our view isn't currently visible set it to visible
    before painting, then reset it back to not visible after painting.
(WebKit::WebView::onShowWindowEvent): Call setIsVisible instead of duplicating logic.
(WebKit::WebView::setIsVisible): Set the m_isVisible flag and call viewStateDidChange.
* UIProcess/win/WebView.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84019 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Qt] QNetworkReplyHandler refactoring: some adjustments
luiz@webkit.org [Fri, 15 Apr 2011 19:42:04 +0000 (19:42 +0000)]
[Qt] QNetworkReplyHandler refactoring: some adjustments
https://bugs.webkit.org/show_bug.cgi?id=57092

Reviewed by Andreas Kling.

- Removing flag m_redirected from QNetworkReplyHandler and using m_redirectionTargetUrl.isValid() instead.
- Moving flag m_responseContainsData from QNetworkReplyHandler to the reply wrapper and removing the connection of
signal metaDataChanged for m_responseContainsData to be consistent.
- Using an OwnPtr to keep the reference to the QNetworkReplyWrapper.

* platform/network/qt/QNetworkReplyHandler.cpp:
(WebCore::QNetworkReplyWrapper::QNetworkReplyWrapper):
(WebCore::QNetworkReplyWrapper::receiveMetaData):
(WebCore::QNetworkReplyWrapper::didReceiveReadyRead):
(WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
(WebCore::QNetworkReplyHandler::release):
(WebCore::shouldIgnoreHttpError):
(WebCore::QNetworkReplyHandler::finish):
(WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
(WebCore::QNetworkReplyHandler::redirect):
(WebCore::QNetworkReplyHandler::forwardData):
* platform/network/qt/QNetworkReplyHandler.h:
(WebCore::QNetworkReplyWrapper::responseContainsData):
(WebCore::QNetworkReplyWrapper::redirected):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84018 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Jon Lee <jonlee@apple.com>
andersca@apple.com [Fri, 15 Apr 2011 19:37:39 +0000 (19:37 +0000)]
2011-04-15  Jon Lee  <jonlee@apple.com>

        Reviewed by Anders Carlsson.

        onClick does not function with <select> elements in WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=57904
        <rdar://problem/9217757>

        Reviewed by Anders Carlsson.

        * Shared/NativeWebMouseEvent.h: Copied from Source/WebKit2/UIProcess/WebPopupMenuProxy.h.
        (WebKit::NativeWebMouseEvent::nativeEvent):
        * Shared/mac/NativeWebMouseEventMac.mm: Added.
        (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
        * Shared/qt/NativeWebMouseEventQt.cpp: Copied from Source/WebKit2/UIProcess/WebPopupMenuProxy.h.
        (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
        * Shared/win/NativeWebMouseEventWin.cpp: Copied from Source/WebKit2/UIProcess/WebPopupMenuProxy.h.
        (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
        * UIProcess/API/mac/WKView.mm:
        (-[WKView mouseMoved:]):
        (-[WKView _mouseHandler:]): Pre-compiler mouse handler calls need to use the new NativeWebMouseEvent class
        * UIProcess/API/qt/qwkpage.cpp:
        (QWKPagePrivate::mouseMoveEvent):
        (QWKPagePrivate::mousePressEvent):
        (QWKPagePrivate::mouseReleaseEvent):
        (QWKPagePrivate::mouseDoubleClickEvent):
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::handleMouseEvent): keep track of mouse down event in order to be able to send a fake mouse up event on the select element
        (WebKit::WebPageProxy::currentMouseDownEvent): for access by the popup menu proxy to dispatch the fake mouse up event
        (WebKit::WebPageProxy::didReceiveEvent): clear out the cached mouse down event
        (WebKit::WebPageProxy::processDidCrash): clear out the cached events since we assume that didReceiveEvent did not called prior to the crash
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPopupMenuProxy.h:
        * UIProcess/mac/WebPopupMenuProxyMac.mm:
        (WebKit::WebPopupMenuProxyMac::showPopupMenu): after notifying the popup menu client that the value changed, fake mouse up and mouse move events are posted
        * UIProcess/win/WebPopupMenuProxyWin.cpp:
        (WebKit::WebPopupMenuProxyWin::showPopupMenu): after notifying the popup menu client that the value changed, fake mouse up and mouse move events are posted
        * UIProcess/win/WebView.cpp:
        (WebKit::WebView::onMouseEvent):
        * WebKit2.pro:
        * WebKit2.xcodeproj/project.pbxproj:
        * win/WebKit2.vcproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84017 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago Chromium build fix.
ap@apple.com [Fri, 15 Apr 2011 19:34:14 +0000 (19:34 +0000)]
    Chromium build fix.

        * platform/SecureTextInput.h: CARBON_SECURE_INPUT_MODE no longer exists.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84016 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago Qt build fix.
ap@apple.com [Fri, 15 Apr 2011 19:30:10 +0000 (19:30 +0000)]
    Qt build fix.

        * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::selectionStateChanged): Wrap the variable
        in PLATFORM(MAC), too, as it's unused on other platforms.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84014 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Fri, 15 Apr 2011 19:25:29 +0000 (19:25 +0000)]
2011-04-15  Andreas Kling  <kling@webkit.org>

        Reviewed by Antonio Gomes.

        [Qt] DRT: Default custom policy delegate decision should be Ignore.

        If layoutTestController.setCustomPolicyDelegate() is called with only
        one argument, the second ("permissive") should default to false.

        * DumpRenderTree/qt/LayoutTestControllerQt.h:
2011-04-15  Andreas Kling  <kling@webkit.org>

        Reviewed by Antonio Gomes.

        [Qt] DRT: Default custom policy delegate decision should be Ignore.

        * platform/qt/Skipped: Unskip now passing tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84013 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoGet the right reviewer up in here.
beidson@apple.com [Fri, 15 Apr 2011 19:25:20 +0000 (19:25 +0000)]
Get the right reviewer up in here.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84012 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago<rdar://problem/9287880> and https://bugs.webkit.org/show_bug.cgi?id=58596
beidson@apple.com [Fri, 15 Apr 2011 19:24:16 +0000 (19:24 +0000)]
<rdar://problem/9287880> and https://bugs.webkit.org/show_bug.cgi?id=58596
WK2: Past searches not remembered for <input type=search results="5" autosave="foo">

Reviewed by Sam Weinig.

Add SaveRecentSearches and LoadRecentSearches messages:
* UIProcess/WebPageProxy.messages.in:
* UIProcess/WebPageProxy.h:

Message up to the UIProcess for the save/load operations:
* WebProcess/WebCoreSupport/WebSearchPopupMenu.cpp:
(WebKit::WebSearchPopupMenu::saveRecentSearches):
(WebKit::WebSearchPopupMenu::loadRecentSearches):
* WebProcess/WebCoreSupport/WebPopupMenu.h:
(WebKit::WebPopupMenu::page):

Save the values to disk CFPreference-style:
* UIProcess/cf/WebPageProxyCF.cpp:
(WebKit::autosaveKey):
(WebKit::WebPageProxy::saveRecentSearches):
(WebKit::WebPageProxy::loadRecentSearches):

Stubbed out for non-CF platforms:
* UIProcess/gtk/WebPageProxyGtk.cpp:
(WebKit::WebPageProxy::saveRecentSearches):
(WebKit::WebPageProxy::loadRecentSearches):
* UIProcess/qt/WebPageProxyQt.cpp:
(WebKit::WebPageProxy::saveRecentSearches):
(WebKit::WebPageProxy::loadRecentSearches):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84011 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Fri, 15 Apr 2011 19:22:34 +0000 (19:22 +0000)]
2011-04-15  Andreas Kling  <kling@webkit.org>

        Reviewed by Antonio Gomes.

        [Qt] DRT: Block access to external URLs.

        * platform/qt/Skipped: Unskip now passing tests.
2011-04-15  Andreas Kling  <kling@webkit.org>

        Reviewed by Antonio Gomes.

        [Qt] DRT: Block access to external URLs.

        Implement the "Blocked access to external URL" behavior for Qt's DRT,
        based on what other ports are doing.

        Fixes <http://webkit.org/b/57306> and <http://webkit.org/b/58523>.

        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84010 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Mike Reed <reed@google.com>
commit-queue@webkit.org [Fri, 15 Apr 2011 18:45:07 +0000 (18:45 +0000)]
2011-04-15  Mike Reed  <reed@google.com>

        Reviewed by Darin Fisher.

        hide unused static function when SKIA_GPU is enabled
        https://bugs.webkit.org/show_bug.cgi?id=58670

        No new tests. Just fixes a warning (treated as an error) when SKIA_GPU is enabled

        * platform/graphics/skia/ImageSkia.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84000 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 James Robinson <jamesr@chromium.org>
jamesr@google.com [Fri, 15 Apr 2011 18:43:06 +0000 (18:43 +0000)]
2011-04-15  James Robinson  <jamesr@chromium.org>

        Fix duplicate expectation for compositing/tiling/huge-layer-img.html on chromium mac.

        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83999 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Fri, 15 Apr 2011 18:39:23 +0000 (18:39 +0000)]
2011-04-15  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Beth Dakin.

        Some borders with border-radius do not have rounded inner edges
        https://bugs.webkit.org/show_bug.cgi?id=58457

        Improve the logic used to compute the inner radii on curved
        borders, to maintain borders of even thickness around the curve.

        Tests: fast/borders/mixed-border-styles-radius.html
               fast/borders/mixed-border-styles.html

        * rendering/RenderBoxModelObject.h:
        * rendering/RenderBoxModelObject.cpp:
        (WebCore::RenderBoxModelObject::computeBorderOuterRect):
        (WebCore::RenderBoxModelObject::computeBorderInnerRect):
        Two new utility functions to share some code that was in both paintBorder()
        and paintBoxShaadow().
        getRoundedInnerBorderWithBorderWidths() now takes the outer border box
        as well as the inner box.

        (WebCore::RenderBoxModelObject::paintBorder): Call new methods.
        (WebCore::RenderBoxModelObject::paintBoxShadow): Ditto.

        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::drawBoxSideFromPath):
        getRoundedInnerBorderWithBorderWidths() now takes the outer border box
        as well as the inner box.

        * rendering/style/RenderStyle.cpp:
        (WebCore::RenderStyle::getRoundedInnerBorderWithBorderWidths):
        * rendering/style/RenderStyle.h:
        Compute the inner radii by starting with teh radii used for the
        outer box, and then shrinking them down based on the border thickness.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83998 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago Reviewed by Dan Bernstein.
ap@apple.com [Fri, 15 Apr 2011 18:38:46 +0000 (18:38 +0000)]
    Reviewed by Dan Bernstein.

        WebKit2: Password field input does not switch to ASCII-compatible source
        https://bugs.webkit.org/show_bug.cgi?id=58583
        <rdar://problem/9059651>

        The implementation is more modern than what we have in WK1. Instead of returning a null
        input context (as in non-editable content), we now set page context's properties.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83997 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-13 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Fri, 15 Apr 2011 18:31:27 +0000 (18:31 +0000)]
2011-04-13  Xiaomei Ji  <xji@chromium.org>

        Reviewed by Ryosuke Niwa.

        Continue (3rd) experiment with moving caret by word in visual order.
        https://bugs.webkit.org/show_bug.cgi?id=58294

        * editing/selection/move-by-word-visually-expected.txt:
        * editing/selection/move-by-word-visually.html:
2011-04-13  Xiaomei Ji  <xji@chromium.org>

        Reviewed by Ryosuke Niwa.

        Continue (3rd) experiment with moving caret by word in visual order.
        https://bugs.webkit.org/show_bug.cgi?id=58294

        This patch along with r82588 and r83483 implements moving caret by
        word in visual order.

        The overall algorithm is:
        1. First get the InlineBox and offset of the pass-in VisiblePosition.
        2. Based on the position (left boundary, middle, right boundary) of the offset and the
           direction of the movement, look for visually adjacent word breaks.
        2.1 If the offset is the minimum offset of the box,
            return the rightmost word boundary in previous boxes if moving left.
            return the leftmost word boundary in box and next boxes if moving right.
        2.2 Similar for the case when offset is at the maximum offset of the box.
        2.3 When offset is inside the box (not at boundaries), first find the previousWordPosition
            or nextWordPosition based on the directionality of the box. If this word break position
            is also inside the same box, return it. Otherwise (the nextWordPosition or
            previousWordPosition is not in the same box or is at the box boundary), collect all the
            word breaks in the box and search for the one closest to the input "offset" based on
            box directionality, block directionality, and movement direction. Continue search in
            adjacent boxes if needed.

        Notes:
        1. Word boundaries are collected one box at a time. Only when a boundary that is closest to
           the input position (in the moving direction) is not available in current box, word
           boundaries in adjacent box will be collected. So, there is no need to save InlineBox in
           word boundaries. Instead, the word boundaries are saved as a pair
           (VisiblePosition, offset) to avoid recomputing VisiblePosition.

        2. We only collect boundaries of the right kind (i.e. left boundary of a word in LTR block
           and right boundary of a word in RTL block). And word boundaries are collected using
           previousWordPosition() and nextWordPosition(). So when box directionality is the same as
           block directionality, word boundaries are collected from right to left visually in a LTR
           box, and word boundaries are collected from left to right visually in a RTL box. It is
           the other way around when box directionality is different from block directionality.

        3. To find the right kinds of word boundaries, we must move back and forth between words
           in some situations. For example, if we're moving to the right in a LTR box in LTR block,
           we cannot simply return nextWordPosition() because it would return the right boundary
           of a word. Instead, we return nextWordPosition()'s nextWordPosition()'s previousWordPosition().

        4. When collecting word breaks inside a box, it first computes a start position, then
           collect the right kind of word breaks until it reaches the end of (or beyond) the box.
           In the meanwhile, it might need special handling on the rightmost or leftmost position
           based on the directionality of the box and block. These computations do not consider the
           box's bidi level.

        * editing/visible_units.cpp:
        (WebCore::nextWordBreakInBoxInsideBlockWithDifferentDirectionality):
        (WebCore::collectWordBreaksInBox):
        (WebCore::previousWordBoundaryInBox):
        (WebCore::nextWordBoundaryInBox):
        (WebCore::visuallyLastWordBoundaryInBox):
        (WebCore::leftWordBoundary):
        (WebCore::rightWordBoundary):
        (WebCore::leftWordPosition):
        (WebCore::rightWordPosition):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83996 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Jer Noble <jer.noble@apple.com>
jer.noble@apple.com [Fri, 15 Apr 2011 18:07:01 +0000 (18:07 +0000)]
2011-04-14  Jer Noble  <jer.noble@apple.com>

        Reviewed by Eric Carlson.

        REGRESSION: Rendering in <video> element appears to render quickly to catch up if it has been playing in a background tab
        https://bugs.webkit.org/show_bug.cgi?id=58637

        Notify AVFoundation that no one will be rendering when the view or window moves off screen.

        * UIProcess/API/mac/PageClientImpl.mm:
        (WebKit::PageClientImpl::isViewVisible): Return false if the view's window is not visible.
        * UIProcess/API/mac/WKView.mm:
        (-[WKView addWindowObserversForWindow:]): Observe orderOut and orderIn events.
        (-[WKView removeWindowObservers]): Ditto.
        (-[WKView _windowDidOrderOffScreen:]): Added.
        (-[WKView _windowDidOrderOnScreen:]): Added.
        * WebProcess/WebPage/DrawingAreaImpl.cpp:
        (WebKit::DrawingAreaImpl::suspendPainting): Call LayerTreeHost::pauseRendering.
        (WebKit::DrawingAreaImpl::resumePainting): Call LayerTreeHost::resumeRendering.
        * WebProcess/WebPage/LayerTreeHost.h:
        (WebKit::LayerTreeHost::pauseRendering): Added stub.
        (WebKit::LayerTreeHost::resumeRendering): Added stub.
        * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.h:
        * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm:
        (WebKit::LayerTreeHostCAMac::pauseRendering): Added. Post a notification with our
            intention to stop rendering.
        (WebKit::LayerTreeHostCAMac::resumeRendering): Added. Post a notification with our
            intention to start rendering.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83994 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Fri, 15 Apr 2011 18:05:32 +0000 (18:05 +0000)]
2011-04-15  Simon Fraser  <simon.fraser@apple.com>

        Rebaseline Mac pixel results in fast/ on SnowLeopard.

        * platform/mac/fast/backgrounds/animated-svg-as-background-expected.checksum:
        * platform/mac/fast/backgrounds/animated-svg-as-background-expected.png:
        * platform/mac/fast/backgrounds/animated-svg-as-mask-expected.checksum:
        * platform/mac/fast/backgrounds/animated-svg-as-mask-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize17-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize17-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize20-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize20-expected.png:
        * platform/mac/fast/block/basic/011-expected.checksum:
        * platform/mac/fast/block/basic/011-expected.png:
        * platform/mac/fast/block/float/float-avoidance-expected.checksum:
        * platform/mac/fast/block/float/float-avoidance-expected.png:
        * platform/mac/fast/block/margin-collapse/103-expected.checksum:
        * platform/mac/fast/block/margin-collapse/103-expected.png:
        * platform/mac/fast/block/positioning/auto/005-expected.checksum:
        * platform/mac/fast/block/positioning/auto/005-expected.png:
        * platform/mac/fast/block/positioning/auto/006-expected.checksum:
        * platform/mac/fast/block/positioning/auto/006-expected.png:
        * platform/mac/fast/block/positioning/auto/vertical-lr/005-expected.checksum:
        * platform/mac/fast/block/positioning/auto/vertical-lr/005-expected.png:
        * platform/mac/fast/block/positioning/auto/vertical-lr/006-expected.checksum:
        * platform/mac/fast/block/positioning/auto/vertical-lr/006-expected.png:
        * platform/mac/fast/block/positioning/auto/vertical-rl/005-expected.checksum:
        * platform/mac/fast/block/positioning/auto/vertical-rl/005-expected.png:
        * platform/mac/fast/block/positioning/auto/vertical-rl/006-expected.checksum:
        * platform/mac/fast/block/positioning/auto/vertical-rl/006-expected.png:
        * platform/mac/fast/borders/border-radius-circle-expected.checksum:
        * platform/mac/fast/borders/border-radius-circle-expected.png:
        * platform/mac/fast/borders/border-radius-huge-assert-expected.checksum:
        * platform/mac/fast/borders/border-radius-huge-assert-expected.png:
        * platform/mac/fast/borders/svg-as-border-image-2-expected.checksum:
        * platform/mac/fast/borders/svg-as-border-image-2-expected.png:
        * platform/mac/fast/box-shadow/border-radius-big-expected.checksum:
        * platform/mac/fast/box-shadow/border-radius-big-expected.png:
        * platform/mac/fast/box-shadow/box-shadow-transformed-expected.checksum:
        * platform/mac/fast/box-shadow/box-shadow-transformed-expected.png:
        * platform/mac/fast/box-shadow/inset-with-extraordinary-radii-and-border-expected.checksum:
        * platform/mac/fast/box-shadow/inset-with-extraordinary-radii-and-border-expected.png:
        * platform/mac/fast/box-shadow/spread-expected.checksum:
        * platform/mac/fast/box-shadow/spread-expected.png:
        * platform/mac/fast/box-shadow/spread-multiple-inset-expected.checksum:
        * platform/mac/fast/box-shadow/spread-multiple-inset-expected.png:
        * platform/mac/fast/box-shadow/spread-multiple-normal-expected.checksum:
        * platform/mac/fast/box-shadow/spread-multiple-normal-expected.png:
        * platform/mac/fast/canvas/canvas-incremental-repaint-expected.checksum:
        * platform/mac/fast/canvas/canvas-incremental-repaint-expected.png:
        * platform/mac/fast/canvas/canvasDrawingIntoSelf-expected.checksum:
        * platform/mac/fast/canvas/canvasDrawingIntoSelf-expected.png:
        * platform/mac/fast/canvas/drawImage-expected.checksum:
        * platform/mac/fast/canvas/drawImage-expected.png:
        * platform/mac/fast/canvas/webgl/css-webkit-canvas-expected.checksum:
        * platform/mac/fast/canvas/webgl/css-webkit-canvas-expected.png:
        * platform/mac/fast/canvas/webgl/css-webkit-canvas-repaint-expected.checksum:
        * platform/mac/fast/canvas/webgl/css-webkit-canvas-repaint-expected.png:
        * platform/mac/fast/css/font-face-default-font-expected.checksum:
        * platform/mac/fast/css/font-face-default-font-expected.png:
        * platform/mac/fast/css/font_property_normal-expected.checksum:
        * platform/mac/fast/css/font_property_normal-expected.png:
        * platform/mac/fast/css/line-height-font-order-expected.checksum:
        * platform/mac/fast/css/line-height-font-order-expected.png:
        * platform/mac/fast/forms/001-expected.checksum:
        * platform/mac/fast/forms/001-expected.png:
        * platform/mac/fast/forms/basic-inputs-expected.checksum:
        * platform/mac/fast/forms/basic-inputs-expected.png:
        * platform/mac/fast/forms/box-shadow-override-expected.checksum:
        * platform/mac/fast/forms/box-shadow-override-expected.png:
        * platform/mac/fast/forms/checkbox-radio-onchange-expected.checksum:
        * platform/mac/fast/forms/checkbox-radio-onchange-expected.png:
        * platform/mac/fast/forms/file-input-disabled-expected.checksum:
        * platform/mac/fast/forms/file-input-disabled-expected.png:
        * platform/mac/fast/forms/form-element-geometry-expected.checksum:
        * platform/mac/fast/forms/form-element-geometry-expected.png:
        * platform/mac/fast/forms/formmove-expected.checksum:
        * platform/mac/fast/forms/formmove-expected.png:
        * platform/mac/fast/forms/formmove2-expected.checksum:
        * platform/mac/fast/forms/formmove2-expected.png:
        * platform/mac/fast/forms/indeterminate-expected.checksum:
        * platform/mac/fast/forms/indeterminate-expected.png:
        * platform/mac/fast/forms/input-appearance-height-expected.checksum:
        * platform/mac/fast/forms/input-appearance-height-expected.png:
        * platform/mac/fast/forms/input-value-expected.checksum:
        * platform/mac/fast/forms/input-value-expected.png:
        * platform/mac/fast/forms/minWidthPercent-expected.checksum:
        * platform/mac/fast/forms/minWidthPercent-expected.png:
        * platform/mac/fast/forms/radio-attr-order-expected.checksum:
        * platform/mac/fast/forms/radio-attr-order-expected.png:
        * platform/mac/fast/forms/radio-nested-labels-expected.checksum:
        * platform/mac/fast/forms/radio-nested-labels-expected.png:
        * platform/mac/fast/forms/radio_checked-expected.checksum:
        * platform/mac/fast/forms/radio_checked-expected.png:
        * platform/mac/fast/forms/radio_checked_dynamic-expected.checksum:
        * platform/mac/fast/forms/radio_checked_dynamic-expected.png:
        * platform/mac/fast/images/animated-svg-as-image-expected.checksum:
        * platform/mac/fast/images/animated-svg-as-image-expected.png:
        * platform/mac/fast/images/imagemap-case-expected.checksum:
        * platform/mac/fast/images/imagemap-case-expected.png:
        * platform/mac/fast/images/imagemap-circle-focus-ring-expected.checksum:
        * platform/mac/fast/images/imagemap-circle-focus-ring-expected.png:
        * platform/mac/fast/images/imagemap-focus-ring-zoom-expected.checksum:
        * platform/mac/fast/images/imagemap-focus-ring-zoom-expected.png:
        * platform/mac/fast/images/imagemap-polygon-focus-ring-expected.checksum:
        * platform/mac/fast/images/imagemap-polygon-focus-ring-expected.png:
        * platform/mac/fast/inline/positionedLifetime-expected.checksum:
        * platform/mac/fast/inline/positionedLifetime-expected.png:
        * platform/mac/fast/invalid/019-expected.checksum:
        * platform/mac/fast/invalid/019-expected.png:
        * platform/mac/fast/invalid/missing-address-end-tag-expected.checksum:
        * platform/mac/fast/invalid/missing-address-end-tag-expected.png:
        * platform/mac/fast/invalid/table-inside-stray-table-content-expected.checksum:
        * platform/mac/fast/invalid/table-inside-stray-table-content-expected.png:
        * platform/mac/fast/lists/003-vertical-expected.checksum:
        * platform/mac/fast/lists/003-vertical-expected.png:
        * platform/mac/fast/media/media-query-invalid-value-expected.checksum:
        * platform/mac/fast/media/media-query-invalid-value-expected.png:
        * platform/mac/fast/overflow/003-expected.checksum:
        * platform/mac/fast/overflow/003-expected.png:
        * platform/mac/fast/overflow/overflow-x-y-expected.checksum:
        * platform/mac/fast/overflow/overflow-x-y-expected.png:
        * platform/mac/fast/parser/bad-xml-slash-expected.checksum:
        * platform/mac/fast/parser/bad-xml-slash-expected.png:
        * platform/mac/fast/repaint/box-shadow-h-expected.checksum:
        * platform/mac/fast/repaint/box-shadow-h-expected.png:
        * platform/mac/fast/repaint/control-clip-expected.checksum:
        * platform/mac/fast/repaint/control-clip-expected.png:
        * platform/mac/fast/repaint/list-marker-expected.checksum:
        * platform/mac/fast/repaint/list-marker-expected.png:
        * platform/mac/fast/repaint/shadow-multiple-horizontal-expected.checksum:
        * platform/mac/fast/repaint/shadow-multiple-horizontal-expected.png:
        * platform/mac/fast/repaint/shadow-multiple-strict-horizontal-expected.checksum:
        * platform/mac/fast/repaint/shadow-multiple-strict-horizontal-expected.png:
        * platform/mac/fast/repaint/transform-replaced-shadows-expected.checksum:
        * platform/mac/fast/repaint/transform-replaced-shadows-expected.png:
        * platform/mac/fast/replaced/replaced-breaking-expected.checksum:
        * platform/mac/fast/replaced/replaced-breaking-expected.png:
        * platform/mac/fast/text/emphasis-vertical-expected.checksum:
        * platform/mac/fast/text/emphasis-vertical-expected.png:
        * platform/mac/fast/text/hyphenate-limit-before-after-expected.checksum:
        * platform/mac/fast/text/hyphenate-limit-before-after-expected.png:
        * platform/mac/fast/text/international/bidi-linebreak-001-expected.checksum:
        * platform/mac/fast/text/international/bidi-linebreak-001-expected.png:
        * platform/mac/fast/text/international/bidi-linebreak-002-expected.checksum:
        * platform/mac/fast/text/international/bidi-linebreak-002-expected.png:
        * platform/mac/fast/text/international/bidi-linebreak-003-expected.checksum:
        * platform/mac/fast/text/international/bidi-linebreak-003-expected.png:
        * platform/mac/fast/text/international/bidi-mirror-he-ar-expected.checksum:
        * platform/mac/fast/text/international/bidi-mirror-he-ar-expected.png:
        * platform/mac/fast/text/international/bidi-neutral-directionality-paragraph-start-expected.checksum:
        * platform/mac/fast/text/international/bidi-neutral-directionality-paragraph-start-expected.png:
        * platform/mac/fast/text/international/text-combine-image-test-expected.checksum:
        * platform/mac/fast/text/international/text-combine-image-test-expected.png:
        * platform/mac/fast/text/international/vertical-text-glyph-test-expected.checksum:
        * platform/mac/fast/text/international/vertical-text-glyph-test-expected.png:
        * platform/mac/fast/text/justify-ideograph-leading-expansion-expected.checksum:
        * platform/mac/fast/text/justify-ideograph-leading-expansion-expected.png:
        * platform/mac/fast/text/textIteratorNilRenderer-expected.checksum:
        * platform/mac/fast/text/textIteratorNilRenderer-expected.png:
        * platform/mac/fast/text/whitespace/normal-after-nowrap-breaking-expected.checksum:
        * platform/mac/fast/text/whitespace/normal-after-nowrap-breaking-expected.png:
        * platform/mac/fast/transforms/shadows-expected.checksum:
        * platform/mac/fast/transforms/shadows-expected.png:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83993 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Zhenyao Mo <zmo@google.com>
zmo@google.com [Fri, 15 Apr 2011 18:01:53 +0000 (18:01 +0000)]
2011-04-14  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        Use HTMLImageElement in Canvas 2D / WebGL before response is ready causes crash
        https://bugs.webkit.org/show_bug.cgi?id=58501

        * html/canvas/WebGLRenderingContext.cpp:
        (WebCore::WebGLRenderingContext::texImage2D): Call validateHTMLImageElement().
        (WebCore::WebGLRenderingContext::texSubImage2D): Ditto.
        (WebCore::WebGLRenderingContext::validateHTMLImageElement): Make sure image is ready.
        * html/canvas/WebGLRenderingContext.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83992 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-07 MORITA Hajime <morrita@google.com>
morrita@google.com [Fri, 15 Apr 2011 17:57:06 +0000 (17:57 +0000)]
2011-04-07  MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        DocumentMaker::AllMarkers should not be a part of DocumentMarker::MarkerType
        https://bugs.webkit.org/show_bug.cgi?id=58112

        - Converted DocumentMarker::MarkerTypes from unsigned int to a class.
        - Converted DocumentMarker::AllMarkers from an enum entry to a subclass of MarkerTypes.
        - Changed type of some MarkerType argument on DocumentMarkerController API to MarkerTypes
          which should allow a combination of MarkerType constansts.
        - Removed some MarkerType arguments on DocumentMarkerController API
          which only received AllMarkers.

        No new tests, no behavior change.

        * WebCore.exp.in:
        * dom/DocumentMarker.h:
        (WebCore::DocumentMarker::MarkerTypes::MarkerTypes):
        (WebCore::DocumentMarker::MarkerTypes::contains):
        (WebCore::DocumentMarker::MarkerTypes::intersects):
        (WebCore::DocumentMarker::MarkerTypes::operator==):
        (WebCore::DocumentMarker::MarkerTypes::add):
        (WebCore::DocumentMarker::MarkerTypes::remove):
        (WebCore::DocumentMarker::AllMarkers::AllMarkers):
        * dom/DocumentMarkerController.cpp:
        (WebCore::DocumentMarkerController::possiblyHasMarkers):
        (WebCore::DocumentMarkerController::addMarker):
        (WebCore::DocumentMarkerController::copyMarkers):
        (WebCore::DocumentMarkerController::removeMarkers):
        (WebCore::DocumentMarkerController::markerContainingPoint):
        (WebCore::DocumentMarkerController::markersInRange):
        (WebCore::DocumentMarkerController::renderedRectsForMarkers):
        (WebCore::DocumentMarkerController::removeMarkersFromMarkerMapVectorPair):
        (WebCore::DocumentMarkerController::repaintMarkers):
        (WebCore::DocumentMarkerController::shiftMarkers):
        (WebCore::DocumentMarkerController::setMarkersActive):
        (WebCore::DocumentMarkerController::hasMarkers):
        (WebCore::DocumentMarkerController::clearDescriptionOnMarkersIntersectingRange):
        * dom/DocumentMarkerController.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83991 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Fri, 15 Apr 2011 17:44:34 +0000 (17:44 +0000)]
2011-04-14  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Oliver Hunt.

        Complicated hash table is complicated
        https://bugs.webkit.org/show_bug.cgi?id=58631

        Now that we use the opaque roots system to track node wrapper lifetime,
        we can remove a lot of complicated hash-tablery that used to do the same.

        Now normal world node wrappers are just set as direct properties of
        ScriptWrappable, while isolated world node wrappers and other DOM object
        wrappers are stored in a shared, per-world hash table.

        In addition to reducing complexity, this makes DOM wrapper allocation
        1.6X faster (tested with scratch-gc-dom3.html), and it reduces the memory
        footprint of normal world wrappers by ~2/3, and isolated world wrappers
        by ~1/3.

        * WebCore.exp.in: Paying the patch tithe.

        * bindings/js/DOMWrapperWorld.cpp:
        (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
        (WebCore::DOMWrapperWorld::clearWrappers): No more per-document hash tables.

        (WebCore::JSNodeHandleOwner::finalize): Changed to call a helper function,
        so the code to destroy a wrapper can live next to the code to create one.

        * bindings/js/DOMWrapperWorld.h: No more per-document hash tables.

        * bindings/js/JSDOMBinding.cpp:
        (WebCore::uncacheDOMObjectWrapper):
        * bindings/js/JSDOMBinding.h:
        (WebCore::createDOMNodeWrapper):
        (WebCore::getDOMNodeWrapper): No more per-document hash tables.
        Added uncacheDOMObjectWrapper to be symmetrical with cacheDOMObjectWrapper.

        * bindings/js/JSDocumentCustom.cpp:
        (WebCore::toJS):
        * bindings/js/JSElementCustom.cpp:
        (WebCore::toJSNewlyCreated):
        * bindings/js/JSNodeCustom.cpp:
        (WebCore::createWrapperInline): Ditto.

        * bindings/js/JSNodeCustom.h:
        (WebCore::getCachedDOMNodeWrapper):
        (WebCore::cacheDOMNodeWrapper):
        (WebCore::uncacheDOMNodeWrapper):
        (WebCore::toJS): Implemented the scheme described above.

        * bindings/js/ScriptWrappable.h:
        (WebCore::ScriptWrappable::wrapper):
        (WebCore::ScriptWrappable::setWrapper):
        (WebCore::ScriptWrappable::clearWrapper): ScriptWrappable needs a handle
        owner now, since we don't have an extra handle living in a hash table
        to maintain ownership for us.

        * dom/Document.cpp:
        (WebCore::Document::Document):
        (WebCore::Document::~Document):
        * dom/Document.h:
        * dom/Node.cpp:
        (WebCore::Node::setDocument): No more per-document hash tables.

        * html/HTMLCanvasElement.cpp:
        (WebCore::HTMLCanvasElement::createImageBuffer): Removed call to
        hasCachedDOMNodeWrapperUnchecked because that was the old way of doing
        things, and I was in the mood for getting rid of the old way. It's
        debatable whether the check was ever a good idea. Even when a <canvas>
        doesn't have a direct JS wrapper, other JS references can still keep
        the <canvas> alive. So, it's probably best always to report extra cost.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83990 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoDRT on Windows doesn't block access to external URLs (https://bugs.webkit.org/show_bu...
jberlin@webkit.org [Fri, 15 Apr 2011 17:42:37 +0000 (17:42 +0000)]
DRT on Windows doesn't block access to external URLs (https://bugs.webkit.org/show_bug.cgi?id=57334),
but WKTR does, so add the expected passing results to the win-wk2 directory to override the expected
failing results in the win directory in order to get the bots green.

* platform/win-wk2/fast/ruby: Added.
* platform/win-wk2/fast/ruby/after-block-doesnt-crash-expected.txt: Added.
* platform/win-wk2/fast/ruby/after-table-doesnt-crash-expected.txt: Added.
* platform/win-wk2/fast/ruby/before-block-doesnt-crash-expected.txt: Added.
* platform/win-wk2/fast/ruby/before-table-doesnt-crash-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83989 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoWebKit2: Need a way to keep the WebProcess alive for testing purposes.
jberlin@webkit.org [Fri, 15 Apr 2011 17:41:23 +0000 (17:41 +0000)]
WebKit2: Need a way to keep the WebProcess alive for testing purposes.
https://bugs.webkit.org/show_bug.cgi?id=58592

Reviewed by Sam Weinig.

* UIProcess/API/C/WKContext.cpp:
(WKContextDisableProcessTermination):
(WKContextEnableProcessTermination):
* UIProcess/API/C/WKContextPrivate.h:

* UIProcess/WebContext.cpp:
(WebKit::WebContext::WebContext):
Initialize m_processTerminationEnabled to true.
(WebKit::WebContext::enableProcessTermination):
Set m_processTerminationEnabled to true, and try to terminate the web process.
(WebKit::WebContext::shouldTerminate):
If !m_processTerminationEnabled, return false.
* UIProcess/WebContext.h:
(WebKit::WebContext::disableProcessTermination):
Set m_processTerminationEnabled to false;

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83988 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Vsevolod Vlasov <vsevik@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 17:32:04 +0000 (17:32 +0000)]
2011-04-15  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: Rename rawRequestHeadersText and RawResponseHeadersText to requestHeadersText and responseHeadersText
        https://bugs.webkit.org/show_bug.cgi?id=58650

        * inspector/Inspector.json:
        * inspector/InspectorResourceAgent.cpp:
        (WebCore::buildObjectForResourceResponse):
        * inspector/front-end/NetworkManager.js:
        (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
        * inspector/front-end/Resource.js:
        (WebInspector.Resource.prototype.get requestHeadersText):
        (WebInspector.Resource.prototype.set requestHeadersText):
        (WebInspector.Resource.prototype.get requestHeadersSize):
        (WebInspector.Resource.prototype.get responseHeadersText):
        (WebInspector.Resource.prototype.set responseHeadersText):
        (WebInspector.Resource.prototype.get responseHeadersSize):
        (WebInspector.Resource.prototype._headersSize):
        * inspector/front-end/ResourceHeadersView.js:
        (WebInspector.ResourceHeadersView):
        (WebInspector.ResourceHeadersView.prototype._refreshRequestHeaders):
        (WebInspector.ResourceHeadersView.prototype._refreshResponseHeaders):
        (WebInspector.ResourceHeadersView.prototype._refreshHeadersTitle):
        (WebInspector.ResourceHeadersView.prototype._refreshHeadersText):
        (WebInspector.ResourceHeadersView.prototype._toggleRequestHeadersText):
        (WebInspector.ResourceHeadersView.prototype._toggleResponseHeadersText):
        (WebInspector.ResourceHeadersView.prototype._createHeadersToggleButton):
        * inspector/front-end/networkPanel.css:
        (.resource-headers-view .outline-disclosure li.headers-text):
        * platform/network/ResourceLoadInfo.h:
2011-04-15  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: Rename rawRequestHeadersText and RawResponseHeadersText to requestHeadersText and responseHeadersText
        https://bugs.webkit.org/show_bug.cgi?id=58650

        * public/WebHTTPLoadInfo.h:
        * src/WebHTTPLoadInfo.cpp:
        (WebKit::WebHTTPLoadInfo::requestHeadersText):
        (WebKit::WebHTTPLoadInfo::setRequestHeadersText):
        (WebKit::WebHTTPLoadInfo::responseHeadersText):
        (WebKit::WebHTTPLoadInfo::setResponseHeadersText):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83987 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Luke Macpherson <macpherson@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 17:28:27 +0000 (17:28 +0000)]
2011-04-15  Luke Macpherson   <macpherson@chromium.org>

        Reviewed by Dimitri Glazkov.

        Implement css overflow properties in CSSStyleApplyProperty
        https://bugs.webkit.org/show_bug.cgi?id=58633

        No new tests required as no functionality changes.

        * css/CSSStyleApplyProperty.cpp:
        (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
        Add initializers for CSSPropertyOverflowX, CSSPropertyOverflowY and CSSPropertyOverflow.
        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::applyProperty):
        Delete existing implementations.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83986 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Sam Weinig <sam@webkit.org>
weinig@apple.com [Fri, 15 Apr 2011 16:57:41 +0000 (16:57 +0000)]
2011-04-15  Sam Weinig  <sam@webkit.org>

        Reviewed by Maciej Stachowiak.

        Make mac WebKit1 use the default localization strategy
        https://bugs.webkit.org/show_bug.cgi?id=58628

        * WebCoreSupport/WebPlatformStrategies.h:
        * WebCoreSupport/WebPlatformStrategies.mm:
        Remove the localization strategy code. The equivalent is now
        in WebCore/platform/DefaultLocalizationStrategy.cpp.
2011-04-15  Sam Weinig  <sam@webkit.org>

        Reviewed by Maciej Stachowiak.

        Make mac WebKit1 use the default localization strategy
        https://bugs.webkit.org/show_bug.cgi?id=58628

        * English.lproj/Localizable.strings:
        Update by running update-webkit-localizable-strings.

        * platform/DefaultLocalizationStrategy.cpp:
        (WebCore::DefaultLocalizationStrategy::contextMenuItemTagLookUpInDictionary):
        (WebCore::DefaultLocalizationStrategy::keygenKeychainItemName):
        (WebCore::DefaultLocalizationStrategy::imageTitle):
        Match the WebKit1 versions of these functions by special casing CF platforms.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83985 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Vsevolod Vlasov <vsevik@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 16:42:05 +0000 (16:42 +0000)]
2011-04-15  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: No console message and headers in inspector when X-Frame-Options header blocks a load
        https://bugs.webkit.org/show_bug.cgi?id=58136

        Passed response info to inspector when X-Frame-Options header blocks resource loading.

        * http/tests/inspector/network/resources/x-frame-options-deny.cgi: Added.
        * http/tests/inspector/network/x-frame-options-deny-expected.txt: Added.
        * http/tests/inspector/network/x-frame-options-deny.html: Added.
2011-04-15  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: No console message and headers in inspector when X-Frame-Options header blocks a load
        https://bugs.webkit.org/show_bug.cgi?id=58136

        Passed response info to inspector when X-Frame-Options header blocks resource loading.

        Test: http/tests/inspector/network/x-frame-options-deny.html

        * inspector/InspectorInstrumentation.cpp:
        (WebCore::InspectorInstrumentation::continueAfterXFrameOptionsDeniedImpl):
        * inspector/InspectorInstrumentation.h:
        (WebCore::InspectorInstrumentation::continueAfterXFrameOptionsDenied):
        * loader/MainResourceLoader.cpp:
        (WebCore::MainResourceLoader::didReceiveResponse):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83984 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Andrey Adaikin <aandrey@google.com>
commit-queue@webkit.org [Fri, 15 Apr 2011 16:29:38 +0000 (16:29 +0000)]
2011-04-15  Andrey Adaikin  <aandrey@google.com>

        Reviewed by Pavel Feldman.

        Web Inspector: TextViewer and TextEditorModel must support both \n and \r\n as line separators
        https://bugs.webkit.org/show_bug.cgi?id=58449

        * inspector/editor/text-editor-model-expected.txt: Added.
        * inspector/editor/text-editor-model.html: Added.
2011-04-15  Andrey Adaikin  <aandrey@google.com>

        Reviewed by Pavel Feldman.

        Web Inspector: TextViewer and TextEditorModel must support both \n and \r\n as line separators
        https://bugs.webkit.org/show_bug.cgi?id=58449

        Test: inspector/editor/text-editor-model.html

        * inspector/front-end/TextEditorModel.js:
        (WebInspector.TextEditorModel):
        (WebInspector.TextEditorModel.prototype.get text):
        (WebInspector.TextEditorModel.prototype.setText):
        (WebInspector.TextEditorModel.prototype._innerSetText):
        (WebInspector.TextEditorModel.prototype.copyRange):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83983 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Nancy Piedra <nancy.piedra@nokia.com>
commit-queue@webkit.org [Fri, 15 Apr 2011 16:20:03 +0000 (16:20 +0000)]
2011-04-15  Nancy Piedra  <nancy.piedra@nokia.com>

        Reviewed by Laszlo Gombos.

        [Qt][Symbian] Need to export ViewportAttributes class
        https://bugs.webkit.org/show_bug.cgi?id=58651

        On Symbian, if the ViewportAttributes class is not exported we get
        linking errors.

        Since this is a compilation issue, no new tests added.

        * UIProcess/API/qt/qwkpage.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83982 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 15 Apr 2011 16:11:05 +0000 (16:11 +0000)]
2011-04-15  Eric Seidel  <eric@webkit.org>

        Reviewed by Eric Carlson.

        Flaky Test: media/invalid-media-url-crash.html
        https://bugs.webkit.org/show_bug.cgi?id=51138

        Skipping this test on Snow Leopard since it's hitting
        a known MediaToolbox crasher on Snow Leopard.
        If Apple happens to software update SL users we can
        unskip this, until then no need to run this flaky test.

        * platform/mac-snowleopard/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83981 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Fri, 15 Apr 2011 16:00:01 +0000 (16:00 +0000)]
2011-04-15  Ojan Vafai  <ojan@chromium.org>

        Reviewed by Eric Seidel.

        fix path to layout test in new results file
        https://bugs.webkit.org/show_bug.cgi?id=58618

        * Scripts/webkitpy/layout_tests/layout_package/json_results.html:
        * Scripts/webkitpy/layout_tests/layout_package/test_runner.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83980 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Sergio Villar Senin <svillar@igalia.com>
sergio@webkit.org [Fri, 15 Apr 2011 15:45:05 +0000 (15:45 +0000)]
2011-04-15  Sergio Villar Senin  <svillar@igalia.com>

        Unreviewed, skipping a test.

        [GTK] editing/selection/select-out-of-editable.html failing after r83967
        https://bugs.webkit.org/show_bug.cgi?id=58667

        * platform/gtk/Skipped: skipping editing/selection/select-out-of-editable.html

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83979 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Fri, 15 Apr 2011 15:42:18 +0000 (15:42 +0000)]
2011-04-15  Ojan Vafai  <ojan@chromium.org>

        Reviewed by Eric Seidel.

        fix sorting in new results file
        https://bugs.webkit.org/show_bug.cgi?id=58616

        -Fix the custom sort to return -1, 0, 1 instead of true/false.
        -Secondary sort by test name when sort values are equal.
        -Sort by test name by default.

        * Scripts/webkitpy/layout_tests/layout_package/json_results.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83978 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Dmitry Lomov <dslomov@google.com>
commit-queue@webkit.org [Fri, 15 Apr 2011 15:39:46 +0000 (15:39 +0000)]
2011-04-15  Dmitry Lomov  <dslomov@google.com>

        Reviewed by David Levin.

        check-webkit-style shouldn't complain about not including a primary header file
        if none exists
        https://bugs.webkit.org/show_bug.cgi?id=39514

        * Scripts/webkitpy/style/checkers/cpp.py:
        * Scripts/webkitpy/style/checkers/cpp_unittest.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83977 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago[Windows Tests] fast/forms/input-text-drag-down.html and
jberlin@webkit.org [Fri, 15 Apr 2011 15:38:01 +0000 (15:38 +0000)]
[Windows Tests] fast/forms/input-text-drag-down.html and
editing/selection/select-from-textfield-outwards.html failing since r83967.
https://bugs.webkit.org/show_bug.cgi?id=58664

Adding Windows-specific expected failing results to get the bots green.

* platform/win/editing/selection/select-from-textfield-outwards-expected.checksum: Added.
* platform/win/editing/selection/select-from-textfield-outwards-expected.png: Added.
* platform/win/editing/selection/select-from-textfield-outwards-expected.txt: Added.
* platform/win/fast/forms/input-text-drag-down-expected.checksum: Added.
* platform/win/fast/forms/input-text-drag-down-expected.png: Added.
* platform/win/fast/forms/input-text-drag-down-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83976 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Sergey Vorobyev <sergeyvorobyev@google.com>
yurys@chromium.org [Fri, 15 Apr 2011 15:15:42 +0000 (15:15 +0000)]
2011-04-15  Sergey Vorobyev  <sergeyvorobyev@google.com>

        Reviewed by Yury Semikhatsky.

        Web Inspector: Network events don't preserves,
        when inspector frontend closed and open again
        https://bugs.webkit.org/show_bug.cgi?id=58064

        Added InspectorFrontendProxy and EventsCollector.
        They allow captured messages from InspectorResourceAgent
        to frontend (or mockFrontend if frontend disabled) and
        push collected data when frontend reconnect.
        This functionality is disabled by default.

        * CMakeLists.txt:
        * GNUmakefile.list.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * inspector/EventsCollector.cpp: Added.
        (WebCore::EventsCollector::EventsCollector):
        (WebCore::EventsCollector::addEvent):
        (WebCore::EventsCollector::sendCollectedEvents):
        * inspector/EventsCollector.h: Added.
        (WebCore::EventsCollector::~EventsCollector):
        * inspector/Inspector.json:
        * inspector/InspectorFrontendProxy.cpp: Added.
        (WebCore::InspectorFrontendProxy::InspectorFrontendProxy):
        (WebCore::InspectorFrontendProxy::setInspectorFrontendChannel):
        (WebCore::InspectorFrontendProxy::setEventsCollector):
        (WebCore::InspectorFrontendProxy::sendMessageToFrontend):
        * inspector/InspectorFrontendProxy.h: Added.
        (WebCore::InspectorFrontendProxy::~InspectorFrontendProxy):
        * inspector/InspectorInstrumentation.cpp:
        (WebCore::InspectorInstrumentation::domContentLoadedEventFiredImpl):
        (WebCore::InspectorInstrumentation::loadEventFiredImpl):
        * inspector/InspectorInstrumentation.h:
        (WebCore::InspectorInstrumentation::willSendRequest):
        (WebCore::InspectorInstrumentation::willReceiveResourceResponse):
        (WebCore::InspectorInstrumentation::didReceiveContentLength):
        (WebCore::InspectorInstrumentation::didFinishLoading):
        (WebCore::InspectorInstrumentation::domContentLoadedEventFired):
        (WebCore::InspectorInstrumentation::loadEventFired):
        (WebCore::InspectorInstrumentation::frameDetachedFromParent):
        (WebCore::InspectorInstrumentation::didCreateWebSocket):
        (WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequest):
        (WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponse):
        (WebCore::InspectorInstrumentation::didCloseWebSocket):
        * inspector/InspectorResourceAgent.cpp:
        (WebCore::InspectorResourceAgent::setFrontend):
        (WebCore::InspectorResourceAgent::resourceContent):
        (WebCore::InspectorResourceAgent::~InspectorResourceAgent):
        (WebCore::InspectorResourceAgent::didReceiveResponse):
        (WebCore::InspectorResourceAgent::domContentEventFired):
        (WebCore::InspectorResourceAgent::loadEventFired):
        (WebCore::InspectorResourceAgent::enabledBackgoundEventsCoollection):
        (WebCore::InspectorResourceAgent::enable):
        (WebCore::InspectorResourceAgent::InspectorResourceAgent):
        * inspector/InspectorResourceAgent.h:
        * inspector/front-end/NetworkManager.js:
        (WebInspector.NetworkDispatcher.prototype.domContentEventFired):
        (WebInspector.NetworkDispatcher.prototype.loadEventFired):
        * inspector/front-end/inspector.js:
        (WebInspector.domContentEventFired):
        (WebInspector.loadEventFired):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83975 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Dmitry Lomov <dslomov@google.com>
commit-queue@webkit.org [Fri, 15 Apr 2011 14:55:10 +0000 (14:55 +0000)]
2011-04-15  Dmitry Lomov  <dslomov@google.com>

        Reviewed by David Levin.

        Add a sample test case for GTest framework
        https://bugs.webkit.org/show_bug.cgi?id=58509

        Add an example of GTest testcase, complete with a runner, to JavaScriptCore.

        * JavaScriptCore.xcodeproj/project.pbxproj:
        * wtf/tests/RunAllWtfTests.cpp: Added.
        (main):
        * wtf/tests/StringTests.cpp: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83974 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Alexis Menard <alexis.menard@openbossa.org>
alexis.menard@openbossa.org [Fri, 15 Apr 2011 14:38:27 +0000 (14:38 +0000)]
2011-04-15  Alexis Menard  <alexis.menard@openbossa.org>

        Reviewed by Dimitri Glazkov.

        REGRESSION(r83397) [Qt] When clicking on the media elements they grow 2 pixels.
        https://bugs.webkit.org/show_bug.cgi?id=58477

        Since r83397 the media controls elements are actual DOM elements.
        Therefore the global style-sheet applies to them. html.css defines
        input[type="button"]:active to be border-style: inset which means
        that when the buttons are active they grow by their border size. Therefore
        ports which are not using the borders must explicitly disable them in their custom
        stylesheet.

        * css/mediaControlsQt.css:
        (audio::-webkit-media-controls-mute-button):
        (video::-webkit-media-controls-mute-button):
        (audio::-webkit-media-controls-play-button):
        (video::-webkit-media-controls-play-button):
        (video::-webkit-media-controls-fullscreen-button):
        * css/mediaControlsQuickTime.css:
        (audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button):
        (audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-button):
        (audio::-webkit-media-controls-seek-back-button, video::-webkit-media-controls-seek-back-button):
        (audio::-webkit-media-controls-seek-forward-button, video::-webkit-media-controls-seek-forward-button):
        (audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-fullscreen-button):
        (audio::-webkit-media-controls-rewind-button, video::-webkit-media-controls-rewind-button):
        (audio::-webkit-media-controls-return-to-realtime-button, video::-webkit-media-controls-return-to-realtime-button):
        (audio::-webkit-media-controls-toggle-closed-captions-button, video::-webkit-media-controls-toggle-closed-captions-button):
        (audio::-webkit-media-controls-volume-slider-mute-button, video::-webkit-media-controls-volume-slider-mute-button):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83973 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Zelidrag Hornung <zelidrag@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 14:35:32 +0000 (14:35 +0000)]
2011-04-15  Zelidrag Hornung  <zelidrag@chromium.org>

        Reviewed by Darin Fisher.

        Added enums for external file system type.
        https://bugs.webkit.org/show_bug.cgi?id=58456

        * fileapi/DOMFileSystemBase.cpp:
        (WebCore::DOMFileSystemBase::crackFileSystemURL):
        * fileapi/DOMFileSystemBase.h:
        * fileapi/EntryBase.cpp:
        (WebCore::EntryBase::toURL):
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::requestFileSystem):
        * page/DOMWindow.h:
        * platform/AsyncFileSystem.h:
        * workers/WorkerContext.cpp:
        (WebCore::WorkerContext::requestFileSystem):
        (WebCore::WorkerContext::requestFileSystemSync):
        * workers/WorkerContext.h:
2011-04-15  Zelidrag Hornung  <zelidrag@chromium.org>

        Reviewed by Darin Fisher.

        Added enums for external file system type and exposed factory function
        for creating File- and DirectoryEntry objects from Chromium side.
        https://bugs.webkit.org/show_bug.cgi?id=58456

        * public/WebFileSystem.h:
        * public/WebFrame.h:
        * src/AssertMatchingEnums.cpp:
        * src/WebFrameImpl.cpp:
        (WebKit::WebFrameImpl::createFileSystem):
        (WebKit::WebFrameImpl::createFileEntry):
        * src/WebFrameImpl.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83972 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Sergio Villar Senin <svillar@igalia.com>
sergio@webkit.org [Fri, 15 Apr 2011 14:30:42 +0000 (14:30 +0000)]
2011-04-15  Sergio Villar Senin  <svillar@igalia.com>

        Unreviewed, added new GTK+ test expectations.

        * platform/gtk/fast/forms/select-background-none-expected.checksum: Added.
        * platform/gtk/fast/forms/select-background-none-expected.png: Added.
        * platform/gtk/fast/forms/select-background-none-expected.txt: Added.
        * platform/gtk/fast/text/zero-font-size-expected.checksum: Added.
        * platform/gtk/fast/text/zero-font-size-expected.png: Added.
        * platform/gtk/fast/text/zero-font-size-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83971 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoAdd new eventSender-dependent tests from r83967 to the mac-wks Skipped file
aroben@apple.com [Fri, 15 Apr 2011 14:25:09 +0000 (14:25 +0000)]
Add new eventSender-dependent tests from r83967 to the mac-wks Skipped file

* platform/mac-wk2/Skipped: Added some new editing/selection tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83970 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Pavel Feldman <pfeldman@google.com>
pfeldman@chromium.org [Fri, 15 Apr 2011 14:08:31 +0000 (14:08 +0000)]
2011-04-15  Pavel Feldman  <pfeldman@google.com>

        Reviewed by Yury Semikhatsky.

        Web Inspector: make resource revisions use dedicated type (not Resource clone).
        https://bugs.webkit.org/show_bug.cgi?id=58659

        * inspector/front-end/CSSStyleModel.js:
        (WebInspector.CSSStyleModel.prototype.setStyleSheetText):
        * inspector/front-end/Resource.js:
        (WebInspector.Resource.prototype.addRevision):
        (WebInspector.Resource.prototype._innerRequestContent.onResourceContent):
        (WebInspector.Resource.prototype._innerRequestContent):
        (WebInspector.ResourceRevision):
        (WebInspector.ResourceRevision.prototype.get resource):
        (WebInspector.ResourceRevision.prototype.get timestamp):
        (WebInspector.ResourceRevision.prototype.get content):
        (WebInspector.ResourceRevision.prototype.revertToThis):
        (WebInspector.ResourceRevision.prototype.requestContent.mycallback):
        (WebInspector.ResourceRevision.prototype.requestContent):
        * inspector/front-end/ResourceView.js:
        (WebInspector.ResourceView.resourceViewTypeMatchesResource):
        (WebInspector.ResourceView.resourceViewForResource):
        (WebInspector.ResourceView.recreateResourceView):
        (WebInspector.ResourceView.existingResourceViewForResource):
        (WebInspector.RevisionSourceFrame):
        (WebInspector.RevisionSourceFrame.prototype.get resource):
        (WebInspector.RevisionSourceFrame.prototype.isContentEditable):
        (WebInspector.RevisionSourceFrame.prototype.requestContent):
        * inspector/front-end/ResourcesPanel.js:
        (WebInspector.ResourcesPanel.prototype._showResourceView):
        (WebInspector.ResourcesPanel.prototype._showRevisionView):
        (WebInspector.ResourcesPanel.prototype._fetchAndApplyDiffMarkup.step1):
        (WebInspector.ResourcesPanel.prototype._fetchAndApplyDiffMarkup.step2):
        (WebInspector.ResourcesPanel.prototype._fetchAndApplyDiffMarkup):
        (WebInspector.ResourceRevisionTreeElement):
        (WebInspector.ResourceRevisionTreeElement.prototype.get itemURL):
        (WebInspector.ResourceRevisionTreeElement.prototype.onselect):
        (WebInspector.ResourceRevisionTreeElement.prototype._ondragstart):
        (WebInspector.ResourceRevisionTreeElement.prototype._handleContextMenuEvent):
        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame.prototype._ensureContentLoaded):
        (WebInspector.SourceFrame.prototype.requestContent):
        (WebInspector.SourceFrame.prototype.commitEditing.didEditContent):
        (WebInspector.SourceFrame.prototype.commitEditing):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83969 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Alexander Pavlov <apavlov@chromium.org>
apavlov@chromium.org [Fri, 15 Apr 2011 13:57:53 +0000 (13:57 +0000)]
2011-04-15  Alexander Pavlov  <apavlov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: Prevent Backspace keypresses from routing into the inspected page
        https://bugs.webkit.org/show_bug.cgi?id=58653

        * inspector/front-end/inspector.js:
        (WebInspector.documentKeyDown):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83968 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Alice Boxhall <aboxhall@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 13:44:54 +0000 (13:44 +0000)]
2011-04-15  Alice Boxhall  <aboxhall@chromium.org>

        Reviewed by Ryosuke Niwa.

        Text selection changes unexpectedly when dragging out of the <input>
        https://bugs.webkit.org/show_bug.cgi?id=55552

        Tests that dragging outside of a contenteditable, input or textarea selects to the end of the
        element, rather than jumping back to the beginning.

        * editing/selection/resources/select-out-of-floated-editable.js: Added.
        (log):
        (else.window.onmouseup):
        (getSelectionStart):
        (getSelectionEnd):
        (checkSelection):
        * editing/selection/select-out-of-editable-expected.txt: Added.
        * editing/selection/select-out-of-editable.html: Added.
        * editing/selection/select-out-of-floated-contenteditable-expected.txt: Added.
        * editing/selection/select-out-of-floated-contenteditable.html: Added.
        * editing/selection/select-out-of-floated-input-expected.txt: Added.
        * editing/selection/select-out-of-floated-input.html: Added.
        * editing/selection/select-out-of-floated-textarea-expected.txt: Added.
        * editing/selection/select-out-of-floated-textarea.html: Added.
2011-04-15  Alice Boxhall  <aboxhall@chromium.org>

        Reviewed by Ryosuke Niwa.

        Text selection changes unexpectedly when dragging out of the <input>
        https://bugs.webkit.org/show_bug.cgi?id=55552

        Tests: editing/selection/select-out-of-editable.html
               editing/selection/select-out-of-floated-contenteditable.html
               editing/selection/select-out-of-floated-input.html
               editing/selection/select-out-of-floated-textarea.html

        * page/EventHandler.cpp:
        (WebCore::selectionExtentRespectingEditingBoundary): When dragging from an editable element, check that
        the endpoint is not outside the element. If it is, translate the point into a local point within
        the editable element.
        (WebCore::EventHandler::updateSelectionForMouseDrag): Call targetPositionForSelectionEndpoint() to
        calculate the selection endpoint.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83967 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoUpdate Windows results after r83939
aroben@apple.com [Fri, 15 Apr 2011 13:41:33 +0000 (13:41 +0000)]
Update Windows results after r83939

* platform/win/media/media-document-audio-repaint-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83966 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoSkip a sometimes-failing test on Windows
aroben@apple.com [Fri, 15 Apr 2011 13:34:32 +0000 (13:34 +0000)]
Skip a sometimes-failing test on Windows

<http://webkit.org/b/58441> tracks the failure.

* platform/win/Skipped: Added fast/events/pageshow-pagehide-on-back-cached-with-frames.html.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83965 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoSkip a timing-out test on Windows
aroben@apple.com [Fri, 15 Apr 2011 13:28:06 +0000 (13:28 +0000)]
Skip a timing-out test on Windows

<http://webkit.org/b/58654> tracks the failure.

* platform/win/Skipped: Added media/video-controls-in-media-document.html.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83964 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agoRoll out r83954
aroben@apple.com [Fri, 15 Apr 2011 13:12:56 +0000 (13:12 +0000)]
Roll out r83954

It was causing fast/dom/Window/timer-null-script-execution-context.html to crash on multiple
bots.

See <http://webkit.org/b/58610>.

Source/WebCore:

* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::JSDOMWindow::setTimeout):
(WebCore::JSDOMWindow::setInterval):
* bindings/js/JSWorkerContextCustom.cpp:
(WebCore::JSWorkerContext::setTimeout):
(WebCore::JSWorkerContext::setInterval):
* bindings/js/ScheduledAction.cpp:
(WebCore::ScheduledAction::create):
* bindings/js/ScheduledAction.h:
* bindings/v8/custom/V8DOMWindowCustom.cpp:
(WebCore::WindowSetTimeoutImpl):
* page/ContentSecurityPolicy.cpp:
* page/ContentSecurityPolicy.h:

LayoutTests:

* http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-allowed-expected.txt: Removed.
* http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-allowed.html: Removed.
* http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-blocked-expected.txt: Removed.
* http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-blocked.html: Removed.
* http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-allowed-expected.txt: Removed.
* http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-allowed.html: Removed.
* http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-blocked-expected.txt: Removed.
* http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-blocked.html: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83963 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Pavel Feldman <pfeldman@google.com>
pfeldman@chromium.org [Fri, 15 Apr 2011 12:39:32 +0000 (12:39 +0000)]
2011-04-15  Pavel Feldman  <pfeldman@google.com>

        Reviewed by Yury Semikhatsky.

        Web Inspector: refactor resource setContent / revisions infrastructure to get
        rid of onRevert callback.
        https://bugs.webkit.org/show_bug.cgi?id=58649

        Instead, we will have DomainModel/Resource binding responsible for changing
        underlying model upon resource changes and vice versa.

        * inspector/Inspector.json:
        * inspector/InspectorCSSAgent.cpp:
        (WebCore::InspectorCSSAgent::getStyleSheet):
        (WebCore::InspectorCSSAgent::getStyleSheetText):
        (WebCore::InspectorCSSAgent::setStyleSheetText):
        (WebCore::InspectorCSSAgent::setPropertyText):
        (WebCore::InspectorCSSAgent::toggleProperty):
        (WebCore::InspectorCSSAgent::setRuleSelector):
        (WebCore::InspectorCSSAgent::assertStyleSheetForId):
        * inspector/InspectorCSSAgent.h:
        * inspector/front-end/CSSStyleModel.js:
        (WebInspector.CSSStyleModel):
        (WebInspector.CSSStyleModel.prototype.setRuleSelector):
        (WebInspector.CSSStyleModel.prototype.addRule):
        (WebInspector.CSSStyleModel.prototype._fireStyleSheetChanged.callback):
        (WebInspector.CSSStyleModel.prototype._fireStyleSheetChanged):
        (WebInspector.CSSStyleModel.prototype.setStyleSheetText):
        (WebInspector.CSSStyleDeclaration.prototype.insertPropertyAt):
        (WebInspector.CSSProperty.prototype.setText):
        (WebInspector.CSSProperty.prototype.setText.callback):
        (WebInspector.CSSProperty.prototype.setDisabled.callback):
        (WebInspector.CSSProperty.prototype.setDisabled):
        (WebInspector.CSSStyleSheet.prototype.setText):
        (WebInspector.CSSStyleModelResourceBinding):
        (WebInspector.CSSStyleModelResourceBinding.prototype.setContent):
        (WebInspector.CSSStyleModelResourceBinding.prototype._frameNavigated):
        (WebInspector.CSSStyleModelResourceBinding.prototype._innerSetContent):
        (WebInspector.CSSStyleModelResourceBinding.prototype._loadStyleSheetHeaders):
        (WebInspector.CSSStyleModelResourceBinding.prototype._styleSheetChanged.setContent):
        (WebInspector.CSSStyleModelResourceBinding.prototype._styleSheetChanged):
        * inspector/front-end/DebuggerPresentationModel.js:
        (WebInspector.DebuggerPresentationModel):
        (WebInspector.DebuggerPresentationModel.prototype.editScriptSource.didEditScriptSource):
        (WebInspector.DebuggerPresentationModel.prototype.editScriptSource.didReceiveSource):
        (WebInspector.DebuggerPresentationModel.prototype.editScriptSource):
        (WebInspector.DebuggerPresentationModelResourceBinding):
        (WebInspector.DebuggerPresentationModelResourceBinding.prototype.canSetContent):
        (WebInspector.DebuggerPresentationModelResourceBinding.prototype.setContent):
        * inspector/front-end/Object.js:
        (WebInspector.Object.prototype.hasEventListeners):
        * inspector/front-end/Resource.js:
        (WebInspector.Resource):
        (WebInspector.Resource.registerDomainModelBinding):
        (WebInspector.Resource.prototype.isEditable):
        (WebInspector.Resource.prototype.setContent):
        (WebInspector.Resource.prototype.addRevision):
        (WebInspector.Resource.prototype.revertToThis.callback):
        (WebInspector.Resource.prototype.revertToThis):
        (WebInspector.ResourceDomainModelBinding):
        (WebInspector.ResourceDomainModelBinding.prototype.canSetContent):
        (WebInspector.ResourceDomainModelBinding.prototype.setContent):
        * inspector/front-end/ResourceView.js:
        (WebInspector.ResourceView.createResourceView):
        (WebInspector.ResourceView.resourceViewTypeMatchesResource):
        (WebInspector.ResourceSourceFrame.prototype.isContentEditable):
        (WebInspector.ResourceSourceFrame.prototype.editContent):
        (WebInspector.ResourceSourceFrame.prototype.endEditing):
        (WebInspector.ResourceSourceFrame.prototype._clearIncrementalUpdateTimer):
        (WebInspector.ResourceSourceFrame.prototype._requestContent):
        * inspector/front-end/ResourcesPanel.js:
        (WebInspector.ResourcesPanel.prototype._resourceAdded):
        (WebInspector.FrameResourceTreeElement):
        (WebInspector.FrameResourceTreeElement.prototype._populateRevisions):
        (WebInspector.FrameResourceTreeElement.prototype._revisionAdded):
        (WebInspector.FrameResourceTreeElement.prototype._appendRevision):
        * inspector/front-end/inspector.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83962 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Fri, 15 Apr 2011 10:05:13 +0000 (10:05 +0000)]
2011-04-15  Philippe Normand  <pnormand@igalia.com>

        Unreviewed, GTK platform results for
        fast/css/font-face-repeated-url.html

        * fast/css/font-face-repeated-url-expected.txt:
        * platform/gtk/fast/css/font-face-repeated-url-expected.txt: Copied from LayoutTests/fast/css/font-face-repeated-url-expected.txt.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83961 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Andrey Kosyakov <caseq@chromium.org>
caseq@chromium.org [Fri, 15 Apr 2011 09:28:50 +0000 (09:28 +0000)]
2011-04-15  Andrey Kosyakov  <caseq@chromium.org>

        Unreviewed, rolling out r83949.
        http://trac.webkit.org/changeset/83949
        https://bugs.webkit.org/show_bug.cgi?id=57960

        broke 31 tests in chromium win & linux

        * platform/chromium/test_expectations.txt:
2011-04-15  Andrey Kosyakov  <caseq@chromium.org>

        Unreviewed, rolling out r83949.
        http://trac.webkit.org/changeset/83949
        https://bugs.webkit.org/show_bug.cgi?id=57960

        broke 31 tests in chromium win & linux

        * platform/graphics/chromium/GLES2Canvas.cpp:
        (WebCore::GLES2Canvas::drawTexturedRect):
        * platform/graphics/chromium/GLES2Canvas.h:
        * platform/graphics/gpu/Texture.cpp:
        (WebCore::copySubRect):
        (WebCore::Texture::load):
        (WebCore::Texture::updateSubRect):
        * platform/graphics/gpu/Texture.h:
        * platform/graphics/skia/ImageBufferSkia.cpp:
        (WebCore::getImageData):
        (WebCore::putImageData):
        (WebCore::ImageBuffer::putUnmultipliedImageData):
        (WebCore::ImageBuffer::putPremultipliedImageData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83960 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Fri, 15 Apr 2011 08:50:19 +0000 (08:50 +0000)]
2011-04-15  Philippe Normand  <pnormand@igalia.com>

        Unreviewed, GTK rebaseline of two tests.

        * fast/css/font-face-repeated-url-expected.txt:
        * platform/gtk/media/media-document-audio-repaint-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83959 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Vsevolod Vlasov <vsevik@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 08:10:16 +0000 (08:10 +0000)]
2011-04-15  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: [Chromium] Create tests for network panel timing, size and raw headers text
        https://bugs.webkit.org/show_bug.cgi?id=58566

        Added network timing, size and raw headers tests for Inspector
        Since chromium used different version of network stack for layout
        tests, these are interactive ui tests (DevToolsSanityTest.TestNetwork*)

        * src/js/Tests.js:
        (.TestSuite.prototype.testNetworkSize.finishResource):
        (.TestSuite.prototype.testNetworkSyncSize.finishResource):
        (.TestSuite.prototype.testNetworkRawHeadersText.finishResource):
        (.TestSuite.prototype.testNetworkTiming.finishResource):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83958 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Ben Taylor <bentaylor.solx86@gmail.com>
commit-queue@webkit.org [Fri, 15 Apr 2011 07:55:47 +0000 (07:55 +0000)]
2011-04-15  Ben Taylor  <bentaylor.solx86@gmail.com>

        Reviewed by Alexey Proskuryakov.

        Fix building with Sun Studio 12: function pointers for extern "C" are treated differently
        https://bugs.webkit.org/show_bug.cgi?id=58508

        Since extern "C" makes a different type (although most compilers ignore that),
        we should be more careful when passing NPAPI callback functions.

        * plugins/npapi.cpp:
        (NPN_PluginThreadAsyncCall):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83957 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 15 Apr 2011 07:54:27 +0000 (07:54 +0000)]
2011-04-15  Eric Seidel  <eric@webkit.org>

        Reviewed by Mihai Parparita.

        queues.webkit.org should display when a bot last rebooted
        https://bugs.webkit.org/show_bug.cgi?id=58562

        There is more repeated code here than I would like.  I fear
        my django-fu isn't quite up to snuff.

        * QueueStatusServer/handlers/queuestatus.py:
        * QueueStatusServer/templates/queuestatus.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83956 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Fri, 15 Apr 2011 07:43:09 +0000 (07:43 +0000)]
2011-04-15  Philippe Normand  <pnormand@igalia.com>

        Unreviewed, rollout r83894 r83827 r83810 r83809 r83808.
        r83808 and its follow-up commits broke GTK Release builds.
        https://bugs.webkit.org/show_bug.cgi?id=58483

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83955 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 15 Apr 2011 07:39:40 +0000 (07:39 +0000)]
2011-04-15  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        CSP should block string arguments to setTimeout and setInterval unless options eval-script
        https://bugs.webkit.org/show_bug.cgi?id=58610

        It's somewhat sadness that the JSC and V8 code for setTimeout and
        setInterval are so different.  I struggled for a while with how to
        handle the worker case, but I decided to punt on it for now.

        Tests: http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-allowed.html
               http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-blocked.html
               http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-allowed.html
               http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-blocked.html

        * bindings/js/JSDOMWindowCustom.cpp:
        (WebCore::JSDOMWindow::setTimeout):
        (WebCore::JSDOMWindow::setInterval):
        * bindings/js/JSWorkerContextCustom.cpp:
        (WebCore::JSWorkerContext::setTimeout):
        (WebCore::JSWorkerContext::setInterval):
        * bindings/js/ScheduledAction.cpp:
        (WebCore::ScheduledAction::create):
        * bindings/js/ScheduledAction.h:
        * bindings/v8/custom/V8DOMWindowCustom.cpp:
        (WebCore::WindowSetTimeoutImpl):
        * page/ContentSecurityPolicy.cpp:
        (WebCore::ContentSecurityPolicy::allowEval):
        * page/ContentSecurityPolicy.h:
2011-04-15  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        CSP should block string arguments to setTimeout and setInterval unless options eval-script
        https://bugs.webkit.org/show_bug.cgi?id=58610

        Herein lies a four-way testing matrix.

        * http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-allowed-expected.txt: Added.
        * http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-allowed.html: Added.
        * http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-blocked-expected.txt: Added.
        * http/tests/security/contentSecurityPolicy/eval-scripts-setInterval-blocked.html: Added.
        * http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-allowed-expected.txt: Added.
        * http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-allowed.html: Added.
        * http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-blocked-expected.txt: Added.
        * http/tests/security/contentSecurityPolicy/eval-scripts-setTimeout-blocked.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83954 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 15 Apr 2011 07:37:11 +0000 (07:37 +0000)]
2011-04-15  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Add support for CSP's 'self' source
        https://bugs.webkit.org/show_bug.cgi?id=58604

        * http/tests/security/contentSecurityPolicy/script-src-self-expected.txt: Added.
        * http/tests/security/contentSecurityPolicy/script-src-self.html: Added.
2011-04-15  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Add support for CSP's 'self' source
        https://bugs.webkit.org/show_bug.cgi?id=58604

        This change is now trivially easy.

        Test: http/tests/security/contentSecurityPolicy/script-src-self.html

        * page/ContentSecurityPolicy.cpp:
        (WebCore::CSPSourceList::addSourceSelf):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83953 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-15 Anna Cavender <annacc@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 07:13:49 +0000 (07:13 +0000)]
2011-04-15  Anna Cavender  <annacc@chromium.org>

        Reviewed by Eric Carlson.

        Renaming TRACK feature define to VIDEO_TRACK
        https://bugs.webkit.org/show_bug.cgi?id=53556

        * configure.ac:
2011-04-15  Anna Cavender  <annacc@chromium.org>

        Reviewed by Eric Carlson.

        Renaming TRACK feature define to VIDEO_TRACK
        https://bugs.webkit.org/show_bug.cgi?id=53556

        * Configurations/FeatureDefines.xcconfig:
2011-04-15  Anna Cavender  <annacc@chromium.org>

        Reviewed by Eric Carlson.

        Renaming TRACK feature define to VIDEO_TRACK
        https://bugs.webkit.org/show_bug.cgi?id=53556

        No new tests. No new functionality.

        * CMakeLists.txt:
        * Configurations/FeatureDefines.xcconfig:
        * DerivedSources.make:
        * GNUmakefile.am:
        * features.pri:
        * html/HTMLTagNames.in:
        * html/HTMLTrackElement.cpp:
        * html/HTMLTrackElement.h:
        * html/HTMLTrackElement.idl:
2011-04-15  Anna Cavender  <annacc@chromium.org>

        Reviewed by Eric Carlson.

        Renaming TRACK feature define to VIDEO_TRACK
        https://bugs.webkit.org/show_bug.cgi?id=53556

        * Configurations/FeatureDefines.xcconfig:
2011-04-15  Anna Cavender  <annacc@chromium.org>

        Reviewed by Eric Carlson.

        Renaming TRACK feature define to VIDEO_TRACK
        https://bugs.webkit.org/show_bug.cgi?id=53556

        * Configurations/FeatureDefines.xcconfig:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83952 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Andrey Adaikin <aandrey@google.com>
commit-queue@webkit.org [Fri, 15 Apr 2011 06:29:40 +0000 (06:29 +0000)]
2011-04-14  Andrey Adaikin  <aandrey@google.com>

        Reviewed by Pavel Feldman.

        Web Inspector: Ctrl+Left/Right switch panels during live editing
        https://bugs.webkit.org/show_bug.cgi?id=58521

        Disable Ctrl+Left/Right keyboard shortcuts while in live edit.

        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame.prototype.readOnlyStateChanged):
        * inspector/front-end/TextViewer.js:
        (WebInspector.TextViewer.prototype.set readOnly):
        (WebInspector.TextViewer.prototype.get readOnly):
        (WebInspector.TextViewer.prototype._doubleClick):
        (WebInspector.TextViewer.prototype._commitEditing.didCommitEditing):
        (WebInspector.TextViewer.prototype._commitEditing):
        (WebInspector.TextViewer.prototype._cancelEditing):
        (WebInspector.TextViewerDelegate.prototype.readOnlyStateChanged):
        (WebInspector.TextEditorMainPanel.prototype.set readOnly):
        * inspector/front-end/inspector.js:
        (WebInspector.markBeingEdited):
        (WebInspector.isEditingAnyField):
        (WebInspector.startEditing.cleanUpAfterEditing):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83951 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Vsevolod Vlasov <vsevik@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 05:55:33 +0000 (05:55 +0000)]
2011-04-14  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: Enable raw HTTP headers support
        https://bugs.webkit.org/show_bug.cgi?id=58259

        Added raw headers text support to inspector.

        * English.lproj/localizedStrings.js:
        * inspector/Inspector.json:
        * inspector/InspectorResourceAgent.cpp:
        (WebCore::buildObjectForResourceResponse):
        * inspector/front-end/NetworkManager.js:
        (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
        * inspector/front-end/Resource.js:
        (WebInspector.Resource):
        (WebInspector.Resource.prototype.get transferSize):
        (WebInspector.Resource.prototype.set requestHeaders):
        (WebInspector.Resource.prototype.get rawRequestHeadersText):
        (WebInspector.Resource.prototype.set rawRequestHeadersText):
        (WebInspector.Resource.prototype.get requestHeadersSize):
        (WebInspector.Resource.prototype.set responseHeaders):
        (WebInspector.Resource.prototype.get rawResponseHeadersText):
        (WebInspector.Resource.prototype.set rawResponseHeadersText):
        (WebInspector.Resource.prototype.get responseHeadersSize):
        (WebInspector.Resource.prototype._headersSize):
        * inspector/front-end/ResourceHeadersView.js:
        (WebInspector.ResourceHeadersView):
        (WebInspector.ResourceHeadersView.prototype._refreshParms):
        (WebInspector.ResourceHeadersView.prototype._refreshRequestHeaders):
        (WebInspector.ResourceHeadersView.prototype._refreshResponseHeaders):
        (WebInspector.ResourceHeadersView.prototype._refreshHeadersTitle):
        (WebInspector.ResourceHeadersView.prototype._refreshHeaders):
        (WebInspector.ResourceHeadersView.prototype._refreshRawHeadersText):
        (WebInspector.ResourceHeadersView.prototype._toggleRawRequestHeadersText):
        (WebInspector.ResourceHeadersView.prototype._toggleRawResponseHeadersText):
        (WebInspector.ResourceHeadersView.prototype._createToggleButton):
        (WebInspector.ResourceHeadersView.prototype._createHeadersToggleButton):
        * inspector/front-end/networkPanel.css:
        (.resource-headers-view .outline-disclosure li .header-toggle):
        (.resource-headers-view .outline-disclosure li.expanded .header-toggle):
        (.resource-headers-view .outline-disclosure li .header-toggle:hover):
        (.resource-headers-view .outline-disclosure li.raw-headers-text):
        * platform/network/ResourceLoadInfo.h:
2011-04-14  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: Enable raw HTTP headers support
        https://bugs.webkit.org/show_bug.cgi?id=58259

        Added raw headers text support to inspector.

        * public/WebHTTPLoadInfo.h:
        * src/WebHTTPLoadInfo.cpp:
        (WebKit::WebHTTPLoadInfo::rawRequestHeadersText):
        (WebKit::WebHTTPLoadInfo::setRawRequestHeadersText):
        (WebKit::WebHTTPLoadInfo::rawResponseHeadersText):
        (WebKit::WebHTTPLoadInfo::setRawResponseHeadersText):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83950 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Justin Novosad <junov@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 05:43:27 +0000 (05:43 +0000)]
2011-04-14  Justin Novosad  <junov@chromium.org>

        Reviewed by Kenneth Russell.

        [Chromium] Accelerated 2D Canvas is slow to execute putImageData
        https://bugs.webkit.org/show_bug.cgi?id=57960

        * platform/chromium/test_expectations.txt:
        added expected failure for test
        canvas/philip/tests/2d.gradient.interpolate.colouralpha.html
        Logged as chromium issue:
        http://code.google.com/p/chromium/issues/detail?id=79477
2011-04-14  Justin Novosad  <junov@chromium.org>

        Reviewed by Kenneth Russell.

        [Chromium] Accelerated 2D Canvas is slow to execute putImageData
        https://bugs.webkit.org/show_bug.cgi?id=57960

        * platform/graphics/chromium/GLES2Canvas.cpp:
        (WebCore::GLES2Canvas::drawTexturedRect):
        Added an option for using the blend ops for alpha multiplication
        instead of compositing.
        (WebCore::GLES2Canvas::applyClipping):
        (WebCore::GLES2Canvas::putImageData):
        New method for drawing raw pixel data from memory to the canvas
        (WebCore::GLES2Canvas::putUnmultipliedImageData):
        Wrapper for putImageData
        (WebCore::GLES2Canvas::putPremultipliedImageData):
        Wrapper for putImageData
        * platform/graphics/chromium/GLES2Canvas.h:
        * platform/graphics/gpu/Texture.cpp:
        (WebCore::copySubRect):
        (WebCore::Texture::load):
        (WebCore::Texture::updateSubRect):
        Added an overload of the updateSubRect method that can receive a pixel
        of a size that is different from texture size. Improved the performance
        of updateSubrect by avoiding the allocation of a temporary buffer when
        not required.
        * platform/graphics/gpu/Texture.h:
        * platform/graphics/skia/ImageBufferSkia.cpp:
        (WebCore::getImageData):
        In the unmultiplied path, division by alpha now performs proper
        rounding in order to avoid generational degradation with putImageData
        (WebCore::putImageData):
        Alpha multiplication now performs proper rounding in order to be
        consistent with the hardware rendering path: OpenGL always rounds when
        converting to fixed point representation.
        (WebCore::ImageBuffer::putUnmultipliedImageData):
        Now supports a hardware rendering path, which eliminates the need
        for a readback from the GPU
        (WebCore::ImageBuffer::putPremultipliedImageData):
        Now supports a hardware rendering path, which eliminates the need
        for a readback from the GPU

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83949 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Adrienne Walker <enne@google.com>
enne@google.com [Fri, 15 Apr 2011 05:24:34 +0000 (05:24 +0000)]
2011-04-14  Adrienne Walker  <enne@google.com>

        [chromium] Unreviewed, test expectations for more bug 57113 fallout.

        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83948 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Ami Fischman <fischman@google.com>
commit-queue@webkit.org [Fri, 15 Apr 2011 05:22:30 +0000 (05:22 +0000)]
2011-04-14  Ami Fischman  <fischman@google.com>

        Reviewed by Eric Carlson.

        Rewrote video-controls-in-media-document layouttest to use the shadow
        DOM (possible as of r83397) and avoid the need for pixel-test status.
        https://bugs.webkit.org/show_bug.cgi?id=54634

        * media/video-controls-in-media-document-expected.txt: Added.
        * media/video-controls-in-media-document.html:
        * platform/chromium-mac-leopard/media/video-controls-in-media-document-expected.checksum: Removed.
        * platform/chromium-mac-leopard/media/video-controls-in-media-document-expected.png: Removed.
        * platform/chromium-mac-leopard/media/video-controls-in-media-document-expected.txt: Removed.
        * platform/chromium-win-xp/media/video-controls-in-media-document-expected.checksum: Removed.
        * platform/chromium-win-xp/media/video-controls-in-media-document-expected.png: Removed.
        * platform/chromium/media/video-controls-in-media-document-expected.checksum: Removed.
        * platform/chromium/media/video-controls-in-media-document-expected.png: Removed.
        * platform/chromium/media/video-controls-in-media-document-expected.txt: Removed.
        * platform/chromium/test_expectations.txt:
        * platform/gtk/media/video-controls-in-media-document-expected.txt: Removed.
        * platform/mac/Skipped:
        * platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83947 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Alok Priyadarshi <alokp@chromium.org>
abarth@webkit.org [Fri, 15 Apr 2011 05:19:26 +0000 (05:19 +0000)]
2011-04-14  Alok Priyadarshi  <alokp@chromium.org>

        Reviewed by Adam Barth.

        Remove dependency on chromium skia::PlatformCanvas
        https://bugs.webkit.org/show_bug.cgi?id=57563

        Fixed compile error on Mac when using Core Graphics.

        * DumpRenderTree/chromium/WebViewHost.cpp:
        (WebViewHost::paintRect):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83946 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Joone Hur <joone.hur@collabora.co.uk>
joone.hur@collabora.co.uk [Fri, 15 Apr 2011 05:18:02 +0000 (05:18 +0000)]
2011-04-14  Joone Hur  <joone.hur@collabora.co.uk>

        Reviewed by Martin Robinson.

        Creating a CairoPath instance is not thread safe
        https://bugs.webkit.org/show_bug.cgi?id=58514

        This patch allows a cairo surface to be created just one time in order to
        guarantee thread safety.
        In addition, CairoPath.{h,cpp} is renamed to PlatformPathCairo.{h,cpp} to
        prevent confusing them with PathCairo.cpp

        * CMakeListsEfl.txt: Added PlatformPathCairo.cpp
        * GNUmakefile.list.am: Added PlatformPathCairo.{h,cpp} instead of CairoPath.h.
        * platform/graphics/cairo/CairoPath.h: Removed.
        * platform/graphics/cairo/CairoUtilities.cpp: Include PlatformPathCairo.h instead of CairoPath.h.
        * platform/graphics/cairo/GraphicsContextCairo.cpp: Ditto.
        * platform/graphics/cairo/PathCairo.cpp: Ditto.
        * platform/graphics/cairo/PlatformPathCairo.cpp: Added.
        (WebCore::getPathSurface): Getting a static cairo surface.
        (WebCore::CairoPath::CairoPath): Moved the implementation of the constructor
        into the CPP file.
        * platform/graphics/cairo/PlatformPathCairo.h: Renamed CairoPath.h to this.
        (WebCore::CairoPath::~CairoPath):
        (WebCore::CairoPath::context):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83945 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Nat Duca <nduca@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 05:13:14 +0000 (05:13 +0000)]
2011-04-14  Nat Duca  <nduca@chromium.org>

        Reviewed by Darin Fisher.

        [chromium] Add lowpass filter and graph to fps indicator
        https://bugs.webkit.org/show_bug.cgi?id=58186

        * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
        (WebCore::CCHeadsUpDisplay::CCHeadsUpDisplay):
        (WebCore::CCHeadsUpDisplay::drawHudContents):
        (WebCore::CCHeadsUpDisplay::drawFPSCounter):
        (WebCore::CCHeadsUpDisplay::drawPlatformLayerTree):
        (WebCore::CCHeadsUpDisplay::onPresent):
        * platform/graphics/chromium/cc/CCHeadsUpDisplay.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83944 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=58612
bdakin@apple.com [Fri, 15 Apr 2011 05:05:05 +0000 (05:05 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=58612
Crash switching overlay/non-overlay scrollbar preference
(WebCore::Page::setNeedsRecalcStyleInAllFrames + 9)
-and corresponding-
<rdar://problem/9241920>

Reviewed by Adele Peterson.

Speculative fix: Page could definitely be null here.
* page/FrameView.cpp:
(WebCore::FrameView::scrollbarStyleChanged):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83943 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Vsevolod Vlasov <vsevik@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 04:29:53 +0000 (04:29 +0000)]
2011-04-14  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: ResourceResponse should have encodedDataLength field for synchronous requests transfer size
        https://bugs.webkit.org/show_bug.cgi?id=58447

        FrameLoader now takes encoded data length for synchronous requests from the field with the same name.

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::loadResourceSynchronously):
        * platform/network/ResourceLoadInfo.h:
        (WebCore::ResourceLoadInfo::ResourceLoadInfo):
2011-04-14  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: ResourceResponse should have encodedDataLength field for synchronous requests transfer size
        https://bugs.webkit.org/show_bug.cgi?id=58447

        FrameLoader now takes encoded data length for synchronous requests from the field with the same name.

        * public/WebHTTPLoadInfo.h:
        * src/WebHTTPLoadInfo.cpp:
        (WebKit::WebHTTPLoadInfo::encodedDataLength):
        (WebKit::WebHTTPLoadInfo::setEncodedDataLength):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83942 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Alok Priyadarshi <alokp@chromium.org>
commit-queue@webkit.org [Fri, 15 Apr 2011 03:52:23 +0000 (03:52 +0000)]
2011-04-14  Alok Priyadarshi  <alokp@chromium.org>

        Reviewed by James Robinson.

        Remove dependency on chromium skia::PlatformCanvas
        https://bugs.webkit.org/show_bug.cgi?id=57563

        This patch does not change any functionality, just the type of object skia::PlatformCanvas -> SkCanvas. The object is still being created by a factory method skia::CreateBitmapCanvas defined in Chromium. We will eventually define an API that every port using skia will define.

        * platform/graphics/chromium/FontChromiumWin.cpp:
        (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::initializeForGDI):
        (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::~TransparencyAwareFontPainter):
        (WebCore::Font::drawComplexText):
        * platform/graphics/chromium/ImageBufferDataSkia.h:
        * platform/graphics/chromium/LayerChromium.h:
        * platform/graphics/chromium/LayerRendererChromium.h:
        * platform/graphics/chromium/PlatformCanvas.cpp:
        (WebCore::PlatformCanvas::resize):
        * platform/graphics/chromium/PlatformCanvas.h:
        * platform/graphics/chromium/TransparencyWin.cpp:
        (WebCore::TransparencyWin::compositeTextComposite):
        (WebCore::TransparencyWin::makeLayerOpaque):
        * platform/graphics/skia/ImageBufferSkia.cpp:
        (WebCore::ImageBuffer::ImageBuffer):
        * platform/graphics/skia/ImageSkia.cpp:
        (WebCore::paintSkBitmap):
        (WebCore::Image::drawPattern):
        * platform/graphics/skia/PlatformContextSkia.cpp:
        (WebCore::PlatformContextSkia::PlatformContextSkia):
        (WebCore::PlatformContextSkia::setCanvas):
        (WebCore::PlatformContextSkia::isNativeFontRenderingAllowed):
        * platform/graphics/skia/PlatformContextSkia.h:
        (WebCore::PlatformContextSkia::canvas):
        (WebCore::PlatformContextSkia::printing):
        (WebCore::PlatformContextSkia::setPrinting):
2011-04-14  Alok Priyadarshi  <alokp@chromium.org>

        Reviewed by James Robinson.

        Remove dependency on chromium skia::PlatformCanvas
        https://bugs.webkit.org/show_bug.cgi?id=57563

        * public/WebCanvas.h:
        * src/WebFrameImpl.cpp:
        (WebKit::WebFrameImpl::printPage):
        * tests/TransparencyWinTest.cpp:
        (WebCore::drawNativeRect):
        (WebCore::getPixelAt):
        (WebCore::clearTopLayerAlphaChannel):
        (WebCore::clearTopLayerAlphaPixel):
        (WebCore::TEST):
2011-04-14  Alok Priyadarshi  <alokp@chromium.org>

        Reviewed by James Robinson.

        Remove dependency on chromium skia::PlatformCanvas
        https://bugs.webkit.org/show_bug.cgi?id=57563

        * DumpRenderTree/chromium/TestShell.cpp:
        (makeCanvasOpaque):
        (TestShell::dumpImage):
        * DumpRenderTree/chromium/TestShell.h:
        * DumpRenderTree/chromium/WebThemeControlDRTWin.cpp:
        (WebThemeControlDRTWin::WebThemeControlDRTWin):
        (WebThemeControlDRTWin::draw):
        (WebThemeControlDRTWin::drawTextField):
        (WebThemeControlDRTWin::drawProgressBar):
        * DumpRenderTree/chromium/WebThemeControlDRTWin.h:
        * DumpRenderTree/chromium/WebViewHost.cpp:
        (WebViewHost::canvas):
        * DumpRenderTree/chromium/WebViewHost.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83941 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 15 Apr 2011 03:48:42 +0000 (03:48 +0000)]
2011-04-14  Eric Seidel  <eric@webkit.org>

        Reviewed by Simon Fraser.

        PumpSession should not call currentTime() in the constructor
        https://bugs.webkit.org/show_bug.cgi?id=55211

        currentTime() is expensive.  So we avoid calling it in the constructor
        and instead set startTime on the first check for a yield
        (which in the synchronous case never happens, and in the yielding
        case will happen immediately after the first token due to
        processedTokens being set to INT_MAX).

        This ended up being a large win on (my local copy of)
        peacekeeper's domDynamicCreationCreateElement:

        Before:
        avg 366.3333333333333
        median 366
        stdev 2.712112747574399
        min 362
        max 377

        After:
        avg 345.96666666666664
        median 346
        stdev 1.6829207415152454
        min 343
        max 349

        * html/parser/HTMLDocumentParser.cpp:
        * html/parser/HTMLParserScheduler.h:
        (WebCore::PumpSession::PumpSession):
        (WebCore::HTMLParserScheduler::checkForYieldBeforeToken):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83940 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Ami Fischman <fischman@google.com>
commit-queue@webkit.org [Fri, 15 Apr 2011 03:43:35 +0000 (03:43 +0000)]
2011-04-14  Ami Fischman  <fischman@google.com>

        Reviewed by Eric Carlson.

        Update expectation to reflect removal of the -25px bottom margin.
        https://bugs.webkit.org/show_bug.cgi?id=58442

        * media/media-document-audio-repaint-expected.txt:
2011-04-14  Ami Fischman  <fischman@google.com>

        Reviewed by Eric Carlson.

        Remove unnecessary bottom margin of controls in video elements on media documents.
        This makes the cases of media documents and non-media documents consistent,
        and makes it possible to reason about the height of a rendered media document
        (needed e.g. for sizing iframes).

        This change is covered by (the currently Skipped, but soon-to-be-un-Skipped)
        media/video-controls-in-media-document.html layouttest (see bug 54634 for
        the un-Skipping).

        https://bugs.webkit.org/show_bug.cgi?id=58442

        * css/mediaControls.css:
        (video:-webkit-full-page-media::-webkit-media-controls-panel):
        * css/mediaControlsEfl.css:
        (video:-webkit-full-page-media::-webkit-media-controls-panel):
        * css/mediaControlsQuickTime.css:
        (video:-webkit-full-page-media::-webkit-media-controls-panel):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83939 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Fri, 15 Apr 2011 03:39:49 +0000 (03:39 +0000)]
2011-04-14  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Oliver Hunt.

        Use opaque roots instead of direct marking for nodes in the DOM
        https://bugs.webkit.org/show_bug.cgi?id=58624

        A node treats the root of its tree (usually the document) as its opaque
        root during GC.

        This is needed for correctness in a generational GC world, but it also
        happens to be a 3.5X speedup in a DOM-heavy GC test (scratch-gc-dom2.html).

        * bindings/js/DOMWrapperWorld.cpp:
        (WebCore::isObservable):
        (WebCore::isReachableFromDOM): Moved a helper function from JSDOMBinding.
        We use this function to determine whether a node is observable.

        (WebCore::JSNodeHandleOwner::isReachableFromOpaqueRoots): Start using
        our weak handle callback to determine reachability, instead of direct
        marking traversal through the DOM.

        * bindings/js/JSAttrCustom.cpp:
        (WebCore::JSAttr::markChildren): Updated to use the opaque roots mechanism
        instead of direct marking.

        * bindings/js/JSDOMBinding.cpp:
        * bindings/js/JSDOMBinding.h: Moved code mentioned above. Removed
        markDOMNodeWrapper because it is now unused. This is a good thing because
        markDOMNodeWrapper used deprecatedAppend, which is not compatible
        with generational GC.

        * bindings/js/JSDOMImplementationCustom.cpp:
        (WebCore::JSDOMImplementation::markChildren): Updated to use opaque roots.

        * bindings/js/JSDocumentCustom.cpp:
        (WebCore::JSDocument::markChildren): No need to mark our child nodes directly,
        since they will take care of themselves through the opaque roots mechanism.

        * bindings/js/JSNamedNodeMapCustom.cpp:
        (WebCore::JSNamedNodeMap::markChildren): Updated to use opaque roots.

        * bindings/js/JSNodeCustom.cpp:
        (WebCore::JSNode::markChildren): No need to mark our tree or our document
        directly, since they will take care of themselves through the opaque
        roots mechanism.

        * bindings/js/JSNodeCustom.h:
        (WebCore::root): Helper function for accessing the root of a node tree.
        This is O(1) while you're in the document, O(log(N)) when you're in a
        reasonably balanced disconnected tree, and O(N) in the pathological case
        of a disconnected tree that's shaped like a linked list. If average case
        O(long(N)) turns out to be too slow, we can optimize through use of
        rare data or an external hash table, but it is so uncommon that I have
        ignored it for now.

        * bindings/js/JSSVGElementInstanceCustom.cpp:
        (WebCore::JSSVGElementInstance::markChildren): Updated to use opaque roots.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83938 268f45cc-cd09-0410-ab3c-d52691b4dbfc

8 years ago2011-04-14 James Robinson <jamesr@chromium.org>
jamesr@google.com [Fri, 15 Apr 2011 03:30:59 +0000 (03:30 +0000)]
2011-04-14  James Robinson  <jamesr@chromium.org>

        Guess what? Chicken^W chromium test_expectations.txt update.

        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83937 268f45cc-cd09-0410-ab3c-d52691b4dbfc