Web Inspector: add timeline instrumentation for scrolling of a layer
https://bugs.webkit.org/show_bug.cgi?id=99461

Reviewed by Pavel Feldman.

Source/WebCore:

- added timeline instrumentation for scrolling of a layer;
- added TRACE_EVENT for ScrollableArea::scrollPositionChanged()

* inspector/InspectorInstrumentation.cpp:
(WebCore):
(WebCore::InspectorInstrumentation::willScrollLayerImpl):
(WebCore::InspectorInstrumentation::didScrollLayerImpl):
* inspector/InspectorInstrumentation.h:
(InspectorInstrumentation):
(WebCore::InspectorInstrumentation::willScrollLayer):
(WebCore):
(WebCore::InspectorInstrumentation::didScrollLayer):
* inspector/InspectorTimelineAgent.cpp:
(TimelineRecordType):
(WebCore::InspectorTimelineAgent::willScroll):
(WebCore):
(WebCore::InspectorTimelineAgent::didScroll):
* inspector/InspectorTimelineAgent.h:
(InspectorTimelineAgent):
* inspector/front-end/TimelineModel.js:
* inspector/front-end/TimelinePresentationModel.js:
(WebInspector.TimelinePresentationModel._initRecordStyles):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::scrollTo):
* platform/ScrollableArea.cpp:
(WebCore::ScrollableArea::scrollPositionChanged):

LayoutTests:

- added Scroll record type;

* inspector/timeline/timeline-enum-stability-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Convert fast/sub-pixel/file-upload-control-at-fractional-offset-expected.html to ref test
https://bugs.webkit.org/show_bug.cgi?id=99869

Reviewed by Eric Seidel.

fast/sub-pixel/file-upload-control-at-fractional-offset-expected.html is currently a pixel test, convert it to a ref test instead.

* fast/sub-pixel/file-upload-control-at-fractional-offset-expected.html: Added.
* platform/chromium-linux/fast/sub-pixel/file-upload-control-at-fractional-offset-expected.png: Removed.
* platform/chromium-linux/fast/sub-pixel/file-upload-control-at-fractional-offset-expected.txt: Removed.
* platform/chromium-mac-lion/fast/sub-pixel/file-upload-control-at-fractional-offset-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/sub-pixel/file-upload-control-at-fractional-offset-expected.png: Removed.
* platform/chromium-mac/fast/sub-pixel/file-upload-control-at-fractional-offset-expected.png: Removed.
* platform/chromium-mac/fast/sub-pixel/file-upload-control-at-fractional-offset-expected.txt: Removed.
* platform/chromium-win/fast/sub-pixel/file-upload-control-at-fractional-offset-expected.png: Removed.
* platform/chromium-win/fast/sub-pixel/file-upload-control-at-fractional-offset-expected.txt: Removed.
* platform/gtk/fast/sub-pixel/file-upload-control-at-fractional-offset-expected.png: Removed.
* platform/gtk/fast/sub-pixel/file-upload-control-at-fractional-offset-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] add a method for printing message to the WebTestDelegate
https://bugs.webkit.org/show_bug.cgi?id=99960

Reviewed by Adam Barth.

When using the TestRunner library from the content_shell, we can't print
message directly but need to send them to the browser process.

* DumpRenderTree/chromium/TestRunner/public/WebTestDelegate.h:
(WebTestDelegate):
* DumpRenderTree/chromium/TestRunner/src/AccessibilityControllerChromium.cpp:
(WebTestRunner::AccessibilityController::fallbackCallback):
* DumpRenderTree/chromium/TestRunner/src/AccessibilityControllerChromium.h:
(WebTestRunner::AccessibilityController::setDelegate):
(AccessibilityController):
* DumpRenderTree/chromium/TestRunner/src/EventSender.cpp:
(WebTestRunner):
(WebTestRunner::EventSender::dumpFilenameBeingDragged):
* DumpRenderTree/chromium/TestRunner/src/GamepadController.cpp:
(GamepadController::connect):
(GamepadController::disconnect):
(GamepadController::setId):
(GamepadController::setButtonCount):
(GamepadController::setButtonData):
(GamepadController::setAxisCount):
(GamepadController::setAxisData):
(GamepadController::fallbackCallback):
* DumpRenderTree/chromium/TestRunner/src/TestDelegate.h:
(TestDelegate):
* DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp:
(TestInterfaces::~TestInterfaces):
(TestInterfaces::setDelegate):
* DumpRenderTree/chromium/TestRunner/src/WebTestInterfaces.cpp:
(WebTestInterfaces::Internal):
(WebTestRunner::WebTestInterfaces::Internal::printMessage):
(WebTestRunner):
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::didBeginEditing):
(WebViewHost::lastContextMenuData):
(WebViewHost::clearContextMenuData):
(WebViewHost::setEditCommand):
(WebViewHost::clearEditCommand):
(WebViewHost::fillSpellingSuggestionList):
(WebViewHost::setGamepadData):
(WebViewHost::printMessage):
* DumpRenderTree/chromium/WebViewHost.h:
(WebViewHost):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132090 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Don't use deprecated AccessibilityObject methods after r99502
https://bugs.webkit.org/show_bug.cgi?id=99985

Reviewed by Chris Fleizach.

Source/WebCore:

Update callers for AccessibilityObject's title() and
accessibilityDescription() so they now use AccessibilityText.

* accessibility/gtk/WebKitAccessibleUtil.cpp:
(titleTagShouldBeUsedInDescriptionField): Internal helper function.
(accessibilityTitle): New helper function, returns an String with
the title for a AccessibilityObject, using AccessibleText.
(accessibilityDescription): New helper function, returns an String with
the description for a AccessibilityObject, using AccessibleText.
* accessibility/gtk/WebKitAccessibleUtil.h: Added public
declarations for accessibilityTitle and accessibilityDescription.

* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp:
(webkitAccessibleGetName): Use new helpers for retrieving the title.
(webkitAccessibleGetDescription): Use new helpers for retrieving
the title and description.

* accessibility/gtk/WebKitAccessibleInterfaceImage.cpp:
(webkitAccessibleImageGetImageDescription): Use new helpers for
retrieving the title.

LayoutTests:

Update test and expectations to reflect the changes in the
accessible title (now it's the localized one) being returned.

* platform/gtk/accessibility/media-controls-panel-title-expected.txt: Updated.
* platform/gtk/accessibility/media-controls-panel-title.html: Updated.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed Chromium build fix following r132074.

* WebCore.gypi:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132102 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, updating skipped tests that moved.

* platform/win/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132103 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix some baseline flexbox alignment
https://bugs.webkit.org/show_bug.cgi?id=99879

Reviewed by Ojan Vafai.

Source/WebCore:

Fix a bug where we weren't handling margin properly on inline-flexbox.
Fix a bug where we weren't getting the edge of the content box properly when synthesizing
a baseline.

Test: css3/flexbox/flexbox-baseline-margins.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::baselinePosition):
(WebCore::RenderBlock::inlineBlockBaseline): Add a new method that is used when calculating an inline-block's
baseline. Previously we would use lastLineBoxBaseline.
(WebCore::RenderBlock::lastLineBoxBaseline): Pass in direction and when searching children, use inlineBlockBaseline.
* rendering/RenderBlock.h:
(RenderBlock): Make lastLineBoxBaseline non-virtual.
* rendering/RenderBox.h:
(WebCore::RenderBox::inlineBlockBaseline): Replace lastLineBoxBaseline with inlineBlockBaseline.
* rendering/RenderFlexibleBox.cpp:
(WebCore::synthesizedBaselineFromContentBox): Helper method for getting the baseline from the content box.
(WebCore::RenderFlexibleBox::baselinePosition): Always include the margin. This fixes the inline-flexbox case.
(WebCore::RenderFlexibleBox::firstLineBoxBaseline): Fix a case where we didn't synthesize a baseline.  Returning -1 means there is no baseline, but we can
synthesize a baseline if we have a flexitem without text.
(WebCore::RenderFlexibleBox::inlineBlockBaseline):
* rendering/RenderFlexibleBox.h:
* rendering/RenderTable.cpp: Replace lastLineBoxBaseline with inlineBlockBaseline.
(WebCore::RenderTable::inlineBlockBaseline): Try to make comment more direct.
* rendering/RenderTable.h:
(RenderTable): Replace lastLineBoxBaseline with inlineBlockBaseline.

LayoutTests:

Additional test cases for baseline aligning flexbox.

* css3/flexbox/flexbox-baseline-margins.html: Added.
* css3/flexbox/resources/flexbox.css:
(.flex-one): New cross browser value.
* platform/chromium-linux/css3/flexbox/flexbox-baseline-margins-expected.png: Added.
* platform/chromium-linux/css3/flexbox/flexbox-baseline-margins-expected.txt: Added.
* platform/chromium/TestExpectations:
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/mac/TestExpectations:
* platform/qt/TestExpectations:
* platform/win/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modify LayoutState ASSERTS to support SATURATED_LAYOUT_ARITHMETIC
https://bugs.webkit.org/show_bug.cgi?id=98692

Reviewed by Dan Bernstein.

We currently overflow/wrap when computing the delta in
RenderBlock::setLogicalTopForChild in cases where we have an
element with a width or height exceeding maxLayoutUnit. When
the delta is later added back in RenderBlock::layoutBlockChild
the number wraps again getting us back to the correct value.

With SATURATED_LAYOUT_ARITHMETIC enabled the values no longer
wraps, which seems like the correct thing to do however this
causes the compare to fail for obvious reasons. By accounting
for this we can keep the asserts (which have proven very
helpful) even when SATURATED_LAYOUT_ARITHMETIC is turned on.

No new tests, covered by existing tests.

* rendering/LayoutState.cpp:
(WebCore::LayoutState::LayoutState):
* rendering/LayoutState.h:
(WebCore::LayoutState::LayoutState):
(LayoutState):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutBlockChild):
* rendering/RenderView.cpp:
(WebCore::RenderView::layout):
* rendering/RenderView.h:
(WebCore::RenderView::addLayoutDelta):
(RenderView):
(WebCore::RenderView::layoutDeltaMatches):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening, marking fast/sub-pixel/file-upload-control-at-fractional-offset.html as failing on LION for now.

* platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132106 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update flakiness dashboard to match the state of the builders.
* TestResultServer/static-dashboards/builders.js:
(isChromiumDepsGTestRunner):
Broaden the filter since Chromium naming scheme is not consistent.
(loadBuildersList):
The main Chromium master now only runs builders, no tests.
* TestResultServer/static-dashboards/dashboard_base.js:
Remove test suites that no longer run on any of these masters.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, further Apple Mac baselines for shadow DOM changes to RenderSlider.

* platform/mac/fast/forms/input-appearance-height-expected.txt:
* platform/mac/media/controls-without-preload-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132111 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: Change baselinePosition and maxAscent/maxDescent to int
https://bugs.webkit.org/show_bug.cgi?id=99767

Reviewed by Levi Weintraub.

Currently baselinePostion, maxAscent and maxDescent are
LayoutUnits while ascent, descent and m_lineHeight are ints.
This can lead to subtle alignment and rounding problems.

Change baselinePosition and maxAscent/maxDescent to int to avoid
these issues.

Test: fast/sub-pixel/replaced-element-baseline.html

* editing/FrameSelection.cpp:
(WebCore::repaintRectForCaret):
Inflate Y dimension just like we do for X to ensure that the
repaint rect fully contains the caret.

* rendering/InlineBox.cpp:
(WebCore::InlineBox::baselinePosition):
* rendering/InlineBox.h:
(InlineBox):
* rendering/InlineFlowBox.cpp:
(WebCore::InlineFlowBox::adjustMaxAscentAndDescent):
(WebCore::InlineFlowBox::computeLogicalBoxHeights):
(WebCore::InlineFlowBox::placeBoxesInBlockDirection):
Change maxAscent/maxDescent to int to match ascent/descent.
        
* rendering/InlineFlowBox.h:
(InlineFlowBox):
* rendering/InlineTextBox.cpp:
(WebCore::InlineTextBox::baselinePosition):
* rendering/InlineTextBox.h:
(InlineTextBox):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::baselinePosition):
(WebCore::RenderBlock::firstLineBoxBaseline):
(WebCore::RenderBlock::lastLineBoxBaseline):
* rendering/RenderBlock.h:
(RenderBlock):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::baselinePosition):
* rendering/RenderBox.h:
(WebCore::RenderBox::firstLineBoxBaseline):
(WebCore::RenderBox::lastLineBoxBaseline):
(RenderBox):
* rendering/RenderBoxModelObject.h:
(RenderBoxModelObject):
* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::baselinePosition):
(WebCore::RenderFlexibleBox::firstLineBoxBaseline):
* rendering/RenderFlexibleBox.h:
* rendering/RenderInline.cpp:
(WebCore::RenderInline::baselinePosition):
* rendering/RenderInline.h:
(RenderInline):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::baselinePosition):
* rendering/RenderListBox.h:
(RenderListBox):
* rendering/RenderListMarker.cpp:
(WebCore::RenderListMarker::baselinePosition):
* rendering/RenderListMarker.h:
(RenderListMarker):
* rendering/RenderSlider.cpp:
(WebCore::RenderSlider::baselinePosition):
* rendering/RenderSlider.h:
(RenderSlider):
* rendering/RenderTable.cpp:
(WebCore::RenderTable::baselinePosition):
(WebCore::RenderTable::lastLineBoxBaseline):
(WebCore::RenderTable::firstLineBoxBaseline):
* rendering/RenderTable.h:
(RenderTable):
* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::firstLineBoxBaseline):
* rendering/RenderTableSection.h:
(RenderTableSection):
* rendering/RenderTextControlMultiLine.cpp:
(WebCore::RenderTextControlMultiLine::baselinePosition):
* rendering/RenderTextControlMultiLine.h:
(RenderTextControlMultiLine):
* rendering/RenderTheme.cpp:
(WebCore::RenderTheme::baselinePosition):
* rendering/RenderTheme.h:
(RenderTheme):
* rendering/RenderThemeSafari.cpp:
(WebCore::RenderThemeSafari::baselinePosition):
* rendering/RenderThemeSafari.h:
(RenderThemeSafari):
* rendering/RootInlineBox.cpp:
(WebCore::RootInlineBox::baselinePosition):
(WebCore::RootInlineBox::alignBoxesInBlockDirection):
* rendering/RootInlineBox.h:
(RootInlineBox):
* rendering/mathml/RenderMathMLBlock.cpp:
(WebCore::RenderMathMLBlock::baselinePosition):
(WebCore::RenderMathMLTable::firstLineBoxBaseline):
* rendering/mathml/RenderMathMLBlock.h:
(RenderMathMLBlock):
(RenderMathMLTable):
* rendering/mathml/RenderMathMLFraction.cpp:
(WebCore::RenderMathMLFraction::firstLineBoxBaseline):
* rendering/mathml/RenderMathMLFraction.h:
(RenderMathMLFraction):
* rendering/mathml/RenderMathMLOperator.cpp:
(WebCore::RenderMathMLOperator::firstLineBoxBaseline):
* rendering/mathml/RenderMathMLOperator.h:
* rendering/mathml/RenderMathMLUnderOver.cpp:
(WebCore::RenderMathMLUnderOver::firstLineBoxBaseline):
* rendering/mathml/RenderMathMLUnderOver.h:
(RenderMathMLUnderOver):

LayoutTests: Unreviewed, further Apple Mac baselines for shadow DOM changes to RenderSlider.

Patch by Jer Noble <jer.noble@apple.com> on 2012-10-22

* platform/mac/fast/forms/input-appearance-height-expected.txt:
* platform/mac/media/controls-without-preload-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132112 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Roll Chromium DEPS to get new version of V8
https://bugs.webkit.org/show_bug.cgi?id=100015

Unreviewed.

* DEPS:
    - Bigger is better.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132113 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[V8] Vastly simplify V8GCController's NodeVisitor
https://bugs.webkit.org/show_bug.cgi?id=99884

Reviewed by Kentaro Hara.

PerformanceTests:

Adds some performance tests for the garbage collector.

* Bindings/gc-forest.html: Added.
* Bindings/gc-mini-tree.html: Added.
* Bindings/gc-tree.html: Added.

Source/WebCore:

NodeVisitor was vastly more complicated than necessary.

This patch improve performance on these new gc benchmarks:

gc-forest: 1.14% better
gc-mini-tree: 5.09% better
gc-tree: 4.60% better

* bindings/v8/V8GCController.cpp:
(WebCore::ObjectVisitor::visitDOMWrapper):
(WebCore::addImplicitReferencesForNodeWithEventListeners):
(WebCore::rootForGC):
(WebCore::NodeVisitor::visitDOMWrapper):
(WebCore::NodeVisitor::applyGrouping):
(NodeVisitor):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132114 268f45cc-cd09-0410-ab3c-d52691b4dbfc
webkitsourceopen event doesn't always fire
https://bugs.webkit.org/show_bug.cgi?id=99868

Patch by Aaron Colwell <acolwell@chromium.org> on 2012-10-22
Reviewed by Adam Barth.

Source/WebCore:

Changed MediaSource to derive from ActiveDOMObject so that event listeners
will still fire even if all references to the object go out of scope.

Test: http/tests/media/media-source/video-media-source-garbage-collection-before-sourceopen.html

* Modules/mediasource/MediaSource.cpp:
(WebCore::MediaSource::create):
(WebCore::MediaSource::MediaSource):
(WebCore::MediaSource::scriptExecutionContext):
(WebCore):
(WebCore::MediaSource::hasPendingActivity):
(WebCore::MediaSource::stop): Clears m_player & m_asyncEventQueue so they don't indicate pending activity anymore.
* Modules/mediasource/MediaSource.h:
(MediaSource):
* Modules/mediasource/MediaSource.idl:
* Modules/mediasource/MediaSourceRegistry.cpp:
(WebCore::MediaSourceRegistry::registerMediaSourceURL): Added setPendingActivity() call so the MediaSource object stays active while in the registry.
(WebCore::MediaSourceRegistry::unregisterMediaSourceURL): Added unsetPendingActivity() call so the MediaSource object can become inactive after being removed from the registry.

LayoutTests:

Added a test that verifies the webkitsourceopen event still fires
even if the MediaSource variable goes out of scope and garbage
collection occurs.

* http/tests/media/media-source/video-media-source-garbage-collection-before-sourceopen-expected.txt: Added.
* http/tests/media/media-source/video-media-source-garbage-collection-before-sourceopen.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132115 268f45cc-cd09-0410-ab3c-d52691b4dbfc
r131955 is has improper function call in LinkHashChromium.cpp
https://bugs.webkit.org/show_bug.cgi?id=100008

Reviewed by Alexey Proskuryakov.

Followup fix to r131955 for chromium platform.  Added call to 
(const UChar*, unsigned) version of visitedLinkHash from String& version.

* platform/chromium/LinkHashChromium.cpp:
(WebCore::visitedLinkHash):


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

* platform/chromium-mac-lion/editing/selection/3690703-2-expected.png:
* platform/chromium-mac-lion/editing/selection/3690703-2-expected.txt: Added.
* platform/chromium-mac-lion/editing/selection/3690703-expected.png:
* platform/chromium-mac-lion/editing/selection/3690703-expected.txt: Added.
* platform/chromium-mac-lion/editing/selection/3690719-expected.png:
* platform/chromium-mac-lion/editing/selection/3690719-expected.txt: Added.
* platform/chromium-mac-lion/editing/selection/4397952-expected.png:
* platform/chromium-mac-lion/editing/selection/4397952-expected.txt: Added.
* platform/chromium-mac-lion/editing/selection/5240265-expected.png:
* platform/chromium-mac-lion/editing/selection/5240265-expected.txt: Added.
* platform/chromium-mac-lion/editing/selection/selection-button-text-expected.png:
* platform/chromium-mac-lion/editing/selection/selection-button-text-expected.txt: Added.
* platform/chromium-mac-lion/fast/block/float/032-expected.txt: Added.
* platform/chromium-mac-lion/fast/block/float/float-avoidance-expected.png:
* platform/chromium-mac-lion/fast/block/float/float-avoidance-expected.txt: Added.
* platform/chromium-mac-lion/fast/css/continuationCrash-expected.png:
* platform/chromium-mac-lion/fast/css/continuationCrash-expected.txt: Added.
* platform/chromium-mac-lion/fast/css/margin-top-bottom-dynamic-expected.png:
* platform/chromium-mac-lion/fast/css/margin-top-bottom-dynamic-expected.txt: Added.
* platform/chromium-mac-lion/fast/css/rtl-ordering-expected.png:
* platform/chromium-mac-lion/fast/css/rtl-ordering-expected.txt: Added.
* platform/chromium-mac-lion/fast/dom/HTMLTextAreaElement/reset-textarea-expected.png:
* platform/chromium-mac-lion/fast/dom/HTMLTextAreaElement/reset-textarea-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/001-expected.png:
* platform/chromium-mac-lion/fast/forms/001-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/blankbuttons-expected.png:
* platform/chromium-mac-lion/fast/forms/blankbuttons-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/box-shadow-override-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/box-shadow-override-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/button-sizes-expected.png:
* platform/chromium-mac-lion/fast/forms/button-sizes-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/button-style-color-expected.png:
* platform/chromium-mac-lion/fast/forms/button-style-color-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/button-table-styles-expected.png:
* platform/chromium-mac-lion/fast/forms/button-text-transform-expected.png:
* platform/chromium-mac-lion/fast/forms/button-text-transform-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/control-restrict-line-height-expected.png:
* platform/chromium-mac-lion/fast/forms/control-restrict-line-height-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/date-multiple-fields: Added.
* platform/chromium-mac-lion/fast/forms/date-multiple-fields/date-multiple-fields-appearance-basic-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/date-multiple-fields/date-multiple-fields-appearance-l10n-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/date-multiple-fields/date-multiple-fields-appearance-pseudo-classes-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/date-multiple-fields/date-multiple-fields-appearance-pseudo-elements-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/date-multiple-fields/date-multiple-fields-appearance-style-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/file/file-input-direction-expected.png:
* platform/chromium-mac-lion/fast/forms/file/file-input-direction-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/file/file-input-disabled-expected.png:
* platform/chromium-mac-lion/fast/forms/file/file-input-disabled-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/file/file-input-pressed-state-expected.png:
* platform/chromium-mac-lion/fast/forms/file/input-file-re-render-expected.png:
* platform/chromium-mac-lion/fast/forms/file/input-file-re-render-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/form-element-geometry-expected.png:
* platform/chromium-mac-lion/fast/forms/form-element-geometry-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/formmove3-expected.png:
* platform/chromium-mac-lion/fast/forms/formmove3-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/input-button-sizes-expected.png:
* platform/chromium-mac-lion/fast/forms/input-button-sizes-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/input-value-expected.png:
* platform/chromium-mac-lion/fast/forms/input-value-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/menulist-clip-expected.png:
* platform/chromium-mac-lion/fast/forms/menulist-clip-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/targeted-frame-submission-expected.png:
* platform/chromium-mac-lion/fast/forms/targeted-frame-submission-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/time-multiple-fields: Added.
* platform/chromium-mac-lion/fast/forms/time-multiple-fields/time-multiple-fields-appearance-basic-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/time-multiple-fields/time-multiple-fields-appearance-disabled-readonly-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/time-multiple-fields/time-multiple-fields-appearance-pseudo-elements-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/validation-message-appearance-expected.png:
* platform/chromium-mac-lion/fast/forms/validation-message-appearance-expected.txt: Added.
* platform/chromium-mac-lion/fast/forms/week-multiple-fields: Added.
* platform/chromium-mac-lion/fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements-expected.png: Added.
* platform/chromium-mac-lion/fast/forms/week-multiple-fields/week-multiple-fields-appearance-style-expected.png: Added.
* platform/chromium-mac-lion/fast/overflow/scroll-nested-positioned-layer-in-overflow-expected.png:
* platform/chromium-mac-lion/fast/overflow/scroll-nested-positioned-layer-in-overflow-expected.txt: Added.
* platform/chromium-mac-lion/fast/overflow/scrollRevealButton-expected.png:
* platform/chromium-mac-lion/fast/overflow/scrollRevealButton-expected.txt: Added.
* platform/chromium-mac-lion/fast/replaced/replaced-breaking-expected.png:
* platform/chromium-mac-lion/fast/replaced/replaced-breaking-expected.txt: Added.
* platform/chromium-mac-lion/fast/replaced/width100percent-button-expected.png:
* platform/chromium-mac-lion/fast/replaced/width100percent-button-expected.txt: Added.
* platform/chromium-mac-lion/fast/speech/input-appearance-searchandspeech-expected.png: Added.
* platform/chromium-mac-lion/fast/speech/input-appearance-searchandspeech-expected.txt: Added.
* platform/chromium-mac-lion/fast/text/international/text-spliced-font-expected.png: Added.
* platform/chromium-mac-lion/fast/text/international/text-spliced-font-expected.txt: Added.
* platform/chromium-mac-lion/fast/text/international/vertical-text-glyph-test-expected.png:
* platform/chromium-mac-lion/fast/text/international/vertical-text-glyph-test-expected.txt:
* platform/chromium-mac-lion/fast/text/textIteratorNilRenderer-expected.png:
* platform/chromium-mac-lion/fast/text/textIteratorNilRenderer-expected.txt: Added.
* platform/chromium-mac-lion/http/tests/navigation/javascriptlink-frames-expected.png:
* platform/chromium-mac-lion/http/tests/navigation/javascriptlink-frames-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug1188-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug1188-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug1318-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug1318-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug138725-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug138725-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug18359-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug18359-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug2479-2-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug2479-2-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug2479-3-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug2479-3-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug2479-4-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug26178-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug26178-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug28928-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug28928-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug33855-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug33855-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug39209-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug39209-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug4429-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug4429-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug46368-1-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug46368-1-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug46368-2-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug46368-2-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug51037-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug51037-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug51727-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug51727-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug60749-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug60749-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/bugs/bug7342-expected.png:
* platform/chromium-mac-lion/tables/mozilla/bugs/bug7342-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/collapsing_borders/bug41262-4-expected.png:
* platform/chromium-mac-lion/tables/mozilla/collapsing_borders/bug41262-4-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/dom/tableDom-expected.png:
* platform/chromium-mac-lion/tables/mozilla/dom/tableDom-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla/other/move_row-expected.png:
* platform/chromium-mac-lion/tables/mozilla/other/move_row-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla_expected_failures/bugs/bug1725-expected.png:
* platform/chromium-mac-lion/tables/mozilla_expected_failures/bugs/bug1725-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt: Added.
* platform/chromium-mac-lion/tables/mozilla_expected_failures/bugs/bug58402-2-expected.png:
* platform/chromium-mac-lion/tables/mozilla_expected_failures/bugs/bug58402-2-expected.txt: Added.
* platform/chromium-mac-snowleopard/editing/selection/3690703-2-expected.png:
* platform/chromium-mac-snowleopard/editing/selection/3690703-expected.png:
* platform/chromium-mac-snowleopard/editing/selection/3690719-expected.png:
* platform/chromium-mac-snowleopard/editing/selection/4397952-expected.png:
* platform/chromium-mac-snowleopard/editing/selection/5240265-expected.png:
* platform/chromium-mac-snowleopard/editing/selection/selection-button-text-expected.png:
* platform/chromium-mac-snowleopard/fast/block/float/float-avoidance-expected.png:
* platform/chromium-mac-snowleopard/fast/css/continuationCrash-expected.png:
* platform/chromium-mac-snowleopard/fast/css/margin-top-bottom-dynamic-expected.png:
* platform/chromium-mac-snowleopard/fast/css/rtl-ordering-expected.png:
* platform/chromium-mac-snowleopard/fast/dom/HTMLTextAreaElement/reset-textarea-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/001-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/blankbuttons-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/box-shadow-override-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/button-sizes-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/button-style-color-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/button-table-styles-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/button-text-transform-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/control-restrict-line-height-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/date-multiple-fields/date-multiple-fields-appearance-basic-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/date-multiple-fields/date-multiple-fields-appearance-l10n-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/date-multiple-fields/date-multiple-fields-appearance-pseudo-classes-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/date-multiple-fields/date-multiple-fields-appearance-pseudo-elements-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/date-multiple-fields/date-multiple-fields-appearance-style-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/file/file-input-direction-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/file/file-input-disabled-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/file/file-input-pressed-state-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/file/input-file-re-render-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/form-element-geometry-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/formmove3-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/input-button-sizes-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/input-value-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/menulist-clip-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/targeted-frame-submission-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/time-multiple-fields/time-multiple-fields-appearance-basic-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/time-multiple-fields/time-multiple-fields-appearance-disabled-readonly-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/time-multiple-fields/time-multiple-fields-appearance-pseudo-elements-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/validation-message-appearance-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/week-multiple-fields/week-multiple-fields-appearance-basic-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-classes-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/week-multiple-fields/week-multiple-fields-appearance-pseudo-elements-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/week-multiple-fields/week-multiple-fields-appearance-style-expected.png:
* platform/chromium-mac-snowleopard/fast/overflow/scroll-nested-positioned-layer-in-overflow-expected.png:
* platform/chromium-mac-snowleopard/fast/overflow/scrollRevealButton-expected.png:
* platform/chromium-mac-snowleopard/fast/replaced/replaced-breaking-expected.png:
* platform/chromium-mac-snowleopard/fast/replaced/width100percent-button-expected.png:
* platform/chromium-mac-snowleopard/fast/text/international/text-spliced-font-expected.png:
* platform/chromium-mac-snowleopard/fast/text/international/text-spliced-font-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/text/international/vertical-text-glyph-test-expected.png:
* platform/chromium-mac-snowleopard/fast/text/international/vertical-text-glyph-test-expected.txt:
* platform/chromium-mac-snowleopard/fast/text/textIteratorNilRenderer-expected.png:
* platform/chromium-mac-snowleopard/http/tests/navigation/javascriptlink-frames-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug1188-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug1318-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug138725-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug18359-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug2479-2-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug2479-3-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug26178-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug28928-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug33855-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug39209-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug4429-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug46368-1-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug46368-2-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug51037-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug51727-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug60749-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug7342-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/collapsing_borders/bug41262-4-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/dom/tableDom-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/other/move_row-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla_expected_failures/bugs/bug1725-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla_expected_failures/bugs/bug58402-2-expected.png:
* platform/chromium-win-xp/fast/text/international/text-spliced-font-expected.png: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132117 268f45cc-cd09-0410-ab3c-d52691b4dbfc
TextureMapperSurfaceBackingStore should check if GraphicsSurface is valid.
https://bugs.webkit.org/show_bug.cgi?id=100002

Reviewed by Kenneth Rohde Christiansen.

* platform/graphics/texmap/TextureMapperBackingStore.cpp:
(WebCore::TextureMapperSurfaceBackingStore::setGraphicsSurface):
    Check if a surface has been created before accessing the pointer.
(WebCore::TextureMapperSurfaceBackingStore::paintToTextureMapper):
    Check if m_graphicsSurface is a valid pointer before dereferencing it.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132118 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Context menu generated from touch gestures on textareas has
context of the cursor position instead of the position where the event occurs.
https://bugs.webkit.org/show_bug.cgi?id=99520

Patch by Varun Jain <varunjain@chromium.org> on 2012-10-22
Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Send a synthetic mouse down event for context menu-summoning-gesture events so
that textareas can correctly set cursors before receiving the context menu event.

Test: fast/events/touch/gesture/right-click-gestures-set-cursor-at-correct-position.html

* page/EventHandler.cpp:
(WebCore::EventHandler::handleGestureEvent):
(WebCore::EventHandler::handleGestureTwoFingerTap):
(WebCore):
(WebCore::EventHandler::sendContextMenuEventForGesture):
* page/EventHandler.h:
(EventHandler):

Source/WebKit/chromium:

Send a synthetic mouse down event for context menu-summoning-gesture events so
that textareas can correctly set cursors before receiving the context menu event.
Also in this change, WebInputEvent::GestureTwoFingerTap now follows the same
code path as WebInputEvent::GestureLongPress, hence fixing this bug for both gestures.

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::handleGestureEvent):

LayoutTests:

Send a synthetic mouse down event for context menu-summoning-gesture events so that
textareas can correctly set cursors before receiving the context menu event.

* fast/events/touch/gesture/right-click-gestures-set-cursor-at-correct-position.html: Added.
* platform/chromium/fast/events/touch/gesture/right-click-gestures-set-cursor-at-correct-position-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132119 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] Regression(r131990): plugins/npruntime/remove-property.html started failing
https://bugs.webkit.org/show_bug.cgi?id=99977

Reviewed by Alexey Proskuryakov.

Source/WebKit2:

Remove int32_t casts - the ArgumentDecoder::decode overload that takes a const int would cause
a temporary to be created which the number was then decoded into.

* Shared/Plugins/NPIdentifierData.cpp:
(WebKit::NPIdentifierData::encode):
(WebKit::NPIdentifierData::decode):

LayoutTests:

Remove now passing test.

* platform/efl-wk2/TestExpectations:

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