[Qt][WK2] Fix typo in patch committed in r109575

Unreviewed typo fix.

* MiniBrowser/qt/MiniBrowserApplication.cpp:
(MiniBrowserApplication::notify): Cache the position
in floating point coordinates.

git-svn-id: svn://svn.chromium.org/blink/trunk@109576 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Inspector: fix fronted compilation.
https://bugs.webkit.org/show_bug.cgi?id=80154

Reviewed by Yury Semikhatsky.

* inspector/front-end/DebuggerModel.js:
(WebInspector.DebuggerModel.prototype.scriptForSourceID):
* inspector/front-end/DebuggerPresentationModel.js:
(WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyLocation):
* inspector/front-end/ScriptsSearchScope.js:
(WebInspector.ScriptsSearchResultsPane.prototype.createAnchor):

git-svn-id: svn://svn.chromium.org/blink/trunk@109577 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[GTK] Invalid check in webkit_web_view_set_zoom_level() when zoom-text-only is enabled
https://bugs.webkit.org/show_bug.cgi?id=80150

Reviewed by Philippe Normand.

* UIProcess/API/gtk/WebKitWebView.cpp:
(webkit_web_view_set_zoom_level): Use
webkit_web_view_get_zoom_level() instead of
WKPageGetPageZoomFactor() to get the current effective zoom level
depending on zoom-text-only setting.

git-svn-id: svn://svn.chromium.org/blink/trunk@109578 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[GStreamer] media/media-can-play-flac-audio.html fails
https://bugs.webkit.org/show_bug.cgi?id=80124

Reviewed by Martin Robinson.

Handle audio/x-flac in the mimeTypeCache() function so that we
advertize both audio/flac and audio/x-flac.

No new tests, this is covered already by media/media-can-play-flac-audio.html.

* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

git-svn-id: svn://svn.chromium.org/blink/trunk@109580 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[GTK] security/block-test.html baselines differ from mac
https://bugs.webkit.org/show_bug.cgi?id=78343

Reviewed by Martin Robinson.

Tools:

Improved the FrameLoader error heuristics to match mac behavior a
bit more.

* DumpRenderTree/gtk/DumpRenderTree.cpp:
(pathFromSoupURI): Handle ftp urls the same as http urls.
(descriptionSuitableForTestResult): Map WebKitPolicyError to WebKitErrorDomain.

LayoutTests:

GTK baselines updates for two security tests. They're closer to
the mac baselines now.

* platform/gtk/security/block-test-expected.txt: Added.
* platform/gtk/security/block-test-no-port-expected.txt:

git-svn-id: svn://svn.chromium.org/blink/trunk@109581 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed, GTK rebaseline after r109581.

* platform/gtk/security/block-test-expected.txt:

git-svn-id: svn://svn.chromium.org/blink/trunk@109582 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[BlackBerry] Set the devicePixelRatio from the results of computeViewportAttributes
https://bugs.webkit.org/show_bug.cgi?id=80160

Patch by Konrad Piascik <kpiascik@rim.com> on 2012-03-02
Reviewed by Antonio Gomes.

Tested by going to layout test fast/viewport/viewport-95.html and viewport-93.html
Previously when executing window.devicePixelRatio these two pages returned 1 now
they report the devicePixelRatio returned by computeViewportAttributes.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::recomputeVirtualViewportFromViewportArguments):

git-svn-id: svn://svn.chromium.org/blink/trunk@109583 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[GTK] Smooth scrolling support
https://bugs.webkit.org/show_bug.cgi?id=16123

Patch by Zan Dobersek <zandobersek@gmail.com> on 2012-03-02
Reviewed by Martin Robinson.

Source/WebCore:

No new tests - no new functionality.

Add the ScrollAnimatorNone class to compilation and enable
the smooth scrolling feature by default at compilation time.

* GNUmakefile.am:
* GNUmakefile.list.am:

Source/WebKit/gtk:

Add a new settings option to enable smooth scrolling.

* webkit/webkitwebsettings.cpp:
(webkit_web_settings_class_init):
(webkit_web_settings_set_property):
(webkit_web_settings_get_property):
* webkit/webkitwebsettingsprivate.h:
* webkit/webkitwebview.cpp:
(webkit_web_view_update_settings):
(webkit_web_view_settings_notify):

git-svn-id: svn://svn.chromium.org/blink/trunk@109584 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Create a method in Element to compare attributes with other Element
https://bugs.webkit.org/show_bug.cgi?id=80169

Reviewed by Ryosuke Niwa.

Avoid manually peeking at attribute storage to get this information. This
simplify the callsites. The actual implementation of comparison was moved to
ElementAttributeData. The mapsEquivalent() function still exists for the sake
of DocumentType nodes.

* dom/Element.cpp:
(WebCore::Element::hasEquivalentAttributes):
(WebCore):
* dom/Element.h:
(Element):
* dom/ElementAttributeData.cpp:
(WebCore::ElementAttributeData::isEquivalent):
(WebCore):
* dom/ElementAttributeData.h:
(ElementAttributeData):
* dom/NamedNodeMap.cpp:
(WebCore::NamedNodeMap::mapsEquivalent):
* dom/Node.cpp:
(WebCore::Node::isEqualNode):
* editing/htmlediting.cpp:
(WebCore::areIdenticalElements): Use Element::hasTagName() instead of matching
directly to make code a bit clearer.

git-svn-id: svn://svn.chromium.org/blink/trunk@109585 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rebaseline a test on Leopard after expectation was removed in r109516.

Unreviewed gardening.

* platform/chromium-mac-leopard/fast/repaint/transform-absolute-in-positioned-container-expected.png: Added.

git-svn-id: svn://svn.chromium.org/blink/trunk@109586 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move the 'overflow' event dispatching logic out of RenderLayer
https://bugs.webkit.org/show_bug.cgi?id=80090

Reviewed by Simon Fraser.

Source/WebCore: 

Test: fast/events/overflow-events-writing-mode.html

This moves the 'overflow' event dispatch from RenderLayer to an helper class
OverflowEventDispatcher. For now, the class lives in RenderBlock as it matches
the existing code but it may be moved later to its own class as FrameView could
benefit from it too or if we need to support 'overflow' events on RenderBoxes.

* rendering/RenderBlock.cpp:
(WebCore):
(OverflowEventDispatcher):
(WebCore::OverflowEventDispatcher::OverflowEventDispatcher):
(WebCore::OverflowEventDispatcher::~OverflowEventDispatcher):
(WebCore::OverflowEventDispatcher::computeOverflowStatus):
RAII dispatcher class that stores the information before layout and compare
them after to dispatch the right information.

(WebCore::RenderBlock::layout): Added an instance of OverflowEventDispatcher.

* rendering/RenderBox.h:
(WebCore::RenderBox::hasHorizontalLayoutOverflow):
(WebCore::RenderBox::hasVerticalLayoutOverflow):
Helper method to know if we have an horizontal / vertical layout overflow.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::RenderLayer):
(WebCore::RenderLayer::updateScrollInfoAfterLayout):
* rendering/RenderLayer.h:
Removed the scroll tracking logic as we don't need it anymore. This removes
3 booleans from RenderLayer.

LayoutTests: 

* fast/events/overflow-events-writing-mode.html: Added.
* fast/events/overflow-events-writing-mode-expected.txt: Added.
Added a test for overflow events in a vertical writing mode.


git-svn-id: svn://svn.chromium.org/blink/trunk@109587 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed rebaselining of images affected by these changes:
https://bugs.webkit.org/show_bug.cgi?id=76556 ('Match style of platform error underline for misspellings')
https://bugs.webkit.org/show_bug.cgi?id=78117 ('[Skia Mac] Make misspelling underline dots unclipped')

* platform/chromium-mac-leopard/editing/deleting/delete-3928305-fix-expected.png:
[139 lines deleted]
* platform/chromium-mac-snowleopard/fast/dom/blur-contenteditable-expected.png: Added.
* platform/chromium/test_expectations.txt:


git-svn-id: svn://svn.chromium.org/blink/trunk@109588 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move the 'overflow' event dispatching logic out of RenderLayer
https://bugs.webkit.org/show_bug.cgi?id=80090

Unreviewed build fix.

* rendering/RenderBlock.cpp:
(OverflowEventDispatcher): Removed the unused function.


git-svn-id: svn://svn.chromium.org/blink/trunk@109589 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[Chromium] Allow plugins to set opaque() on their platform layer
https://bugs.webkit.org/show_bug.cgi?id=80171

Patch by Dana Jansens <danakj@chromium.org> on 2012-03-02
Reviewed by James Robinson.

* public/WebPluginContainer.h:
(WebPluginContainer):
* src/WebPluginContainerImpl.cpp:
(WebKit::WebPluginContainerImpl::setOpaque):
(WebKit):
* src/WebPluginContainerImpl.h:
(WebPluginContainerImpl):

git-svn-id: svn://svn.chromium.org/blink/trunk@109590 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Chromium rebaselines after r109512.

Unreviewed gardening.

* platform/chromium-linux/fast/block/float/026-expected.png:
* platform/chromium-linux/fast/block/float/028-expected.png:
* platform/chromium-linux/fast/overflow/unreachable-overflow-rtl-bug-expected.png:
* platform/chromium-mac-leopard/fast/block/float/026-expected.png:
* platform/chromium-mac-leopard/fast/block/float/028-expected.png:
* platform/chromium-mac-leopard/fast/overflow/unreachable-overflow-rtl-bug-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/block/float/026-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/block/float/026-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/block/float/028-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/block/float/028-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/events/offsetX-offsetY-expected.txt: Renamed from LayoutTests/platform/chromium/fast/events/offsetX-offsetY-expected.txt.
* platform/chromium-mac-snowleopard/fast/overflow/unreachable-overflow-rtl-bug-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/overflow/unreachable-overflow-rtl-bug-expected.txt: Added.
* platform/chromium-mac/fast/block/float/026-expected.png: Removed.
* platform/chromium-mac/fast/block/float/028-expected.png: Removed.
* platform/chromium-win/fast/block/float/026-expected.png:
* platform/chromium-win/fast/block/float/026-expected.txt:
* platform/chromium-win/fast/block/float/028-expected.png:
* platform/chromium-win/fast/block/float/028-expected.txt:
* platform/chromium-win/fast/events/offsetX-offsetY-expected.txt:
* platform/chromium-win/fast/overflow/unreachable-overflow-rtl-bug-expected.png:
* platform/chromium-win/fast/overflow/unreachable-overflow-rtl-bug-expected.txt:
* platform/chromium/test_expectations.txt:

git-svn-id: svn://svn.chromium.org/blink/trunk@109591 bbb929c8-8fbe-4397-9dbb-9b2b20218538
https://bugs.webkit.org/show_bug.cgi?id=80161
PR: 141157

BlackBerryPlatformScreen.h API has been updated.  Reflect those
changes in our usage.

Source/WebCore:

Patch by Adam Treat <atreat@rim.com> on 2012-03-02
Reviewed by Antonio Gomes.
Internally reviewed by Jakob Petsovits

* platform/blackberry/PlatformScreenBlackBerry.cpp:
(WebCore::screenAvailableRect):
(WebCore::screenRect):

Source/WebKit/blackberry:

Patch by Adam Treat <atreat@rim.com> on 2012-03-02
Reviewed by Antonio Gomes.
Internally reviewed by Jakob Petsovits.

* Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::tileWidth):
(BlackBerry::WebKit::BackingStorePrivate::tileHeight):
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::init):
(BlackBerry::WebKit::WebPagePrivate::transformedViewportSize):
(BlackBerry::WebKit::WebPagePrivate::fixedLayoutSize):
(BlackBerry::WebKit::WebPagePrivate::recomputeVirtualViewportFromViewportArguments):
(BlackBerry::WebKit::WebPagePrivate::setDefaultLayoutSize):
(BlackBerry::WebKit::WebPagePrivate::defaultMaxLayoutSize):
* WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
(WebCore::FrameLoaderClientBlackBerry::restoreViewState):
* WebKitSupport/SurfacePool.cpp:
(BlackBerry::WebKit::createCompositingSurface):

git-svn-id: svn://svn.chromium.org/blink/trunk@109592 bbb929c8-8fbe-4397-9dbb-9b2b20218538
REGRESSION(r74971): Can't select a line of RTL text on Facebook
https://bugs.webkit.org/show_bug.cgi?id=59435

Reviewed by Eric Seidel.

Source/WebCore: 

The bug was caused by inline text boxes created by BRs being placed at the end of the line
according to the block's direction regardless of its unicode bidi-level. e.g. if we have
<div dir="rtl"><span dir="ltr">hello<br>world</span></div>
the inline box generated by the br has the bidi-level of 2 like the rest of text in the span.
This inline text box gives an illusion of having text on the left of "hello" to hit testing
and editing code and causes all sorts of problems.

Fixed the bug by replacing calls to nextLeafChild and prevLeafChild by newly introduced
nextLeafChildIgnoringLineBreak and prevLeafChildIgnoringLineBreak. These two functions will
return 0 when they hit the end of a line or inline text box that's a line break. In effect,
hit testing and editing code can ignore inline boxes generated by br's.

In the long term, we should move these two functions into RenderedPosition along with the rest
of code that converts a Position and an inline box, offset pair.

Test: editing/selection/select-line-break-with-opposite-directionality.html

* dom/Position.cpp:
(WebCore::Position::getInlineBoxAndOffset):
* editing/RenderedPosition.cpp:
(WebCore::RenderedPosition::prevLeafChild):
(WebCore::RenderedPosition::nextLeafChild):
* rendering/InlineBox.cpp:
(WebCore::InlineBox::nextLeafChildIgnoringLineBreak):
(WebCore::InlineBox::prevLeafChildIgnoringLineBreak):
* rendering/InlineBox.h:
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::positionForPointWithInlineChildren):
* rendering/RenderText.cpp:
(WebCore::lineDirectionPointFitsInBox): If we're on the left of a RTL line, we should stay at
upstream position since we're at the end of a line.
(WebCore::createVisiblePositionAfterAdjustingOffsetForBiDi): Merge the two special cases into
the general loop as the comment suggests. Skip an inline text box for a line break at the left
edge when there are more line boxes on the line.
(WebCore::RenderText::positionForPoint):
* rendering/RootInlineBox.cpp:
(WebCore::RootInlineBox::closestLeafChildForLogicalLeftPosition): Ignore line boxes created for
line boxes when there are other boxes on the line.

LayoutTests: 

Add a regression test for selecting  multiline bidirectional text.

* editing/selection/select-line-break-with-opposite-directionality-expected.txt: Added.
* editing/selection/select-line-break-with-opposite-directionality.html: Added.


git-svn-id: svn://svn.chromium.org/blink/trunk@109593 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Source/WebCore: REGRESSION(r97353): Crash when accessing location or history properties inside a navigated window
https://bugs.webkit.org/show_bug.cgi?id=80133
<rdar://problem/10432233>
        
Reviewed by Antti Koivisto.

Test: fast/dom/Window/navigated-window-properties.html

* bindings/js/JSDOMWindowCustom.cpp:
(WebCore): Remove custom getters for window.location and window.history; they
were unnecessary and did the wrong thing when DOMWindow returned null values 
for these.
* page/DOMWindow.idl: ditto
* bindings/js/JSDOMBinding.cpp:
(WebCore::reportException): Remove assert about null values and update comment,
since this is now an expected state for navigated inner windows.

LayoutTests: REGRESSION(r97353): Crash when accessing location or history properties inside a navigated window
https://bugs.webkit.org/show_bug.cgi?id=80133

Reviewed by Antti Koivisto.

* fast/dom/Window/navigated-window-properties-expected.txt: Added.
* fast/dom/Window/navigated-window-properties.html: Added.
* fast/dom/Window/resources/navigated-window-prop-subframe1.html: Added.
* fast/dom/Window/resources/navigated-window-prop-subframe2.html: Added.


git-svn-id: svn://svn.chromium.org/blink/trunk@109594 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[chromium] Layout test fast/events/overflow-events.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=52064

Reviewed by Simon Fraser.

Try to make the test less flaky.

* fast/events/overflow-events.html:
Ensure that the 'overflow' events arrive one at a time in order (there is no guarantee that they *do* dispatch
though). Also added a clearer message if we fail the test. That should help us if the test is still flaky.


git-svn-id: svn://svn.chromium.org/blink/trunk@109595 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed gardening, suppress some failures in shadow tests due to the skia roll.

* platform/chromium/test_expectations.txt:

git-svn-id: svn://svn.chromium.org/blink/trunk@109596 bbb929c8-8fbe-4397-9dbb-9b2b20218538