Refactor EventDispatcher::dispatchEvent() so that we can call each phase (Caputure, Target and Bubbling) of event dispatching separately.
https://bugs.webkit.org/show_bug.cgi?id=92621

Reviewed by Dimitri Glazkov.

This is one of the required refactorings to support event
propagation for seamless iframes.  I've removed 'goto' statements
from EventDispatcher::dispatchEvent() as a result.

I've verified that all separated functions are successfully
inlined. I could not see any performance regression.  The
benchmark result is:

Before this patch:
% ./Tools/Scripts/run-perf-tests PerformanceTests/DOM/Events.html
Running 1 tests
Running DOM/Events.html (1 of 1)
RESULT DOM: Events= 243.986607143 ms
median= 242.297619048 ms, stdev= 5.74748351315 ms, min= 239.80952381 ms, max= 268.0 ms

After this patch:
% ./Tools/Scripts/run-perf-tests PerformanceTests/DOM/Events.html
Running 1 tests
Running DOM/Events.html (1 of 1)
RESULT DOM: Events= 242.291666667 ms
median= 240.452380952 ms, stdev= 5.8718643632 ms, min= 238.214285714 ms, max= 266.5 ms

No new tests, no behavior change.

* dom/EventDispatcher.cpp:
(WebCore::EventDispatcher::dispatchEvent):
(WebCore::EventDispatcher::dispatchEventPreProcess):
(WebCore):
(WebCore::EventDispatcher::dispatchEventAtCapturing):
(WebCore::EventDispatcher::dispatchEventAtTarget):
(WebCore::EventDispatcher::dispatchEventAtBubbling):
(WebCore::EventDispatcher::dispatchEventPostProcess):
(WebCore::EventDispatcher::topEventContext):
* dom/EventDispatcher.h:
(WebCore):
(EventDispatcher):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
media/video-currentTime-delay.html shouldn't be a performance test, so remove artificial deadline.
https://bugs.webkit.org/show_bug.cgi?id=92816

Unreviewed test cleanup.


* media/video-currentTime-delay.html:
* platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124292 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Layout tests media/event-attributes.html and media/video-playbackrate.html failing
https://bugs.webkit.org/show_bug.cgi?id=73692

Unreviewed gardening.

Should be mostly/all cured.  See http://crbug.com/138583 for ongoing details.


* platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed EFL gardening.
Marked the following tests as pass, but they don't pass on 32-bits machines.

sputnik/Conformance/15_Native_Objects/15.8_Math/15.8.2/15.8.2.16_sin/S15.8.2.16_A7.html
sputnik/Conformance/15_Native_Objects/15.8_Math/15.8.2/15.8.2.18_tan/S15.8.2.18_A7.html
svg/css/stars-with-shadow.html

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124294 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Float imprecision causes incorrect wrapping in LineLayout with subpixel layout
https://bugs.webkit.org/show_bug.cgi?id=92778

Reviewed by Eric Seidel.

Source/WebCore:

Due to float imprecision an incorrect wrapping decision is made in
certain cases where the values being compare are close but not exactly
the same. This can happen as the size of blocks is represented in layout
units while line layout uses floats.

Test: fast/sub-pixel/inline-block-should-not-wrap.html

* rendering/RenderBlockLineLayout.cpp:
(WebCore::LineWidth::fitsOnLine):
Use LayoutUnit::epsilon when comparing values as that is the maximum
precision we support.

LayoutTests:

Add test ensuring that an inline block isn't wrapped incorrectly.

* fast/sub-pixel/inline-block-should-not-wrap-expected.html: Added.
* fast/sub-pixel/inline-block-should-not-wrap.html: Added.
* platform/mac-lion/Skipped:
* platform/mac-snowleopard/Skipped:
* platform/mac-wk2/Skipped:
* platform/mac/Skipped:
* platform/qt-4.8/Skipped:
* platform/qt/Skipped:
* platform/win-wk2/Skipped:
* platform/win-xp/Skipped:
* platform/win/Skipped:
* platform/wincairo/Skipped:
* platform/wk2/Skipped:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124295 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Rebaselines and test expectation updates.
https://bugs.webkit.org/show_bug.cgi?id=66953
https://bugs.webkit.org/show_bug.cgi?id=72746
https://bugs.webkit.org/show_bug.cgi?id=74157
https://bugs.webkit.org/show_bug.cgi?id=81145
https://bugs.webkit.org/show_bug.cgi?id=83051

Unreviewed, test expectation updates.

Mostly rebaselining for https://bugs.webkit.org/show_bug.cgi?id=72746 .

* platform/chromium-linux-x86/fast/writing-mode: Added.
* platform/chromium-linux-x86/fast/writing-mode/english-lr-text-expected.png: Added.
* platform/chromium-linux-x86/transitions: Added.
* platform/chromium-linux-x86/transitions/default-timing-function-expected.png: Added.
* platform/chromium-linux-x86/transitions/svg-text-shadow-transition-expected.png: Added.
* platform/chromium-linux/fast/repaint/box-shadow-h-expected.png:
* platform/chromium-linux/fast/repaint/box-shadow-v-expected.png:
* platform/chromium-linux/fast/repaint/text-shadow-expected.png:
* platform/chromium-linux/fast/repaint/text-shadow-horizontal-expected.png:
* platform/chromium-linux/fast/text/shadow-no-blur-expected.png:
* platform/chromium-linux/fast/text/shadow-translucent-fill-expected.png:
* platform/chromium-linux/fast/text/stroking-decorations-expected.png:
* platform/chromium-linux/fast/text/stroking-expected.png:
* platform/chromium-linux/fast/writing-mode/english-lr-text-expected.png:
* platform/chromium-linux/transitions/default-timing-function-expected.png:
* platform/chromium-linux/transitions/svg-text-shadow-transition-expected.png:
* platform/chromium-mac-snowleopard/fast/repaint/box-shadow-h-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/repaint/box-shadow-v-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/repaint/text-shadow-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/repaint/text-shadow-horizontal-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/text/shadow-no-blur-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/text/shadow-translucent-fill-expected.png:
* platform/chromium-mac-snowleopard/fast/text/stroking-expected.png: Removed.
* platform/chromium-mac-snowleopard/transitions/cross-fade-border-image-expected.png:
* platform/chromium-mac-snowleopard/transitions/default-timing-function-expected.png: Added.
* platform/chromium-mac-snowleopard/transitions/svg-text-shadow-transition-expected.png: Added.
* platform/chromium-mac/fast/box-shadow/single-pixel-shadow-expected.png: Added.
* platform/chromium-mac/fast/repaint/box-shadow-h-expected.png:
* platform/chromium-mac/fast/repaint/box-shadow-v-expected.png:
* platform/chromium-mac/fast/repaint/text-shadow-expected.png:
* platform/chromium-mac/fast/repaint/text-shadow-horizontal-expected.png:
* platform/chromium-mac/fast/text/shadow-no-blur-expected.png:
* platform/chromium-mac/fast/text/stroking-decorations-expected.png:
* platform/chromium-mac/fast/writing-mode/english-lr-text-expected.png:
* platform/chromium-mac/transitions/default-timing-function-expected.png:
* platform/chromium-mac/transitions/svg-text-shadow-transition-expected.png:
* platform/chromium-win-xp/fast/text/shadow-translucent-fill-expected.png:
* platform/chromium-win-xp/fast/text/stroking-decorations-expected.png: Added.
* platform/chromium-win-xp/fast/text/stroking-expected.png: Added.
* platform/chromium-win-xp/fast/writing-mode/english-lr-text-expected.png: Added.
* platform/chromium-win-xp/transitions/svg-text-shadow-transition-expected.png:
* platform/chromium-win/fast/repaint/box-shadow-h-expected.png:
* platform/chromium-win/fast/repaint/box-shadow-v-expected.png:
* platform/chromium-win/fast/text/shadow-translucent-fill-expected.png:
* platform/chromium-win/fast/text/stroking-decorations-expected.png:
* platform/chromium-win/fast/text/stroking-expected.png:
* platform/chromium-win/fast/writing-mode/english-lr-text-expected.png:
* platform/chromium-win/transitions/default-timing-function-expected.png:
* platform/chromium-win/transitions/svg-text-shadow-transition-expected.png:
* platform/chromium/TestExpectations:



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