WebKit-https.git
7 years agocssText should use shorthand notations
rniwa@webkit.org [Mon, 26 Mar 2012 23:59:27 +0000 (23:59 +0000)]
cssText should use shorthand notations
https://bugs.webkit.org/show_bug.cgi?id=81737

Reviewed by Enrica Casucci.

Source/JavaScriptCore:

Export symbols of BitVector on Windows.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:

Source/WebCore:

Use shorthand properties to serialize style properties for cssText.

The overall algorithm is to look for any property that has a shorthand, and then check if
the shorthand value could be obtained (the condition is quite complicated for border properties).
If it could, then append that value to the string builder, and set the corresponding entries in
shorthandPropertyAppeared and shorthandPropertyUsed. If not, only turn on the bit in
shorthandPropertyAppeared on to avoid calling getPropertyValue again for longhand properties
that use the same shorthand property when we cannot use the shorthand.

Test: fast/css/cssText-shorthand.html

* css/StylePropertySet.cpp:
(WebCore::StylePropertySet::asText):

Source/WTF:

* wtf/BitVector.h:
(BitVector):
(WTF::BitVector::ensureSizeAndSet): Added.

LayoutTests:

Rebaseline existing tests and add a regression test for unprefixed CSS properties with
the exception of -webkit-border-horizontal/vertical-spacing (the shorthand version of
these properties (border-spacing) is unprefixed.

* editing/pasteboard/paste-and-sanitize-expected.txt: Uses border instead of longhand
properties as desired.
* editing/pasteboard/paste-and-sanitize.html:
* editing/style/non-inheritable-styles-expected.txt: Ditto.
* fast/css/background-position-serialize-expected.txt: No longer emits "background-*:
initial" as desired.
* fast/css/cssText-shorthand-expected.txt: Added.
* fast/css/cssText-shorthand.html: Added.
* fast/css/remove-shorthand-expected.txt:
* fast/css/remove-shorthand.html: Modified to do elaborative comparison of the lists of
properties before and after removing a shorthand since now removing a shorthand property
may end up adding new longhand property.
* fast/css/uri-token-parsing-expected.txt:
* fast/css/uri-token-parsing.html: Uses shorthand properties instead of longhand equivalents.
* inspector/styles/styles-update-from-js-expected.txt: Ditto.
* printing/page-rule-css-text-expected.txt: Ditto.

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

7 years agoAllow expectations on directories in virtual test suites
enne@google.com [Mon, 26 Mar 2012 23:53:59 +0000 (23:53 +0000)]
Allow expectations on directories in virtual test suites
https://bugs.webkit.org/show_bug.cgi?id=82250

Reviewed by Dirk Pranke.

lookup_virtual_test_base was only returning valid results for files
and not directories. Fix by falling back to the virtual test suite
mapping if possible.

* Scripts/webkitpy/layout_tests/port/base.py:
(Port.lookup_virtual_test_base):
* Scripts/webkitpy/layout_tests/port/test.py:
(TestPort.skipped_tests):
(TestPort.virtual_test_suites):

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

7 years agoNever remove root compositing layers in the web process
andersca@apple.com [Mon, 26 Mar 2012 23:42:17 +0000 (23:42 +0000)]
Never remove root compositing layers in the web process
https://bugs.webkit.org/show_bug.cgi?id=82255
<rdar://problem/11058521>

Reviewed by Sam Weinig.

Since we never leave accelerated compositing mode when using tiled drawing, we should
never remove root compositing layers in the web process.

* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):

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

7 years ago[Chromium] Add Android keycodes
commit-queue@webkit.org [Mon, 26 Mar 2012 23:39:27 +0000 (23:39 +0000)]
[Chromium] Add Android keycodes
https://bugs.webkit.org/show_bug.cgi?id=81950

Add the missing Android keycodes listed in the bug.

Patch by Bolin Hsu <bhsu@google.com> on 2012-03-26
Reviewed by Adam Barth.

* platform/chromium/KeyCodeConversionAndroid.cpp:
(WebCore::windowsKeyCodeForKeyEvent):
* platform/chromium/KeyboardCodes.h:

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

7 years agoFix duplicated ChangeLog entry from r112171.
dpranke@chromium.org [Mon, 26 Mar 2012 23:39:02 +0000 (23:39 +0000)]
Fix duplicated ChangeLog entry from r112171.

Unreviewed, build fix.

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

7 years agoSwitch ColumnInfo::addForcedBreak to LayoutUnits
leviw@chromium.org [Mon, 26 Mar 2012 23:37:44 +0000 (23:37 +0000)]
Switch ColumnInfo::addForcedBreak to LayoutUnits
https://bugs.webkit.org/show_bug.cgi?id=82210

Reviewed by Eric Seidel.

Forced breaks are added by local offsets, which should be in LayoutUnits.

No new tests. No change in behavior.

* rendering/ColumnInfo.h:
(WebCore::ColumnInfo::addForcedBreak):

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

7 years agotest-webkitpy: split test-finding code into a different module
dpranke@chromium.org [Mon, 26 Mar 2012 23:36:06 +0000 (23:36 +0000)]
test-webkitpy: split test-finding code into a different module
https://bugs.webkit.org/show_bug.cgi?id=82253

Reviewed by Adam Barth.

Per suggestion from abarth, this change splits all the
filesystem-crawling, test-finding code in test-webkitpy out into
a separate module and switches to using a FileSystem object.
This makes things much more testable, so we also add tests :).

We also add a realpath() method to the Filesystem object, since
test-webkitpy needs that in order to be able to resolve symlinks
properly to determine whether a file is under a particular tree
or not.

* Scripts/webkitpy/common/system/filesystem.py:
(FileSystem.realpath):
* Scripts/webkitpy/common/system/filesystem_mock.py:
(MockFileSystem.realpath):
* Scripts/webkitpy/test/main.py:
(Tester.__init__):
(Tester.add_tree):
(Tester.run):
(Tester._run_tests):
(Tester._log_exception):
* Scripts/webkitpy/test/test_finder.py: Added.
(TestDirectoryTree):
(TestDirectoryTree.__init__):
(TestDirectoryTree.find_modules):
(TestDirectoryTree.find_modules.file_filter):
(TestDirectoryTree.to_module):
(TestDirectoryTree.clean):
(TestFinder):
(TestFinder.__init__):
(TestFinder.add_tree):
(TestFinder.additional_paths):
(TestFinder.clean_trees):
(TestFinder.is_module):
(TestFinder.to_module):
(TestFinder.find_names):
(TestFinder._exclude):
* Scripts/webkitpy/test/test_finder_unittest.py: Added.
(TestFinderTest):
(TestFinderTest.setUp):
(TestFinderTest.tearDown):
(TestFinderTest.test_additional_system_paths):
(TestFinderTest.test_is_module):
(TestFinderTest.test_to_module):
(TestFinderTest.test_clean):
(TestFinderTest.test_find_names):

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

7 years agoUpdate LayoutUnit usage in ContainerNode, Element, and ElementRareData
leviw@chromium.org [Mon, 26 Mar 2012 23:35:04 +0000 (23:35 +0000)]
Update LayoutUnit usage in ContainerNode, Element, and ElementRareData
https://bugs.webkit.org/show_bug.cgi?id=82219

Reviewed by Eric Seidel.

No new tests. No change in behavior.

* dom/ContainerNode.cpp:
(WebCore::ContainerNode::getLowerRightCorner): linesBoundingBox returns the enclosing IntRect
of the contained lines. Inline's aren't bounded in LayoutUnits nor pixel snapped.
* dom/Element.cpp:
(WebCore::Element::boundsInRootViewSpace): Coordinates in root view space are akin to absolute
coordinates, which are always expressed in integers.
* dom/Element.h:
(Element):
* dom/ElementRareData.h:
(WebCore::defaultMinimumSizeForResizing): Using numeric_limits<LayoutUnit>::max instead of
INT_MAX to avoid overflowing when LayoutUnits are sub-pixel.

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

7 years agoUnreviewed test_expectations update for chromium.
eae@chromium.org [Mon, 26 Mar 2012 23:33:58 +0000 (23:33 +0000)]
Unreviewed test_expectations update for chromium.

* platform/chromium/test_expectations.txt:

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

7 years agotest-webkitpy: split test-finding code into a different module
dpranke@chromium.org [Mon, 26 Mar 2012 23:31:05 +0000 (23:31 +0000)]
test-webkitpy: split test-finding code into a different module
https://bugs.webkit.org/show_bug.cgi?id=82253

Reviewed by Adam Barth.

Per suggestion from abarth, this change splits all the
filesystem-crawling, test-finding code in test-webkitpy out into
a separate module and switches to using a FileSystem object.
This makes things much more testable, so we also add tests :).

We also add a realpath() method to the Filesystem object, since
test-webkitpy needs that in order to be able to resolve symlinks
properly to determine whether a file is under a particular tree
or not.

* Scripts/webkitpy/common/system/filesystem.py:
(FileSystem.realpath):
* Scripts/webkitpy/common/system/filesystem_mock.py:
(MockFileSystem.realpath):
* Scripts/webkitpy/test/main.py:
(Tester.__init__):
(Tester.add_tree):
(Tester.run):
(Tester._run_tests):
(Tester._log_exception):
* Scripts/webkitpy/test/test_finder.py: Added.
(TestDirectoryTree):
(TestDirectoryTree.__init__):
(TestDirectoryTree.find_modules):
(TestDirectoryTree.find_modules.file_filter):
(TestDirectoryTree.to_module):
(TestDirectoryTree.clean):
(TestFinder):
(TestFinder.__init__):
(TestFinder.add_tree):
(TestFinder.additional_paths):
(TestFinder.clean_trees):
(TestFinder.is_module):
(TestFinder.to_module):
(TestFinder.find_names):
(TestFinder._exclude):
* Scripts/webkitpy/test/test_finder_unittest.py: Added.
(TestFinderTest):
(TestFinderTest.setUp):
(TestFinderTest.tearDown):
(TestFinderTest.test_additional_system_paths):
(TestFinderTest.test_is_module):
(TestFinderTest.test_to_module):
(TestFinderTest.test_clean):
(TestFinderTest.test_find_names):

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

7 years agoUpdate binding test output for V8 after r112163.
adamk@chromium.org [Mon, 26 Mar 2012 23:05:29 +0000 (23:05 +0000)]
Update binding test output for V8 after r112163.

* bindings/scripts/test/V8/V8TestInterface.cpp:
(WebCore::V8TestInterface::constructorCallback):
* bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
(WebCore::V8TestNamedConstructorConstructorCallback):
* bindings/scripts/test/V8/V8TestObj.cpp:
(WebCore::V8TestObj::constructorCallback):
* bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
(WebCore::V8TestSerializedScriptValueInterface::constructorCallback):

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

7 years agoUpdate localSelectionRect to return a LayoutRect
leviw@chromium.org [Mon, 26 Mar 2012 23:01:23 +0000 (23:01 +0000)]
Update localSelectionRect to return a LayoutRect
https://bugs.webkit.org/show_bug.cgi?id=82183

Reviewed by Eric Seidel.

localSelectionRect returns a rectangle in the coordinate space of its renderer,
and therefor should remain LayoutUnits until being promoted to absolute
coordinates or painted. Also fixing an incorrect conversion of startPos and
endPos in selectionRectForRepaint.

No new tests. No change in behavior.

* rendering/InlineTextBox.cpp:
(WebCore::InlineTextBox::localSelectionRect): Continuing to use enclosingIntRect
for the value being returned from the font engine since these floating point
values should not be pixel snapped.
* rendering/InlineTextBox.h:
(InlineTextBox):
* rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::localSelectionRect):
* rendering/RenderReplaced.h:
(RenderReplaced):
* rendering/RenderText.cpp:
(WebCore::localQuadForTextBox):
(WebCore::RenderText::absoluteRectsForRange):
(WebCore::RenderText::absoluteQuadsForRange):
(WebCore::RenderText::selectionRectForRepaint): Fixing an incorrect conversion of
start/endPos to LayoutUnits. These values represent a range of selected characters,
not layout values!
* rendering/svg/RenderSVGInlineText.cpp:
(WebCore::RenderSVGInlineText::localCaretRect):
* rendering/svg/SVGInlineTextBox.cpp:
(WebCore::SVGInlineTextBox::localSelectionRect):
* rendering/svg/SVGInlineTextBox.h:
(SVGInlineTextBox):

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

7 years ago[Chromium] Crash in Canvas2DLayerChromium::pushPropertiesTo
commit-queue@webkit.org [Mon, 26 Mar 2012 22:59:53 +0000 (22:59 +0000)]
[Chromium] Crash in Canvas2DLayerChromium::pushPropertiesTo
https://bugs.webkit.org/show_bug.cgi?id=82243

Patch by Justin Novosad <junov@chromium.org> on 2012-03-26
Reviewed by James Robinson.

Adding null pointer check to prevent crash and texture object
validity check to prevent potential graphics glitch

* platform/graphics/chromium/Canvas2DLayerChromium.cpp:
(WebCore::Canvas2DLayerChromium::pushPropertiesTo):

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

7 years agoDFG should assert that argument value recoveries can only be
fpizlo@apple.com [Mon, 26 Mar 2012 22:58:35 +0000 (22:58 +0000)]
DFG should assert that argument value recoveries can only be
AlreadyInRegisterFile or Constant
https://bugs.webkit.org/show_bug.cgi?id=82249

Reviewed by Michael Saboff.

Made the assertions that the DFG makes for argument value recoveries match
what Arguments expects.

* bytecode/ValueRecovery.h:
(JSC::ValueRecovery::isConstant):
(ValueRecovery):
(JSC::ValueRecovery::isAlreadyInRegisterFile):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compile):

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

7 years agoUse PassRefPtr in V8DOMWrapper interface to avoid explicit ref() calls
adamk@chromium.org [Mon, 26 Mar 2012 22:57:22 +0000 (22:57 +0000)]
Use PassRefPtr in V8DOMWrapper interface to avoid explicit ref() calls
https://bugs.webkit.org/show_bug.cgi?id=82238

Reviewed by Adam Barth.

The setJSWrapper* methods previously featured a comment that asked
callers to ref the objects before passing them in. This change makes
that contract explicit (and allows the removal of the comment).

In addition, for ConstructorCallbacks, this change slightly reduces
refcount churn by passing on the initial ref via RefPtr::release().

No new tests, no change in behavior.

* bindings/scripts/CodeGeneratorV8.pm:
(GenerateConstructorCallback): Use RefPtr::release() to avoid refcount churn and remove explicit ref() call.
(GenerateNamedConstructorCallback): ditto.
* bindings/v8/V8DOMWindowShell.cpp:
(WebCore::V8DOMWindowShell::installDOMWindow): Cast to a PassRefPtr and remove explicit ref call.
* bindings/v8/V8DOMWrapper.cpp:
(WebCore::V8DOMWrapper::setJSWrapperForDOMNode): Pass leaked refs into the DOMNodeMaps.
* bindings/v8/V8DOMWrapper.h:
(V8DOMWrapper): Make the setJSWrapperFor* methods take PassRefPtr<T>.
(WebCore::V8DOMWrapper::setJSWrapperForDOMObject): Pass leaked ref into the DOMObjectMap.
(WebCore::V8DOMWrapper::setJSWrapperForActiveDOMObject): Pass leaked ref into the ActiveDOMObjectMap.
* bindings/v8/V8Proxy.h:
(WebCore::toV8): Remove explicit ref.
* bindings/v8/WorkerContextExecutionProxy.cpp:
(WebCore::WorkerContextExecutionProxy::initContextIfNeeded): Cast to a PassRefPTr and remove explicit ref call.
* bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
(WebCore::v8HTMLImageElementConstructorCallback): Use RefPtr::release() to avoid refcount churn and remove explicit ref.
* bindings/v8/custom/V8WebKitMutationObserverCustom.cpp:
(WebCore::V8WebKitMutationObserver::constructorCallback): ditto.
* bindings/v8/custom/V8WebSocketCustom.cpp:
(WebCore::V8WebSocket::constructorCallback): ditto.
* bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
(WebCore::V8XMLHttpRequest::constructorCallback): ditto.

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

7 years ago Remove obsolete FormDataStreamMac code
ap@apple.com [Mon, 26 Mar 2012 22:51:32 +0000 (22:51 +0000)]
    Remove obsolete FormDataStreamMac code
        https://bugs.webkit.org/show_bug.cgi?id=82244

        Reviewed by Brady Eidson.

        * platform/network/ResourceHandle.h:
        Removed ResourceHandle::didSendBodyDataDelegateExists().

        * platform/network/mac/FormDataStreamMac.h:
        * platform/network/mac/FormDataStreamMac.mm:
        Removed code that was needed to call ResourceLoaderClient::didSendData() before Foundation
        added support for it.

        * platform/network/mac/ResourceHandleMac.mm:
        (WebCore::ResourceHandle::start):
        (WebCore::ResourceHandle::cancel):
        (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]):
        (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]):
        (-[WebCoreResourceHandleAsDelegate connection:didFailWithError:]):
        We no longer need to associate streams with ResourceHandles!

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

7 years agoV8RecursionScope should not hold a raw pointer to ScriptExecutionContext
adamk@chromium.org [Mon, 26 Mar 2012 22:49:27 +0000 (22:49 +0000)]
V8RecursionScope should not hold a raw pointer to ScriptExecutionContext
https://bugs.webkit.org/show_bug.cgi?id=82222

Reviewed by Eric Seidel.

Source/WebCore:

Instead of holding onto ScriptExecutionContext, cache the boolean value we
care about (context->isDocument()). This avoids problems if the
context goes away as a result of the script we just ran.

Test: fast/frames/subframe-load-js-url-crash.html

* bindings/v8/V8RecursionScope.cpp:
(WebCore::V8RecursionScope::didLeaveScriptContext): Check the cached
bool instead of calling into the context.
* bindings/v8/V8RecursionScope.h:
(WebCore::V8RecursionScope::V8RecursionScope): Call isDocument from
the constructor and cache the result.
(WebCore::V8RecursionScope::~V8RecursionScope): No longer need to pass
anything to didLeaveScriptContext since it's now a member.
(V8RecursionScope): Make didLeaveScriptContext a member function and
remove its argument. Add member bool to hold the value of isDocument.

LayoutTests:

* fast/frames/resources/subframe-load-js-url-crash-iframe.html: Added.
* fast/frames/subframe-load-js-url-crash-expected.txt: Added.
* fast/frames/subframe-load-js-url-crash.html: Added.

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

7 years ago[EFL] Unreviewed gardening i fast/frames, fast/html and
kubo@profusion.mobi [Mon, 26 Mar 2012 22:47:29 +0000 (22:47 +0000)]
[EFL] Unreviewed gardening i fast/frames, fast/html and
fast/lists.

* platform/efl/Skipped:
* platform/efl/fast/frames/001-expected.png:
* platform/efl/fast/frames/flattening/frameset-flattening-subframe-resize-expected.png:
* platform/efl/fast/frames/flattening/iframe-flattening-fixed-width-and-height-no-scrolling-expected.png:
* platform/efl/fast/frames/flattening/iframe-flattening-nested-expected.png:
* platform/efl/fast/frames/frame-navigation-expected.png:
* platform/efl/fast/frames/frame-scrolling-attribute-expected.png:
* platform/efl/fast/frames/frameset-style-recalc-expected.png:
* platform/efl/fast/frames/iframe-scrolling-attribute-expected.png:
* platform/efl/fast/frames/iframe-with-frameborder-expected.png:
* platform/efl/fast/frames/onlyCommentInIFrame-expected.png:
* platform/efl/fast/frames/viewsource-attribute-expected.png:
* platform/efl/fast/frames/viewsource-on-image-file-expected.png:
* platform/efl/fast/html/details-add-child-1-expected.png: Added.
* platform/efl/fast/html/details-add-child-2-expected.png: Added.
* platform/efl/fast/html/details-add-details-child-1-expected.png: Added.
* platform/efl/fast/html/details-add-details-child-2-expected.png: Added.
* platform/efl/fast/html/details-add-summary-1-and-click-expected.png: Copied from LayoutTests/platform/efl/fast/lists/li-br-expected.png.
* platform/efl/fast/html/details-add-summary-1-expected.png: Copied from LayoutTests/platform/efl/fast/lists/li-br-expected.png.
* platform/efl/fast/html/details-add-summary-10-and-click-expected.png: Added.
* platform/efl/fast/html/details-add-summary-10-expected.png: Added.
* platform/efl/fast/html/details-add-summary-2-and-click-expected.png: Added.
* platform/efl/fast/html/details-add-summary-2-expected.png: Copied from LayoutTests/platform/efl/fast/lists/li-br-expected.png.
* platform/efl/fast/html/details-add-summary-3-and-click-expected.png: Added.
* platform/efl/fast/html/details-add-summary-3-expected.png: Added.
* platform/efl/fast/html/details-add-summary-4-and-click-expected.png: Added.
* platform/efl/fast/html/details-add-summary-4-expected.png: Added.
* platform/efl/fast/html/details-add-summary-5-and-click-expected.png: Added.
* platform/efl/fast/html/details-add-summary-5-expected.png: Copied from LayoutTests/platform/efl/fast/lists/li-br-expected.png.
* platform/efl/fast/html/details-add-summary-6-and-click-expected.png: Added.
* platform/efl/fast/html/details-add-summary-6-expected.png: Added.
* platform/efl/fast/html/details-add-summary-7-and-click-expected.png: Added.
* platform/efl/fast/html/details-add-summary-7-expected.png: Added.
* platform/efl/fast/html/details-add-summary-8-and-click-expected.png: Added.
* platform/efl/fast/html/details-add-summary-8-expected.png: Added.
* platform/efl/fast/html/details-add-summary-9-and-click-expected.png: Added.
* platform/efl/fast/html/details-add-summary-9-expected.png: Added.
* platform/efl/fast/html/details-add-summary-child-1-expected.png: Added.
* platform/efl/fast/html/details-add-summary-child-2-expected.png: Added.
* platform/efl/fast/html/details-nested-1-expected.png: Added.
* platform/efl/fast/html/details-nested-2-expected.png: Added.
* platform/efl/fast/html/details-no-summary1-expected.png: Added.
* platform/efl/fast/html/details-no-summary2-expected.png: Added.
* platform/efl/fast/html/details-no-summary3-expected.png: Added.
* platform/efl/fast/html/details-no-summary4-expected.png: Added.
* platform/efl/fast/html/details-open-javascript-expected.png: Added.
* platform/efl/fast/html/details-open1-expected.png: Added.
* platform/efl/fast/html/details-open2-expected.png: Added.
* platform/efl/fast/html/details-open3-expected.png: Added.
* platform/efl/fast/html/details-open4-expected.png: Added.
* platform/efl/fast/html/details-open5-expected.png: Added.
* platform/efl/fast/html/details-open6-expected.png: Added.
* platform/efl/fast/html/details-position-expected.png: Added.
* platform/efl/fast/html/details-remove-child-1-expected.png: Added.
* platform/efl/fast/html/details-remove-child-2-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-1-and-click-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-1-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-2-and-click-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-2-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-3-and-click-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-3-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-4-and-click-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-4-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-5-and-click-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-5-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-6-and-click-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-6-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-child-1-expected.png: Added.
* platform/efl/fast/html/details-remove-summary-child-2-expected.png: Added.
* platform/efl/fast/html/details-replace-summary-child-expected.png: Added.
* platform/efl/fast/html/details-replace-text-expected.png: Added.
* platform/efl/fast/html/details-writing-mode-expected.png: Added.
* platform/efl/fast/html/link-rel-stylesheet-expected.png:
* platform/efl/fast/html/listing-expected.png:
* platform/efl/fast/html/marquee-scroll-expected.png:
* platform/efl/fast/html/marquee-scrollamount-expected.png:
* platform/efl/fast/lists/001-expected.png:
* platform/efl/fast/lists/001-vertical-expected.png:
* platform/efl/fast/lists/002-expected.png:
* platform/efl/fast/lists/002-vertical-expected.png:
* platform/efl/fast/lists/003-expected.png:
* platform/efl/fast/lists/003-vertical-expected.png:
* platform/efl/fast/lists/005-expected.png:
* platform/efl/fast/lists/005-vertical-expected.png:
* platform/efl/fast/lists/007-expected.png:
* platform/efl/fast/lists/007-vertical-expected.png:
* platform/efl/fast/lists/008-expected.png:
* platform/efl/fast/lists/008-vertical-expected.png:
* platform/efl/fast/lists/anonymous-items-expected.png:
* platform/efl/fast/lists/big-list-marker-expected.png:
* platform/efl/fast/lists/dynamic-marker-crash-expected.png:
* platform/efl/fast/lists/li-br-expected.png:
* platform/efl/fast/lists/li-style-alpha-huge-value-crash-expected.png:
* platform/efl/fast/lists/marker-before-empty-inline-expected.png:
* platform/efl/fast/lists/marker-image-error-expected.png:
* platform/efl/fast/lists/markers-in-selection-expected.png:
* platform/efl/fast/lists/ol-display-types-expected.png:
* platform/efl/fast/lists/ol-start-parsing-expected.png:
* platform/efl/fast/lists/olstart-expected.png:
* platform/efl/fast/lists/ordered-list-with-no-ol-tag-expected.png:
* platform/efl/fast/lists/scrolled-marker-paint-expected.png:

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

7 years ago[chromium] assertion being hit in CCLayerTreeHost::updateCompositorResources
commit-queue@webkit.org [Mon, 26 Mar 2012 22:43:43 +0000 (22:43 +0000)]
[chromium] assertion being hit in CCLayerTreeHost::updateCompositorResources
https://bugs.webkit.org/show_bug.cgi?id=82239

Patch by Dana Jansens <danakj@chromium.org> on 2012-03-26
Reviewed by Adrienne Walker.

The assert is incorrect and should check the animation state on
the surface, not the owning layer.

* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::updateCompositorResources):

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

7 years agoCorrect LayoutUnit usage in RenderFieldSet and RenderMenuItem
leviw@chromium.org [Mon, 26 Mar 2012 22:41:28 +0000 (22:41 +0000)]
Correct LayoutUnit usage in RenderFieldSet and RenderMenuItem
https://bugs.webkit.org/show_bug.cgi?id=82179

Reviewed by Julien Chaffraix.

Correcting small misuses of ints vs LayoutUnits in RenderFieldSet and RenderMenuItem. Also
adding zeroLayoutUnit where necessary to fix the sub-pixel build. See below for details.

No new tests. No change in behavior.

* rendering/RenderFieldset.cpp:
(WebCore::RenderFieldset::paintBoxDecorations): Clip rects need to be pixel snapped to mirror
the actual coordinates we paint.
(WebCore::RenderFieldset::paintMask): Using zeroLayoutUnit for ternary operation to fix the
sub-pixel build.
* rendering/RenderMenuList.cpp:
(WebCore::RenderMenuList::showPopup): Correctly using an IntRect for absoluteBoundingBoxRect.
(WebCore::RenderMenuList::clientPaddingLeft): Correcting mismatched return type with header.
(WebCore::RenderMenuList::clientPaddingRight): Ditto.

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

7 years agoChromium rebaselines for test failing due to text rendering or antialiasing differences.
ojan@chromium.org [Mon, 26 Mar 2012 22:39:33 +0000 (22:39 +0000)]
Chromium rebaselines for test failing due to text rendering or antialiasing differences.
Changes to non-chromium results were from "webkit-patch optimize-baselines".

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

7 years agoTried to fix an unused parameter warning after r112154.
mitz@apple.com [Mon, 26 Mar 2012 22:39:18 +0000 (22:39 +0000)]
Tried to fix an unused parameter warning after r112154.

* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::layoutBlock): Changed to not pass relayoutChildren to
layoutFlexItems.
(WebCore::RenderFlexibleBox::layoutFlexItems): Removed the unused relayoutChildren parameter.
* rendering/RenderFlexibleBox.h:

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

7 years agoSyntheticStyleCalc on an element should not force recalculation on its children
commit-queue@webkit.org [Mon, 26 Mar 2012 22:32:47 +0000 (22:32 +0000)]
SyntheticStyleCalc on an element should not force recalculation on its children
https://bugs.webkit.org/show_bug.cgi?id=79389

Patch by Rob Arnold <robarnold@fb.com> on 2012-03-26
Reviewed by Simon Fraser.

No new tests. Existing tests cover correctness, not sure how to test for performance.

* dom/Element.cpp:
(WebCore::Element::recalcStyle):

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

7 years agoapply cross axis constraints before aligning children in flexbox
tony@chromium.org [Mon, 26 Mar 2012 22:26:02 +0000 (22:26 +0000)]
apply cross axis constraints before aligning children in flexbox
https://bugs.webkit.org/show_bug.cgi?id=82240

Reviewed by Ojan Vafai.

Source/WebCore:

We weren't applying max-height constraints before aligning children.
This would cause center, end, stretch alignment to be wrong if we hit
a max-height on a flexbox.

This patch also moves the repositioning logic to happen after
computeLogicalHeight, which will be useful for flex-line-pack.

New test case in css3/flexbox/flex-align.html

* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::layoutBlock):
(WebCore::RenderFlexibleBox::layoutFlexItems):
(WebCore::RenderFlexibleBox::layoutAndPlaceChildren):
* rendering/RenderFlexibleBox.h:

LayoutTests:

* css3/flexbox/flex-align-expected.txt:
* css3/flexbox/flex-align.html:

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

7 years ago[jhbuild] Use $MAKE if it is defined to build jhbuild itself.
kubo@profusion.mobi [Mon, 26 Mar 2012 22:14:38 +0000 (22:14 +0000)]
[jhbuild] Use $MAKE if it is defined to build jhbuild itself.
https://bugs.webkit.org/show_bug.cgi?id=82209

Reviewed by Martin Robinson.

Respecting the $MAKE environment variable when it is defined makes
building jhbuild more portable, as some platforms may have GNU
make as gmake, for example.

* jhbuild/jhbuild-wrapper:
(install_jhbuild):

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

7 years agoTried to fix the Windows build.
mitz@apple.com [Mon, 26 Mar 2012 22:04:22 +0000 (22:04 +0000)]
Tried to fix the Windows build.

* yarr/YarrPattern.cpp:
(JSC::Yarr::CharacterClassConstructor::putRange):

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

7 years agoThe css3/selectors3/xml tests are flaky on Leopard as well.
ojan@chromium.org [Mon, 26 Mar 2012 21:59:54 +0000 (21:59 +0000)]
The css3/selectors3/xml tests are flaky on Leopard as well.

* platform/chromium/test_expectations.txt:

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

7 years agoadd a Tree abstraction to test-webkitpy to better encapsulate things
dpranke@chromium.org [Mon, 26 Mar 2012 21:58:15 +0000 (21:58 +0000)]
add a Tree abstraction to test-webkitpy to better encapsulate things
https://bugs.webkit.org/show_bug.cgi?id=82158

Reviewed by Adam Barth.

There are no functional changes in this patch, but adding a
basic abstraction for the trees we are looking in for python
tests will allow me to add some features later on more easily
(like ignoring certain directories like webkitpy/thirdparty),
and it makes things slightly less hard-coded.

* Scripts/test-webkitpy:
* Scripts/webkitpy/test/main.py:
(Tester.__init__):
(Tester):
(Tester.add_tree):
(Tester._parse_args):
(Tester._configure):
(Tester.run):
(Tester._find_modules):
(Tester._run_tests):
(Tester._is_module):
(Tester._log_exception):
(TestDirectoryTree):
(TestDirectoryTree.__init__):
(TestDirectoryTree.find_modules):
(TestDirectoryTree.clean):

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

7 years agogarden-o-matic should special case reftests
ojan@chromium.org [Mon, 26 Mar 2012 21:56:01 +0000 (21:56 +0000)]
garden-o-matic should special case reftests
https://bugs.webkit.org/show_bug.cgi?id=81812

Reviewed by Adam Barth.

On the examine page, don't show a rebaseline button for reftests.
We still show it on the failure summary page because tests are grouped
together. Long-term, we should make sure webkit-patch rebaseline-test
never tries to rebaseline reftests.

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/controllers.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui/results.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/styles/results.css:

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

7 years agoFind in page overlay and bouncy are not always positioned correctly
andersca@apple.com [Mon, 26 Mar 2012 21:43:55 +0000 (21:43 +0000)]
Find in page overlay and bouncy are not always positioned correctly
https://bugs.webkit.org/show_bug.cgi?id=82247
<rdar://problem/10866139>

Reviewed by Sam Weinig.

In WebCore, a lot of code depends on scroll position updates to happen synchronously, so
update the frame view scroll position before asking the scrolling thread to scroll.

* page/scrolling/ScrollingCoordinator.cpp:
(WebCore::ScrollingCoordinator::requestScrollPositionUpdate):

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

7 years agoUnreviewed - speculative Windows build fix.
barraclough@apple.com [Mon, 26 Mar 2012 21:40:33 +0000 (21:40 +0000)]
Unreviewed - speculative Windows build fix.

* yarr/YarrCanonicalizeUCS2.h:
(JSC::Yarr::getCanonicalPair):

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

7 years agoFixed builds with assertions disabled.
mitz@apple.com [Mon, 26 Mar 2012 21:30:45 +0000 (21:30 +0000)]
Fixed builds with assertions disabled.

* yarr/YarrCanonicalizeUCS2.h:
(JSC::Yarr::areCanonicallyEquivalent):

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

7 years agoUnreviewed - errk! - accidentally the whole pbxproj.
barraclough@apple.com [Mon, 26 Mar 2012 21:06:08 +0000 (21:06 +0000)]
Unreviewed - errk! - accidentally the whole pbxproj.

* JavaScriptCore.xcodeproj/project.pbxproj:

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

7 years agoSimplify setting loading state in DocumentLoader
japhet@chromium.org [Mon, 26 Mar 2012 20:34:00 +0000 (20:34 +0000)]
Simplify setting loading state in DocumentLoader
https://bugs.webkit.org/show_bug.cgi?id=82099

Reviewed by Adam Barth.

The logic for deciding what to return for DocumentLoader::isLoading()
is crazy. It's indirectly based on the ResourceLoaders that have
registered themselves with the DocumentLoader, but we can make that
relationship more direct.

* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::checkLoadComplete): Renamed from updateLoading, since it's not actually
    updating anything anymore. It now calls DOMWindow::finishedLoading() if loading is in fact done.
(WebCore::DocumentLoader::startLoadingMainResource): The only reason this had a return value was to call
    updateLoading() if loading failed. Just call checkLoadComplete() directly (this allows it to
    be private, whereas updateLoading() was public).
(WebCore::DocumentLoader::subresourceLoaderFinishedLoadingOnePart):
* loader/DocumentLoader.h:
(WebCore::DocumentLoader::isLoading): Rather than holding a separate bool, return based on the presence
    of non-multipart ResourceLoaders directly.
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::isLoading): Depend on DocumentLoader::isLoading() for the activeDocumentLoader(),
    rather than indirectly the other way around.
(WebCore::FrameLoader::checkLoadCompleteForThisFrame): Remove several assertions that should now be
    absolutely identical to the remaining !pdl->isLoading().
(WebCore::FrameLoader::continueLoadAfterWillSubmitForm):

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

7 years agoGreek sigma is handled wrong in case independent regexp.
barraclough@apple.com [Mon, 26 Mar 2012 20:13:39 +0000 (20:13 +0000)]
Greek sigma is handled wrong in case independent regexp.
https://bugs.webkit.org/show_bug.cgi?id=82063

Reviewed by Oliver Hunt.

Source/JavaScriptCore:

The bug here is that we assume that any given codepoint has at most one additional value it
should match under a case insensitive match, and that the pair of codepoints that match (if
a codepoint does not only match itself) can be determined by calling toUpper/toLower on the
given codepoint). Life is not that simple.

Instead, pre-calculate a set of tables mapping from a UCS2 codepoint to the set of characters
it may match, under the ES5.1 case-insensitive matching rules. Since unicode is fairly regular
we can pack this table quite nicely, and get it down to 364 entries. This means we can use a
simple binary search to find an entry in typically eight compares.

* CMakeLists.txt:
* GNUmakefile.list.am:
* JavaScriptCore.gypi:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCore.xcodeproj/project.pbxproj:
* yarr/yarr.pri:
    - Added new files to build systems.
* yarr/YarrCanonicalizeUCS2.cpp: Added.
    - New - autogenerated, UCS2 canonicalized comparison tables.
* yarr/YarrCanonicalizeUCS2.h: Added.
(JSC::Yarr::rangeInfoFor):
    - Look up the canonicalization info for a UCS2 character.
(JSC::Yarr::getCanonicalPair):
    - For a UCS2 character with a single equivalent value, look it up.
(JSC::Yarr::isCanonicallyUnique):
    - Returns true if no other UCS2 code points are canonically equal.
(JSC::Yarr::areCanonicallyEquivalent):
    - Compare two values, under canonicalization rules.
* yarr/YarrCanonicalizeUCS2.js: Added.
    - script used to generate YarrCanonicalizeUCS2.cpp.
* yarr/YarrInterpreter.cpp:
(JSC::Yarr::Interpreter::tryConsumeBackReference):
    - Use isCanonicallyUnique, rather than Unicode toUpper/toLower.
* yarr/YarrJIT.cpp:
(JSC::Yarr::YarrGenerator::jumpIfCharNotEquals):
(JSC::Yarr::YarrGenerator::generatePatternCharacterOnce):
(JSC::Yarr::YarrGenerator::generatePatternCharacterFixed):
    - Use isCanonicallyUnique, rather than Unicode toUpper/toLower.
* yarr/YarrPattern.cpp:
(JSC::Yarr::CharacterClassConstructor::putChar):
    - Updated to determine canonical equivalents correctly.
(JSC::Yarr::CharacterClassConstructor::putUnicodeIgnoreCase):
    - Added, used to put a non-ascii, non-unique character in a case-insensitive match.
(JSC::Yarr::CharacterClassConstructor::putRange):
    - Updated to determine canonical equivalents correctly.
(JSC::Yarr::YarrPatternConstructor::atomPatternCharacter):
    - Changed to call putUnicodeIgnoreCase, instead of putChar, avoid a double lookup of rangeInfo.

LayoutTests:

* fast/regex/script-tests/unicodeCaseInsensitive.js: Added.
(shouldBeTrue.ucs2CodePoint):
* fast/regex/unicodeCaseInsensitive-expected.txt: Added.
* fast/regex/unicodeCaseInsensitive.html: Added.
    - Added test cases for case-insensitive matches of non-ascii characters.

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

7 years agoScrollable plugins not registered properly in ScrollingCoordinator
jamesr@google.com [Mon, 26 Mar 2012 19:43:16 +0000 (19:43 +0000)]
Scrollable plugins not registered properly in ScrollingCoordinator
https://bugs.webkit.org/show_bug.cgi?id=82163

Reviewed by Anders Carlsson.

Source/WebCore:

Plugins may be scrollable, so we have to add them in the non-fast scrollable region. Tested manually.

* page/scrolling/ScrollingCoordinator.cpp:
(WebCore::computeNonFastScrollableRegion):
(WebCore::ScrollingCoordinator::nonFastScrollableRegion):
(WebCore):
* page/scrolling/ScrollingCoordinator.h:
(ScrollingCoordinator):
* plugins/PluginViewBase.h:
(WebCore::PluginViewBase::scrollable):
(PluginViewBase):

Source/WebKit/chromium:

* src/WebPluginContainerImpl.cpp:
(WebKit::WebPluginContainerImpl::scrollable):
* src/WebPluginContainerImpl.h:
(WebPluginContainerImpl):

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

7 years ago[GTK] Build fix for Accelerated Compositing with Clutter
joone.hur@collabora.co.uk [Mon, 26 Mar 2012 19:41:38 +0000 (19:41 +0000)]
[GTK] Build fix for Accelerated Compositing with Clutter
https://bugs.webkit.org/show_bug.cgi?id=81785

Reviewed by Martin Robinson.

Source/WebCore:

AcceleratedCompositingContext was introduced to isolate different accelerated
compositing implementations(r104194), but the Clutter implementation doesn't
build with it. This includes an initial implementation of GraphicsContext3D
and fixes the build error.

* GNUmakefile.list.am:
* platform/graphics/clutter/DrawingBufferClutter.cpp: Added.
(WebCore):
(WebCore::DrawingBuffer::DrawingBuffer):
(WebCore::DrawingBuffer::~DrawingBuffer):
(WebCore::DrawingBuffer::platformColorBuffer):
(WebCore::DrawingBuffer::paintCompositedResultsToCanvas):
* platform/graphics/clutter/GraphicsContext3DClutter.cpp: Added.
(WebCore):
(WebCore::GraphicsContext3D::create):
(WebCore::GraphicsContext3D::GraphicsContext3D):
(WebCore::GraphicsContext3D::~GraphicsContext3D):
(WebCore::GraphicsContext3D::getImageData):
(WebCore::GraphicsContext3D::paintToCanvas):
(WebCore::GraphicsContext3D::setContextLostCallback):
(WebCore::GraphicsContext3D::setErrorMessageCallback):
(WebCore::GraphicsContext3D::makeContextCurrent):
(WebCore::GraphicsContext3D::platformGraphicsContext3D):
(WebCore::GraphicsContext3D::isGLES2Compliant):
(WebCore::GraphicsContext3D::platformLayer):
* platform/graphics/clutter/GraphicsContext3DPrivate.cpp: Added.
(WebCore):
(WebCore::GraphicsContext3DPrivate::create):
(WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate):
(WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
(WebCore::GraphicsContext3DPrivate::makeContextCurrent):
(WebCore::GraphicsContext3DPrivate::platformContext):
(WebCore::GraphicsContext3DPrivate::paintToGraphicsLayerActor):
* platform/graphics/clutter/GraphicsContext3DPrivate.h: Added.
(WebCore):
(GraphicsContext3DPrivate):
(WebCore::GraphicsContext3DPrivate::platformLayer):

Source/WebKit/gtk:

AcceleratedCompositingContext was introduced to isolate different accelerated
compositing implementations(r104194), but the Clutter implementation doesn't
build with it. This fixes the build error.

* WebCoreSupport/AcceleratedCompositingContext.h:
(AcceleratedCompositingContext):
* WebCoreSupport/AcceleratedCompositingContextClutter.cpp:
(WebKit::AcceleratedCompositingContext::AcceleratedCompositingContext):
(WebKit::AcceleratedCompositingContext::renderLayersToWindow):
(WebKit::AcceleratedCompositingContext::resizeRootLayer):
(WebKit::AcceleratedCompositingContext::syncLayersNow):
(WebKit::AcceleratedCompositingContext::syncLayersTimeout):
(WebKit):

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

7 years agoclean up NRWT logging/metering, be less verbose
dpranke@chromium.org [Mon, 26 Mar 2012 19:41:00 +0000 (19:41 +0000)]
clean up NRWT logging/metering, be less verbose
https://bugs.webkit.org/show_bug.cgi?id=73846

Reviewed by Ojan Vafai.

Re-land r112014 with a build fix for Python 2.6 compatibility.

* Scripts/webkitpy/layout_tests/controllers/manager_unittest.py:
(ManagerTest.test_http_locking):
* Scripts/webkitpy/layout_tests/controllers/manager_worker_broker.py:
(AbstractWorker.run):
* Scripts/webkitpy/layout_tests/controllers/worker.py:
(Worker.__init__):
(Worker._set_up_logging):
(Worker):
(Worker._set_up_host_and_port):
(Worker.run):
(Worker.cleanup):
* Scripts/webkitpy/layout_tests/controllers/worker_unittest.py:
(WorkerTest.test_default_platform_in_worker):
* Scripts/webkitpy/layout_tests/run_webkit_tests.py:
(run):
(main):
* Scripts/webkitpy/layout_tests/views/metered_stream.py:
(MeteredStream):
(MeteredStream.implements):
(MeteredStream._erasure):
(MeteredStream._ensure_newline):
(MeteredStream.__init__):
(MeteredStream.__del__):
(MeteredStream.cleanup):
(MeteredStream.write_throttled_update):
(MeteredStream.write_update):
(MeteredStream.write):
(MeteredStream.writeln):
(MeteredStream._erase_last_partial_line):
(_LogHandler):
(_LogHandler.__init__):
(_LogHandler.emit):
* Scripts/webkitpy/layout_tests/views/metered_stream_unittest.py:
(RegularTest):
(RegularTest.setUp):
(RegularTest.tearDown):
(RegularTest.time_fn):
(RegularTest.test_logging_not_included):
(RegularTest._basic):
(RegularTest.test_basic):
(RegularTest._log_after_update):
(RegularTest.test_log_after_update):
(TtyTest):
(TtyTest.test_basic):
(TtyTest.test_log_after_update):
(VerboseTest):
(VerboseTest.test_basic):
(VerboseTest.test_log_after_update):
* Scripts/webkitpy/layout_tests/views/printing.py:
(parse_print_options):
(Printer.__init__):
(Printer.cleanup):
(Printer.print_progress):
(Printer.print_update):
(Printer._write):
* Scripts/webkitpy/layout_tests/views/printing_unittest.py:
(Testprinter.get_printer):
(Testprinter.test_print_progress):
* Scripts/webkitpy/performance_tests/perftestsrunner.py:
(PerfTestsRunner.__init__):
* Scripts/webkitpy/performance_tests/perftestsrunner_unittest.py:
(test_run_test_pause_before_testing):

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

7 years ago[jhbuild] Revert $MAKE environment hack introduced in r101929.
kubo@profusion.mobi [Mon, 26 Mar 2012 19:31:02 +0000 (19:31 +0000)]
[jhbuild] Revert $MAKE environment hack introduced in r101929.
https://bugs.webkit.org/show_bug.cgi?id=82234

Reviewed by Martin Robinson.

The problem it was supposedly fixing was fixed in jhbuild itself
in git revision da8944d8ca987ca48c91b350257a530050406092, so we
can remove the workaround added to the script.

* jhbuild/jhbuild-wrapper:
(install_jhbuild):

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

7 years agoWeb Inspector: Expose InspectorTypeBuilder.h to other components
vsevik@chromium.org [Mon, 26 Mar 2012 19:28:44 +0000 (19:28 +0000)]
Web Inspector: Expose InspectorTypeBuilder.h to other components
https://bugs.webkit.org/show_bug.cgi?id=82226

Patch by Peter Rybin <prybin@chromium.org> on 2012-03-26
Reviewed by Vsevolod Vlasov.

This is a provisional commit that simplifies passing ealy warning system
for the main patch https://bugs.webkit.org/show_bug.cgi?id=81558

* WebCore.xcodeproj/project.pbxproj: config file is changed in Xcode UI.

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

7 years agoUnreviewed test_expectations update for chromium.
eae@chromium.org [Mon, 26 Mar 2012 19:19:59 +0000 (19:19 +0000)]
Unreviewed test_expectations update for chromium.

* platform/chromium/test_expectations.txt:

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

7 years agoUnreviewed rebaseline for fast/forms/textfield-overflow.
eae@chromium.org [Mon, 26 Mar 2012 18:56:53 +0000 (18:56 +0000)]
Unreviewed rebaseline for fast/forms/textfield-overflow.

* platform/chromium-mac-snowleopard/fast/forms/textfield-overflow-expected.png: Removed.
* platform/chromium-mac/fast/forms/textfield-overflow-expected.png: Added.
* platform/chromium-mac/fast/forms/textfield-overflow-expected.txt: Added.

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

7 years agoUnreviewed test_expectations update for chromium.
eae@chromium.org [Mon, 26 Mar 2012 18:54:25 +0000 (18:54 +0000)]
Unreviewed test_expectations update for chromium.

* platform/chromium/test_expectations.txt:

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

7 years agoAn <area> element remains focusable even though its associated <img> is not rendered.
commit-queue@webkit.org [Mon, 26 Mar 2012 18:51:52 +0000 (18:51 +0000)]
An <area> element remains focusable even though its associated <img> is not rendered.
https://bugs.webkit.org/show_bug.cgi?id=71788

Patch by Antaryami Pandia <antaryami.pandia@motorola.com> on 2012-03-26
Reviewed by Andy Estes.

Source/WebCore:

HTMLAreaElement::isFocusable() needs to consider the display and
visibility state.

Test: fast/events/tab-test-not-visible-imagemap.html

* html/HTMLAreaElement.cpp:
(WebCore::HTMLAreaElement::imageElement):
(WebCore::HTMLAreaElement::isFocusable):
* html/HTMLAreaElement.h: Make imageElement() const.
(HTMLAreaElement):

LayoutTests:

Test sequential focus navigation.

* fast/events/tab-test-not-visible-imagemap-expected.txt: Added.
* fast/events/tab-test-not-visible-imagemap.html: Added.

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

7 years agoTrim the set of flaky css3/selectors3/xml tests on SnowLeopard to
ojan@chromium.org [Mon, 26 Mar 2012 18:44:26 +0000 (18:44 +0000)]
Trim the set of flaky css3/selectors3/xml tests on SnowLeopard to
the set that are actually flaky on the bots.

* platform/chromium/test_expectations.txt:

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

7 years ago[Qt][WK2] default families are not set in QWebPreferences
vestbo@webkit.org [Mon, 26 Mar 2012 18:39:08 +0000 (18:39 +0000)]
[Qt][WK2] default families are not set in QWebPreferences
https://bugs.webkit.org/show_bug.cgi?id=81933

This is a build-fix after r112116.

Patch by Rafael Brandao <rafael.lobo@openbossa.org> on 2012-03-26
Reviewed by Tor Arne Vestbø.

* UIProcess/API/qt/qwebpreferences_p_p.h:

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

7 years agoFix Qt after r112113 and r112112.
jchaffraix@webkit.org [Mon, 26 Mar 2012 18:26:54 +0000 (18:26 +0000)]
Fix Qt after r112113 and r112112.

Unreviewed.

* platform/qt/Skipped:
Skipped a new test that is failing.

* platform/qt/fast/forms/textfield-overflow-expected.txt:
Updated the baseline as it matches other ports.

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

7 years agoFix a typo in IDL
antonm@chromium.org [Mon, 26 Mar 2012 18:12:38 +0000 (18:12 +0000)]
Fix a typo in IDL
https://bugs.webkit.org/show_bug.cgi?id=82215

Reviewed by Adam Barth.

No new tests, just a typo fix.

* notifications/WorkerContextNotifications.idl:

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

7 years agoNot reviewed: chromium baselines for c543-txt-decor-000.
pfeldman@chromium.org [Mon, 26 Mar 2012 18:11:17 +0000 (18:11 +0000)]
Not reviewed: chromium baselines for c543-txt-decor-000.

* platform/chromium-linux/css2.1/20110323/c543-txt-decor-000-expected.png: Added.
* platform/chromium-mac-leopard/css2.1/20110323/c543-txt-decor-000-expected.png: Added.
* platform/chromium-mac-snowleopard/css2.1/20110323/c543-txt-decor-000-expected.png: Added.
* platform/chromium-mac/css2.1/20110323/c543-txt-decor-000-expected.png: Added.
* platform/chromium-win/css2.1/20110323/c543-txt-decor-000-expected.png: Added.
* platform/chromium-win/css2.1/20110323/c543-txt-decor-000-expected.txt: Added.

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

7 years agoRemoved Mac WebKit2-specific expected results for this test, which were added in...
mitz@apple.com [Mon, 26 Mar 2012 17:55:48 +0000 (17:55 +0000)]
Removed Mac WebKit2-specific expected results for this test, which were added in r90097.

* platform/mac-wk2/fast/forms/textfield-overflow-expected.txt: Removed.

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

7 years ago[chromium] Change handleGestureFling() to use CCInputHandlerClient::Wheel.
wjmaclean@chromium.org [Mon, 26 Mar 2012 17:52:44 +0000 (17:52 +0000)]
[chromium] Change handleGestureFling() to use CCInputHandlerClient::Wheel.
https://bugs.webkit.org/show_bug.cgi?id=82133

Reviewed by James Robinson.

Source/WebCore:

Covered by existing unit tests.

* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::scrollBegin):

Source/WebKit/chromium:

* src/WebCompositorInputHandlerImpl.cpp:
(WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
* tests/CCLayerTreeHostImplTest.cpp:
(WebKitTests::TEST_F):

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

7 years agoCSS3 calc: mixed percent/absolute for box-reflect
mikelawther@chromium.org [Mon, 26 Mar 2012 17:48:45 +0000 (17:48 +0000)]
CSS3 calc: mixed percent/absolute for box-reflect
https://bugs.webkit.org/show_bug.cgi?id=82161

Reviewed by Ojan Vafai.

Source/WebCore:

Tests: css3/calc/box-reflect-expected.html
       css3/calc/box-reflect.html

* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::collectMatchingRulesForList):

LayoutTests:

* css3/calc/box-reflect-expected.html: Added.
* css3/calc/box-reflect.html: Added.

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

7 years agoCSS3 calc: mixed percent/absolute support for vertical-align
mikelawther@chromium.org [Mon, 26 Mar 2012 17:45:20 +0000 (17:45 +0000)]
CSS3 calc: mixed percent/absolute support for vertical-align
https://bugs.webkit.org/show_bug.cgi?id=82152

Reviewed by Ojan Vafai.

Source/WebCore:

Tests: css3/calc/vertical-align-expected.html
       css3/calc/vertical-align.html

* css/CSSStyleApplyProperty.cpp:
(WebCore::ApplyPropertyVerticalAlign::applyValue):

LayoutTests:

* css3/calc/vertical-align-expected.html: Added.
* css3/calc/vertical-align.html: Added.

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

7 years ago[BlackBerry] Accelerated compositing updates
commit-queue@webkit.org [Mon, 26 Mar 2012 17:43:05 +0000 (17:43 +0000)]
[BlackBerry] Accelerated compositing updates
https://bugs.webkit.org/show_bug.cgi?id=82058

Patch by Filip Spacek <fspacek@rim.com> on 2012-03-26
Reviewed by Rob Buis.

* platform/graphics/blackberry/CanvasLayerWebKitThread.cpp:
(WebCore::CanvasLayerWebKitThread::CanvasLayerWebKitThread):
(WebCore::CanvasLayerWebKitThread::~CanvasLayerWebKitThread):
(WebCore::CanvasLayerWebKitThread::setDevice):
(WebCore::CanvasLayerWebKitThread::updateTextureContentsIfNeeded):
* platform/graphics/blackberry/CanvasLayerWebKitThread.h:
(WebCore::CanvasLayerWebKitThread::create):
(CanvasLayerWebKitThread):
* platform/graphics/blackberry/InstrumentedPlatformCanvas.h:
(WebCore::InstrumentedPlatformCanvas::InstrumentedPlatformCanvas):
(WebCore::InstrumentedPlatformCanvas::save):
(WebCore::InstrumentedPlatformCanvas::saveLayer):
(WebCore::InstrumentedPlatformCanvas::restore):
(WebCore::InstrumentedPlatformCanvas::translate):
(WebCore::InstrumentedPlatformCanvas::scale):
(WebCore::InstrumentedPlatformCanvas::rotate):
(WebCore::InstrumentedPlatformCanvas::skew):
(WebCore::InstrumentedPlatformCanvas::concat):
(WebCore::InstrumentedPlatformCanvas::setMatrix):
(WebCore::InstrumentedPlatformCanvas::clipRect):
(WebCore::InstrumentedPlatformCanvas::clipPath):
(WebCore::InstrumentedPlatformCanvas::clipRegion):
(WebCore::InstrumentedPlatformCanvas::clear):
(WebCore::InstrumentedPlatformCanvas::drawPaint):
(WebCore::InstrumentedPlatformCanvas::drawPoints):
(WebCore::InstrumentedPlatformCanvas::drawRect):
(WebCore::InstrumentedPlatformCanvas::drawPath):
(WebCore::InstrumentedPlatformCanvas::drawBitmap):
(WebCore::InstrumentedPlatformCanvas::drawBitmapRect):
(WebCore::InstrumentedPlatformCanvas::drawBitmapMatrix):
(WebCore::InstrumentedPlatformCanvas::drawSprite):
(WebCore::InstrumentedPlatformCanvas::drawText):
(WebCore::InstrumentedPlatformCanvas::drawPosText):
(WebCore::InstrumentedPlatformCanvas::drawPosTextH):
(WebCore::InstrumentedPlatformCanvas::drawTextOnPath):
(WebCore::InstrumentedPlatformCanvas::drawPicture):
(WebCore::InstrumentedPlatformCanvas::drawVertices):
(WebCore::InstrumentedPlatformCanvas::drawData):
* platform/graphics/blackberry/LayerData.h:
(WebCore::LayerData::LayerData):
(WebCore::LayerData::needsTexture):
(LayerData):
* platform/graphics/blackberry/LayerTiler.cpp:
(WebCore::LayerTiler::updateTextureContentsIfNeeded):
* platform/graphics/blackberry/LayerWebKitThread.cpp:
(WebCore::LayerWebKitThread::paintContents):
(WebCore::LayerWebKitThread::setDrawable):
* platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
(WebCore::loadBufferingImageData):
* platform/graphics/blackberry/skia/ImageBufferDataSkia.h: Renamed from Source/WebCore/platform/graphics/blackberry/skia/ImageBufferData.h.
(WebCore):
(ImageBufferData):

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

7 years ago[wx] Unreviewed build fix. Add the build outputs dir to the list of build dirs, so...
kevino@webkit.org [Mon, 26 Mar 2012 17:38:49 +0000 (17:38 +0000)]
[wx] Unreviewed build fix. Add the build outputs dir to the list of build dirs, so we make sure it finds the API headers on all platforms.

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

7 years agoSource/WebCore: Failure to invalidate text position attributes when DOM changes
schenney@chromium.org [Mon, 26 Mar 2012 17:25:09 +0000 (17:25 +0000)]
Source/WebCore: Failure to invalidate text position attributes when DOM changes
https://bugs.webkit.org/show_bug.cgi?id=81464

Reviewed by Nikolas Zimmermann.

The text positioning elements data structure in RenderSVGText must be
updated when either the children of the corresponding element are
modified, or the length of the text inside the elements changes.
Previously, the call to clear the text positioning elements (to force
recomputation) was guarded by a flag. If code tried to invalidate when
the flag was not set, then something set the flag, the elements would
be invalid at use time.

This patch modifies the method that invalidates the positining
attributes so that the action always happens. It also renames the
method to more accurately reflect its function.

Test: svg/custom/delete-modified-text-in-defs-crash.svg

* rendering/svg/RenderSVGInlineText.cpp:
(WebCore::RenderSVGInlineText::setTextInternal): Rename textDOMChanged to invalidateTextPositioningElements
* rendering/svg/RenderSVGText.cpp:
(WebCore::RenderSVGText::invalidateTextPositioningElements): Rename
textDOMChanged to invalidateTextPositioningElements and remove the check against the needsPosition... flag.
* rendering/svg/RenderSVGText.h:
(RenderSVGText): Rename textDOMChanged to invalidateTextPositioningElements
* svg/SVGAElement.cpp:
(WebCore::SVGAElement::childrenChanged): Rename textDOMChanged to invalidateTextPositioningElements
* svg/SVGTextContentElement.cpp:
(WebCore::SVGTextContentElement::childrenChanged): Rename textDOMChanged to invalidateTextPositioningElements

LayoutTests: Failure to invalidate text position attributes when DOM changes
https://bugs.webkit.org/show_bug.cgi?id=81464

Reviewed by Nikolas Zimmermann.

* svg/custom/delete-modified-text-in-defs-crash-expected.txt: Added.
* svg/custom/delete-modified-text-in-defs-crash.svg: Added.

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

7 years ago[Qt][WK2] default families are not set in QWebPreferences
pierre.rossi@gmail.com [Mon, 26 Mar 2012 17:04:39 +0000 (17:04 +0000)]
[Qt][WK2] default families are not set in QWebPreferences
https://bugs.webkit.org/show_bug.cgi?id=81933

This would result in an attempt to create FontPlatformData
with the -webkit- prefixed family name.
Logic adapted from QWebSettings.

Patch by Pierre Rossi <pierre.rossi@nokia.com> on 2012-03-26
Reviewed by Kenneth Rohde Christiansen.

* UIProcess/API/qt/qwebpreferences.cpp:
(QWebPreferencesPrivate::createPreferences):
(QWebPreferencesPrivate::initFontDefaults):
* UIProcess/API/qt/qwebpreferences_p_p.h:

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

7 years agoRebaseline zoom-foreignObject.svg CR results
commit-queue@webkit.org [Mon, 26 Mar 2012 16:55:26 +0000 (16:55 +0000)]
Rebaseline zoom-foreignObject.svg CR results
https://bugs.webkit.org/show_bug.cgi?id=82205

Unreviewed Chromium rebaseline.

Patch by Florin Malita <fmalita@google.com> on 2012-03-26

* platform/chromium-mac-leopard/svg/zoom/page/zoom-foreignObject-expected.png:
* platform/chromium-mac-leopard/svg/zoom/text/zoom-foreignObject-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/zoom/page/zoom-foreignObject-expected.png: Added.
* platform/chromium-mac/svg/zoom/page/zoom-foreignObject-expected.png:
* platform/chromium-mac/svg/zoom/text/zoom-foreignObject-expected.png:
* platform/chromium-win-vista/svg/zoom/page/zoom-foreignObject-expected.png:
* platform/chromium-win/svg/zoom/page/zoom-foreignObject-expected.png:
* platform/chromium-win/svg/zoom/text/zoom-foreignObject-expected.png:
* platform/chromium/test_expectations.txt:

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

7 years agoREGRESSION (r110065-r110080): fast/forms/placeholder-set-attribute.html is failing...
jchaffraix@webkit.org [Mon, 26 Mar 2012 16:52:01 +0000 (16:52 +0000)]
REGRESSION (r110065-r110080): fast/forms/placeholder-set-attribute.html is failing intermittently because WebKit fails to repaint after setting the placeholder attribute
https://bugs.webkit.org/show_bug.cgi?id=81802

Reviewed by Dan Bernstein.

Source/WebCore:

Covered by fast/forms/placeholder-set-attribute.html which should be less flaky.

Unfortunately no new test case as this bug requires a very specific set of conditions that I couldn't reproduce deterministically.

This is a regression from r110072: RenderTextControlSingleLine would rely on the placeholder's RenderLayer to properly repaint during
the first layout as the placeholder has overflow: hidden set. r110072 removed the layer in this case and thus we miss a repaint.

* rendering/RenderTextControlSingleLine.cpp:
(WebCore::RenderTextControlSingleLine::layout):
For our first layout, we need to make sure our placeholder is painted. layoutBlockChild has a very similar logic to force repaint
on a first layout. We don't hit this logic as the placeholder is explicitly skipped in RenderTextControl::layoutSpecialExcludedChild.

LayoutTests:

* platform/mac/Skipped: Unskip the test on Mac. The other platforms are either
skipping it for other reasons or did not have a specific entry for the flakiness.

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

7 years agoREGRESSION(r110072): fast/forms/textfield-overflow.html is failing
jchaffraix@webkit.org [Mon, 26 Mar 2012 16:46:17 +0000 (16:46 +0000)]
REGRESSION(r110072): fast/forms/textfield-overflow.html is failing
https://bugs.webkit.org/show_bug.cgi?id=80531

Reviewed by Ojan Vafai.

Source/WebCore:

Tested by fast/forms/textfield-overflow.html (re-enabled after this change).

The existing code would happily query layout information before calling layout (FTW!).
The solution is to properly layout our object, then modify some dimensions as needed while
marking ourself as needing layout and then layouting again.

* rendering/RenderTextControlSingleLine.cpp:
(WebCore::RenderTextControlSingleLine::layout):
Implemented a proper 2 pass layout algorithm. Removed the |relayoutChildren| logic as:
- layoutBlock handles automatically logical height changes.
- we were not modifying the logical width between layouts so we don't need to force a
child relayout in this case.

LayoutTests:

* platform/chromium-linux/fast/table/colspanMinWidth-vertical-expected.png:
* platform/chromium-win/fast/table/colspanMinWidth-vertical-expected.txt:
This is a progression. The <input> now takes the full cell's space instead of
being shrunk.

* platform/efl/Skipped:
* platform/efl/test_expectations.txt:
* platform/gtk/Skipped:
* platform/gtk/test_expectations.txt:
* platform/mac/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:
Re-enable fast/forms/textfield-overflow.html as it should be passing.
Also disabled colspanMinWidth-vertical.html on platforms without a rebaseline.

* platform/chromium/test_expectations.txt:
Ditto and marked fast/repaint/search-field-cancel.html as failing image only.

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

7 years agoSupersede t1504-c543-txt-decor-00-d-g.html with c543-txt-decor-000.html
pfeldman@chromium.org [Mon, 26 Mar 2012 16:43:20 +0000 (16:43 +0000)]
Supersede t1504-c543-txt-decor-00-d-g.html with c543-txt-decor-000.html
https://bugs.webkit.org/show_bug.cgi?id=82120

Patch by SravanKumar Sandela <ssandela@innominds.com> on 2012-03-26
Reviewed by Pavel Feldman.

Test css2.1/t1504-c543-txt-decor-00-d-g.html is outdated and had
some issues, hence removed and superseding it with c543-txt-decor-000.html. Also,
copied two support png files from css2.1/support to css2.1/20110323/support.

* css2.1/20110323/c543-txt-decor-000-expected.png: Added.
* css2.1/20110323/c543-txt-decor-000-expected.txt: Added.
* css2.1/20110323/c543-txt-decor-000.html: Added.
* css2.1/20110323/support/square-purple.png: Added.
* css2.1/20110323/support/square-teal.png: Added.
* css2.1/t1504-c543-txt-decor-00-d-g.html: Removed.
* platform/chromium-linux/css2.1/t1504-c543-txt-decor-00-d-g-expected.png: Removed.
* platform/chromium-mac-leopard/css2.1/t1504-c543-txt-decor-00-d-g-expected.png: Removed.
* platform/chromium-mac-snowleopard/css2.1/t1504-c543-txt-decor-00-d-g-expected.png: Removed.
* platform/chromium-mac/css2.1/t1504-c543-txt-decor-00-d-g-expected.png: Removed.
* platform/chromium-win/css2.1/t1504-c543-txt-decor-00-d-g-expected.png: Removed.
* platform/chromium-win/css2.1/t1504-c543-txt-decor-00-d-g-expected.txt: Removed.
* platform/efl/css2.1/t1504-c543-txt-decor-00-d-g-expected.png: Removed.
* platform/efl/css2.1/t1504-c543-txt-decor-00-d-g-expected.txt: Removed.
* platform/gtk/css2.1/t1504-c543-txt-decor-00-d-g-expected.png: Removed.
* platform/gtk/css2.1/t1504-c543-txt-decor-00-d-g-expected.txt: Removed.
* platform/mac-leopard/css2.1/t1504-c543-txt-decor-00-d-g-expected.png: Removed.
* platform/mac/css2.1/t1504-c543-txt-decor-00-d-g-expected.png: Removed.
* platform/mac/css2.1/t1504-c543-txt-decor-00-d-g-expected.txt: Removed.
* platform/qt/css2.1/t1504-c543-txt-decor-00-d-g-expected.txt: Removed.

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

7 years agoWebKitWebView signals with GError parameters cause crashes when using GObject Introsp...
mrobinson@webkit.org [Mon, 26 Mar 2012 16:24:49 +0000 (16:24 +0000)]
WebKitWebView signals with GError parameters cause crashes when using GObject Introspection
https://bugs.webkit.org/show_bug.cgi?id=81977

Patch by Gary Kramlich <grim@reaperworld.com> on 2012-03-26
Reviewed by Martin Robinson.

Added marshalers for BOOLEAN:OBJECT,STRING,BOXED and VOID:OBJECT,OBJECT,BOXED
and changed the signal signatures for WebKitWebView::load-fail and
WebKitWebView::resource-load-failed to use the new marshalers since
GError has been a GBoxed type since Gtk 2.26.  This fixes these signals
for the gobject-introspection bindings.

* webkit/webkitwebview.cpp:
(webkit_web_view_class_init):
* webkitmarshal.list:

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

7 years ago[BlackBerry] Upstream LayerCompositingThread.{h, cpp}
commit-queue@webkit.org [Mon, 26 Mar 2012 16:24:43 +0000 (16:24 +0000)]
[BlackBerry] Upstream LayerCompositingThread.{h, cpp}
https://bugs.webkit.org/show_bug.cgi?id=79873

Patch by Robin Cao <robin.cao@torchmobile.com.cn> on 2012-03-26
Reviewed by Rob Buis.

Initial upstream, no new tests.

* platform/graphics/blackberry/LayerCompositingThread.cpp: Added.
(WebCore):
(WebCore::LayerCompositingThread::create):
(WebCore::LayerCompositingThread::LayerCompositingThread):
(WebCore::LayerCompositingThread::~LayerCompositingThread):
(WebCore::LayerCompositingThread::destroyOnCompositingThread):
(WebCore::LayerCompositingThread::setLayerRenderer):
(WebCore::LayerCompositingThread::deleteTextures):
(WebCore::LayerCompositingThread::setDrawTransform):
(WebCore::getTransformedRect):
(WebCore::LayerCompositingThread::getTransformedHolePunchRect):
(WebCore::LayerCompositingThread::drawTextures):
(WebCore::LayerCompositingThread::drawSurface):
(WebCore::LayerCompositingThread::drawMissingTextures):
(WebCore::LayerCompositingThread::releaseTextureResources):
(WebCore::LayerCompositingThread::setPluginView):
(WebCore::LayerCompositingThread::setMediaPlayer):
(WebCore::LayerCompositingThread::clearAnimations):
(WebCore::LayerCompositingThread::removeSublayer):
(WebCore::LayerCompositingThread::indexOfSublayer):
(WebCore::LayerCompositingThread::rootLayer):
(WebCore::LayerCompositingThread::removeFromSuperlayer):
(WebCore::LayerCompositingThread::setSublayers):
(WebCore::LayerCompositingThread::updateTextureContentsIfNeeded):
(WebCore::LayerCompositingThread::setVisible):
(WebCore::LayerCompositingThread::setNeedsCommit):
(WebCore::LayerCompositingThread::scheduleCommit):
(WebCore::LayerCompositingThread::updateAnimations):
(WebCore::LayerCompositingThread::hasVisibleHolePunchRect):
(WebCore::LayerCompositingThread::createLayerRendererSurface):
* platform/graphics/blackberry/LayerCompositingThread.h: Added.
(Graphics):
(WebCore):
(LayerCompositingThread):
(WebCore::LayerCompositingThread::bindContentsTexture):
(WebCore::LayerCompositingThread::getSublayers):
(WebCore::LayerCompositingThread::setSuperlayer):
(WebCore::LayerCompositingThread::superlayer):
(WebCore::LayerCompositingThread::drawTransform):
(WebCore::LayerCompositingThread::setDrawOpacity):
(WebCore::LayerCompositingThread::drawOpacity):
(WebCore::LayerCompositingThread::layerRendererSurface):
(WebCore::LayerCompositingThread::clearLayerRendererSurface):
(WebCore::LayerCompositingThread::setMaskLayer):
(WebCore::LayerCompositingThread::maskLayer):
(WebCore::LayerCompositingThread::setReplicaLayer):
(WebCore::LayerCompositingThread::replicaLayer):
(WebCore::LayerCompositingThread::getDrawRect):
(WebCore::LayerCompositingThread::getTransformedBounds):
(WebCore::LayerCompositingThread::hasMissingTextures):
(WebCore::LayerCompositingThread::isDirty):
(WebCore::LayerCompositingThread::isVisible):
(WebCore::LayerCompositingThread::setOpacity):
(WebCore::LayerCompositingThread::setTransform):
(WebCore::LayerCompositingThread::hasRunningAnimations):
(WebCore::LayerCompositingThread::numSublayers):

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

7 years agoAdd a notification function for detaching to TextFieldDecorator
tkent@chromium.org [Mon, 26 Mar 2012 16:19:02 +0000 (16:19 +0000)]
Add a notification function for detaching to TextFieldDecorator
https://bugs.webkit.org/show_bug.cgi?id=82142

Reviewed by Dimitri Glazkov.

Add willDetach() functio to TextFieldDecorator. This will be
needed if a decorator opens a popup UI on handleClick(), and the
popup UI should be closed when the attaching text field is
detached.

No new tests because of no behavior changes in any platforms.

* html/shadow/TextFieldDecorationElement.cpp:
(WebCore::TextFieldDecorationElement::hostInput):
Added. A utilify function to get an HTMLInputElement*.
(WebCore::TextFieldDecorationElement::updateImage): Use hostInput().
(WebCore::TextFieldDecorationElement::customStyleForRenderer): ditto.
(WebCore::TextFieldDecorationElement::detach): Added. Calls TextFieldDecorator::willDetach().
(WebCore::TextFieldDecorationElement::defaultEventHandler): Use hostInput().
* html/shadow/TextFieldDecorationElement.h:
(TextFieldDecorator):
(TextFieldDecorationElement):

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

7 years agoTried to fix the 32-bit build after r112021.
mitz@apple.com [Mon, 26 Mar 2012 16:16:32 +0000 (16:16 +0000)]
Tried to fix the 32-bit build after r112021.

* accessibility/mac/WebAccessibilityObjectWrapper.mm:
(-[WebAccessibilityObjectWrapper _convertToNSRange:]):

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

7 years ago[Qt] Unreviewed gardening, add Qt specific expected results for new passsing tests.
ossy@webkit.org [Mon, 26 Mar 2012 16:11:16 +0000 (16:11 +0000)]
[Qt] Unreviewed gardening, add Qt specific expected results for new passsing tests.

* platform/qt/Skipped: Skip a new failing test.
* platform/qt/editing/selection/selection-button-text-expected.png: Added.
* platform/qt/editing/selection/selection-button-text-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.2-Tiny/struct-use-recursion-01-t-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.2-Tiny/struct-use-recursion-01-t-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.2-Tiny/struct-use-recursion-02-t-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.2-Tiny/struct-use-recursion-02-t-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.2-Tiny/struct-use-recursion-03-t-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.2-Tiny/struct-use-recursion-03-t-expected.txt: Added.
* platform/qt/svg/custom/use-extern-href-expected.png: Added.
* platform/qt/svg/custom/use-extern-href-expected.txt: Added.
* platform/qt/svg/repaint/repainting-after-animation-element-removal-expected.png: Added.
* platform/qt/svg/repaint/repainting-after-animation-element-removal-expected.txt: Added.

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

7 years ago[BlackBerry] Skeleton code of AsyncFileSystemBlackBerry.cpp
leo.yang@torchmobile.com.cn [Mon, 26 Mar 2012 15:51:32 +0000 (15:51 +0000)]
[BlackBerry] Skeleton code of AsyncFileSystemBlackBerry.cpp
https://bugs.webkit.org/show_bug.cgi?id=82157

Reviewed by Rob Buis.

.:

* Source/cmake/OptionsBlackBerry.cmake: Turn on ENABLE_FILE_SYSTEM for blackberry.

Source/WebCore:

AsyncFileSystemBlackBerry is responsible for asynchronous operating
on file system for the blackberry porting. It's just skeleton code
containing no implementation yet.

No new tests because of skeleton code.

* PlatformBlackBerry.cmake: Add AsyncFileSystemBlackBerry.cpp if ENABLE_FILE_SYSTEM is on.
* platform/AsyncFileSystem.cpp:
(WebCore):
* platform/blackberry/AsyncFileSystemBlackBerry.cpp: Added.
(WebCore):
(WebCore::AsyncFileSystem::isAvailable):
(WebCore::AsyncFileSystem::isValidType):
(WebCore::AsyncFileSystem::create):
(WebCore::AsyncFileSystem::openFileSystem):
(WebCore::AsyncFileSystem::crackFileSystemURL):
(WebCore::AsyncFileSystemBlackBerry::AsyncFileSystemBlackBerry):
(WebCore::AsyncFileSystemBlackBerry::~AsyncFileSystemBlackBerry):
(WebCore::AsyncFileSystemBlackBerry::toURL):
(WebCore::AsyncFileSystemBlackBerry::move):
(WebCore::AsyncFileSystemBlackBerry::copy):
(WebCore::AsyncFileSystemBlackBerry::remove):
(WebCore::AsyncFileSystemBlackBerry::removeRecursively):
(WebCore::AsyncFileSystemBlackBerry::readMetadata):
(WebCore::AsyncFileSystemBlackBerry::createFile):
(WebCore::AsyncFileSystemBlackBerry::createDirectory):
(WebCore::AsyncFileSystemBlackBerry::fileExists):
(WebCore::AsyncFileSystemBlackBerry::directoryExists):
(WebCore::AsyncFileSystemBlackBerry::readDirectory):
(WebCore::AsyncFileSystemBlackBerry::createWriter):
(WebCore::AsyncFileSystemBlackBerry::createSnapshotFileAndReadMetadata):
* platform/blackberry/AsyncFileSystemBlackBerry.h: Added.
(WebCore):
(AsyncFileSystemBlackBerry):

Tools:

* Scripts/build-webkit:
Make ENABLE_FILE_SYSTEM default on for blackberry.

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

7 years ago[Qt WK2] Disable/enable mouse events when displaying dialogs only for desktop view
commit-queue@webkit.org [Mon, 26 Mar 2012 15:50:09 +0000 (15:50 +0000)]
[Qt WK2] Disable/enable mouse events when displaying dialogs only for desktop view
https://bugs.webkit.org/show_bug.cgi?id=80542

Patch by Dinu Jacob <dinu.jacob@nokia.com> on 2012-03-26
Reviewed by Simon Hausmann.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewLegacyPrivate::enableMouseEvents):
(QQuickWebViewLegacyPrivate::disableMouseEvents):
* UIProcess/API/qt/qquickwebview_p_p.h:
(QQuickWebViewPrivate::enableMouseEvents):
(QQuickWebViewPrivate::disableMouseEvents):
(QQuickWebViewLegacyPrivate):

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

7 years ago[BlackBerry] CredentialBackingStore implement encryptString() and decryptString()
commit-queue@webkit.org [Mon, 26 Mar 2012 15:37:11 +0000 (15:37 +0000)]
[BlackBerry] CredentialBackingStore implement encryptString() and decryptString()
https://bugs.webkit.org/show_bug.cgi?id=82204

Patch by Jonathan Dong <jonathan.dong@torchmobile.com.cn> on 2012-03-26
Reviewed by Rob Buis.

Implemented encryptedString() and decryptedString() in class CredentialBackingStore
by calling BlackBerry::Platform::Encryptor::encryptString() and
BlackBerry::Platform::Encryptor::encryptString() respectively.

No new tests.

* platform/network/blackberry/CredentialBackingStore.cpp:
(WebCore::CredentialBackingStore::encryptedString):
(WebCore::CredentialBackingStore::decryptedString):

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

7 years ago[Qt][Mac] Skip failing tests to paint the bot green.
ossy@webkit.org [Mon, 26 Mar 2012 15:36:27 +0000 (15:36 +0000)]
[Qt][Mac] Skip failing tests to paint the bot green.

* platform/qt-mac/Skipped:

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

7 years agoWeb Inspector: 'use strict' exceptions stop in inspector code
pfeldman@chromium.org [Mon, 26 Mar 2012 15:30:20 +0000 (15:30 +0000)]
Web Inspector: 'use strict' exceptions stop in inspector code
https://bugs.webkit.org/show_bug.cgi?id=82199

Reviewed by Yury Semikhatsky.

Source/WebCore:

Accessing callee from within InjectedScript made inspector stop on handled exceptions.
I replaced it with Object.prototype.toString.call(obj) === "[object Arguments]".

* inspector/InjectedScriptSource.js:

LayoutTests:

* inspector/console/console-format-collections-expected.txt:
* inspector/console/console-format-collections.html:
* platform/chromium/inspector/console/console-format-collections-expected.txt:

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

7 years ago[jhbuild] Explicitly disable DTrace when building glib.
kubo@profusion.mobi [Mon, 26 Mar 2012 15:26:03 +0000 (15:26 +0000)]
[jhbuild] Explicitly disable DTrace when building glib.
https://bugs.webkit.org/show_bug.cgi?id=82145

Reviewed by Gustavo Noronha Silva.

DTrace support is not really needed by WebKit, so disabling it
helps avoid some build errors on more exotic platforms (such as
FreeBSD).

* efl/jhbuild.modules:
* gtk/jhbuild.modules:

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

7 years agoBuild fix for WinCE after r112039.
paroga@webkit.org [Mon, 26 Mar 2012 15:21:37 +0000 (15:21 +0000)]
Build fix for WinCE after r112039.

* interpreter/Register.h:
(Register): Removed inline keyword from decleration since
            there is an ALWAYS_INLINE at the definition anyway.

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

7 years ago[CSS Regions] In region styling (@-webkit-region) the position for CSS rules is incor...
commit-queue@webkit.org [Mon, 26 Mar 2012 15:16:38 +0000 (15:16 +0000)]
[CSS Regions] In region styling (@-webkit-region) the position for CSS rules is incorrectly computed
https://bugs.webkit.org/show_bug.cgi?id=81901

Patch by Mihai Balan <mibalan@adobe.com> on 2012-03-26
Reviewed by Antti Koivisto.

Source/WebCore:

Right now CSS rules position does not take into account rules that are inside a @-webkit-region
declaration, leading to buggy behavior where rules that appear later in the document are superseded
by rules that appear earlier in the document (opposite as how things should be). The fix updates
the "global" rules counter once the rules in a @-webkit-region declaration have been added.

Tests: fast/regions/region-style-rule-position-expected.html
       fast/regions/region-style-rule-position.html

* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::collectMatchingRulesForList):

LayoutTests:

Ref tests for bug #81901. Testing that CSS rules position is properly computed when having multiple
@-webkit-region declarations.

* fast/regions/region-style-rule-position-expected.html: Added.
* fast/regions/region-style-rule-position.html: Added.

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

7 years ago[Qt] Unreviewed gardening. Remove tests, because the original change was rolled out.
ossy@webkit.org [Mon, 26 Mar 2012 15:14:57 +0000 (15:14 +0000)]
[Qt] Unreviewed gardening. Remove tests, because the original change was rolled out.

* platform/qt-5.0-wk2/Skipped:

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

7 years ago[Qt] Make sure that purged directly composited images are re-created before a layer...
jocelyn.turcotte@nokia.com [Mon, 26 Mar 2012 14:54:55 +0000 (14:54 +0000)]
[Qt] Make sure that purged directly composited images are re-created before a layer's sync.
https://bugs.webkit.org/show_bug.cgi?id=81771

Reviewed by Noam Rosenthal.

This fixes a regression in tst_qquickwebview introduced by r111567.

* WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
(WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):
(WebCore::WebGraphicsLayer::updateContentBuffers):

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

7 years ago[Qt] Disable focus ring in the mobile theme.
commit-queue@webkit.org [Mon, 26 Mar 2012 14:49:18 +0000 (14:49 +0000)]
[Qt] Disable focus ring in the mobile theme.
https://bugs.webkit.org/show_bug.cgi?id=81934

For mobile devices intended to be used only through
touch, the focus rings makes little sense and feels
awkward.

Patch by Pierre Rossi <pierre.rossi@nokia.com> on 2012-03-26
Reviewed by Kenneth Rohde Christiansen.

No new tests. This is merely a cosmetic touch.

* platform/qt/RenderThemeQtMobile.h:
(RenderThemeQtMobile):
(WebCore::RenderThemeQtMobile::platformFocusRingColor):

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

7 years ago[Qt] Running these two tests gives different results on 32 and
ossy@webkit.org [Mon, 26 Mar 2012 14:47:22 +0000 (14:47 +0000)]
[Qt] Running these two tests gives different results on 32 and
64 bit systems so they have been skipped until they're fixed.

Patch by János Badics <jbadics@inf.u-szeged.hu> on 2012-03-26
Reviewed by Csaba Osztrogonác.

* platform/qt/Skipped:

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

7 years ago[WK2][Qt] Fix compilation without QtWidgets
hausmann@webkit.org [Mon, 26 Mar 2012 14:40:52 +0000 (14:40 +0000)]
[WK2][Qt] Fix compilation without QtWidgets
https://bugs.webkit.org/show_bug.cgi?id=79458

Reviewed by Tor Arne Vestbø.

* Shared/qt/WebEventFactoryQt.cpp:
(WebKit::WebEventFactory::createWebWheelEvent): Replace use of QApplication::wheelScrollLines()
with the constant that is actually used and usually not changed anyway.
* Target.pri: Remove widgets from Qt variable.
* UIProcess/qt/QtWebPageEventHandler.cpp: Remove unecessary include.
* WebProcess.pro: Use widgets for the process (for the time being).
* WebProcess/qt/WebProcessMainQt.cpp: Delegate QApplication creation to the caller.
(WebKit::WebProcessMainQt):
* qt/MainQt.cpp: Create QApplication here.
(WebKit):
(main):

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

7 years ago[BlackBerry] Clean up networking code and remove WML support.
charles.wei@torchmobile.com.cn [Mon, 26 Mar 2012 14:38:42 +0000 (14:38 +0000)]
[BlackBerry] Clean up networking code and remove WML support.
https://bugs.webkit.org/show_bug.cgi?id=82170

Reviewed by Rob Buis.

This just removes the WML support of BlackBerry porting, which is already
removed from WebCore. No new tests needed.

* platform/blackberry/MIMETypeRegistryBlackBerry.cpp:
(WebCore):
* platform/network/blackberry/DeferredData.cpp:
(WebCore::DeferredData::DeferredData):
(WebCore::DeferredData::processDeferredData):
* platform/network/blackberry/DeferredData.h:
(DeferredData):
(WebCore::DeferredData::hasDeferredData):
* platform/network/blackberry/NetworkJob.cpp:
* platform/network/blackberry/NetworkJob.h:
(NetworkJob):
* platform/network/blackberry/ResourceResponse.h:
(WebCore::ResourceResponse::ResourceResponse):
(ResourceResponse):
* platform/network/blackberry/ResourceResponseBlackBerry.cpp:
(WebCore::ResourceResponse::doPlatformCopyData):
(WebCore::ResourceResponse::doPlatformAdopt):

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

7 years agoAdd invalid bounding box concept to SVG containers
commit-queue@webkit.org [Mon, 26 Mar 2012 14:36:59 +0000 (14:36 +0000)]
Add invalid bounding box concept to SVG containers
https://bugs.webkit.org/show_bug.cgi?id=81104

Patch by Philip Rogers <pdr@google.com> on 2012-03-26
Reviewed by Nikolas Zimmermann.

Source/WebCore:

An empty <g> element needs to use an invalid bounding box because
an empty bounding box isn't the default state. This change
introduces the concept of an invalid object bounding box for
both RenderSVGContainer and RenderSVGRoot. Code that
does not explicitly check that the bounding box is valid
should be unaffected by this change. We use this new invalid
flag in computeContainerBoundingBoxes so that we do not
include invalid bounding boxes.

This change also contains a small fix in
RenderSVGContainer::toRenderSVGContainer which depended on
RenderSVGViewportContainer not inheriting from RenderSVGContainer,
which it now does.

Test: svg/custom/getBBox-empty-container.html

* rendering/svg/RenderSVGContainer.cpp:
(WebCore::RenderSVGContainer::RenderSVGContainer):
(WebCore::RenderSVGContainer::updateCachedBoundaries):
* rendering/svg/RenderSVGContainer.h:
(WebCore::RenderSVGContainer::isObjectBoundingBoxValid):
(RenderSVGContainer):
(WebCore::toRenderSVGContainer):
* rendering/svg/RenderSVGRoot.cpp:
(WebCore::RenderSVGRoot::RenderSVGRoot):
(WebCore::RenderSVGRoot::updateCachedBoundaries):
* rendering/svg/RenderSVGRoot.h:
(RenderSVGRoot):
* rendering/svg/SVGRenderSupport.cpp:
(WebCore):
(WebCore::updateObjectBoundingBox):
(WebCore::SVGRenderSupport::computeContainerBoundingBoxes):
* rendering/svg/SVGRenderSupport.h:
(SVGRenderSupport):

LayoutTests:

* svg/custom/getBBox-empty-container-expected.txt: Added.
* svg/custom/getBBox-empty-container.html: Added.

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

7 years agoWeb Inspector: Speed up the retainers build phase.
yurys@chromium.org [Mon, 26 Mar 2012 14:32:52 +0000 (14:32 +0000)]
Web Inspector: Speed up the retainers build phase.
https://bugs.webkit.org/show_bug.cgi?id=81763

Replacing the edge iterator in retainers building phase
makes it run 10 times faster (400 ms vs. 4 sec).

Patch by Alexei Filippov <alexeif@chromium.org> on 2012-03-26
Reviewed by Yury Semikhatsky.

* inspector/front-end/HeapSnapshot.js:
(WebInspector.HeapSnapshot.prototype._buildRetainers):

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

7 years agoBe more careful with git gui usage
abecsi@webkit.org [Mon, 26 Mar 2012 14:20:05 +0000 (14:20 +0000)]
Be more careful with git gui usage

Unreviewed typo fix.

* UIProcess/qt/QtViewportInteractionEngine.cpp: Remove additional line committed by accident.
(WebKit::QtViewportInteractionEngine::pinchGestureEnded):

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

7 years ago[chromium] Allow the viewport meta tag to be disabled for testing purposes
commit-queue@webkit.org [Mon, 26 Mar 2012 14:16:12 +0000 (14:16 +0000)]
[chromium] Allow the viewport meta tag to be disabled for testing purposes
https://bugs.webkit.org/show_bug.cgi?id=81940

Patch by Terry Anderson <tdanderson@chromium.org> on 2012-03-26
Reviewed by Adam Barth.

* public/WebSettings.h:
* src/ChromeClientImpl.cpp:
(WebKit::ChromeClientImpl::dispatchViewportPropertiesDidChange):
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::WebSettingsImpl):
(WebKit::WebSettingsImpl::setViewportEnabled):
(WebKit):
* src/WebSettingsImpl.h:
(WebSettingsImpl):
(WebKit::WebSettingsImpl::viewportEnabled):

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

7 years agoWeb Inspector: Migrate InspectorCSSAgent to strict protocol types
apavlov@chromium.org [Mon, 26 Mar 2012 14:04:50 +0000 (14:04 +0000)]
Web Inspector: Migrate InspectorCSSAgent to strict protocol types
https://bugs.webkit.org/show_bug.cgi?id=81923

Reviewed by Pavel Feldman.

No new tests, as this is a refactoring.

* inspector/CodeGeneratorInspector.py:
* inspector/InspectorCSSAgent.cpp:
(SelectorProfile):
(WebCore::SelectorProfile::toInspectorObject):
(WebCore::InspectorCSSAgent::clearFrontend):
(WebCore::InspectorCSSAgent::getMatchedStylesForNode):
(WebCore::InspectorCSSAgent::getInlineStylesForNode):
(WebCore::InspectorCSSAgent::getComputedStyleForNode):
(WebCore::InspectorCSSAgent::getAllStyleSheets):
(WebCore::InspectorCSSAgent::getStyleSheet):
(WebCore::InspectorCSSAgent::setPropertyText):
(WebCore::InspectorCSSAgent::toggleProperty):
(WebCore::InspectorCSSAgent::setRuleSelector):
(WebCore::InspectorCSSAgent::addRule):
(WebCore::InspectorCSSAgent::getSupportedCSSProperties):
(WebCore::InspectorCSSAgent::stopSelectorProfiler):
(WebCore::InspectorCSSAgent::stopSelectorProfilerImpl):
(WebCore::InspectorCSSAgent::collectStyleSheets):
(WebCore::InspectorCSSAgent::buildArrayForRuleList):
(WebCore::InspectorCSSAgent::buildObjectForAttributesStyle):
* inspector/InspectorCSSAgent.h:
(InspectorCSSAgent):
* inspector/InspectorStyleSheet.cpp:
(WebCore::buildSourceRangeObject):
(WebCore::buildMediaObject):
(WebCore::fillMediaListChain):
(WebCore::InspectorStyle::buildObjectForStyle):
(WebCore::InspectorStyle::buildArrayForComputedStyle):
(WebCore::InspectorStyle::styleWithProperties):
(WebCore::InspectorStyleSheet::buildObjectForStyleSheet):
(WebCore::InspectorStyleSheet::buildObjectForStyleSheetInfo):
(WebCore::InspectorStyleSheet::buildObjectForRule):
(WebCore::InspectorStyleSheet::buildObjectForStyle):
* inspector/InspectorStyleSheet.h:
(WebCore::InspectorCSSId::asProtocolValue):
(InspectorStyle):
(InspectorStyleSheet):

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

7 years agoNot reviewed: [chromium] rebaselining plugins/embed-attributes-style.
pfeldman@chromium.org [Mon, 26 Mar 2012 13:59:37 +0000 (13:59 +0000)]
Not reviewed: [chromium] rebaselining plugins/embed-attributes-style.

* platform/chromium-linux/plugins/embed-attributes-style-expected.png:

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

7 years agoNot reviewed: [chromium] rebaselining compositing/plugins/composited-plugin.
pfeldman@chromium.org [Mon, 26 Mar 2012 13:50:47 +0000 (13:50 +0000)]
Not reviewed: [chromium] rebaselining compositing/plugins/composited-plugin.

* platform/chromium-mac-leopard/compositing/plugins/composited-plugin-expected.png:
* platform/chromium-mac-snowleopard/compositing/plugins/composited-plugin-expected.png:

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

7 years ago[Qt] Taps are sometimes not highlighted.
commit-queue@webkit.org [Mon, 26 Mar 2012 13:23:22 +0000 (13:23 +0000)]
[Qt] Taps are sometimes not highlighted.
https://bugs.webkit.org/show_bug.cgi?id=82188

Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-03-26
Reviewed by Kenneth Rohde Christiansen.

Highlight any focusable parent element, or if none is found at least
the element returned by bestClickableNodeForTouchPoint.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::highlightPotentialActivation):

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

7 years agoWeb Inspector: [REGRESSION] Workarounds for security checks when retrieving styleshee...
apavlov@chromium.org [Mon, 26 Mar 2012 13:07:24 +0000 (13:07 +0000)]
Web Inspector: [REGRESSION] Workarounds for security checks when retrieving stylesheet rule lists are broken
https://bugs.webkit.org/show_bug.cgi?id=82191

Reviewed by Vsevolod Vlasov.

Source/WebCore:

Test: http/tests/inspector/modify-cross-domain-rule.html

* inspector/InspectorStyleSheet.cpp:
(WebCore::asCSSRuleList):
(WebCore::InspectorStyleSheet::buildObjectForStyleSheet):

LayoutTests:

* http/tests/inspector/modify-cross-domain-rule-expected.txt: Added.
* http/tests/inspector/modify-cross-domain-rule.html: Added.
* http/tests/inspector/styles/modify-cross-domain-rule.css: Added.
(#inspected):

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

7 years agoUnreviewed. Fix make distcheck.
carlosgc@webkit.org [Mon, 26 Mar 2012 13:05:42 +0000 (13:05 +0000)]
Unreviewed. Fix make distcheck.

Source/JavaScriptCore:

* GNUmakefile.list.am: Add missing files.

Source/WebCore:

* GNUmakefile.list.am: Add missing files.

Source/WTF:

* GNUmakefile.list.am: Add config.h to the source file list.

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

7 years ago[BlackBerry] Cookies mismatch when login to gmail.
commit-queue@webkit.org [Mon, 26 Mar 2012 12:42:44 +0000 (12:42 +0000)]
[BlackBerry] Cookies mismatch when login to gmail.
https://bugs.webkit.org/show_bug.cgi?id=82165

Redirection's response can add or update cookies. The cookies of ResourceRequest is dirty
in this case. We shouldn't copy the dirty cookie header from ResourceRequest to PlatformRequest
for redirection loading.

This issue didn't happen before because we used m_cookieData not the cookie header.
Now we use the cookie header to avoid storing double cookie's data, and m_cookieData is removed.

Patch by Jason Liu <jason.liu@torchmobile.com.cn> on 2012-03-26
Reviewed by George Staikos.

No new tests. It is a refactoring issue.

* platform/network/blackberry/ResourceRequestBlackBerry.cpp:
(WebCore::ResourceRequest::initializePlatformRequest):

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

7 years ago[Qt] Unskip passing tests from the 'new tests without expected results' section.
ossy@webkit.org [Mon, 26 Mar 2012 12:32:18 +0000 (12:32 +0000)]
[Qt] Unskip passing tests from the 'new tests without expected results' section.

Patch by Szilard Ledan <szledan@inf.u-szeged.hu> on 2012-03-26
Reviewed by Csaba Osztrogonác.

* platform/qt/Skipped:
* platform/qt/compositing/overflow/ancestor-overflow-expected.png: Added.
* platform/qt/compositing/overflow/ancestor-overflow-expected.txt: Added.
* platform/qt/css2.1/20110323/border-collapse-offset-002-expected.png: Added.
* platform/qt/css2.1/20110323/border-collapse-offset-002-expected.txt: Added.
* platform/qt/css2.1/20110323/outline-color-applies-to-008-expected.png: Added.
* platform/qt/css2.1/20110323/outline-color-applies-to-008-expected.txt: Added.
* platform/qt/fast/backgrounds/border-radius-split-background-expected.png: Added.
* platform/qt/fast/backgrounds/border-radius-split-background-expected.txt: Added.
* platform/qt/fast/backgrounds/border-radius-split-background-image-expected.png: Added.
* platform/qt/fast/backgrounds/border-radius-split-background-image-expected.txt: Added.
* platform/qt/fast/backgrounds/mask-box-image-expected.png: Added.
* platform/qt/fast/backgrounds/mask-box-image-expected.txt: Added.
* platform/qt/fast/block/float/fit_line_below_floats-expected.png: Added.
* platform/qt/fast/block/float/fit_line_below_floats-expected.txt: Added.
* platform/qt/fast/block/float/intruding-float-add-in-sibling-block-on-static-position-expected.png: Added.
* platform/qt/fast/block/float/intruding-float-add-in-sibling-block-on-static-position-expected.txt: Added.
* platform/qt/fast/block/float/intruding-float-add-in-sibling-block-on-static-position2-expected.png: Added.
* platform/qt/fast/block/float/intruding-float-add-in-sibling-block-on-static-position2-expected.txt: Added.
* platform/qt/fast/block/float/intruding-float-remove-from-sibling-block-on-absolute-position-expected.png: Added.
* platform/qt/fast/block/float/intruding-float-remove-from-sibling-block-on-absolute-position-expected.txt: Added.
* platform/qt/fast/block/float/intruding-float-remove-from-sibling-block-on-absolute-position2-expected.png: Added.
* platform/qt/fast/block/float/intruding-float-remove-from-sibling-block-on-absolute-position2-expected.txt: Added.
* platform/qt/fast/block/float/intruding-float-remove-from-sibling-block-on-fixed-position-expected.png: Added.
* platform/qt/fast/block/float/intruding-float-remove-from-sibling-block-on-fixed-position-expected.txt: Added.
* platform/qt/fast/block/float/intruding-float-remove-from-sibling-block-on-fixed-position2-expected.png: Added.
* platform/qt/fast/block/float/intruding-float-remove-from-sibling-block-on-fixed-position2-expected.txt: Added.
* platform/qt/fast/block/float/overhanging-float-add-in-static-position-block-expected.png: Added.
* platform/qt/fast/block/float/overhanging-float-add-in-static-position-block-expected.txt: Added.
* platform/qt/fast/block/float/overhanging-float-add-in-static-position-block2-expected.png: Added.
* platform/qt/fast/block/float/overhanging-float-add-in-static-position-block2-expected.txt: Added.
* platform/qt/fast/block/float/overhanging-float-remove-from-absolute-position-block-expected.png: Added.
* platform/qt/fast/block/float/overhanging-float-remove-from-absolute-position-block-expected.txt: Added.
* platform/qt/fast/block/float/overhanging-float-remove-from-absolute-position-block2-expected.png: Added.
* platform/qt/fast/block/float/overhanging-float-remove-from-absolute-position-block2-expected.txt: Added.
* platform/qt/fast/block/float/overhanging-float-remove-from-fixed-position-block-expected.png: Added.
* platform/qt/fast/block/float/overhanging-float-remove-from-fixed-position-block-expected.txt: Added.
* platform/qt/fast/block/float/overhanging-float-remove-from-fixed-position-block2-expected.png: Added.
* platform/qt/fast/block/float/overhanging-float-remove-from-fixed-position-block2-expected.txt: Added.
* platform/qt/fast/block/float/overhanging-tall-block-expected.png: Added.
* platform/qt/fast/block/float/overhanging-tall-block-expected.txt: Added.
* platform/qt/fast/block/lineboxcontain/none-expected.png: Added.
* platform/qt/fast/block/lineboxcontain/none-expected.txt: Added.
* platform/qt/fast/block/positioning/differing-writing-modes-replaced-expected.png: Added.
* platform/qt/fast/block/positioning/differing-writing-modes-replaced-expected.txt: Added.
* platform/qt/fast/borders/border-image-slice-constrained-expected.png: Added.
* platform/qt/fast/borders/border-image-slice-constrained-expected.txt: Added.
* platform/qt/fast/borders/border-styles-split-expected.png: Added.
* platform/qt/fast/borders/border-styles-split-expected.txt: Added.
* platform/qt/fast/borders/mixed-border-styles-radius2-expected.png: Added.
* platform/qt/fast/borders/mixed-border-styles-radius2-expected.txt: Added.
* platform/qt/fast/box-shadow/inset-box-shadow-radius-expected.png: Added.
* platform/qt/fast/box-shadow/inset-box-shadow-radius-expected.txt: Added.
* platform/qt/fast/box-shadow/inset-box-shadows-expected.png: Added.
* platform/qt/fast/box-shadow/inset-box-shadows-expected.txt: Added.
* platform/qt/fast/box-shadow/scaled-box-shadow-expected.png: Added.
* platform/qt/fast/box-shadow/scaled-box-shadow-expected.txt: Added.
* platform/qt/fast/box-shadow/shadow-buffer-partial-expected.png: Added.
* platform/qt/fast/box-shadow/shadow-buffer-partial-expected.txt: Added.
* platform/qt/fast/box-shadow/shadow-tiling-artifact-expected.png: Added.
* platform/qt/fast/box-shadow/shadow-tiling-artifact-expected.txt: Added.
* platform/qt/fast/css/font-face-synthetic-bold-italic-expected.png: Added.
* platform/qt/fast/css/font-face-synthetic-bold-italic-expected.txt: Added.
* platform/qt/fast/css/font-face-weight-matching-expected.png: Added.
* platform/qt/fast/css/font-face-weight-matching-expected.txt: Added.
* platform/qt/fast/css/non-empty-span-expected.png: Added.
* platform/qt/fast/css/non-empty-span-expected.txt: Added.
* platform/qt/fast/css/relative-positioned-block-nested-with-inline-parent-dynamic-expected.png: Added.
* platform/qt/fast/css/relative-positioned-block-nested-with-inline-parent-dynamic-expected.txt: Added.
* platform/qt/fast/css/relative-positioned-block-nested-with-inline-parent-dynamic-removed-expected.png: Added.
* platform/qt/fast/css/relative-positioned-block-nested-with-inline-parent-dynamic-removed-expected.txt: Added.
* platform/qt/fast/css/relative-positioned-block-nested-with-inline-parent-expected.png: Added.
* platform/qt/fast/css/relative-positioned-block-nested-with-inline-parent-expected.txt: Added.
* platform/qt/fast/css/relative-positioned-block-nested-with-inline-parent-multiple-descendant-blocks-dynamic-expected.png: Added.
* platform/qt/fast/css/relative-positioned-block-nested-with-inline-parent-multiple-descendant-blocks-dynamic-expected.txt: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-ancestor-dynamic-expected.png: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-ancestor-dynamic-expected.txt: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-ancestor-dynamic-removed-expected.png: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-ancestor-dynamic-removed-expected.txt: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-ancestor-expected.png: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-ancestor-expected.txt: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-parent-dynamic-expected.png: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-parent-dynamic-expected.txt: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-parent-dynamic-removed-expected.png: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-parent-dynamic-removed-expected.txt: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-parent-keeps-style-expected.png: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-parent-keeps-style-expected.txt: Added.
* platform/qt/fast/css/transformed-mask-expected.png: Added.
* platform/qt/fast/css/transformed-mask-expected.txt: Added.
* platform/qt/fast/dom/52776-expected.png: Added.
* platform/qt/fast/dom/52776-expected.txt: Added.
* platform/qt/fast/forms/fieldset-legend-padding-unclipped-fieldset-border-expected.png: Added.
* platform/qt/fast/forms/fieldset-legend-padding-unclipped-fieldset-border-expected.txt: Added.
* platform/qt/fast/forms/input-placeholder-visibility-1-expected.png: Added.
* platform/qt/fast/forms/input-placeholder-visibility-1-expected.txt: Added.
* platform/qt/fast/forms/input-placeholder-visibility-3-expected.png: Added.
* platform/qt/fast/forms/input-placeholder-visibility-3-expected.txt: Added.
* platform/qt/fast/forms/listbox-bidi-align-expected.png: Added.
* platform/qt/fast/forms/listbox-bidi-align-expected.txt: Added.
* platform/qt/fast/forms/placeholder-position-expected.png:
* platform/qt/fast/forms/placeholder-position-expected.txt:
* platform/qt/fast/forms/range/input-appearance-range-expected.png: Added.
* platform/qt/fast/forms/range/input-appearance-range-expected.txt: Added.
* platform/qt/fast/forms/select-overflow-scroll-expected.png: Added.
* platform/qt/fast/forms/select-overflow-scroll-expected.txt: Added.
* platform/qt/fast/forms/select-overflow-scroll-inherited-expected.png: Added.
* platform/qt/fast/forms/select-overflow-scroll-inherited-expected.txt: Added.
* platform/qt/fast/forms/textfield-focus-ring-expected.png: Added.
* platform/qt/fast/forms/textfield-focus-ring-expected.txt: Added.
* platform/qt/fast/line-grid/line-align-left-edges-expected.png: Added.
* platform/qt/fast/line-grid/line-align-left-edges-expected.txt: Added.
* platform/qt/fast/line-grid/line-align-right-edges-expected.png: Added.
* platform/qt/fast/line-grid/line-align-right-edges-expected.txt: Added.
* platform/qt/fast/line-grid/line-grid-contains-value-expected.png: Added.
* platform/qt/fast/line-grid/line-grid-contains-value-expected.txt: Added.
* platform/qt/fast/line-grid/line-grid-floating-expected.png: Added.
* platform/qt/fast/line-grid/line-grid-floating-expected.txt: Added.
* platform/qt/fast/line-grid/line-grid-inside-columns-expected.png: Added.
* platform/qt/fast/line-grid/line-grid-inside-columns-expected.txt: Added.
* platform/qt/fast/line-grid/line-grid-into-columns-expected.png: Added.
* platform/qt/fast/line-grid/line-grid-into-columns-expected.txt: Added.
* platform/qt/fast/line-grid/line-grid-into-floats-expected.png: Added.
* platform/qt/fast/line-grid/line-grid-into-floats-expected.txt: Added.
* platform/qt/fast/line-grid/line-grid-positioned-expected.png: Added.
* platform/qt/fast/line-grid/line-grid-positioned-expected.txt: Added.
* platform/qt/fast/multicol/positioned-split-expected.png: Added.
* platform/qt/fast/multicol/positioned-split-expected.txt: Added.
* platform/qt/fast/multicol/vertical-lr/column-count-with-rules-expected.png: Added.
* platform/qt/fast/multicol/vertical-lr/column-count-with-rules-expected.txt: Added.
* platform/qt/fast/multicol/vertical-rl/column-count-with-rules-expected.png: Added.
* platform/qt/fast/multicol/vertical-rl/column-count-with-rules-expected.txt: Added.
* platform/qt/fast/repaint/block-layout-inline-children-float-positioned-expected.png: Added.
* platform/qt/fast/repaint/block-layout-inline-children-float-positioned-expected.txt: Added.
* platform/qt/fast/repaint/transform-rotate-and-remove-expected.png: Added.
* platform/qt/fast/repaint/transform-rotate-and-remove-expected.txt: Added.
* platform/qt/fast/text/hyphenate-limit-before-after-expected.png: Added.
* platform/qt/fast/text/hyphenate-limit-before-after-expected.txt: Added.
* platform/qt/fast/text/unicode-variation-selector-expected.png: Added.
* platform/qt/fast/text/unicode-variation-selector-expected.txt: Added.
* platform/qt/fast/writing-mode/fallback-orientation-expected.png: Added.
* platform/qt/fast/writing-mode/fallback-orientation-expected.txt: Added.
* platform/qt/http/tests/misc/slow-loading-mask-expected.png: Added.
* platform/qt/http/tests/misc/slow-loading-mask-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.1/filters-light-04-f-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.1/filters-light-04-f-expected.txt: Added.
* platform/qt/svg/as-object/object-box-sizing-no-width-height-expected.png: Added.
* platform/qt/svg/as-object/object-box-sizing-no-width-height-expected.txt: Added.
* platform/qt/svg/clip-path/clip-path-tspan-and-stroke-expected.png: Added.
* platform/qt/svg/clip-path/clip-path-tspan-and-stroke-expected.txt: Added.
* platform/qt/svg/custom/mask-colorspace-expected.png: Added.
* platform/qt/svg/custom/mask-colorspace-expected.txt: Added.
* platform/qt/svg/custom/object-no-size-attributes-expected.png: Added.
* platform/qt/svg/custom/object-no-size-attributes-expected.txt: Added.
* platform/qt/svg/custom/object-sizing-explicit-height-expected.png: Added.
* platform/qt/svg/custom/object-sizing-explicit-height-expected.txt: Added.
* platform/qt/svg/custom/object-sizing-explicit-width-expected.png: Added.
* platform/qt/svg/custom/object-sizing-explicit-width-expected.txt: Added.
* platform/qt/svg/custom/path-moveto-only-rendering-expected.png: Added.
* platform/qt/svg/custom/path-moveto-only-rendering-expected.txt: Added.
* platform/qt/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.png: Added.
* platform/qt/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.txt: Added.
* platform/qt/svg/custom/relative-sized-image-expected.png: Added.
* platform/qt/svg/custom/relative-sized-image-expected.txt: Added.
* platform/qt/svg/custom/subpaths-moveto-only-rendering-expected.png: Added.
* platform/qt/svg/custom/subpaths-moveto-only-rendering-expected.txt: Added.
* platform/qt/svg/custom/svg-curve-with-relative-cordinates-expected.png: Added.
* platform/qt/svg/custom/svg-curve-with-relative-cordinates-expected.txt: Added.
* platform/qt/svg/custom/svg-fonts-segmented-expected.png: Added.
* platform/qt/svg/custom/svg-fonts-segmented-expected.txt: Added.
* platform/qt/svg/custom/use-disappears-after-style-update-expected.png: Added.
* platform/qt/svg/custom/use-disappears-after-style-update-expected.txt: Added.
* platform/qt/svg/filters/feColorMatrix-offset-expected.png: Added.
* platform/qt/svg/filters/feColorMatrix-offset-expected.txt: Added.
* platform/qt/svg/filters/feConvolveFilter-y-bounds-expected.png: Added.
* platform/qt/svg/filters/feConvolveFilter-y-bounds-expected.txt: Added.
* platform/qt/svg/filters/feImage-change-target-id-expected.png: Added.
* platform/qt/svg/filters/feImage-change-target-id-expected.txt: Added.
* platform/qt/svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-objectBoundingBox-expected.png: Added.
* platform/qt/svg/filters/feImage-filterUnits-objectBoundingBox-primitiveUnits-objectBoundingBox-expected.txt: Added.
* platform/qt/svg/filters/feImage-filterUnits-userSpaceOnUse-primitiveUnits-objectBoundingBox-expected.png: Added.
* platform/qt/svg/filters/feImage-filterUnits-userSpaceOnUse-primitiveUnits-objectBoundingBox-expected.txt: Added.
* platform/qt/svg/filters/feImage-filterUnits-userSpaceOnUse-primitiveUnits-userSpaceOnUse-expected.png: Added.
* platform/qt/svg/filters/feImage-filterUnits-userSpaceOnUse-primitiveUnits-userSpaceOnUse-expected.txt: Added.
* platform/qt/svg/filters/feImage-late-indirect-update-expected.png: Added.
* platform/qt/svg/filters/feImage-late-indirect-update-expected.txt: Added.
* platform/qt/svg/filters/feImage-multiple-targets-id-change-expected.png: Added.
* platform/qt/svg/filters/feImage-multiple-targets-id-change-expected.txt: Added.
* platform/qt/svg/filters/feImage-position-expected.png: Added.
* platform/qt/svg/filters/feImage-position-expected.txt: Added.
* platform/qt/svg/filters/feImage-preserveAspectratio-expected.png: Added.
* platform/qt/svg/filters/feImage-preserveAspectratio-expected.txt: Added.
* platform/qt/svg/filters/feImage-remove-target-expected.png: Added.
* platform/qt/svg/filters/feImage-remove-target-expected.txt: Added.
* platform/qt/svg/filters/feImage-subregions-expected.png: Added.
* platform/qt/svg/filters/feImage-subregions-expected.txt: Added.
* platform/qt/svg/filters/feImage-subregions-preseveAspectRatio-none-expected.png: Added.
* platform/qt/svg/filters/feImage-subregions-preseveAspectRatio-none-expected.txt: Added.
* platform/qt/svg/filters/feImage-subregions-preseveAspectRatio-none-with-viewBox-expected.png: Added.
* platform/qt/svg/filters/feImage-subregions-preseveAspectRatio-none-with-viewBox-expected.txt: Added.
* platform/qt/svg/filters/feImage-target-add-to-document-expected.png: Added.
* platform/qt/svg/filters/feImage-target-add-to-document-expected.txt: Added.
* platform/qt/svg/filters/feImage-target-attribute-change-expected.png: Added.
* platform/qt/svg/filters/feImage-target-attribute-change-expected.txt: Added.
* platform/qt/svg/filters/feImage-target-attribute-change-with-use-indirection-2-expected.png: Added.
* platform/qt/svg/filters/feImage-target-attribute-change-with-use-indirection-2-expected.txt: Added.
* platform/qt/svg/filters/feImage-target-attribute-change-with-use-indirection-expected.png: Added.
* platform/qt/svg/filters/feImage-target-attribute-change-with-use-indirection-expected.txt: Added.
* platform/qt/svg/filters/feImage-target-changes-id-expected.png: Added.
* platform/qt/svg/filters/feImage-target-changes-id-expected.txt: Added.
* platform/qt/svg/filters/feImage-target-id-change-expected.png: Added.
* platform/qt/svg/filters/feImage-target-id-change-expected.txt: Added.
* platform/qt/svg/filters/feImage-target-inline-style-change-expected.png: Added.
* platform/qt/svg/filters/feImage-target-inline-style-change-expected.txt: Added.
* platform/qt/svg/filters/feImage-target-property-change-expected.png: Added.
* platform/qt/svg/filters/feImage-target-property-change-expected.txt: Added.
* platform/qt/svg/filters/feImage-target-reappend-to-document-expected.png: Added.
* platform/qt/svg/filters/feImage-target-reappend-to-document-expected.txt: Added.
* platform/qt/svg/filters/feImage-target-remove-from-document-expected.png: Added.
* platform/qt/svg/filters/feImage-target-remove-from-document-expected.txt: Added.
* platform/qt/svg/filters/feImage-target-style-change-expected.png: Added.
* platform/qt/svg/filters/feImage-target-style-change-expected.txt: Added.
* platform/qt/svg/filters/filter-placement-issue-expected.png: Added.
* platform/qt/svg/filters/filter-placement-issue-expected.txt: Added.
* platform/qt/svg/filters/filter-refresh-expected.png: Added.
* platform/qt/svg/filters/filter-refresh-expected.txt: Added.
* platform/qt/svg/filters/filterRes1-expected.png: Added.
* platform/qt/svg/filters/filterRes1-expected.txt: Added.
* platform/qt/svg/filters/filterRes3-expected.png: Added.
* platform/qt/svg/filters/filterRes3-expected.txt: Added.
* platform/qt/svg/filters/parent-children-with-same-filter-expected.png: Added.
* platform/qt/svg/filters/parent-children-with-same-filter-expected.txt: Added.
* platform/qt/svg/foreignObject/fO-parent-display-changes-expected.png: Added.
* platform/qt/svg/foreignObject/fO-parent-display-changes-expected.txt: Added.
* platform/qt/svg/foreignObject/fO-parent-display-none-expected.png: Added.
* platform/qt/svg/foreignObject/fO-parent-display-none-expected.txt: Added.
* platform/qt/svg/foreignObject/fO-parent-display-none-with-relative-pos-content-expected.png: Added.
* platform/qt/svg/foreignObject/fO-parent-display-none-with-relative-pos-content-expected.txt: Added.
* platform/qt/svg/foreignObject/fO-parent-of-parent-display-none-expected.png: Added.
* platform/qt/svg/foreignObject/fO-parent-of-parent-display-none-expected.txt: Added.
* platform/qt/svg/foreignObject/fO-parent-of-parent-display-none-with-relative-pos-content-expected.png: Added.
* platform/qt/svg/foreignObject/fO-parent-of-parent-display-none-with-relative-pos-content-expected.txt: Added.
* platform/qt/svg/repaint/filter-repaint-expected.png: Added.
* platform/qt/svg/repaint/filter-repaint-expected.txt: Added.
* platform/qt/svg/text/append-text-node-to-tspan-expected.png: Added.
* platform/qt/svg/text/append-text-node-to-tspan-expected.txt: Added.
* platform/qt/svg/text/modify-text-node-in-tspan-expected.png: Added.
* platform/qt/svg/text/modify-text-node-in-tspan-expected.txt: Added.
* platform/qt/svg/text/remove-text-node-from-tspan-expected.png: Added.
* platform/qt/svg/text/remove-text-node-from-tspan-expected.txt: Added.
* platform/qt/svg/text/remove-tspan-from-text-expected.png: Added.
* platform/qt/svg/text/remove-tspan-from-text-expected.txt: Added.
* platform/qt/svg/wicd/sizing-flakiness-expected.png: Added.
* platform/qt/svg/wicd/sizing-flakiness-expected.txt: Added.

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

7 years agoIncrease code sharing between StylePropertySet and CSSPropertyLonghand.
alexis.menard@openbossa.org [Mon, 26 Mar 2012 12:11:47 +0000 (12:11 +0000)]
Increase code sharing between StylePropertySet and CSSPropertyLonghand.
https://bugs.webkit.org/show_bug.cgi?id=81960

Reviewed by Antti Koivisto.

Use longhands declaration from CSSPropertyLonghand in StylePropertySet in order
to avoid code duplication.

No new tests : refactoring only, we shouldn't have any behavior difference.

* css/CSSPropertyLonghand.cpp:
(WebCore::backgroundLonghand):
Re-order the array to match the spec default order.
(WebCore::webkitMaskLonghand):
Re-order to match the original order.
(WebCore::webkitTransformOriginLonghand):
A LayoutTest shows that a property was missing.
* css/StylePropertySet.cpp:
(WebCore::StylePropertySet::getPropertyValue):
(WebCore::StylePropertySet::borderSpacingValue):
(WebCore::StylePropertySet::get4Values):
(WebCore::StylePropertySet::getLayeredShorthandValue):
(WebCore::StylePropertySet::getShorthandValue):
(WebCore::StylePropertySet::getCommonValue):
(WebCore::StylePropertySet::asText):
* css/StylePropertySet.h:
(WebCore):
(StylePropertySet):

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

7 years ago[Qt] Assert in GestureTapHighlighter.
commit-queue@webkit.org [Mon, 26 Mar 2012 11:56:53 +0000 (11:56 +0000)]
[Qt] Assert in GestureTapHighlighter.
https://bugs.webkit.org/show_bug.cgi?id=82187

Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-03-26
Reviewed by Kenneth Rohde Christiansen.

Adjust the boundaries of the center-rect before performing the intersection test,
since adjusting the boundary may cause a new intersection.

* page/GestureTapHighlighter.cpp:

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

7 years agoSplit MediaList into internal and CSSOM types
antti@apple.com [Mon, 26 Mar 2012 11:52:13 +0000 (11:52 +0000)]
Split MediaList into internal and CSSOM types
https://bugs.webkit.org/show_bug.cgi?id=82149

Reviewed by Andread Kling.

MediaList is a CSSOM type and should not be used internally.

- Use new type MediaQuerySet internally to represent a collection of media queries.
- Create MediaList wrapper on-demand for CSSOM purposes only.

This moves us forward in separating CSSOM from the internal stylesheet implementation.

MediaQuerySet really belongs to a file of its own but that is not part of this patch.

* css/CSSGrammar.y:
* css/CSSImportRule.cpp:
(WebCore::CSSImportRule::create):
(WebCore):
(WebCore::CSSImportRule::CSSImportRule):
(WebCore::CSSImportRule::~CSSImportRule):
(WebCore::CSSImportRule::media):
(WebCore::CSSImportRule::cssText):
* css/CSSImportRule.h:
(WebCore):
(CSSImportRule):
(WebCore::CSSImportRule::mediaQueries):
* css/CSSMediaRule.cpp:
(WebCore::CSSMediaRule::CSSMediaRule):
(WebCore::CSSMediaRule::~CSSMediaRule):
(WebCore::CSSMediaRule::cssText):
* css/CSSMediaRule.h:
(WebCore::CSSMediaRule::create):
(WebCore::CSSMediaRule::media):
(WebCore::CSSMediaRule::mediaQueries):
(CSSMediaRule):
* css/CSSParser.cpp:
(WebCore::CSSParser::parseMediaQuery):
(WebCore::CSSParser::createMediaQuerySet):
(WebCore::CSSParser::createImportRule):
(WebCore::CSSParser::createMediaRule):
(WebCore::CSSParser::updateLastMediaLine):
* css/CSSParser.h:
(WebCore):
(CSSParser):
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::collectMatchingRulesForList):
* css/CSSStyleSheet.cpp:
(WebCore):
(WebCore::CSSStyleSheet::media):
(WebCore::CSSStyleSheet::setMediaQueries):
* css/CSSStyleSheet.h:
(WebCore):
(CSSStyleSheet):
(WebCore::CSSStyleSheet::mediaQueries):
* css/MediaList.cpp:
(WebCore):
(WebCore::MediaQuerySet::MediaQuerySet):
(WebCore::MediaQuerySet::~MediaQuerySet):
(WebCore::parseMediaDescriptor):
(WebCore::MediaQuerySet::parse):
(WebCore::MediaQuerySet::add):
(WebCore::MediaQuerySet::remove):
(WebCore::MediaQuerySet::addMediaQuery):
(WebCore::MediaQuerySet::mediaText):
(WebCore::MediaQuerySet::ensureMediaList):

    - Use OwnPtr<> for MediaQuery ownership.
    - Move the appropriate functions to MediaQuerySet.
    - Clean up a bit to make this more readable and better aligned to WebKit style.

(WebCore::MediaList::MediaList):
(WebCore::MediaList::~MediaList):
(WebCore::MediaList::setMediaText):
(WebCore::MediaList::item):
(WebCore::MediaList::deleteMedium):
(WebCore::MediaList::appendMedium):
* css/MediaList.h:
(WebCore):
(WebCore::MediaQuerySet::create):
(WebCore::MediaQuerySet::createAllowingDescriptionSyntax):
(MediaQuerySet):
(WebCore::MediaQuerySet::queryVector):
(WebCore::MediaQuerySet::lastLine):
(WebCore::MediaQuerySet::setLastLine):
(MediaList):
(WebCore::MediaList::ref):
(WebCore::MediaList::deref):
(WebCore::MediaList::length):
(WebCore::MediaList::mediaText):
(WebCore::MediaList::queries):
* css/MediaQueryEvaluator.cpp:
(WebCore::MediaQueryEvaluator::eval):
* css/MediaQueryEvaluator.h:
(WebCore):
(MediaQueryEvaluator):
* css/MediaQueryList.cpp:
(WebCore::MediaQueryList::create):
(WebCore::MediaQueryList::MediaQueryList):
* css/MediaQueryList.h:
(WebCore):
(MediaQueryList):
* css/MediaQueryMatcher.cpp:
(WebCore::MediaQueryMatcher::evaluate):
(WebCore::MediaQueryMatcher::matchMedia):
* css/MediaQueryMatcher.h:
(WebCore):
(MediaQueryMatcher):
* css/StyleMedia.cpp:
(WebCore::StyleMedia::matchMedium):
* css/StyleSheet.cpp:
(WebCore::StyleSheet::~StyleSheet):

    Move the media query ownership to CSSStyleSheet where it belongs.

(WebCore):
* css/StyleSheet.h:
(WebCore::StyleSheet::media):
(StyleSheet):
* dom/DOMImplementation.cpp:
(WebCore::DOMImplementation::createCSSStyleSheet):
* dom/ProcessingInstruction.cpp:
(WebCore::ProcessingInstruction::setCSSStyleSheet):
* dom/StyleElement.cpp:
(WebCore::StyleElement::createSheet):
* html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::process):
(WebCore::HTMLLinkElement::setCSSStyleSheet):
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::selectNextSourceChild):
* html/parser/HTMLPreloadScanner.cpp:
(WebCore::HTMLNames::PreloadTask::linkMediaAttributeIsScreen):
* inspector/InspectorStyleSheet.cpp:
(WebCore::buildMediaObject):

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

7 years ago[Qt]WK2] TextureMapperShaderManager should query the program map before creating...
zeno.albisser@nokia.com [Mon, 26 Mar 2012 11:17:40 +0000 (11:17 +0000)]
[Qt]WK2] TextureMapperShaderManager should query the program map before creating new shader program instances.
https://bugs.webkit.org/show_bug.cgi?id=82178

If TextureMapperShaderManager already has a reference to an instance of the
requested shader program type, this instance should be reused instead of
creating a new one.

Reviewed by Noam Rosenthal.

* platform/graphics/texmap/TextureMapperShaderManager.h:
(WebCore::TextureMapperShaderManager::getShaderProgram):

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

7 years agoUnreviewed, rolling out r111993.
commit-queue@webkit.org [Mon, 26 Mar 2012 10:51:41 +0000 (10:51 +0000)]
Unreviewed, rolling out r111993.
http://trac.webkit.org/changeset/111993
https://bugs.webkit.org/show_bug.cgi?id=82184

It broke layout and API tests and made WTR crash (Requested by
Ossy on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-03-26

Source/WebKit2:

* UIProcess/qt/QtPageClient.cpp:
(QtPageClient::isViewWindowActive):

Tools:

* WebKitTestRunner/qt/PlatformWebViewQt.cpp:
(WTR::PlatformWebView::PlatformWebView):

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

7 years ago[Chromium] Web Inspector: dedicated worker inspector is empty
yurys@chromium.org [Mon, 26 Mar 2012 10:18:24 +0000 (10:18 +0000)]
[Chromium] Web Inspector: dedicated worker inspector is empty
https://bugs.webkit.org/show_bug.cgi?id=82181

"beforeunload" event for worker inspector front-end is ingnored if the
window url is "about:blank" as it is just unload of the default content
before the front-end page load.

Reviewed by Pavel Feldman.

* inspector/front-end/WorkerManager.js:
(WebInspector.WorkerManager.prototype._workerInspectorClosing):

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

7 years agoWeb Inspector: split nodes and containment edges into two different arrays
yurys@chromium.org [Mon, 26 Mar 2012 10:15:49 +0000 (10:15 +0000)]
Web Inspector: split nodes and containment edges into two different arrays
https://bugs.webkit.org/show_bug.cgi?id=81930

Extract heap profile nodes and edges into two separate arrays. This
way we will have a continuous array of the heap graph nodes and can
aviod additional mapping between node index and its position in the
heap snapshot.

Reviewed by Pavel Feldman.

* inspector/front-end/HeapSnapshot.js:
(WebInspector.HeapSnapshot.prototype._init):
(WebInspector.HeapSnapshot.prototype._buildContinuousNodeArray):
(WebInspector.HeapSnapshot.prototype._createOnlyNodesArray):
(WebInspector.HeapSnapshot.prototype._restoreNodeTypes):
(WebInspector.HeapSnapshot.prototype._createRetainmentEdgesArray):
(WebInspector.HeapSnapshot.prototype._createContainmentEdgesArray):
* inspector/front-end/HeapSnapshotProxy.js:
(WebInspector.HeapSnapshotWorker):

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

7 years agoWeb Inspector: move resource loading logic from SourceMapParser to CompilerScriptMapping.
podivilov@chromium.org [Mon, 26 Mar 2012 09:55:15 +0000 (09:55 +0000)]
Web Inspector: move resource loading logic from SourceMapParser to CompilerScriptMapping.
https://bugs.webkit.org/show_bug.cgi?id=81897

Reviewed by Vsevolod Vlasov.

Source/WebCore:

SourceMapParser should only deal with payload parsing.

* inspector/front-end/CompilerScriptMapping.js:
(WebInspector.CompilerScriptMapping.prototype.rawLocationToUILocation):
(WebInspector.CompilerScriptMapping.prototype.addScript):
(WebInspector.CompilerScriptMapping.prototype.loadSourceMapForScript):
(WebInspector.SourceMapPayload):
(WebInspector.SourceMapParser):
(WebInspector.SourceMapParser.prototype.sourceContent):
(WebInspector.SourceMapParser.prototype.findEntry):
(WebInspector.SourceMapParser.prototype.findEntryReversed):
* inspector/front-end/ContentProviders.js:
(WebInspector.CompilerSourceMappingContentProvider):
(WebInspector.CompilerSourceMappingContentProvider.prototype.requestContent):

LayoutTests:

* http/tests/inspector/compiler-script-mapping.html:

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