Tried to fix the Qt Windows build after r124654.

* platform/graphics/SimpleFontData.cpp:
(WebCore::SimpleFontData::glyphForCharacter): Enclosed this function in
#if !(PLATFORM(QT) && !HAVE(QRAWFONT)).



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Test fixes after r124705. There were still few tests that used layoutTestController because
they were encoded in UTF-16 and UTF-32 and neither spot light nor grep could search through.

* editing/pasteboard/copy-paste-float.html:
* editing/selection/thai-word-at-document-end.html:
* fast/css/hexColor-isDigit-assert.html:
* fast/encoding/bom-in-content-utf16.html:
* fast/encoding/utf-32-big-endian-bom.html:
* fast/encoding/utf-32-big-endian-nobom.xml:
* fast/encoding/utf-32-little-endian-bom.html:
* fast/encoding/utf-32-little-endian-nobom.xml:
* fast/parser/test-unicode-characters-in-attribute-name.html:
* fast/ruby/text-emphasis.html:
* fast/text/offsetForPosition-cluster-at-zero.html:
* http/tests/misc/submit-get-in-utf16be.html:
* http/tests/misc/submit-get-in-utf16le.html:
* http/tests/misc/submit-get-in-utf32be.html:
* http/tests/misc/submit-get-in-utf32le.html:
* http/tests/misc/submit-post-in-utf16be.html:
* http/tests/misc/submit-post-in-utf16le.html:
* http/tests/misc/submit-post-in-utf32be.html:
* http/tests/misc/submit-post-in-utf32le.html:
* http/tests/misc/url-in-utf16be.html:
* http/tests/misc/url-in-utf16le.html:
* http/tests/misc/url-in-utf32be.html:
* http/tests/misc/url-in-utf32le.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Another test fixes after r124705. Revert erroneous changes in r124707 using binary editor.

* fast/parser/test-unicode-characters-in-attribute-name.html:
* http/tests/misc/submit-post-in-utf16be.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124708 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rebaseline fast/css-grid-layout/place-cell-by-index.html on Qt after r124671
since the test now passes (yay!).

Skip a test added by r124673 on Qt since it uses gestureTap (tracked by the bug 66272).

* platform/qt/Skipped:
* platform/qt/fast/css-grid-layout: Removed.
* platform/qt/fast/css-grid-layout/place-cell-by-index-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Another test fix after r124708.

* platform/mac/editing/selection/word-thai.html:


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

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

* DEPS:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium Mac] Tests are exiting early due to failures to load missingImage.png
https://bugs.webkit.org/show_bug.cgi?id=93186

Reviewed by Ryosuke Niwa.

Add missingImage.png to DumpRenderTree.app's Resource folder.
Depends on http://crrev.com/150037 rolling into webkit first.

* DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
HTMLMediaElement may fire the seeked event before currentTime reaches the seek time
https://bugs.webkit.org/show_bug.cgi?id=92881

Reviewed by Eric Carlson.

Source/WebCore:

Testing provided by media/video-seek-past-end-paused.html, hopefully demonstrating lack of redness on all ports/bots this time.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::mediaPlayerTimeChanged): don't finishSeek() until the media player is no longer seeking.

LayoutTests:

This is mostly a re-land of r114005, alongside a fix for HTMLMediaElement.

* media/video-seek-past-end-paused-expected.txt:
* media/video-seek-past-end-paused.html:
* platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124713 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<rdar://problem/11875795> REGRESSION (tiled drawing): Page’s scroll bars flash with each character you type in a textarea (affects Wikipedia and YouTube)
https://bugs.webkit.org/show_bug.cgi?id=91348

Reviewed by Andy Estes.

* platform/ScrollableArea.cpp:
(WebCore::ScrollableArea::scrollPositionChanged): Changed to call notifyContentAreaScrolled()
only if the scroll position after the change differs from what it was before the change.
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::scrollPosition): Added an override of this ScrollableArea function.
* rendering/RenderListBox.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[V8] Remove unused enum and typedefs in V8Proxy
https://bugs.webkit.org/show_bug.cgi?id=93105

Reviewed by Adam Barth.

In preparation for removing V8Proxy, we can remove unused enum
and typedefs in V8Proxy.

No tests. No change in behavior.

* bindings/v8/V8Proxy.cpp:
* bindings/v8/V8Proxy.h:
(WebCore::throwError):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124715 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[V8] Remove V8Proxy::registerExtensionWithV8()
https://bugs.webkit.org/show_bug.cgi?id=93115

Reviewed by Adam Barth.

V8Proxy::registerExtensionWithV8() is used by V8Proxy::registerExtension()
only. We can remove the redundant method.

In a follow-up patch, I will implement V8Proxy::registerExtentionIfNeeded()
and remove registerExtensionWithV8() and registerExtension().

No tests. No change in behavior.

* bindings/v8/V8Proxy.cpp:
(WebCore::staticExtensionsList): Just moved to near related methods.
(WebCore):
(WebCore::V8Proxy::extensions):
(WebCore::V8Proxy::registerExtension):
* bindings/v8/V8Proxy.h:
(V8Proxy):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124716 268f45cc-cd09-0410-ab3c-d52691b4dbfc
media/video-poster-blocked-by-willsendrequest.html isn't blocking poster on willsendrequest
https://bugs.webkit.org/show_bug.cgi?id=92824

Reviewed by Ryosuke Niwa.

Chromium/Mac/GTK DRTs appear not to clear the cache between tests so append a unique query-string param to avoid a cache hit in this test.
Filed 93195 for the chromium port, Mac has 82976, and GTK has 79760.

* media/video-poster-blocked-by-willsendrequest.html:
* platform/chromium/TestExpectations:
* platform/gtk/TestExpectations:
* platform/mac/Skipped:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124717 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[V8] Move V8Proxy methods that set DOM attributes/callbacks to V8Binding
https://bugs.webkit.org/show_bug.cgi?id=93103

Reviewed by Adam Barth.

To remove V8Proxy, we can move V8Proxy methods that set DOM
attributes/callbacks to V8Binding.

No tests. No change in behavior.

* bindings/v8/V8Binding.cpp:
(WebCore::batchConfigureAttributes):
(WebCore):
(WebCore::batchConfigureCallbacks):
(WebCore::batchConfigureConstants):
* bindings/v8/V8Binding.h:
(BatchedAttribute):
(WebCore):
(WebCore::configureAttribute):
(BatchedConstant):
(BatchedCallback):
* bindings/v8/V8Proxy.cpp:
* bindings/v8/V8Proxy.h:
(WebCore):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124718 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WIN] Use sizeof() for cbWndExtra values
https://bugs.webkit.org/show_bug.cgi?id=93179

Reviewed by Eric Carlson.

Using sizof() instead of hardcoding the pointer size of
the 32bit platform allows us to use the code on 64bit too.

* FullscreenVideoController.cpp:
(FullscreenVideoController::registerHUDWindowClass):
* WebView.cpp:
(WebView::registerWebViewWindowClass):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124719 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Don't reuse cached stylesheet with failed or canceled resource loads
https://bugs.webkit.org/show_bug.cgi?id=93203

Reviewed by Simon Fraser.

1) Go to apple.com
2) Reload repeatedly

Eventually you can get into state where some images don't load.
        
The problem is that a cached stylesheet may end up pointing to image resources that have been canceled (by the reload).
If this happens they stay in the canceled state even when the stylesheet is applied to a new document.
        
Fix by checking if all loads are complete (or pending) when restoring a cached stylesheet. The sheet is only used
if there are no failed or canceled loads. There are potential more sophisticated fixes but this is simple and safe.
Walking the sheet is fast and since it is only done on cache restore the cost is minimal.

No regression test yet though the new code does get exercised by the existing tests.

* css/CSSCrossfadeValue.cpp:
(WebCore::CSSCrossfadeValue::hasFailedOrCanceledSubresources):
(WebCore):
* css/CSSCrossfadeValue.h:
(CSSCrossfadeValue):
* css/CSSFontFaceSrcValue.cpp:
(WebCore::CSSFontFaceSrcValue::hasFailedOrCanceledSubresources):
(WebCore):
* css/CSSFontFaceSrcValue.h:
(CSSFontFaceSrcValue):
* css/CSSImageSetValue.cpp:
(WebCore::CSSImageSetValue::hasFailedOrCanceledSubresources):
(WebCore):
* css/CSSImageSetValue.h:
(CSSImageSetValue):
* css/CSSImageValue.cpp:
(WebCore::CSSImageValue::hasFailedOrCanceledSubresources):
(WebCore):
* css/CSSImageValue.h:
(CSSImageValue):
* css/CSSValue.cpp:
(WebCore::CSSValue::hasFailedOrCanceledSubresources):
(WebCore):
* css/CSSValue.h:
(CSSValue):
* css/CSSValueList.cpp:
(WebCore::CSSValueList::hasFailedOrCanceledSubresources):
(WebCore):
* css/CSSValueList.h:
(CSSValueList):
* css/StylePropertySet.cpp:
(WebCore::StylePropertySet::hasFailedOrCanceledSubresources):
(WebCore):
* css/StylePropertySet.h:
(StylePropertySet):
* css/StyleSheetContents.cpp:
(WebCore::childRulesHaveFailedOrCanceledSubresources):
(WebCore):
(WebCore::StyleSheetContents::hasFailedOrCanceledSubresources):
* css/StyleSheetContents.h:
(StyleSheetContents):
* loader/cache/CachedCSSStyleSheet.cpp:
(WebCore::CachedCSSStyleSheet::restoreParsedStyleSheet):
* loader/cache/CachedResource.h:
(WebCore::CachedResource::loadFailedOrCanceled):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124720 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium-win] Use the default locale only if the browser locale matches to it
https://bugs.webkit.org/show_bug.cgi?id=93083

Reviewed by Hajime Morita.

For a calendar picker, we have used month names and day-of-week names
obtained from the OS default locale. However, the year-month format and
[Today] [Clear] labels are decided with the browser locale. It made
calendar pickers with mixed languages.

To make calendar pickers with a single language, we use the OS default
locale only if the browser locale matches to it.
This patch changes the behavior for Windows Vista or later. No change
for Windows XP because of API support limitation.

No new tests.  Behavior for locale setting is not testable in WebKit.

* platform/text/LocaleWin.cpp:
(determineCurrentLCID):
Added. If the system has no LocaleNameToLCID API, just returns
LOCALE_USER_DEFAULT. Otherwise, if the system locale matches to the
browser locale, it returns LOCALE_USER_DEFAULT, otherwise it returns the
LCID for the browser locale.
(WebCore::LocaleWin::currentLocale): Uses determineCurrentLCID().

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124721 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Updte text expectation.

Remove an entry for media/media-fragments/TC0010-TC0019.html.
It doesn't exist any more.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124722 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix null pointer dereference when CSSParser::sinkFloatingValueList() returns null and is passed to storeVariableDeclaration().
https://bugs.webkit.org/show_bug.cgi?id=92461

Reviewed by Eric Seidel.

Source/WebCore:

Invalid variable lists could cause CSSGrammar.y to pass null as value to storeVariableDeclaration, so we now check for null.

Test: fast/css/variables/invalid-value-list-crash.html

* css/CSSParser.cpp:
(WebCore::CSSParser::storeVariableDeclaration):

LayoutTests:

Test case that causes CSSParser::storeVariableDeclaration to be passed a null value.

* fast/css/variables/invalid-value-list-crash-expected.txt: Added.
* fast/css/variables/invalid-value-list-crash.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Assert in checkValidity() in hashtable.h from WebGeolocationManager::didFailToDeterminePosition() when fetching http://html5demos.com/geo
https://bugs.webkit.org/show_bug.cgi?id=80386

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-08-05
Reviewed by Alexey Proskuryakov.

Source/WebKit2: 

WebKit2's WebGeolocationManager was delivering events without accounting that each event
can modify the list of page that need delivery.
Any page can remove itself by invoking clearWatch() from the callback function. A page can also cause another
page to be removed.

This patch solves the issue by taking a copy of the list of page before delivery. Each page is
referenced as it can be deleted during the delivery.

Unfortunately, this cannot be tested due to missing features of WebKitTestRunner.

* WebProcess/Geolocation/WebGeolocationManager.cpp:
(WebKit::WebGeolocationManager::didChangePosition):
(WebKit::WebGeolocationManager::didFailToDeterminePosition):

LayoutTests: 

Add tests for clearing the Geolocation as a listener from a callback originated from the GeolocationController.

* fast/dom/Geolocation/error-clear-watch-expected.txt: Added.
* fast/dom/Geolocation/error-clear-watch.html: Added.
* fast/dom/Geolocation/success-clear-watch-expected.txt: Added.
* fast/dom/Geolocation/success-clear-watch.html: Added.
* platform/wk2/Skipped:


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

Marked the following test cases as known failures
tracked by the bug 93213, 93214, 92956, 93212.

fast/text/international/text-spliced-font.html
http/tests/loading/307-after-303-after-post.html
http/tests/security/contentSecurityPolicy/object-src-url-blocked.html
http/tests/incremental/slow-utf8-text.pl

* platform/efl/TestExpectations:

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