Unreviewed. Skip some captions tests on Windows. Failing on both Mac and Windows.

* platform/win/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Don't dispatch fake mousemove events when we don't know where the cursor is
https://bugs.webkit.org/show_bug.cgi?id=104861

Reviewed by Sam Weinig.

When EventHandler is instantiated or cleared, it sets the current mouse
position to (0, 0), even though this is probably not where the mouse
cursor really is (and we won't know until the mouse moves into the WebView).
If a fake mousemove event fires and the page has an element at (0, 0)
that responds to mousemove, we might end up changing the cursor or
displaying a tooltip at the current mouse position, even if it is
outside the WebView.

Fake mousemove events are dispatched in order to update a cursor that
is already over the WebView. Don't dispatch the event if we don't know
this to be true.

* page/EventHandler.cpp:
(WebCore::EventHandler::EventHandler): Instantiate m_mousePositionIsUnknown to true.
(WebCore::EventHandler::clear): Reset m_mousePositionIsUnknown to true.
(WebCore::EventHandler::dispatchFakeMouseMoveEventSoon): Return early if the mouse position is unknown.
(WebCore::EventHandler::setLastKnownMousePosition): Set the mouse position from the PlatformMouseEvent and set m_mousePositionIsUnknown to false.
(WebCore::EventHandler::handleMousePressEvent): Call setLastKnownMousePosition() instead of setting the position directly.
(WebCore::EventHandler::handleMouseDoubleClickEvent): Ditto.
(WebCore::EventHandler::handleMouseMoveEvent): Ditto.
(WebCore::EventHandler::handleMouseReleaseEvent): Ditto.
(WebCore::EventHandler::updateSelectionForMouseDrag): Rename currentMouse(Global)Position to lastKnownMouse(Global)Position.
(WebCore::EventHandler::handleAutoscroll): Ditto.
(WebCore::EventHandler::updatePanScrollState): Ditto.
(WebCore::EventHandler::lastKnownMousePosition): Ditto.
(WebCore::EventHandler::dispatchFakeMouseMoveEventSoonInQuad): Ditto.
(WebCore::EventHandler::fakeMouseMoveEventTimerFired): Ditto.
(WebCore::EventHandler::hoverTimerFired): Ditto.
* page/FrameView.cpp:
(WebCore::FrameView::lastKnownMousePosition): Ditto.
* platform/ScrollableArea.h:
(WebCore::ScrollableArea::lastKnownMousePosition): Ditto.
* platform/mac/ScrollAnimatorMac.mm:
(-[WebScrollbarPainterControllerDelegate mouseLocationInContentAreaForScrollerImpPair:]): Ditto.
(-[WebScrollbarPainterDelegate mouseLocationInScrollerForScrollerImp:]): Ditto.
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::panScrollFromPoint): Ditto.
(WebCore::RenderLayer::autoscroll): Ditto.
(WebCore::RenderLayer::lastKnownMousePosition): Ditto.
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::panScroll): Ditto.
(WebCore::RenderListBox::autoscroll): Ditto.
(WebCore::RenderListBox::lastKnownMousePosition): Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rebaseline some tiled scrolling results that were affected by r137387.

* platform/mac/tiled-drawing/tiled-drawing-zoom-expected.txt:
* platform/mac/tiled-drawing/use-tiled-drawing-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Expose quickRedirectComing via WebDataSource
https://bugs.webkit.org/show_bug.cgi?id=104586

Reviewed by Nate Chapin.

Exposes whether the current navigation is a client redirect, and
thus should replace the current history item.

* public/WebDataSource.h:
(WebDataSource): Adds isClientRedirect.
* src/WebDataSourceImpl.cpp:
(WebKit::WebDataSourceImpl::isClientRedirect):
(WebKit):
* src/WebDataSourceImpl.h:
(WebDataSourceImpl):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137542 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Texmap] Remove lowp/highp indicators as they're not needed with ANGLE.
https://bugs.webkit.org/show_bug.cgi?id=104707

Patch by No'am Rosenthal <noam@webkit.org> on 2012-12-12
Reviewed by Kenneth Rohde Christiansen.

lowp/highp indicator were needed for GLES2, but ANGLE does not require them.

Covered by existing tests.

* platform/graphics/texmap/TextureMapperShaderManager.cpp:
(WebCore::getShaderSpec):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WIN] Implement WebCore::fileSystemRepresentation() for !USE(CF)
https://bugs.webkit.org/show_bug.cgi?id=104456

Reviewed by Brent Fulgham.

Convert the UTF-16 path to the system default Windows ANSI code page (usually Windows Latin1).

* platform/win/FileSystemWin.cpp:
(WebCore::fileSystemRepresentation):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Versioning.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137548 268f45cc-cd09-0410-ab3c-d52691b4dbfc
rework ChromiumAndroidDriver.start() et. al to avoid funky layering
https://bugs.webkit.org/show_bug.cgi?id=104856

Reviewed by Eric Seidel.

r137523 / bug 10357 introduced some back-and-forth hopping during
driver.start() in the chromium android port. This patch cleans it
up a bit.

* Scripts/webkitpy/layout_tests/port/chromium_android.py:
(ChromiumAndroidDriver.__init__):
(ChromiumAndroidDriver._start_once):
* Scripts/webkitpy/layout_tests/port/chromium_android_unittest.py:
* Scripts/webkitpy/layout_tests/port/driver.py:
(Driver.start):
(Driver._start):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed chromium rebaseline for fast/repaint/delete-into-nested-block.html

* platform/chromium-linux/fast/repaint/delete-into-nested-block-expected.png:
* platform/chromium-mac-lion/fast/repaint/delete-into-nested-block-expected.png:
* platform/chromium-mac-snowleopard/fast/repaint/delete-into-nested-block-expected.png:
* platform/chromium-mac/fast/repaint/delete-into-nested-block-expected.png:
* platform/chromium-win/fast/repaint/delete-into-nested-block-expected.png:
* platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Shadow] HTMLContentElement::getDistributedNodes() doesn't work correctly if not in document tree.
https://bugs.webkit.org/show_bug.cgi?id=104345

Reviewed by Hajime Morita.

Source/WebCore:

Since document->updateLayout() does affect nodes in Document, distribution will not occur in
InsertionPoints out of Document. We have to find the element in document tree scope, and start distribution from it.

Test: fast/dom/shadow/get-distributed-nodes-orphan.html

* html/shadow/InsertionPoint.cpp:
(WebCore::InsertionPoint::getDistributedNodes):

LayoutTests:

* fast/dom/shadow/get-distributed-nodes-orphan-expected.txt: Added.
* fast/dom/shadow/get-distributed-nodes-orphan.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix detection of ref test files in old and new run webkit tests.
https://bugs.webkit.org/show_bug.cgi?id=104850.

Reviewed by Timothy Horton.

* Scripts/old-run-webkit-tests:
(isUsedInReftest): 
Add notref and ref prefix and suffix cases to isUsedinReftest.
* Scripts/webkitpy/layout_tests/port/base.py:
(Port):
(Port.is_reference_html_file): 
Typo in NRWT.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed.  Rolled DEPS.

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

* DEPS:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unused parameters on TextureMapperImageBuffer.cpp
https://bugs.webkit.org/show_bug.cgi?id=104857

Patch by KyungTae Kim <ktf.kim@samsung.com> on 2012-12-12
Reviewed by Kentaro Hara.

The updateContents has unused parameter 'textureMapper',
remove the parameter name to fix 'unused parameter' build warning.

* platform/graphics/texmap/TextureMapperImageBuffer.cpp:
(WebCore::BitmapTextureImageBuffer::updateContents):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix the Chromium build after r137539.

* src/ScrollbarGroup.cpp:
(WebKit::ScrollbarGroup::lastKnownMousePosition): Renamed from currentMousePosition().
* src/ScrollbarGroup.h: Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Include Apple Windows in GraphicsLayer::supportsBackgroundColorContent().
https://bugs.webkit.org/show_bug.cgi?id=104852.

Reviewed by Simon Fraser.

* platform/graphics/GraphicsLayer.h:
(WebCore::GraphicsLayer::supportsBackgroundColorContent):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137557 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Fix typo in NRWT.

* Scripts/webkitpy/layout_tests/port/base.py:
(Port.is_reference_html_file):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename currentMousePosition() to lastKnownMousePosition() and mark it as OVERRIDE.

* WebProcess/Plugins/PDF/PDFPlugin.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Grid Layout] Include paddings and borders into the grid element's logical height / width
https://bugs.webkit.org/show_bug.cgi?id=104818

Reviewed by Tony Chang.

Source/WebCore:

This change makes RenderGrid add the borders and paddings in the right direction during layout
so that the grid element's size accounts them like any other renderer.

Test: fast/css-grid-layout/grid-element-padding-margin.html

* rendering/RenderGrid.cpp:
(WebCore::RenderGrid::computePreferredLogicalWidths):
(WebCore::RenderGrid::layoutGridItems):

LayoutTests:

* fast/css-grid-layout/grid-element-padding-margin-expected.txt: Added.
* fast/css-grid-layout/grid-element-padding-margin.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Milliseconds field of date/time input UI should respect step attribute
https://bugs.webkit.org/show_bug.cgi?id=104628

Patch by Kunihiko Sakamoto <ksakamoto@chromium.org> on 2012-12-12
Reviewed by Kent Tamura.

Source/WebCore:

This patch makes step-up/-down UI of the milliseconds fields respect step attribute
in a special case when the step is divisible by 1000 milliseconds.

Test: fast/forms/time-multiple-fields/time-multiple-fields-stepup-stepdown-from-renderer.html

* html/shadow/DateTimeEditElement.cpp:
(WebCore::DateTimeEditBuilder::visitField):
If step of the element (in milliseconds) is divisible by 1000, use it as the step of the milliseconds field. Otherwise, the millisecond field has step 1.
* html/shadow/DateTimeFieldElements.cpp:
(WebCore::DateTimeMillisecondFieldElement::DateTimeMillisecondFieldElement): Add step and stepBase arguments.
(WebCore::DateTimeMillisecondFieldElement::create): Ditto.
* html/shadow/DateTimeFieldElements.h:
(DateTimeMillisecondFieldElement): Ditto.
* html/shadow/DateTimeNumericFieldElement.cpp:
(WebCore::DateTimeNumericFieldElement::DateTimeNumericFieldElement): Ditto.
(WebCore::DateTimeNumericFieldElement::stepDown): Changed to compute next allowed value using roundDown().
(WebCore::DateTimeNumericFieldElement::stepUp): Changed to compute next allowed value using roundUp().
(WebCore::DateTimeNumericFieldElement::roundDown): Added.
(WebCore::DateTimeNumericFieldElement::roundUp): Added.
* html/shadow/DateTimeNumericFieldElement.h:
(DateTimeNumericFieldElement): Add m_step and m_stepBase fields.

LayoutTests:

* fast/forms/time-multiple-fields/time-multiple-fields-stepup-stepdown-from-renderer-expected.txt:
* fast/forms/time-multiple-fields/time-multiple-fields-stepup-stepdown-from-renderer.html:
Changed to use eventSender.keyDown() instead of making keydown event because we need delete-key handling.
Added new helper function test() and changed stepUp/stepDown to use it.
Added test cases for milliseconds field with various step values and step baees.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ContainerNodeAlgorithm::notifyInsertedIntoDocument is not used
https://bugs.webkit.org/show_bug.cgi?id=104874

Reviewed by Hajime Morita.

ContainerNodeAlgorithm::notifyInsertedIntoDocument() is not used by anyone. We can remove it safely.

No new tests, no change in behavior.

* dom/ContainerNodeAlgorithms.h:


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