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