Revert r94355 because it caused bunch of builds to break.

Source/WebCore: 

* page/DOMWindow.idl:

LayoutTests: 

* platform/mac/fast/dom/Window/window-properties-expected.txt:
* platform/mac/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/mac/fast/js/global-constructors-expected.txt:



git-svn-id: svn://svn.chromium.org/blink/trunk@94367 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix layout test regressions from r94352.

Reviewed by Anders Carlsson.

* platform/graphics/mac/FontCacheMac.mm:
(WebCore::FontCache::getFontDataForCharacters): In the custom font case (that is, when there is
not base NSFont) always get and use the best variation.



git-svn-id: svn://svn.chromium.org/blink/trunk@94368 bbb929c8-8fbe-4397-9dbb-9b2b20218538
REGRESSION (r84327-r84329): CSS stylesheets fail to load on www.flagstar.com login page
https://bugs.webkit.org/show_bug.cgi?id=65140

Reviewed by Darin Adler.

Source/WebCore:

Tests: fast/css/stylesheet-enable-first-alternate-link.html
       fast/css/stylesheet-enable-first-alternate-on-load-link.html
       fast/css/stylesheet-enable-first-alternate-on-load-sheet.html
       fast/css/stylesheet-enable-second-alternate-link.html
       fast/css/stylesheet-enable-second-alternate-on-load-link.html
       fast/css/stylesheet-enable-second-alternate-on-load-sheet.html
       http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html
       http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html

This patch basically reverts 88479 and 84329 while keeping the tests
we developped during the implementation.

Following discussion, it looks like HTML5 will need to be amended.
In the meantime, we will just revert the changes so that we can come
up with a better change.

* dom/Document.cpp:
(WebCore::Document::recalcStyleSelector):
* html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::HTMLLinkElement):
(WebCore::HTMLLinkElement::setDisabledState):
(WebCore::HTMLLinkElement::parseMappedAttribute):
(WebCore::HTMLLinkElement::process):
Revert those method to their original content.

* html/HTMLLinkElement.h:
(WebCore::HTMLLinkElement::isDisabled):
(WebCore::HTMLLinkElement::isEnabledViaScript):
(WebCore::HTMLLinkElement::isAlternate):
Re-introduced the DisabledState enum.

* html/HTMLLinkElement.idl: |disabled| is Reflect'ed again.

LayoutTests:

* fast/css/stylesheet-enable-first-alternate-link-expected.txt: Added.
* fast/css/stylesheet-enable-first-alternate-link.html: Added.
* fast/css/stylesheet-enable-first-alternate-on-load-link-expected.txt: Added.
* fast/css/stylesheet-enable-first-alternate-on-load-link.html: Added.
* fast/css/stylesheet-enable-first-alternate-on-load-sheet-expected.txt: Added.
* fast/css/stylesheet-enable-first-alternate-on-load-sheet.html: Added.
* fast/css/stylesheet-enable-second-alternate-link-expected.txt: Added.
* fast/css/stylesheet-enable-second-alternate-link.html: Added.
* fast/css/stylesheet-enable-second-alternate-on-load-link-expected.txt: Added.
* fast/css/stylesheet-enable-second-alternate-on-load-link.html: Added.
* fast/css/stylesheet-enable-second-alternate-on-load-sheet-expected.txt: Added.
* fast/css/stylesheet-enable-second-alternate-on-load-sheet.html: Added.
* http/tests/css/link-css-disabled-value-with-slow-loading-sheet-expected.txt: Added.
* http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error-expected.txt: Added.
* http/tests/css/link-css-disabled-value-with-slow-loading-sheet-in-error.html: Added.
* http/tests/css/link-css-disabled-value-with-slow-loading-sheet.html: Added.
* http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js: Added.
(onSheetLoaded):
(testWhenLoaded):
* http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js: Added.
(onSheetLoaded):
(testWhenLoaded):
* http/tests/css/resources/slow-loading-sheet-in-error.php: Added.
* http/tests/css/resources/slow-loading-sheet.php: Added.
New tests developped for 65140. The baselines matches what FF and Opera are doing (IE does not support
link.sheet at the moment). Those failures are covered by bug 67436.

* fast/css/link-disabled-attr-expected.txt:
* fast/dom/HTMLLinkElement/disabled-attribute-expected.txt:
Fixed the baseline to match our behavior. The FAIL are our current deviation from the spec. Those
failures are covered by bug 67436.

* fast/dom/boolean-attribute-reflection-expected.txt:
* fast/dom/script-tests/boolean-attribute-reflection.js:
Re-added link.disabled as a reflected attribute.


git-svn-id: svn://svn.chromium.org/blink/trunk@94369 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[chromium] Update leopard pixel baselines for svg tests

* platform/chromium-cg-mac-leopard/svg/W3C-SVG-1.1/pservers-grad-06-b-expected.png: Added.
* platform/chromium-cg-mac-leopard/svg/custom/non-scaling-stroke-expected.png:
* platform/chromium-cg-mac-leopard/svg/custom/pattern-rotate-expected.png:
* platform/chromium-cg-mac-leopard/svg/custom/pattern-skew-transformed-expected.png: Removed.
* platform/chromium-cg-mac-leopard/svg/custom/pattern-with-transformation-expected.png:
* platform/chromium-cg-mac-leopard/svg/transforms/text-with-pattern-inside-transformed-html-expected.png:
* platform/chromium-cg-mac-leopard/svg/transforms/text-with-pattern-with-svg-transform-expected.png:
* platform/chromium-cg-mac/svg/custom/pattern-rotate-expected.png: Added.
* platform/chromium-cg-mac/svg/custom/pattern-rotate-gaps-expected.png: Added.

git-svn-id: svn://svn.chromium.org/blink/trunk@94370 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Source/WebCore: Cleanup refactoring for https://bugs.webkit.org/show_bug.cgi?id=67160

Don't ifdef out the data member xslStyleSheets in MemoryCache::Statistics to cut down 
the ifdefs in getWebCoreMemoryCacheStatistics() in WebKit2/WebProcess/WebProcess.cpp.

Reviewed by Darin Adler.

No new tests required.  Just small code refactoring.

* loader/cache/MemoryCache.h:

Source/WebKit2: Cut down the ifdefs in WebKit::getWebCoreMemoryCacheStatistics() now that 
MemoryCache::Statistics always has the xslStyleSheets field.

Reviewed by Darin Adler.

* WebProcess/WebProcess.cpp:
(WebKit::getWebCoreMemoryCacheStatistics):



git-svn-id: svn://svn.chromium.org/blink/trunk@94371 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move LayoutRepainter to its own class
https://bugs.webkit.org/show_bug.cgi?id=66255

Reviewed by Hajime Morita.

No new tests, code movement only.

* rendering/RenderObject.h: Moved code from here ...
* rendering/LayoutRepainter.cpp: Added.
(WebCore::LayoutRepainter::LayoutRepainter):
(WebCore::LayoutRepainter::repaintAfterLayout):
* rendering/LayoutRepainter.h: Added.
(WebCore::LayoutRepainter::checkForRepaint):
... to those 2 files.

* CMakeLists.txt:
* GNUmakefile.list.am:
* WebCore.gypi:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
Updated our build systems.

* rendering/RenderingAllInOne.cpp:
Needed for the Windows bot.

* rendering/RenderBlock.cpp:
* rendering/RenderDeprecatedFlexibleBox.cpp:
* rendering/RenderReplaced.cpp:
* rendering/RenderTable.cpp:
* rendering/svg/RenderSVGContainer.cpp:
* rendering/svg/RenderSVGForeignObject.cpp:
* rendering/svg/RenderSVGImage.cpp:
* rendering/svg/RenderSVGPath.cpp:
* rendering/svg/RenderSVGRoot.cpp:
* rendering/svg/RenderSVGText.cpp:
Added #include "LayoutRepainter".

git-svn-id: svn://svn.chromium.org/blink/trunk@94372 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Source/WebCore:        [chromium] Code cleanup FIXME in Chromium recognizer
https://bugs.webkit.org/show_bug.cgi?id=67448

Patch by Robert Kroeger <rjkroege@chromium.org> on 2011-09-01
Reviewed by Adam Barth.

* page/EventHandler.cpp:
(WebCore::EventHandler::handleGestureEvent):
Fixed a bug noticed by a benjaminp while reviewing a different
ndonned patch where global positions were not being set correctly
on gesture-driven mouse wheel events.
* platform/chromium/GestureRecognizerChromium.cpp:
Changed static per-edge functions into methods and improves
encapsulation. No new functionality is present.
(WebCore::GestureRecognizerChromium::GestureRecognizerChromium):
(WebCore::GestureRecognizerChromium::reset):
(WebCore::GestureRecognizerChromium::~GestureRecognizerChromium):
(WebCore::GestureRecognizerChromium::addEdgeFunction):
(WebCore::GestureRecognizerChromium::isInClickTimeWindow):
(WebCore::GestureRecognizerChromium::isInsideManhattanSquare):
(WebCore::GestureRecognizerChromium::appendClickGestureEvent):
(WebCore::GestureRecognizerChromium::processTouchEventForGestures):
(WebCore::GestureRecognizerChromium::appendScrollGestureBegin):
(WebCore::GestureRecognizerChromium::appendScrollGestureEnd):
(WebCore::GestureRecognizerChromium::appendScrollGestureUpdate):
(WebCore::GestureRecognizerChromium::updateValues):
(WebCore::GestureRecognizerChromium::signature):
(WebCore::GestureRecognizerChromium::touchDown):
(WebCore::GestureRecognizerChromium::scrollEnd):
(WebCore::GestureRecognizerChromium::noGesture):
(WebCore::GestureRecognizerChromium::click):
(WebCore::GestureRecognizerChromium::isClickOrScroll):
(WebCore::GestureRecognizerChromium::inScroll):
* platform/chromium/GestureRecognizerChromium.h:
(WebCore::GestureRecognizerChromium::setState):

Source/WebKit/chromium: [chromium] Code cleanup FIXME in Chromium recognizer
https://bugs.webkit.org/show_bug.cgi?id=67448

Updated GestureRecognizer unit tests for more encapsulated
gesture recognizer implementation.

Patch by Robert Kroeger <rjkroege@chromium.org> on 2011-09-01
Reviewed by Adam Barth.

* tests/InnerGestureRecognizerTest.cpp:
(InspectableGestureRecognizerChromium::InspectableGestureRecognizerChromium):
(InspectableGestureRecognizerChromium::signature):
(InspectableGestureRecognizerChromium::edgeFunction):
(InspectableGestureRecognizerChromium::updateValues):
(InspectableGestureRecognizerChromium::addEdgeFunction):
(InspectableGestureRecognizerChromium::setStateTest):
(InspectableGestureRecognizerChromium::isInsideManhattanSquare):
(InspectableGestureRecognizerChromium::isInClickTimeWindow):
(InspectableGestureRecognizerChromium::stubEdgeFunction):
(GestureRecognizerTest::GestureRecognizerTest):
(TEST_F):

git-svn-id: svn://svn.chromium.org/blink/trunk@94373 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Added Snow Leopard expected results to the test added in r94352.

* platform/mac-snowleopard/fast/text/fallback-traits-fixup-expected.txt: Added.



git-svn-id: svn://svn.chromium.org/blink/trunk@94374 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Generate a FileReader constructor of V8 using the IDL 'Constructor' extended attribute
https://bugs.webkit.org/show_bug.cgi?id=67412

Patch by Kentaro Hara <haraken@google.com> on 2011-09-01
Reviewed by Adam Barth.

Test: fast/files/blob-slice-test.html
      fast/files/file-reader-abort.html

* bindings/v8/custom/V8FileReaderCustom.cpp: Removed constructorCallback().
* fileapi/FileReader.idl: Added the 'Constructor' extended attribute.

git-svn-id: svn://svn.chromium.org/blink/trunk@94375 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix the build.

* JavaScriptCore.JSVALUE32_64only.exp:
* JavaScriptCore.JSVALUE64only.exp:
* JavaScriptCore.exp:

git-svn-id: svn://svn.chromium.org/blink/trunk@94376 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[chromium] Remove expectation lines for tests that pass

* platform/chromium/test_expectations.txt:

git-svn-id: svn://svn.chromium.org/blink/trunk@94377 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[EFL] Remove unused code related with priv->render.process_entire_queue in ewk_tiled_backing_store.
https://bugs.webkit.org/show_bug.cgi?id=63377

priv->render.process_entire_queue affects no logical flow of ewk_tiled_backing_store,
But, ewk_view_tiled_process_entire_queue_set is now provided as setter api for it.
So removal of this api and some codes related with it is required.

Patch by KwangHyuk Kim <hyuki.kim@samsung.com> on 2011-09-01
Reviewed by Antonio Gomes.

* ewk/ewk_tiled_backing_store.c:
(_ewk_tiled_backing_store_smart_add):
(ewk_tiled_backing_store_enable_render):
* ewk/ewk_tiled_backing_store.h:
* ewk/ewk_view.h:
* ewk/ewk_view_tiled.c:
(ewk_view_tiled_unused_cache_set):

git-svn-id: svn://svn.chromium.org/blink/trunk@94378 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[chromium] Add chromium leopard baselines

* platform/chromium-cg-mac-leopard/fast/text/international/bidi-mirror-he-ar-expected.png:
* platform/chromium-cg-mac-leopard/fast/text/international/bidi-mirror-he-ar-expected.txt: Copied from LayoutTests/platform/win/fast/text/international/bidi-mirror-he-ar-expected.txt.
* platform/win-wk2/fast/text/international/bidi-mirror-he-ar-expected.txt: Renamed from LayoutTests/platform/win/fast/text/international/bidi-mirror-he-ar-expected.txt.

git-svn-id: svn://svn.chromium.org/blink/trunk@94379 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[EFL] Allow controlling minimum DOMTimer interval on a per-page basis
https://bugs.webkit.org/show_bug.cgi?id=67012

Reviewed by Kenneth Russell.

Set default minimum DOMTimer interval to 4ms instead of 10ms. Because, 4ms is known
to better minimum value for performance. Mac, android, chromium and window ports already
use 4ms instead of 10ms.

It is desirable to be able to change the minimum DOMTimer interval on per-page basis
in order to avoid consuming excessive CPU and battery life on mobile devices. In addition,
other ports have already used this setting by means of Bug 54312.

* ewk/ewk_main.cpp:
(_ewk_init_body):
* ewk/ewk_settings.cpp:
(ewk_settings_default_timer_interval_get):
* ewk/ewk_settings.h:
* ewk/ewk_view.cpp:
(_ewk_view_priv_new):
(ewk_view_setting_minimum_timer_interval_set):
(ewk_view_setting_minimum_timer_interval_get):
* ewk/ewk_view.h:


git-svn-id: svn://svn.chromium.org/blink/trunk@94380 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Generate a Worker constructor of V8 using the IDL 'Constructor' extended attribute
https://bugs.webkit.org/show_bug.cgi?id=67447

Patch by Kentaro Hara <haraken@google.com> on 2011-09-01
Reviewed by Dimitri Glazkov.

Test: fast/workers/worker-constructor.html
      fast/workers/worker-event-listener.html

* bindings/v8/custom/V8WorkerCustom.cpp: Removed constructorCallback().
* workers/Worker.idl: Added the 'Constructor' extended attribute.

git-svn-id: svn://svn.chromium.org/blink/trunk@94381 bbb929c8-8fbe-4397-9dbb-9b2b20218538
The filename text color of a file upload control should be inherited.
https://bugs.webkit.org/show_bug.cgi?id=67368

Reviewed by Darin Adler.

Source/WebCore:

* css/html.css:
(input[type="file"]):
Add 'color: inherit'.
The declaration for 'input' contains 'color: initial;'. So a file
upload control has had black foreground color unless it has been
specified 'color' property explicitly.
Because a file upload control uses inherited background color, the
foreground color also should be inherited.

LayoutTests:

* fast/forms/file/file-style-inheritance-expected.txt:
* fast/forms/file/file-style-inheritance.html: Add a testcase.


git-svn-id: svn://svn.chromium.org/blink/trunk@94382 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[Chromium] Fix a crashing bug due to raciness around SQL database shutdown.
https://bugs.webkit.org/show_bug.cgi?id=67457

The removeOpenDatabase() method can get called multiple times.
Subsequent calls to it should be harmeless instead of cause a crash.

Reviewed by David Levin.

* storage/chromium/DatabaseTrackerChromium.cpp:
(WebCore::DatabaseTracker::removeOpenDatabase):


git-svn-id: svn://svn.chromium.org/blink/trunk@94383 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[chromium] Add chromium-mac-leopard pixel baselines for new/modified tests with text

* platform/chromium-cg-mac-leopard/fast/text/fallback-traits-fixup-expected.png: Added.
* platform/chromium-cg-mac-leopard/svg/custom/pattern-rotate-gaps-expected.png: Added.

git-svn-id: svn://svn.chromium.org/blink/trunk@94384 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unreviewed test fix.

r94362 erroneously changed the description wording generated by
the js-test-pre.

* fast/js/resources/js-test-pre.js:
(description): add the word 'see'
* platform/chromium/fast/dom/prototype-inheritance-expected.txt:

git-svn-id: svn://svn.chromium.org/blink/trunk@94385 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix the build by adding some more missing return types.

Source/WebCore:

* page/mac/WebCoreViewFactory.m:
(-[WebCoreViewFactory init]):

Source/WebKit/mac:

* WebView/WebDashboardRegion.h:
* WebView/WebDashboardRegion.mm:
(-[WebDashboardRegion initWithRect:clip:type:]):

Tools:

* DumpRenderTree/mac/ResourceLoadDelegate.mm:
(-[ResourceLoadDelegate webView:identifierForInitialRequest:fromDataSource:]):

git-svn-id: svn://svn.chromium.org/blink/trunk@94386 bbb929c8-8fbe-4397-9dbb-9b2b20218538