[Chromium] Return an accurate exit code when running Android suites, and wait after restarting adb as root
https://bugs.webkit.org/show_bug.cgi?id=103065

Reviewed by Dirk Pranke.

This addresses two further reliability issues in the Android test running
scripts. Firstly, the run_tests.py script needs to have the --exit_code
argument passed in order to return non-zero codes, which we need for the
build master to distinguish failures from successful runs.

Secondly, it modifies the layout test runner to briefly wait (through
the wait-for-device command) after requesting a device to switch to root
mode. Without this waiting period, commands might get lost and thereby
unexpectedly fail.

* Scripts/run-api-tests:
* Scripts/run-chromium-webkit-unit-tests:
* Scripts/webkitpy/layout_tests/port/chromium_android.py:
(ChromiumAndroidDriver._setup_test):
(ChromiumAndroidDriver._restart_adb_as_root):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Text Autosizing: Improve handling of nested comments on reddit.com
https://bugs.webkit.org/show_bug.cgi?id=102409

Patch by John Mellor <johnme@chromium.org> on 2012-11-22
Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

No longer consider overflow != visible as requiring an independent
cluster. Some sites (e.g. reddit.com) wrap ordinary blocks (such as
comments) in overflow:hidden or overflow:auto, for various reasons
(like allowing it to be scrollable, or clipping an element that sticks
out). These reasons are not sufficient justification for a new cluster.

On reddit.com this means that comments will all get the same multiplier,
rather than being independently assigned a variety of multipliers based
on how much text each comment contains (etc), which significantly
improves the look.

Test: fast/text-autosizing/cluster-narrow-in-wide-ohidden.html

* rendering/TextAutosizer.cpp:
(WebCore::TextAutosizer::isAutosizingCluster):

LayoutTests:

Added test to confirm that overflow:hidden no longer triggers a cluster.

* fast/text-autosizing/cluster-narrow-in-wide-ohidden-expected.html: Added.
* fast/text-autosizing/cluster-narrow-in-wide-ohidden.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Guard against a lost focusedNode that input handler isn't yet informed of.
https://bugs.webkit.org/show_bug.cgi?id=103071

Reviewed by Rob Buis.

Fix potential for a crash if input mode is active but
we can't get a focusedNode.

Reviewed Internally by Gen Mak.

* WebKitSupport/SelectionHandler.cpp:
(BlackBerry::WebKit::SelectionHandler::setCaretPosition):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix the MIPS build after r135330
https://bugs.webkit.org/show_bug.cgi?id=102872

Patch by Balazs Kilvady <kilvadyb@homejinni.com> on 2012-11-22
Reviewed by Gavin Barraclough.

Revert/replace functions added to MIPS port.

* assembler/MIPSAssembler.h:
(JSC::MIPSAssembler::revertJumpToMove):
(MIPSAssembler):
(JSC::MIPSAssembler::replaceWithJump):
* assembler/MacroAssemblerMIPS.h:
(MacroAssemblerMIPS):
(JSC::MacroAssemblerMIPS::startOfBranchPtrWithPatchOnRegister):
(JSC::MacroAssemblerMIPS::revertJumpReplacementToBranchPtrWithPatch):
(JSC::MacroAssemblerMIPS::startOfPatchableBranchPtrWithPatchOnAddress):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-webkit-mask shorthand switches -webkit-mask-clip and -webkit-mask-origin values
https://bugs.webkit.org/show_bug.cgi?id=103083

Reviewed by Antti Koivisto.

Source/WebCore:

The order of CSSPropertyWebkitMaskOrigin and CSSPropertyWebkitMaskClip was not correct
for property value. Just changed the order in the property array to match behavior of
background and CSS Masking spec.

Test: fast/masking/parsing-mask.html

* css/StylePropertyShorthand.cpp:
(WebCore::webkitMaskShorthand):

LayoutTests:

Add parser tests for -webkit-mask property.

* fast/masking/parsing-mask-expected.txt: Added.
* fast/masking/parsing-mask.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove PLATFORM(HAIKU) leftovers code
https://bugs.webkit.org/show_bug.cgi?id=103086

Reviewed by Antti Koivisto.

* platform/PlatformWheelEvent.h:
(PlatformWheelEvent):


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

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

* DEPS:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Update Web Notifications Implementation
https://bugs.webkit.org/show_bug.cgi?id=102621

Patch by Jeff Rogers <jrogers@rim.com> on 2012-11-22
Reviewed by George Staikos.

Source/WebKit:

Reviewed internally by George Staikos and Joe Mason.
Internal PR 172120
Add new Notification files and remove obsolete ones.

* PlatformBlackBerry.cmake:

Source/WebKit/blackberry:

Reviewed internally by George Staikos and Joe Mason
Internal PR 172120
Add new notifications implementation for the BlackBerry port. Rename
existing class to match Client naming. Adds NotificationManager
implementation for managing notifications and permissions, and logic
for passing the notifications to the platform provider.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::WebPagePrivate):
(BlackBerry::WebKit::WebPagePrivate::init):
(BlackBerry::WebKit::WebPage::updateNotificationPermission):
(WebKit):
(BlackBerry::WebKit::WebPage::notificationClicked):
(BlackBerry::WebKit::WebPage::notificationClosed):
(BlackBerry::WebKit::WebPage::notificationError):
(BlackBerry::WebKit::WebPage::notificationShown):
* Api/WebPage.h:
* Api/WebPageClient.h:
* Api/WebPage_p.h:
(WebPagePrivate):
(BlackBerry::WebKit::WebPagePrivate::notificationManager):
* WebCoreSupport/NotificationClientBlackBerry.cpp: Added.
(WebCore):
(WebCore::NotificationClientBlackBerry::NotificationClientBlackBerry):
(WebCore::NotificationClientBlackBerry::show):
(WebCore::NotificationClientBlackBerry::cancel):
(WebCore::NotificationClientBlackBerry::clearNotifications):
(WebCore::NotificationClientBlackBerry::notificationObjectDestroyed):
(WebCore::NotificationClientBlackBerry::notificationControllerDestroyed):
(WebCore::NotificationClientBlackBerry::requestPermission):
(WebCore::NotificationClientBlackBerry::cancelRequestsForPermission):
(WebCore::NotificationClientBlackBerry::checkPermission):
* WebCoreSupport/NotificationClientBlackBerry.h: Added.
(WebKit):
(WebCore):
(NotificationClientBlackBerry):
* WebCoreSupport/NotificationPresenterImpl.cpp: Removed.
* WebCoreSupport/NotificationPresenterImpl.h: Removed.
* WebKitSupport/NotificationManager.cpp: Added.
(WebKit):
(BlackBerry::WebKit::NotificationManager::NotificationManager):
(BlackBerry::WebKit::NotificationManager::~NotificationManager):
(BlackBerry::WebKit::NotificationManager::show):
(BlackBerry::WebKit::NotificationManager::cancel):
(BlackBerry::WebKit::NotificationManager::clearNotifications):
(BlackBerry::WebKit::NotificationManager::notificationObjectDestroyed):
(BlackBerry::WebKit::NotificationManager::requestPermission):
(BlackBerry::WebKit::NotificationManager::cancelRequestsForPermission):
(BlackBerry::WebKit::NotificationManager::checkPermission):
(BlackBerry::WebKit::NotificationManager::updatePermission):
(BlackBerry::WebKit::NotificationManager::notificationClicked):
(BlackBerry::WebKit::NotificationManager::notificationClosed):
(BlackBerry::WebKit::NotificationManager::notificationError):
(BlackBerry::WebKit::NotificationManager::notificationShown):
(BlackBerry::WebKit::NotificationManager::removeNotificationFromContextMap):
* WebKitSupport/NotificationManager.h: Added.
(WebKit):
(NotificationManager):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[V8] Make worker context prototype chain match other browsers
https://bugs.webkit.org/show_bug.cgi?id=103057

Patch by Dan Carney <dcarney@google.com> on 2012-11-22
Reviewed by Adam Barth.

The following should be defined in a worker:
Object.getOwnPropertyDescriptor(this.__proto__, "postMessage")
It is currently undefined in chrome only. This patch fixes that.

No new tests. No change in functionality.

* bindings/scripts/CodeGeneratorV8.pm:
(GenerateImplementation):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Test expectations update after Skia changes.

* fast/repaint/line-flow-with-floats-in-regions-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/line-flow-with-floats-in-regions-expected.png.
* platform/chromium-linux-x86/fast/images/imagemap-circle-focus-ring-expected.txt: Added.
* platform/chromium-linux-x86/fast/images/imagemap-focus-ring-outline-color-expected.txt: Added.
* platform/chromium-linux-x86/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.txt: Added.
* platform/chromium-linux-x86/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.txt: Added.
* platform/chromium-linux-x86/fast/images/imagemap-polygon-focus-ring-expected.txt: Added.
* platform/chromium-linux-x86/platform/chromium/virtual/deferred/fast/images/imagemap-circle-focus-ring-expected.txt: Added.
* platform/chromium-linux-x86/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-expected.txt: Added.
* platform/chromium-linux-x86/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.txt: Added.
* platform/chromium-linux-x86/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.txt: Added.
* platform/chromium-linux-x86/platform/chromium/virtual/deferred/fast/images/imagemap-polygon-focus-ring-expected.txt: Added.
* platform/chromium-linux/fast/css/color-correction-expected.png: Added.
* platform/chromium-linux/fast/css/color-correction-on-background-image-expected.png: Added.
* platform/chromium-linux/fast/css/color-correction-on-backgrounds-expected.png: Added.
* platform/chromium-linux/fast/css/color-correction-on-box-shadow-expected.png: Added.
* platform/chromium-linux/fast/css/color-correction-on-text-expected.png: Added.
* platform/chromium-linux/fast/css/color-correction-on-text-shadow-expected.png: Added.
* platform/chromium-linux/fast/css/color-correction-untagged-images-expected.png: Added.
* platform/chromium-linux/fast/css/font-smoothing-expected.png: Added.
* platform/chromium-linux/fast/history/visited-link-background-color-expected.png: Copied from LayoutTests/platform/chromium-mac/fast/history/visited-link-background-color-expected.png.
* platform/chromium-linux/fast/images/imagemap-circle-focus-ring-expected.png: Added.
* platform/chromium-linux/fast/images/imagemap-circle-focus-ring-expected.txt: Added.
* platform/chromium-linux/fast/images/imagemap-focus-ring-outline-color-expected.png: Added.
* platform/chromium-linux/fast/images/imagemap-focus-ring-outline-color-expected.txt: Added.
* platform/chromium-linux/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.png: Added.
* platform/chromium-linux/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.txt: Added.
* platform/chromium-linux/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.png: Added.
* platform/chromium-linux/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.txt: Added.
* platform/chromium-linux/fast/images/imagemap-polygon-focus-ring-expected.png: Added.
* platform/chromium-linux/fast/images/imagemap-polygon-focus-ring-expected.txt: Added.
* platform/chromium-linux/fast/text/atsui-pointtooffset-calls-cg-expected.png: Added.
* platform/chromium-linux/fast/text/atsui-rtl-override-selection-expected.png: Added.
* platform/chromium-linux/fast/text/line-initial-and-final-swashes-expected.png: Added.
* platform/chromium-linux/fast/text/midword-break-before-surrogate-pair-2-expected.png: Copied from LayoutTests/platform/chromium-mac/fast/text/midword-break-before-surrogate-pair-2-expected.png.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/imagemap-circle-focus-ring-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/imagemap-circle-focus-ring-expected.txt: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-expected.txt: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.txt: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.txt: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/imagemap-polygon-focus-ring-expected.png: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/imagemap-polygon-focus-ring-expected.txt: Added.
* platform/chromium-linux/platform/chromium/virtual/deferred/fast/images/object-image-expected.png: Copied from LayoutTests/platform/chromium-mac/fast/text/midword-break-before-surrogate-pair-2-expected.png.
* platform/chromium-mac-lion/fast/repaint/line-flow-with-floats-in-regions-expected.png:
* platform/chromium-mac-lion/svg/batik/filters/filterRegions-expected.png:
* platform/chromium-mac-lion/svg/batik/paints/gradientLimit-expected.png:
* platform/chromium-mac-lion/svg/batik/text/smallFonts-expected.png:
* platform/chromium-mac-lion/svg/batik/text/textDecoration-expected.png:
* platform/chromium-mac-lion/svg/batik/text/textEffect-expected.png:
* platform/chromium-mac-lion/svg/batik/text/textEffect2-expected.png:
* platform/chromium-mac-lion/svg/batik/text/textFeatures-expected.png:
* platform/chromium-mac-lion/svg/batik/text/textLayout-expected.png:
* platform/chromium-mac-lion/svg/batik/text/textLayout2-expected.png:
* platform/chromium-mac-lion/svg/batik/text/textProperties2-expected.png:
* platform/chromium-mac-snowleopard/fast/repaint/line-flow-with-floats-in-regions-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/filters/filterRegions-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/paints/gradientLimit-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/text/smallFonts-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/text/textDecoration-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/text/textEffect-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/text/textEffect2-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/text/textFeatures-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/text/textLayout-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/text/textLayout2-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/text/textProperties2-expected.png:
* platform/chromium-mac/fast/repaint/line-flow-with-floats-in-regions-expected.png:
* platform/chromium-mac/svg/batik/filters/filterRegions-expected.png:
* platform/chromium-mac/svg/batik/paints/gradientLimit-expected.png:
* platform/chromium-mac/svg/batik/text/smallFonts-expected.png:
* platform/chromium-mac/svg/batik/text/textDecoration-expected.png:
* platform/chromium-mac/svg/batik/text/textEffect-expected.png:
* platform/chromium-mac/svg/batik/text/textEffect2-expected.png:
* platform/chromium-mac/svg/batik/text/textFeatures-expected.png:
* platform/chromium-mac/svg/batik/text/textLayout-expected.png:
* platform/chromium-mac/svg/batik/text/textLayout2-expected.png:
* platform/chromium-mac/svg/batik/text/textProperties2-expected.png:
* platform/chromium-win-xp/fast/images/imagemap-circle-focus-ring-expected.txt: Added.
* platform/chromium-win-xp/fast/images/imagemap-focus-ring-outline-color-expected.txt: Added.
* platform/chromium-win-xp/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.txt: Added.
* platform/chromium-win-xp/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.txt: Added.
* platform/chromium-win-xp/fast/images/imagemap-polygon-focus-ring-expected.txt: Added.
* platform/chromium-win-xp/platform/chromium/virtual/deferred/fast/images/imagemap-circle-focus-ring-expected.txt: Added.
* platform/chromium-win-xp/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-expected.txt: Added.
* platform/chromium-win-xp/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.txt: Added.
* platform/chromium-win-xp/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.txt: Added.
* platform/chromium-win-xp/platform/chromium/virtual/deferred/fast/images/imagemap-polygon-focus-ring-expected.txt: Added.
* platform/chromium-win/fast/images/imagemap-circle-focus-ring-expected.png: Added.
* platform/chromium-win/fast/images/imagemap-focus-ring-outline-color-expected.png: Added.
* platform/chromium-win/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.png: Added.
* platform/chromium-win/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.png: Added.
* platform/chromium-win/fast/images/imagemap-polygon-focus-ring-expected.png: Added.
* platform/chromium-win/fast/repaint/line-flow-with-floats-in-regions-expected.png: Added.
* platform/chromium-win/fast/text/line-initial-and-final-swashes-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/deferred/fast/images/imagemap-circle-focus-ring-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/deferred/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.png: Added.
* platform/chromium-win/platform/chromium/virtual/deferred/fast/images/imagemap-polygon-focus-ring-expected.png: Added.
* platform/chromium-win/svg/batik/filters/filterRegions-expected.png:
* platform/chromium-win/svg/batik/paints/gradientLimit-expected.png:
* platform/chromium-win/svg/batik/text/smallFonts-expected.png:
* platform/chromium-win/svg/batik/text/textDecoration-expected.png:
* platform/chromium-win/svg/batik/text/textEffect-expected.png:
* platform/chromium-win/svg/batik/text/textEffect2-expected.png:
* platform/chromium-win/svg/batik/text/textFeatures-expected.png:
* platform/chromium-win/svg/batik/text/textLayout-expected.png:
* platform/chromium-win/svg/batik/text/textLayout2-expected.png:
* platform/chromium-win/svg/batik/text/textProperties2-expected.png:
* platform/chromium/TestExpectations:
* platform/chromium/fast/history/visited-link-background-color-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/history/visited-link-background-color-expected.png.
* platform/chromium/fast/repaint/line-flow-with-floats-in-regions-expected.png: Removed.
* platform/chromium/fast/text/midword-break-before-surrogate-pair-2-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/text/midword-break-before-surrogate-pair-2-expected.png.
* platform/efl-wk1/fast/css/font-smoothing-expected.png: Renamed from LayoutTests/platform/efl/fast/css/font-smoothing-expected.png.
* platform/efl-wk1/fast/history/visited-link-background-color-expected.png: Renamed from LayoutTests/platform/efl/fast/history/visited-link-background-color-expected.png.
* platform/efl-wk1/fast/images/imagemap-circle-focus-ring-expected.png: Renamed from LayoutTests/platform/efl/fast/images/imagemap-circle-focus-ring-expected.png.
* platform/efl-wk1/fast/images/imagemap-focus-ring-outline-color-expected.png: Renamed from LayoutTests/platform/efl/fast/images/imagemap-focus-ring-outline-color-expected.png.
* platform/efl-wk1/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.png: Renamed from LayoutTests/platform/efl/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.png.
* platform/efl-wk1/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.png: Renamed from LayoutTests/platform/efl/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.png.
* platform/efl-wk1/fast/images/imagemap-polygon-focus-ring-expected.png: Renamed from LayoutTests/platform/efl/fast/images/imagemap-polygon-focus-ring-expected.png.
* platform/efl-wk1/fast/text/atsui-pointtooffset-calls-cg-expected.png: Renamed from LayoutTests/platform/efl/fast/text/atsui-pointtooffset-calls-cg-expected.png.
* platform/efl-wk1/fast/text/atsui-rtl-override-selection-expected.png: Renamed from LayoutTests/platform/efl/fast/text/atsui-rtl-override-selection-expected.png.
* platform/efl-wk1/fast/text/line-initial-and-final-swashes-expected.png: Renamed from LayoutTests/platform/efl/fast/text/line-initial-and-final-swashes-expected.png.
* platform/efl-wk1/fast/text/line-initial-and-final-swashes-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/line-initial-and-final-swashes-expected.txt.
* platform/efl-wk1/fast/text/midword-break-before-surrogate-pair-2-expected.png: Renamed from LayoutTests/platform/efl/fast/text/midword-break-before-surrogate-pair-2-expected.png.
* platform/efl-wk1/svg/batik/filters/filterRegions-expected.png: Renamed from LayoutTests/platform/efl/svg/batik/filters/filterRegions-expected.png.
* platform/efl-wk1/svg/batik/text/smallFonts-expected.png: Renamed from LayoutTests/platform/efl/svg/batik/text/smallFonts-expected.png.
* platform/efl-wk1/svg/batik/text/textDecoration-expected.png: Renamed from LayoutTests/platform/efl/svg/batik/text/textDecoration-expected.png.
* platform/efl-wk1/svg/batik/text/textEffect-expected.png: Renamed from LayoutTests/platform/efl/svg/batik/text/textEffect-expected.png.
* platform/efl-wk1/svg/batik/text/textEffect2-expected.png: Renamed from LayoutTests/platform/efl/svg/batik/text/textEffect2-expected.png.
* platform/efl-wk1/svg/batik/text/textFeatures-expected.png: Renamed from LayoutTests/platform/efl/svg/batik/text/textFeatures-expected.png.
* platform/efl-wk1/svg/batik/text/textLayout-expected.png: Renamed from LayoutTests/platform/efl/svg/batik/text/textLayout-expected.png.
* platform/efl-wk1/svg/batik/text/textLayout2-expected.png: Renamed from LayoutTests/platform/efl/svg/batik/text/textLayout2-expected.png.
* platform/efl-wk1/svg/batik/text/textProperties2-expected.png: Renamed from LayoutTests/platform/efl/svg/batik/text/textProperties2-expected.png.
* platform/gtk/fast/repaint/line-flow-with-floats-in-regions-expected.png: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
window is missing Touch and TouchList - touch event conformance test failure
https://bugs.webkit.org/show_bug.cgi?id=96295

Patch by Rick Byers <rbyers@chromium.org> on 2012-11-22
Reviewed by Adam Barth.

Source/WebCore:

Add Touch and TouchList constructors to window for ENABLE(TOUCH_EVENTS).

Tests: fast/js/global-constructors.html
       fast/events/touch/document-create-touch-list.html

* page/DOMWindow.idl:

LayoutTests:

* fast/events/touch/document-create-touch-list-expected.txt:
* fast/events/touch/script-tests/document-create-touch-list.js: Add instanceof checks
* platform/efl/fast/js/global-constructors-expected.txt: Add new expected constructors
* platform/qt-5.0/fast/js/global-constructors-expected.txt: Add new expected constructors
* platform/qt/fast/js/global-constructors-expected.txt: Add new expected constructors

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r135549.
http://trac.webkit.org/changeset/135549
https://bugs.webkit.org/show_bug.cgi?id=103102

Multiple layout test crashes (Requested by yurys on #webkit).

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

Source/WebCore:

* rendering/RenderTable.cpp:
(WebCore::RenderTable::layout):
* rendering/RenderTable.h:
(RenderTable):

LayoutTests:

* fast/table/css-table-max-height-expected.txt: Removed.
* fast/table/css-table-max-height.html: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Expose DOM interface for CSS Device Adaptation
https://bugs.webkit.org/show_bug.cgi?id=95966

Patch by Thiago Marcos P. Santos <thiago.santos@intel.com> on 2012-11-23
Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Added V8 and JSC bindings for CSS Device Adapation.

Test: css3/device-adapt/opera/cssom-001.xhtml

* CMakeLists.txt:
* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.list.am:
* WebCore.gypi:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSCSSRuleCustom.cpp:
(WebCore::toJS):
* bindings/objc/DOMCSS.mm:
(kitClass):
* bindings/v8/custom/V8CSSRuleCustom.cpp:
(WebCore::wrap):
* css/CSSRule.idl:
* css/WebKitCSSViewportRule.idl: Added.
* page/DOMWindow.idl:

LayoutTests:

Imported a test submitted by Opera that tests the exposed interface.

* css3/device-adapt/opera/cssom-001-expected.txt: Added.
* css3/device-adapt/opera/cssom-001.xhtml: Added.
* platform/efl/fast/js/global-constructors-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Use custom private macros to define GObjects
https://bugs.webkit.org/show_bug.cgi?id=99705

Reviewed by Martin Robinson.

Add WEBKIT_DEFINE_TYPE macros, similar and compatible with
G_DEFINE_TYPE macros, to define GObject types. These macros also
define the init and finalize functions reducing the GObject
boilerplate and hiding the placement new syntax that causes some
confusion. The patch replaces the use of G_DEFINE_TYPE macros by
WEBKIT_DEFINE_TYPE ones and removes the init and finalize
implementations, moving custom code when needed to the private
struct constructor/destructor or constructed/dispose virtual
methods when appropriate.

* UIProcess/API/gtk/WebKitBackForwardList.cpp:
* UIProcess/API/gtk/WebKitBackForwardListItem.cpp:
(webkit_back_forward_list_item_class_init):
* UIProcess/API/gtk/WebKitContextMenu.cpp:
(webkitContextMenuDispose):
(webkit_context_menu_class_init):
* UIProcess/API/gtk/WebKitContextMenuItem.cpp:
(_WebKitContextMenuItemPrivate::~_WebKitContextMenuItemPrivate):
(_WebKitContextMenuItemPrivate):
(webkit_context_menu_item_class_init):
* UIProcess/API/gtk/WebKitCookieManager.cpp:
(_WebKitCookieManagerPrivate::~_WebKitCookieManagerPrivate):
(_WebKitCookieManagerPrivate):
* UIProcess/API/gtk/WebKitDownload.cpp:
(webkit_download_class_init):
* UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
(webkit_favicon_database_class_init):
* UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
(webkitFileChooserRequestDispose):
(webkit_file_chooser_request_class_init):
* UIProcess/API/gtk/WebKitFindController.cpp:
(webkit_find_controller_class_init):
* UIProcess/API/gtk/WebKitFormSubmissionRequest.cpp:
(webkitFormSubmissionRequestDispose):
(webkit_form_submission_request_class_init):
* UIProcess/API/gtk/WebKitGeolocationPermissionRequest.cpp:
(webkitGeolocationPermissionRequestDispose):
(webkit_geolocation_permission_request_class_init):
* UIProcess/API/gtk/WebKitHitTestResult.cpp:
(webkit_hit_test_result_class_init):
* UIProcess/API/gtk/WebKitNavigationPolicyDecision.cpp:
(webkit_navigation_policy_decision_class_init):
* UIProcess/API/gtk/WebKitPlugin.cpp:
(_WebKitPluginPrivate::~_WebKitPluginPrivate):
(_WebKitPluginPrivate):
(webkit_plugin_class_init):
* UIProcess/API/gtk/WebKitPolicyDecision.cpp:
(webkitPolicyDecisionDispose):
(webkit_policy_decision_class_init):
(webkit_policy_decision_use):
(webkit_policy_decision_ignore):
(webkit_policy_decision_download):
* UIProcess/API/gtk/WebKitPrintOperation.cpp:
(_WebKitPrintOperationPrivate::~_WebKitPrintOperationPrivate):
(_WebKitPrintOperationPrivate):
(webkit_print_operation_class_init):
* UIProcess/API/gtk/WebKitPrivate.h:
* UIProcess/API/gtk/WebKitResponsePolicyDecision.cpp:
(webkit_response_policy_decision_class_init):
* UIProcess/API/gtk/WebKitSecurityManager.cpp:
(webkit_security_manager_class_init):
* UIProcess/API/gtk/WebKitSettings.cpp:
(_WebKitSettingsPrivate::_WebKitSettingsPrivate):
(_WebKitSettingsPrivate):
(webkit_settings_class_init):
* UIProcess/API/gtk/WebKitURIRequest.cpp:
(webkit_uri_request_class_init):
* UIProcess/API/gtk/WebKitURIResponse.cpp:
(webkit_uri_response_class_init):
* UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
(webkit_uri_scheme_request_class_init):
* UIProcess/API/gtk/WebKitWebContext.cpp:
* UIProcess/API/gtk/WebKitWebInspector.cpp:
(_WebKitWebInspectorPrivate::~_WebKitWebInspectorPrivate):
(_WebKitWebInspectorPrivate):
(webkit_web_inspector_class_init):
* UIProcess/API/gtk/WebKitWebResource.cpp:
(webkit_web_resource_class_init):
* UIProcess/API/gtk/WebKitWebView.cpp:
(_WebKitWebViewPrivate::~_WebKitWebViewPrivate):
(_WebKitWebViewPrivate):
(webkitWebViewConstructed):
(webkitWebViewDispose):
(webkit_web_view_class_init):
* UIProcess/API/gtk/WebKitWebViewBase.cpp:
(_WebKitWebViewBasePrivate::_WebKitWebViewBasePrivate):
(_WebKitWebViewBasePrivate):
(_WebKitWebViewBasePrivate::~_WebKitWebViewBasePrivate):
(webkitWebViewBaseDispose):
(webkitWebViewBaseConstructed):
(webkit_web_view_base_class_init):
* UIProcess/API/gtk/WebKitWebViewBaseAccessible.cpp:
(webkit_web_view_base_accessible_class_init):
* UIProcess/API/gtk/WebKitWindowProperties.cpp:
(webkit_window_properties_class_init):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135565 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Update test expectations.

* platform/chromium-mac-lion/fast/css/font-weight-1-expected.png: Added.
* platform/chromium-mac-lion/fast/css/font-weight-1-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/css/font-weight-1-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/css/font-weight-1-expected.txt: Added.
* platform/chromium-mac/fast/css/font-weight-1-expected.png: Added.
* platform/chromium-mac/fast/css/font-weight-1-expected.txt: Added.
* platform/chromium-mac/platform/chromium/virtual/deferred/fast/images/pdf-as-image-expected.png: Added.
* platform/chromium-win/fast/css/font-weight-1-expected.png: Renamed from LayoutTests/platform/chromium/fast/css/font-weight-1-expected.png.
* platform/chromium-win/platform/chromium/virtual/deferred/fast/images/pdf-as-image-expected.png: Added.
* platform/efl-wk1/fast/css/font-weight-1-expected.png: Renamed from LayoutTests/platform/efl/fast/css/font-weight-1-expected.png.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed trivial Qt/Win build fix:

Include FormState.h/HTMLFormElement.h in the FrameLoaderClient
declaration because MSVC needs it. Also fix Q_DECL_EXPORT declarations
for functions that are supposed to be exported.

* Api/qwebelement.cpp:
* WebCoreSupport/FrameLoaderClientQt.h:
* WebCoreSupport/InitWebCoreQt.h:
(WebKit):
* WebCoreSupport/InitWebKitQt.h:
(WebKit):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Update test expectations.

* platform/chromium-mac-lion/fast/css/input-search-padding-expected.png:
* platform/chromium-mac-lion/svg/W3C-SVG-1.1/struct-dom-06-b-expected.png:
* platform/chromium-mac-lion/svg/batik/text/xmlSpace-expected.png:
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/struct-dom-06-b-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/text/xmlSpace-expected.png:
* platform/chromium-mac/fast/css/input-search-padding-expected.png:
* platform/chromium-mac/svg/W3C-SVG-1.1/struct-dom-06-b-expected.png:
* platform/chromium-mac/svg/batik/text/xmlSpace-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/struct-dom-06-b-expected.png:
* platform/chromium-win/svg/batik/text/xmlSpace-expected.png:
* platform/efl-wk1/fast/css/input-search-padding-expected.png: Renamed from LayoutTests/platform/efl/fast/css/input-search-padding-expected.png.
* platform/efl-wk1/svg/W3C-SVG-1.1/struct-dom-06-b-expected.png: Renamed from LayoutTests/platform/efl/svg/W3C-SVG-1.1/struct-dom-06-b-expected.png.
* platform/efl-wk1/svg/batik/text/xmlSpace-expected.png: Renamed from LayoutTests/platform/efl/svg/batik/text/xmlSpace-expected.png.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Platform support for Accessibility feature.
https://bugs.webkit.org/show_bug.cgi?id=100848

Patch by Krzysztof Czech <k.czech@samsung.com> on 2012-11-23
Reviewed by Gyuyoung Kim.

.:

Add support for ATK library.

* Source/cmake/FindATK.cmake: Added.
* Source/cmake/OptionsEfl.cmake:

Source/WebCore:

Add EFL platform's definitions to enable proper accessibility routines.

No new tests. Covered by existing layout tests.

* PlatformEfl.cmake: Add accessibility/atk content to compilation.
* accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::AccessibilityObject):
* accessibility/AccessibilityObject.h:
(AccessibilityObject):
* accessibility/efl/AccessibilityObjectEfl.cpp: Removed. No needed platform specific implementation. ATK shared implementation will be used.

Source/WTF:

Enable HAVE(ACCESSIBILITY) ifdefs so that EFL port can use it.

* wtf/Platform.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening after r135532. It made 3 tests fail.
https://bugs.webkit.org/show_bug.cgi?id=103073

Patch by János Badics <jbadics@inf.u-szeged.hu> on 2012-11-23

* platform/qt/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135570 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: inspector overlay is always updated when inspector is open
https://bugs.webkit.org/show_bug.cgi?id=103106

Reviewed by Pavel Feldman.

Provide empty size into the InspectorOverlay if the metrics emulation is disabled,
so that it will not get painted in all cases.

* inspector/InspectorController.cpp:
(WebCore::InspectorController::webViewResized): Call InspectorPageAgent::webViewResized() rather than InspectorOverlay::resize().
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::webViewResized): Provide empty size into InspectorOverlay::resize() if device metrics are not emulated.
* inspector/InspectorPageAgent.h:

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