WebKit-https.git
9 years agoImport more replay performance tests from Mozilla's Tp5 test suite
rniwa@webkit.org [Wed, 25 Jul 2012 20:52:22 +0000 (20:52 +0000)]
Import more replay performance tests from Mozilla's Tp5 test suite
https://bugs.webkit.org/show_bug.cgi?id=92229

Reviewed by Andreas Kling.

Add more replay tests based on Mozilla's Tp5 test suite [1]. Unfortunately,
we cannot import all URLs because some of them are not archived on archive.org
and others do not replay well on web-page-replay. Nonethless, we're still adding
60+ URLs in this patch.

[1] http://people.mozilla.org/~jmaher/tp5.manifest

* Replay/Chinese: Added.
* Replay/Chinese/chinaz.com.replay: Added.
* Replay/Chinese/www.163.com.replay: Added.
* Replay/Chinese/www.alipay.com.replay: Added.
* Replay/Chinese/www.baidu.com.replay: Added.
* Replay/Chinese/www.csdn.net.replay: Added.
* Replay/Chinese/www.douban.com.replay: Added.
* Replay/Chinese/www.hao123.com.replay: Added.
* Replay/Chinese/www.xinhuanet.com.replay: Added.
* Replay/Chinese/www.xunlei.com.replay: Added.
* Replay/Chinese/www.youku.com.replay: Added.
* Replay/English: Added.
* Replay/English/beatonna.livejournal.com.replay: Added.
* Replay/English/cakewrecks.blogspot.com.replay: Added.
* Replay/English/chemistry.about.com.replay: Added.
* Replay/English/digg.com.replay: Added.
* Replay/English/en.wikipedia.org-rorschach_test.replay: Added.
* Replay/English/icanhascheezburger.com.replay: Added.
* Replay/English/imgur.com-gallery.replay: Added.
* Replay/English/online.wsj.com.replay: Added.
* Replay/English/stockoverflow.com-best-comment.replay: Added.
* Replay/English/www.alibaba.com.replay: Added.
* Replay/English/www.amazon.com-kindle.replay: Added.
* Replay/English/www.apple.com.replay: Added.
* Replay/English/www.cnet.com.replay: Added.
* Replay/English/www.dailymotion.com.replay: Added.
* Replay/English/www.ehow.com-prevent-fire.replay: Added.
* Replay/English/www.filestube.com-amy-adams.replay: Added.
* Replay/English/www.foxnews.replay: Added.
* Replay/English/www.huffingtonpost.com.replay: Added.
* Replay/English/www.imdb.com-twilight.replay: Added.
* Replay/English/www.mozilla.com-all-order.replay: Added.
* Replay/English/www.php.net.replay: Added.
* Replay/English/www.reddit.com.replay: Added.
* Replay/English/www.telegraph.co.uk.replay: Added.
* Replay/English/www.w3.org-htmlcss.replay: Added.
* Replay/English/www.w3schools.com-html.replay: Added.
* Replay/English/www.youtube.com-music.replay: Added.
* Replay/French: Added.
* Replay/French/www.orange.fr.replay: Added.
* Replay/German: Added.
* Replay/Italian: Added.
* Replay/Italian/www.repubblica.it.replay: Added.
* Replay/Japanese/entameblog.seesaa.net.replay: Added.
* Replay/Japanese/www.hatena.ne.jp.replay: Added.
* Replay/Japanese/www.nicovideo.jp.replay: Added.
* Replay/Korean: Added.
* Replay/Korean/www.naver.com.replay: Added.
* Replay/Persian: Added.
* Replay/Persian/blogfa.com.replay: Added.
* Replay/Polish: Added.
* Replay/Polish/www.wp.pl.replay: Added.
* Replay/Portuguese: Added.
* Replay/Portuguese/www.uol.com.br.replay: Added.
* Replay/Russian: Added.
* Replay/Russian/vkontakte.ru-help.replay: Added.
* Replay/Russian/www.rambler.ru.replay: Added.
* Replay/Russian/www.ucoz.ru.replay: Added.
* Replay/Russian/www.yandex.ru.replay: Added.
* Replay/Spanish: Added.
* Replay/Spanish/www.taringa.net.replay: Added.

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

9 years ago[chromium] Refactor CCLayerTreeHostCommon: move root layer special case initializatio...
shawnsingh@chromium.org [Wed, 25 Jul 2012 20:47:26 +0000 (20:47 +0000)]
[chromium] Refactor CCLayerTreeHostCommon: move root layer special case initialization into internal code.
https://bugs.webkit.org/show_bug.cgi?id=88953

Reviewed by Adrienne Walker.

Source/WebCore:

This is part 1 of trying to reduce the root layer special
case. This tries to reduce the special-ness of the root layer from
the perspective of outside code.

After this patch, code that uses calcDrawTransforms() no longer
needs to initialize the root layer's surface, and no longer needs
to manually append the root layer to the renderSurfaceLayerList.

Unit tests were also updated (much cleaner!) to account for this change.

* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::updateLayers):
* platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
(WebCore):
(WebCore::setupRootLayerAndSurfaceForRecursion):
(WebCore::CCLayerTreeHostCommon::calculateDrawTransforms):
* platform/graphics/chromium/cc/CCLayerTreeHostCommon.h:
(CCLayerTreeHostCommon):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::calculateRenderSurfaceLayerList):

Source/WebKit/chromium:

Unit tests updated to account for the new less-special root layer setup.
  - most test cases just needed to remove root->renderSurface()->setContentBounds(), createRenderSurface(), and renderSurfaceLayerList.append().
  - some test cases originally relied on setting some awkward unconventional bounds of the rootLayer that were different than the rootLayer's renderSurface. these tests are updated.
  - a few minor cleanups otherwise.

* tests/CCDamageTrackerTest.cpp:
(WebKitTests::executeCalculateDrawTransformsAndVisibility):
* tests/CCLayerIteratorTest.cpp:
* tests/CCLayerTreeHostCommonTest.cpp:
* tests/CCOcclusionTrackerTest.cpp:
(WebKitTests::CCOcclusionTrackerTest::calcDrawEtc):

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

9 years agoFileSystem should provide a way to delete filesystem.
commit-queue@webkit.org [Wed, 25 Jul 2012 20:44:27 +0000 (20:44 +0000)]
FileSystem should provide a way to delete filesystem.
https://bugs.webkit.org/show_bug.cgi?id=91861

Patch by Taiju Tsuiki <tzik@chromium.org> on 2012-07-25
Reviewed by Adam Barth.

Source/WebCore:

We will add a test when we wire-up the feature to Inspector.

* Modules/filesystem/LocalFileSystem.cpp: Add deleteFileSystem
(WebCore::deleteFileSystem):
(WebCore):
(WebCore::LocalFileSystem::deleteFileSystem):
* Modules/filesystem/LocalFileSystem.h:
(LocalFileSystem):
* platform/AsyncFileSystem.cpp: Add deleteFileSystem
(WebCore):
(WebCore::AsyncFileSystem::deleteFileSystem):
* platform/AsyncFileSystem.h:
(AsyncFileSystem):
* platform/blackberry/AsyncFileSystemBlackBerry.cpp: Add deleteFileSystem
(WebCore::AsyncFileSystem::deleteFileSystem):
(WebCore):
* platform/gtk/AsyncFileSystemGtk.cpp: Add deleteFileSystem
(WebCore::AsyncFileSystem::deleteFileSystem):
(WebCore):

Source/WebKit/chromium:

* public/WebFrameClient.h:
(WebFrameClient):
(WebKit::WebFrameClient::deleteFileSystem):
* src/LocalFileSystemChromium.cpp: Add deleteFileSystem
(WebCore::deleteFileSystemNotAllowed):
(WebCore):
(WebCore::LocalFileSystem::deleteFileSystem):

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

9 years ago[WK2][WTR] LayoutTestController.sendWebIntentResponse() needs to be implemented
commit-queue@webkit.org [Wed, 25 Jul 2012 20:34:28 +0000 (20:34 +0000)]
[WK2][WTR] LayoutTestController.sendWebIntentResponse() needs to be implemented
https://bugs.webkit.org/show_bug.cgi?id=92227

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-25
Reviewed by Kenneth Rohde Christiansen.

Source/WebKit2:

Add new InjectedBundleIntentRequest class to wrap WebCore's
IntentRequest and use it in InjectedBundle's
didReceiveIntentForFrame callback. The WebKitTestRunner needs
to be able to reply to a Web intent request in order to
implement LayoutTestController.sendWebIntentResponse(). As
a consequence, passing a WebIntentData type in not enough.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Shared/API/c/WKBase.h:
* Shared/APIObject.h:
* Shared/IntentData.cpp:
(WebKit::IntentData::IntentData):
(WebKit):
* Shared/IntentData.h:
(WebCore):
(WebKit::IntentData::IntentData):
(IntentData):
* Target.pri:
* WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
(WebKit):
* WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.cpp: Copied from Source/WebKit2/Shared/IntentData.cpp.
(WKBundleIntentRequestGetTypeID):
(WKBundleIntentRequestCopyIntent):
(WKBundleIntentRequestPostResult):
(WKBundleIntentRequestPostFailure):
* WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.h: Copied from Source/WebKit2/Shared/IntentData.h.
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/InjectedBundle/InjectedBundleIntentRequest.cpp: Copied from Source/WebKit2/Shared/IntentData.cpp.
(WebKit):
(WebKit::InjectedBundleIntentRequest::create):
(WebKit::InjectedBundleIntentRequest::InjectedBundleIntentRequest):
(WebKit::InjectedBundleIntentRequest::postResult):
(WebKit::InjectedBundleIntentRequest::postFailure):
(WebKit::InjectedBundleIntentRequest::intent):
* WebProcess/InjectedBundle/InjectedBundleIntentRequest.h: Copied from Source/WebKit2/Shared/IntentData.h.
(WebCore):
(WebKit):
(InjectedBundleIntentRequest):
(WebKit::InjectedBundleIntentRequest::type):
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
(WebKit::InjectedBundlePageLoaderClient::didReceiveIntentForFrame):
* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
(WebKit):
(InjectedBundlePageLoaderClient):
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::dispatchIntent):

Tools:

Implement LayoutTestController.sendWebIntentResponse() so
that a test case can reply to a Web intent request and
test this functionality.

In order to support this functionality, we need to keep
a pointer to the current intent request in
InjectedBundlePage::didReceiveIntentForFrame() so that
we can reuse it later in
LayoutTestController::sendWebIntentResponse().

The following tests need this functionality:
- webintents/web-intents-failure.html
- webintents/web-intents-reply.html

* WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
(WTR::InjectedBundlePage::didReceiveIntentForFrame):
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:
(InjectedBundlePage):
(WTR::InjectedBundlePage::currentIntentRequest):
* WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
(WTR::LayoutTestController::sendWebIntentResponse):
(WTR):
* WebKitTestRunner/InjectedBundle/LayoutTestController.h:
(LayoutTestController):

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

9 years agoWeb Inspector: Add more jsdocs to InjectedScriptSource.js
commit-queue@webkit.org [Wed, 25 Jul 2012 20:19:08 +0000 (20:19 +0000)]
Web Inspector: Add more jsdocs to InjectedScriptSource.js
https://bugs.webkit.org/show_bug.cgi?id=92255

Patch by Andrey Adaikin <aandrey@chromium.org> on 2012-07-25
Reviewed by Pavel Feldman.

* inspector/InjectedScriptSource.js:

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

9 years agor123492 Changed output of msub-anonymous-child-render-crash.html LayoutTest
msaboff@apple.com [Wed, 25 Jul 2012 20:15:31 +0000 (20:15 +0000)]
r123492 Changed output of msub-anonymous-child-render-crash.html LayoutTest
https://bugs.webkit.org/show_bug.cgi?id=92284

Rubber-stamped by Beth Dakin.

Rebaselined test output.

* mathml/msub-anonymous-child-render-crash-expected.txt:
r123492 changed the way inline-tables are rendered.

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

9 years agoCrash when a web page is closed with outstanding scrolling thread barriers
andersca@apple.com [Wed, 25 Jul 2012 20:06:55 +0000 (20:06 +0000)]
Crash when a web page is closed with outstanding scrolling thread barriers
https://bugs.webkit.org/show_bug.cgi?id=92280
<rdar://problem/11630200>

Reviewed by Andreas Kling.

There was a check in forceRepaintAsync to handle the drawing area going away before the block had
been invoked,  but this check needs to be done earlier (as the FIXME suggested).
Move this check to dispatchAfterEnsuringUpdatedScrollPosition instead.

* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::forceRepaintAsync):
(WebKit::TiledCoreAnimationDrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):

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

9 years ago[EFL][WK2][WTR] Alt, Shift and Ctrl keys are not handled by EventSenderProxy.
commit-queue@webkit.org [Wed, 25 Jul 2012 20:05:05 +0000 (20:05 +0000)]
[EFL][WK2][WTR] Alt, Shift and Ctrl keys are not handled by EventSenderProxy.
https://bugs.webkit.org/show_bug.cgi?id=92241

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-07-25
Reviewed by Kenneth Rohde Christiansen.

Alt, Shift and Ctrl keys were not handled by EventSenderProxy.
It caused failure of fast/events/keydown-leftright-keys.html test.

* WebKitTestRunner/efl/EventSenderProxyEfl.cpp: Added handling of Alt, Shift and Ctrl keys.
(WTR::keyName):

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

9 years agoUnreviewed chromium expectations change to mark tests as slow.
atwilson@chromium.org [Wed, 25 Jul 2012 19:52:49 +0000 (19:52 +0000)]
Unreviewed chromium expectations change to mark tests as slow.

* platform/chromium/TestExpectations:

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

9 years ago[chromium] WebViewBenchmarkSupport::paint API does not work with recording canvas
alokp@chromium.org [Wed, 25 Jul 2012 19:50:22 +0000 (19:50 +0000)]
[chromium] WebViewBenchmarkSupport::paint API does not work with recording canvas
https://bugs.webkit.org/show_bug.cgi?id=92008

Reviewed by Darin Fisher.

Moved the ownership of canvas to WebViewBenchmarkSupport::PaintClient.

* public/WebViewBenchmarkSupport.h:
(PaintClient):
(WebKit::WebViewBenchmarkSupport::PaintClient::willPaint):
(WebKit::WebViewBenchmarkSupport::PaintClient::didPaint):
* src/WebViewBenchmarkSupportImpl.cpp:
(WebKit::WebViewBenchmarkSupportImpl::paintLayer):
(WebKit::WebViewBenchmarkSupportImpl::softwarePaint):

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

9 years ago[chromium] Turn the debug HUD into a layer so that it can be drawn as a WebCompositorQuad
danakj@chromium.org [Wed, 25 Jul 2012 19:46:18 +0000 (19:46 +0000)]
[chromium] Turn the debug HUD into a layer so that it can be drawn as a WebCompositorQuad
https://bugs.webkit.org/show_bug.cgi?id=92182

Reviewed by Adrienne Walker.

Source/WebCore:

By changing the HUD into a quad, we are able to create a HUD and pass
it to the host compositor, allowing the HUD to be used for renderers
under Ubercompositor.

This also removes the special drawing code for the HUD from
LayerRendererChromium, allowing us to move finishDrawingFrame
into LayerRendererChromium as a private method and remove it
from the CCRenderer interface.

Finally, we can remove the CCFontAtlas transport code from CCProxy
and its implementations as the atlas can be synced to impl thread
through the usual layer commit mechanism.

The debug HUD is not covered by tests.

* WebCore.gypi:
* platform/graphics/chromium/HeadsUpDisplayLayerChromium.cpp: Added.
(WebCore):
(WebCore::HeadsUpDisplayLayerChromium::create):
(WebCore::HeadsUpDisplayLayerChromium::HeadsUpDisplayLayerChromium):
(WebCore::HeadsUpDisplayLayerChromium::~HeadsUpDisplayLayerChromium):
(WebCore::HeadsUpDisplayLayerChromium::createCCLayerImpl):
* platform/graphics/chromium/HeadsUpDisplayLayerChromium.h: Added.
(WebCore):
(HeadsUpDisplayLayerChromium):
* platform/graphics/chromium/LayerRendererChromium.cpp:
(WebCore::LayerRendererChromium::drawFrame):
(WebCore::LayerRendererChromium::cleanupSharedObjects):
* platform/graphics/chromium/LayerRendererChromium.h:
(LayerRendererChromium):
* platform/graphics/chromium/cc/CCDebugRectHistory.cpp:
(WebCore::CCDebugRectHistory::savePropertyChangedRects):
* platform/graphics/chromium/cc/CCDebugRectHistory.h:
* platform/graphics/chromium/cc/CCHeadsUpDisplayLayerImpl.cpp: Renamed from Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp.
(WebCore):
(WebCore::CCHeadsUpDisplayLayerImpl::CCHeadsUpDisplayLayerImpl):
(WebCore::CCHeadsUpDisplayLayerImpl::~CCHeadsUpDisplayLayerImpl):
(WebCore::CCHeadsUpDisplayLayerImpl::willDraw):
(WebCore::CCHeadsUpDisplayLayerImpl::appendQuads):
(WebCore::CCHeadsUpDisplayLayerImpl::didDraw):
(WebCore::CCHeadsUpDisplayLayerImpl::didLoseContext):
(WebCore::CCHeadsUpDisplayLayerImpl::drawHudContents):
(WebCore::CCHeadsUpDisplayLayerImpl::drawFPSCounter):
(WebCore::CCHeadsUpDisplayLayerImpl::drawFPSCounterText):
(WebCore::CCHeadsUpDisplayLayerImpl::drawDebugRects):
* platform/graphics/chromium/cc/CCHeadsUpDisplayLayerImpl.h: Renamed from Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.h.
(WebCore):
(CCHeadsUpDisplayLayerImpl):
(WebCore::CCHeadsUpDisplayLayerImpl::create):
* platform/graphics/chromium/cc/CCLayerImpl.h:
(WebCore::CCLayerImpl::layerIsAlwaysDamaged):
This flag is used to mark the HUD as always damaged, so that it is
continually drawn on the impl thread. It is also used as a hint by
the CCDebugRectHistory class to not include the layer in the display
of damage, since always damaged is not interesting damage.
(CCLayerImpl):
* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::create):
(WebCore::CCLayerTreeHost::CCLayerTreeHost):
(WebCore::CCLayerTreeHost::initialize):
(WebCore::CCLayerTreeHost::willCommit):
(WebCore::CCLayerTreeHost::didCommit):
* platform/graphics/chromium/cc/CCLayerTreeHost.h:
(CCLayerTreeSettings):
(WebCore::CCLayerTreeSettings::showDebugInfo):
(WebCore::CCLayerTreeSettings::showDebugRects):
(CCLayerTreeHost):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
(WebCore::CCLayerTreeHostImpl::drawLayers):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
(WebCore):
(CCLayerTreeHostImpl):
* platform/graphics/chromium/cc/CCProxy.h:
(CCProxy):
* platform/graphics/chromium/cc/CCRenderer.h:
(CCRenderer):
* platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
* platform/graphics/chromium/cc/CCSingleThreadProxy.h:
* platform/graphics/chromium/cc/CCThreadProxy.cpp:
* platform/graphics/chromium/cc/CCThreadProxy.h:
(CCThreadProxy):

Source/WebKit/chromium:

* tests/LayerRendererChromiumTest.cpp:
(TEST):

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

9 years ago[EFL][WK2] Fix timeout issues when debugging WebProcess.
commit-queue@webkit.org [Wed, 25 Jul 2012 19:10:15 +0000 (19:10 +0000)]
[EFL][WK2] Fix timeout issues when debugging WebProcess.
https://bugs.webkit.org/show_bug.cgi?id=92245

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-25
Reviewed by Dirk Pranke.

Fix timeout issues when debugging the WebProcess
under valgrind or gdb.

* Scripts/webkitpy/layout_tests/port/efl.py:
(EflPort.default_timeout_ms):
* WebKitTestRunner/efl/TestControllerEfl.cpp:
(WTR::TestController::platformInitialize):

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

9 years ago[Chromium-Android] NRWT driver should not restart between reftests
wangxianzhu@chromium.org [Wed, 25 Jul 2012 18:52:28 +0000 (18:52 +0000)]
[Chromium-Android] NRWT driver should not restart between reftests
https://bugs.webkit.org/show_bug.cgi?id=92267

Reviewed by Dirk Pranke.

* Scripts/webkitpy/layout_tests/port/chromium_android.py:
(ChromiumAndroidDriver.start): Resets self._pixel_tests when the pixel_tests parameter changes.

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

9 years agoWeb Inspector: follow up to r123612, fixing CSS value suggest.
pfeldman@chromium.org [Wed, 25 Jul 2012 18:49:29 +0000 (18:49 +0000)]
Web Inspector: follow up to r123612, fixing CSS value suggest.

Not reviewed, minor JS fix.

* inspector/front-end/CSSCompletions.js:
(WebInspector.CSSCompletions):
* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylePropertyTreeElement.prototype):

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

9 years agoAdd Mac results for media/controls-styling-strict.html.
bweinstein@apple.com [Wed, 25 Jul 2012 18:48:57 +0000 (18:48 +0000)]
Add Mac results for media/controls-styling-strict.html.

Rubber-stamped by Michael Saboff.

* platform/mac/media/controls-styling-strict-expected.txt: Added.

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

9 years agoUnreviewed build fix after r123624.
msaboff@apple.com [Wed, 25 Jul 2012 18:19:09 +0000 (18:19 +0000)]
Unreviewed build fix after r123624.

* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::clearGeolocationOverride):
Changed ASSERT_UNUSED() to UNUSED_PARAM().

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

9 years agoWeb inspector auto-completes "optimizequality" but then complains
pfeldman@chromium.org [Wed, 25 Jul 2012 18:16:18 +0000 (18:16 +0000)]
Web inspector auto-completes "optimizequality" but then complains
https://bugs.webkit.org/show_bug.cgi?id=92262

Reviewed by Timothy Hatcher.

Fixed optimizeSpeed, optimizeLegibility, geometricPrecision.

* inspector/front-end/CSSKeywordCompletions.js:

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=89114
bdakin@apple.com [Wed, 25 Jul 2012 18:15:17 +0000 (18:15 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=89114
REGRESSION (r112919): Setting scrollTop after setting display from none to block
fails
-and corresponding-
<rdar://problem/11656050>

Reviewed by Simon Fraser.

Source/WebCore:

ScrollAnimatorMac::immediateScrollTo() and ScrollAnimatorMac::immediateScrollBy()
both have an optimization in place so that they do not call
notifyPositionChanged() if the new scroll offset matches the ScrollAnimator's
cached m_currentPosX and m_currentPosY. So revision 112919 caused troubled with
this optimization because it allowed RenderLayers to restore a scrollOffset from
the Element if there is one cached there. This caused the RenderLayer to have a
scrollOffset that is improperly out-of-synch with the ScrollAnimator's
currentPosition (which will just be 0,0 since it is being re-created like the
RenderLayer). This fix makes sure they are in synch by calling
setCurrentPosition() on the ScrollAnimator when the cached position is non-zero.
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::RenderLayer):

LayoutTests:

* fast/overflow/setting-scrollTop-after-hide-show-expected.txt: Added.
* fast/overflow/setting-scrollTop-after-hide-show.html: Added.

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

9 years agoMake ElementAttributeData a variable-sized object to reduce memory use.
kling@webkit.org [Wed, 25 Jul 2012 18:14:13 +0000 (18:14 +0000)]
Make ElementAttributeData a variable-sized object to reduce memory use.
<http://webkit.org/b/88240>

Reviewed by Ryosuke Niwa.

Source/WebCore:

Take advantage of the fact that we know at ElementAttributeData construction time how many attributes
it needs to accomodate and allocate exactly as much space as needed instead of using a Vector.
For elements that never have their attribute list mutated (the vast majority), this saves a lot of
memory and removes the indirection to Vector<Attribute>'s heap-allocated storage.

Introduced a mutability flag to ElementAttributeData and sprinkled assertions all over to make sure
that nothing tries to mutate an element with a raw attribute array.

When an Element's attribute(s) are mutated, we reconstruct the ElementAttributeData, this time using
a Vector as backing instead. This is triggered when calling Element::mutableAttributeData().

This reduces memory consumption by 3.2MB when viewing the full HTML5 spec at <http://whatwg.org/c/>.
That is a ~35% reduction in DOM attribute memory use.

Furthermore, that page ends up promoting 27% of the elements to mutable attribute storage due to dynamic
adding of "class" attributes. For more static pages, savings are even greater.

Also did away with ElementAttributeData::removeAttribute(name) and do separate index lookup where
needed. Not a big deal but avoids double lookup of attributes when removing them.

* dom/Element.cpp:
(WebCore::Element::detachAttribute):
(WebCore::Element::removeAttribute):
(WebCore::Element::attributes):
(WebCore::Element::setAttributeInternal):
(WebCore::Element::parserSetAttributes):
(WebCore::Element::hasEquivalentAttributes):
(WebCore::Element::setAttributeNode):
(WebCore::Element::removeAttributeNode):
(WebCore::Element::getAttributeNode):
(WebCore::Element::getAttributeNodeNS):
(WebCore::Element::hasAttribute):
(WebCore::Element::hasAttributeNS):
(WebCore::Element::cloneAttributesFromElement):

    Sprinkle const on ElementAttributeData* pointers.
    Switch to using mutableAttributeData() in code paths that modify attributes.

(WebCore::Element::normalizeAttributes):

    Cleaner iteration over attributes, I removed ElementAttributeData::attributeVector() since that
    was just incurring a bunch of extra Vector copying. Since ElementAttributeData already exposes
    length() and attributeItem(index), use those to iterate directly over the attributes.

(WebCore::Element::createMutableAttributeData):

    Added, converts existing ElementAttributeData to a mutable object. Otherwise creates a new
    ElementAttributeData (mutable and empty.)

* dom/Element.h:
(WebCore::Element::attributeData):
(WebCore::Element::updatedAttributeData):
(WebCore::Element::ensureAttributeData):
(WebCore::Element::ensureUpdatedAttributeData):

    Made all of these return "const ElementAttributeData*" to ensure at compile-time that nothing
    attempts to modify an ElementAttributeData that may be immutable.

    ensureUpdatedAttributeData() is still const, despite possibly calling mutableAttributeData().
    The goal of having methods be const is to prevent conversion from one ElementAttributeData
    object to another, so that pointers remain intact and no unnecessary work gets done.

(WebCore::Element::mutableAttributeData):

    Added, returns a guaranteed mutable ElementAttributeData* pointer.

* dom/ElementAttributeData.cpp:
(WebCore::ElementAttributeData::createImmutable):

    Creates a new ElementAttributeData tailored to fit the provided Vector<Attribute>.

(WebCore::ElementAttributeData::ElementAttributeData):

    Moved constructors out-of-line, getting too complex for header files.

    ElementAttributeData(const Vector<Attribute>&) creates an immutable ElementAttributeData
    containing the provided attributes in an array tacked onto the end of the object.

(WebCore::ElementAttributeData::~ElementAttributeData):

    Free the attribute vector if mutable.
    For immutable objects, manually invoke destructor on each Attribute object,
    since these won't be destroyed automatically by ~ElementAttributeData.

(WebCore::ElementAttributeData::attrIfExists):

(WebCore::ElementAttributeData::ensureAttr):
(WebCore::ElementAttributeData::setAttr):
(WebCore::ElementAttributeData::removeAttr):

    Make these const, as they should always have been- they don't affect the ElementAttributeData,
    only the global DOM Attr <-> ElementAttributeData mappings.

(WebCore::ElementAttributeData::ensureInlineStyle):
(WebCore::ElementAttributeData::ensureMutableInlineStyle):

    Sprinkle ASSERT(isMutable()). This doesn't mean that all Elements with inline styles automatically
    have mutable attribute data. There's still inlineStyle() for that, which may return null.
    These are only for use where you need a valid StylePropertySet*, even if there is no inline style
    attribute, e.g in editing code that wants to add style.

(WebCore::ElementAttributeData::updateInlineStyleAvoidingMutation):
(WebCore::ElementAttributeData::destroyInlineStyle):

    Make these const. While destroyInlineStyle() doesn't sound very const-y, immutable objects that
    contain a style attribute will have a valid inlineStyle() with that style data. This is just
    an interface for ~StyledElement to destroy the style object.
    It'd be nice to do that in ~ElementAttributeData(), but we need a StyledElement* pointer to
    clean up properly and we don't store one in this class.

(WebCore::ElementAttributeData::addAttribute):
(WebCore::ElementAttributeData::removeAttribute):
(WebCore::ElementAttributeData::clearAttributes):
(WebCore::ElementAttributeData::replaceAttribute):

    Sprinkle ASSERT(isMutable()).
    Always go straight for m_mutableAttributeVector since we know that's the storage being used.

(WebCore::ElementAttributeData::isEquivalent):
(WebCore::ElementAttributeData::detachAttrObjectsFromElement):
(WebCore::ElementAttributeData::getAttributeItemIndexSlowCase):
(WebCore::ElementAttributeData::removeAttribute):
(WebCore::ElementAttributeData::getAttributeItem):
(WebCore::ElementAttributeData::getAttributeItemIndex):

    Use length() and attributeItem(index) to iterate over the attributes.

(WebCore::ElementAttributeData::cloneDataFrom):

    Sprinkle ASSERT(isMutable()). Added a FIXME that cloning elements could create immutable
    attribute data. I'm not sure this optimization is worthwhile, as cloning elements is already
    a semi-rare occurrence.

    Updated code to handle both immutable and mutable source objects. This could

(WebCore::ElementAttributeData::getAttributeNode):

    Const correctness.

* dom/ElementAttributeData.h:
(ElementAttributeData):

    Turn attribute storage into what's effectively union { OwnPtr<Vector<Attribute>>; Attribute[]; }
    The new m_isMutable bit determines which union member should be used for access.

(WebCore::ElementAttributeData::create):
(WebCore::ElementAttributeData::createImmutable):

    Added createImmutable(const Vector<Attribute>&) as a complement to create().

(WebCore::ElementAttributeData::setClass):
(WebCore::ElementAttributeData::setIdForStyleResolution):
(WebCore::ElementAttributeData::inlineStyle):
(WebCore::ElementAttributeData::setAttributeStyle):

    Make these const, and their data member counterparts 'mutable'.
    An immutable ElementAttributeData object still has m_classNames, m_idForStyleResolution,
    m_inlineStyleDecl and m_attributeStyle.

(WebCore::ElementAttributeData::reportMemoryUsage):

    Updated for isMutable().

(WebCore::ElementAttributeData::makeMutable):

    Returns a mutable clone of itself.

(WebCore::ElementAttributeData::isEmpty):
(WebCore::ElementAttributeData::length):
(WebCore::ElementAttributeData::attributeItem):

    Check isMutable() to know how to access attribute storage.

* dom/StyledElement.cpp:
(WebCore::StyledElement::style):
(WebCore::StyledElement::setInlineStyleProperty):

    Simplify by using StyledElement::ensureInlineStyle().

(WebCore::StyledElement::classAttributeChanged):

    Use mutableAttributeData() if the attribute is being removed completely.
    In other cases, tiptoe around without causing the attribute data to go mutable.

(WebCore::StyledElement::removeInlineStyleProperty):

    Use mutableAttributeData() if/when actually removing something.

(WebCore::StyledElement::addSubresourceAttributeURLs):

    Const correctness.

* dom/StyledElement.h:
(WebCore::StyledElement::ensureInlineStyle):

    This now implies conversion to mutable attribute data. Used by codepaths that add/remove
    properties, so conversion is inevitable.

* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::mergeAttributesFromTokenIntoElement):
(WebCore::HTMLConstructionSite::createHTMLElementFromSavedElement):
* svg/properties/SVGAnimatedPropertyMacros.h:
(WebCore::SVGSynchronizableAnimatedProperty::synchronize):

    Use mutableAttributeData() as appropriate.

* xml/parser/XMLDocumentParserQt.cpp:
(WebCore::XMLDocumentParser::XMLDocumentParser):

    Const correctness.

LayoutTests:

Extended this test to cover the case where setAttributeNode() returns a lazily serialized value.

* fast/dom/attr-style-too-lazy-expected.txt:
* fast/dom/attr-style-too-lazy.html:

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

9 years agoUnreviewed, rolling out r123560.
atwilson@chromium.org [Wed, 25 Jul 2012 18:12:15 +0000 (18:12 +0000)]
Unreviewed, rolling out r123560.
http://trac.webkit.org/changeset/123560
https://bugs.webkit.org/show_bug.cgi?id=90321

Breaks chromium valgrind tests.

Source/WebCore:

* html/FTPDirectoryDocument.cpp:
(WebCore::FTPDirectoryDocumentParser::append):
* html/parser/HTMLEntityParser.cpp:
(WebCore::HTMLEntityParser::consumeNamedEntity):
* html/parser/HTMLParserIdioms.cpp:
(WebCore::stripLeadingAndTrailingHTMLSpaces):
* html/parser/HTMLSourceTracker.cpp:
(WebCore::HTMLSourceTracker::sourceForToken):
* loader/cache/CachedScript.cpp:
(WebCore::CachedScript::script):
* platform/text/SegmentedString.cpp:
(WebCore::SegmentedString::SegmentedString):
(WebCore::SegmentedString::operator=):
(WebCore::SegmentedString::clear):
(WebCore::SegmentedString::append):
(WebCore::SegmentedString::prepend):
(WebCore::SegmentedString::advanceSubstring):
(WebCore::SegmentedString::advance):
(WebCore::SegmentedString::advanceSlowCase):
(WebCore::SegmentedString::advanceAndUpdateLineNumberSlowCase):
* platform/text/SegmentedString.h:
(WebCore::SegmentedSubstring::SegmentedSubstring):
(WebCore::SegmentedSubstring::clear):
(WebCore::SegmentedSubstring::appendTo):
(SegmentedSubstring):
(WebCore::SegmentedString::SegmentedString):
(WebCore::SegmentedString::push):
(WebCore::SegmentedString::isEmpty):
(WebCore::SegmentedString::lookAhead):
(WebCore::SegmentedString::lookAheadIgnoringCase):
(WebCore::SegmentedString::advance):
(WebCore::SegmentedString::advanceAndASSERT):
(WebCore::SegmentedString::advanceAndASSERTIgnoringCase):
(WebCore::SegmentedString::advancePastNewlineAndUpdateLineNumber):
(SegmentedString):
(WebCore::SegmentedString::advancePastNonNewline):
(WebCore::SegmentedString::advanceAndUpdateLineNumber):
(WebCore::SegmentedString::operator*):
(WebCore::SegmentedString::operator->):
(WebCore::SegmentedString::current):
(WebCore::SegmentedString::equalsLiterally):
(WebCore::SegmentedString::equalsIgnoringCase):
(WebCore::SegmentedString::lookAheadInline):
(WebCore::SegmentedString::lookAheadSlowCase):
* xml/parser/CharacterReferenceParserInlineMethods.h:
(WebCore::consumeCharacterReference):
* xml/parser/MarkupTokenizerBase.h:
(WebCore::MarkupTokenizerBase::InputStreamPreprocessor::nextInputCharacter):
(WebCore::MarkupTokenizerBase::InputStreamPreprocessor::peek):
(WebCore::MarkupTokenizerBase::InputStreamPreprocessor::advance):

Source/WTF:

* wtf/text/WTFString.h:

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

9 years agoWeb Inspector: Geolocation override
kpiascik@rim.com [Wed, 25 Jul 2012 17:50:44 +0000 (17:50 +0000)]
Web Inspector: Geolocation override
https://bugs.webkit.org/show_bug.cgi?id=89365

Reviewed by Pavel Feldman.

Source/WebCore:

Re-added the m_page member variable for GeolocationController since
it's now being used by InspectorInstrumentaiton.

Added a way to override the GeolocationPosition and GeolocationError
using Web Inspector. Curretnly only PositionError can be set.

This will be hidden behind the experiments flag for now.

Tests: inspector/geolocation-error.html
       inspector/geolocation-success.html
       inspector/geolocation-watchPosition.html

* English.lproj/localizedStrings.js:
* Modules/geolocation/GeolocationController.cpp:
(WebCore::GeolocationController::GeolocationController):
(WebCore::GeolocationController::positionChanged):
* Modules/geolocation/GeolocationController.h:
(GeolocationController):
* inspector/Inspector.json:
* inspector/InspectorInstrumentation.cpp:
(WebCore):
(WebCore::InspectorInstrumentation::overrideGeolocationPositionImpl):
* inspector/InspectorInstrumentation.h:
(WebCore):
(InspectorInstrumentation):
(WebCore::InspectorInstrumentation::overrideGeolocationPosition):
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::InspectorPageAgent):
(WebCore::InspectorPageAgent::setGeolocationOverride):
(WebCore):
(WebCore::InspectorPageAgent::clearGeolocationOverride):
(WebCore::InspectorPageAgent::canOverrideGeolocation):
(WebCore::InspectorPageAgent::overrideGeolocationPosition):
* inspector/InspectorPageAgent.h:
* inspector/front-end/Settings.js:
* inspector/front-end/SettingsScreen.js:
(WebInspector.UserAgentSettingsTab):
(WebInspector.UserAgentSettingsTab.prototype._createDeviceMetricsElement):
(WebInspector.UserAgentSettingsTab.prototype._onGeolocationOverrideCheckboxClicked):
(WebInspector.UserAgentSettingsTab.prototype._applyGeolocationUserInput):
(WebInspector.UserAgentSettingsTab.prototype._setGeolocationPosition.set if):
(WebInspector.UserAgentSettingsTab.prototype._setGeolocationPosition):
(WebInspector.UserAgentSettingsTab.prototype._createGeolocationOverrideElement.createInput):
(WebInspector.UserAgentSettingsTab.prototype._createGeolocationOverrideElement):
* inspector/front-end/UserAgentSupport.js:
(WebInspector.UserAgentSupport.GeolocationPosition):
(WebInspector.UserAgentSupport.GeolocationPosition.prototype.toSetting):
(WebInspector.UserAgentSupport.GeolocationPosition.parseSetting):
(WebInspector.UserAgentSupport.GeolocationPosition.parseUserInput):
(WebInspector.UserAgentSupport.GeolocationPosition.clearGeolocationOverride):
* inspector/front-end/inspector.js:
(WebInspector.doLoadedDone):

LayoutTests:

Added new tests.

* inspector/geolocation-error-expected.txt: Added.
* inspector/geolocation-error.html: Added.
* inspector/geolocation-success-expected.txt: Added.
* inspector/geolocation-success.html: Added.
* inspector/geolocation-watchPosition-expected.txt: Added.
* inspector/geolocation-watchPosition.html: Added.

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

9 years ago[chromium] Build fix for clang builds after r123628
shawnsingh@chromium.org [Wed, 25 Jul 2012 17:43:51 +0000 (17:43 +0000)]
[chromium] Build fix for clang builds after r123628
https://bugs.webkit.org/show_bug.cgi?id=92266

Reviewed by Adrienne Walker.

An un-used variable was causing build failures for clang builds
after the refactoring in r123628.  It is correct to simply remove
this value.

* platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
(WebCore::calculateDrawTransformsInternal):

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

9 years agoSpeech JavaScript API: extract function from SpeechRecognitionResult::emma()
hans@chromium.org [Wed, 25 Jul 2012 17:41:03 +0000 (17:41 +0000)]
Speech JavaScript API: extract function from SpeechRecognitionResult::emma()
https://bugs.webkit.org/show_bug.cgi?id=92232

Reviewed by Adam Barth.

Extract code for creating emma-qualified names to a helper function.

Just a refactoring; covered by the existing test.

* Modules/speech/SpeechRecognitionResult.cpp:
(WebCore::emmaQualifiedName):
(WebCore):
(WebCore::SpeechRecognitionResult::emma):

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

9 years ago[Qt] css2.1/t* tests needs rebaseline after new testfonts
caio.oliveira@openbossa.org [Wed, 25 Jul 2012 17:39:24 +0000 (17:39 +0000)]
[Qt] css2.1/t* tests needs rebaseline after new testfonts
https://bugs.webkit.org/show_bug.cgi?id=91999

Unreviewed.

* platform/qt-5.0-wk1/Skipped:
* platform/qt-5.0-wk2/Skipped:
* platform/qt-5.0/Skipped:
* platform/qt-5.0/css2.1/t0805-c5519-brdr-r-01-e-expected.png: Removed.
* platform/qt-5.0/css2.1/t0805-c5519-brdr-r-01-e-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c414-flt-02-c-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c414-flt-03-c-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c414-flt-04-c-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c414-flt-fit-01-d-g-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c5525-fltblck-00-d-ag-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c5525-fltblck-01-d-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c5525-fltcont-00-d-g-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c5525-flthw-00-c-g-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c5525-fltwidth-00-c-g-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c5525-fltwidth-02-c-g-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c5525-fltwidth-03-c-g-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c5525-fltwrap-00-b-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0905-c5526-flthw-00-c-g-expected.txt: Removed.
* platform/qt-5.0/css2.1/t090501-c414-flt-01-b-expected.txt: Removed.
* platform/qt-5.0/css2.1/t090501-c414-flt-03-b-g-expected.txt: Removed.
* platform/qt-5.0/css2.1/t090501-c414-flt-ln-01-d-g-expected.txt: Removed.
* platform/qt-5.0/css2.1/t090501-c5525-flt-l-00-b-g-expected.txt: Removed.
* platform/qt-5.0/css2.1/t090501-c5525-flt-r-00-b-g-expected.txt: Removed.
* platform/qt/css2.1/t010403-shand-border-00-c-expected.png:
* platform/qt/css2.1/t010403-shand-border-00-c-expected.txt:
* platform/qt/css2.1/t010403-shand-font-00-b-expected.png:
* platform/qt/css2.1/t010403-shand-font-00-b-expected.txt:
* platform/qt/css2.1/t010403-shand-font-01-b-expected.png:
* platform/qt/css2.1/t010403-shand-font-01-b-expected.txt:
* platform/qt/css2.1/t010403-shand-font-02-b-expected.png:
* platform/qt/css2.1/t010403-shand-font-02-b-expected.txt:
* platform/qt/css2.1/t010403-shand-font-03-b-expected.png:
* platform/qt/css2.1/t010403-shand-font-03-b-expected.txt:
* platform/qt/css2.1/t050201-c12-grouping-00-b-expected.png:
* platform/qt/css2.1/t050201-c12-grouping-00-b-expected.txt:
* platform/qt/css2.1/t0505-c16-descendant-00-e-expected.png:
* platform/qt/css2.1/t0505-c16-descendant-00-e-expected.txt:
* platform/qt/css2.1/t0505-c16-descendant-01-e-expected.png:
* platform/qt/css2.1/t0505-c16-descendant-01-e-expected.txt:
* platform/qt/css2.1/t0505-c16-descendant-02-e-expected.png:
* platform/qt/css2.1/t0505-c16-descendant-02-e-expected.txt:
* platform/qt/css2.1/t050803-c14-classes-00-e-expected.png:
* platform/qt/css2.1/t050803-c14-classes-00-e-expected.txt:
* platform/qt/css2.1/t0509-c15-ids-00-a-expected.png:
* platform/qt/css2.1/t0509-c15-ids-00-a-expected.txt:
* platform/qt/css2.1/t0509-c15-ids-01-e-expected.png:
* platform/qt/css2.1/t0509-c15-ids-01-e-expected.txt:
* platform/qt/css2.1/t0509-id-sel-syntax-01-f-expected.png:
* platform/qt/css2.1/t0509-id-sel-syntax-01-f-expected.txt:
* platform/qt/css2.1/t0509-id-sel-syntax-02-b-expected.png:
* platform/qt/css2.1/t0509-id-sel-syntax-02-b-expected.txt:
* platform/qt/css2.1/t0510-c25-pseudo-elmnt-00-c-expected.png:
* platform/qt/css2.1/t0510-c25-pseudo-elmnt-00-c-expected.txt:
* platform/qt/css2.1/t0511-c21-pseud-anch-00-e-i-expected.png:
* platform/qt/css2.1/t0511-c21-pseud-anch-00-e-i-expected.txt:
* platform/qt/css2.1/t0511-c21-pseud-link-00-e-expected.png:
* platform/qt/css2.1/t0511-c21-pseud-link-00-e-expected.txt:
* platform/qt/css2.1/t0511-c21-pseud-link-01-e-expected.png:
* platform/qt/css2.1/t0511-c21-pseud-link-01-e-expected.txt:
* platform/qt/css2.1/t0511-c21-pseud-link-02-e-expected.png:
* platform/qt/css2.1/t0511-c21-pseud-link-02-e-expected.txt:
* platform/qt/css2.1/t0511-c21-pseud-link-03-e-expected.png:
* platform/qt/css2.1/t0511-c21-pseud-link-03-e-expected.txt:
* platform/qt/css2.1/t051103-c21-activ-ln-00-e-i-expected.png:
* platform/qt/css2.1/t051103-c21-activ-ln-00-e-i-expected.txt:
* platform/qt/css2.1/t051103-c21-focus-ln-00-e-i-expected.png:
* platform/qt/css2.1/t051103-c21-focus-ln-00-e-i-expected.txt:
* platform/qt/css2.1/t051103-c21-hover-ln-00-e-i-expected.png:
* platform/qt/css2.1/t051103-c21-hover-ln-00-e-i-expected.txt:
* platform/qt/css2.1/t051103-dom-hover-01-c-io-expected.png:
* platform/qt/css2.1/t051103-dom-hover-01-c-io-expected.txt:
* platform/qt/css2.1/t051103-dom-hover-02-c-io-expected.png:
* platform/qt/css2.1/t051103-dom-hover-02-c-io-expected.txt:
* platform/qt/css2.1/t051202-c24-first-lttr-00-b-expected.png:
* platform/qt/css2.1/t051202-c24-first-lttr-00-b-expected.txt:
* platform/qt/css2.1/t051202-c26-psudo-nest-00-c-expected.png:
* platform/qt/css2.1/t051202-c26-psudo-nest-00-c-expected.txt:
* platform/qt/css2.1/t0602-c13-inh-underlin-00-e-expected.png:
* platform/qt/css2.1/t0602-c13-inh-underlin-00-e-expected.txt:
* platform/qt/css2.1/t0602-c13-inheritance-00-e-expected.png:
* platform/qt/css2.1/t0602-c13-inheritance-00-e-expected.txt:
* platform/qt/css2.1/t0602-inherit-bdr-pad-b-00-expected.png:
* platform/qt/css2.1/t0602-inherit-bdr-pad-b-00-expected.txt:
* platform/qt/css2.1/t0603-c11-import-00-b-expected.png:
* platform/qt/css2.1/t0603-c11-import-00-b-expected.txt:
* platform/qt/css2.1/t060401-c32-cascading-00-b-expected.png:
* platform/qt/css2.1/t060401-c32-cascading-00-b-expected.txt:
* platform/qt/css2.1/t060402-c31-important-00-b-expected.png:
* platform/qt/css2.1/t060402-c31-important-00-b-expected.txt:
* platform/qt/css2.1/t060403-c21-pseu-cls-00-e-i-expected.png:
* platform/qt/css2.1/t060403-c21-pseu-cls-00-e-i-expected.txt:
* platform/qt/css2.1/t060403-c21-pseu-id-00-e-i-expected.png:
* platform/qt/css2.1/t060403-c21-pseu-id-00-e-i-expected.txt:
* platform/qt/css2.1/t09-c5526c-display-00-e-expected.png:
* platform/qt/css2.1/t09-c5526c-display-00-e-expected.txt:
* platform/qt/css2.1/t090402-c42-ibx-pad-00-d-ag-expected.png:
* platform/qt/css2.1/t090402-c42-ibx-pad-00-d-ag-expected.txt:
* platform/qt/css2.1/t0905-c414-flt-00-d-expected.png:
* platform/qt/css2.1/t0905-c414-flt-00-d-expected.txt:
* platform/qt/css2.1/t0905-c414-flt-01-d-g-expected.png:
* platform/qt/css2.1/t0905-c414-flt-01-d-g-expected.txt:
* platform/qt/css2.1/t0905-c414-flt-02-c-expected.png:
* platform/qt/css2.1/t0905-c414-flt-02-c-expected.txt:
* platform/qt/css2.1/t0905-c414-flt-03-c-expected.png:
* platform/qt/css2.1/t0905-c414-flt-03-c-expected.txt:
* platform/qt/css2.1/t0905-c414-flt-04-c-expected.png:
* platform/qt/css2.1/t0905-c414-flt-04-c-expected.txt:
* platform/qt/css2.1/t0905-c414-flt-fit-00-d-expected.png:
* platform/qt/css2.1/t0905-c414-flt-fit-00-d-expected.txt:
* platform/qt/css2.1/t0905-c414-flt-fit-01-d-g-expected.png:
* platform/qt/css2.1/t0905-c414-flt-fit-01-d-g-expected.txt:
* platform/qt/css2.1/t0905-c414-flt-wrap-00-e-expected.png:
* platform/qt/css2.1/t0905-c414-flt-wrap-00-e-expected.txt:
* platform/qt/css2.1/t0905-c414-flt-wrap-01-d-g-expected.png:
* platform/qt/css2.1/t0905-c414-flt-wrap-01-d-g-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltblck-00-d-ag-expected.png:
* platform/qt/css2.1/t0905-c5525-fltblck-00-d-ag-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltblck-01-d-expected.png:
* platform/qt/css2.1/t0905-c5525-fltblck-01-d-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltclr-00-c-ag-expected.png:
* platform/qt/css2.1/t0905-c5525-fltclr-00-c-ag-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltcont-00-d-g-expected.png:
* platform/qt/css2.1/t0905-c5525-fltcont-00-d-g-expected.txt:
* platform/qt/css2.1/t0905-c5525-flthw-00-c-g-expected.png:
* platform/qt/css2.1/t0905-c5525-flthw-00-c-g-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltinln-00-c-ag-expected.png:
* platform/qt/css2.1/t0905-c5525-fltinln-00-c-ag-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltmrgn-00-c-ag-expected.png:
* platform/qt/css2.1/t0905-c5525-fltmrgn-00-c-ag-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltmult-00-d-g-expected.png:
* platform/qt/css2.1/t0905-c5525-fltmult-00-d-g-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltwidth-00-c-g-expected.png:
* platform/qt/css2.1/t0905-c5525-fltwidth-00-c-g-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltwidth-01-c-g-expected.png:
* platform/qt/css2.1/t0905-c5525-fltwidth-01-c-g-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltwidth-02-c-g-expected.png:
* platform/qt/css2.1/t0905-c5525-fltwidth-02-c-g-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltwidth-03-c-g-expected.png:
* platform/qt/css2.1/t0905-c5525-fltwidth-03-c-g-expected.txt:
* platform/qt/css2.1/t0905-c5525-fltwrap-00-b-expected.png:
* platform/qt/css2.1/t0905-c5525-fltwrap-00-b-expected.txt:
* platform/qt/css2.1/t0905-c5526-fltclr-00-c-ag-expected.png:
* platform/qt/css2.1/t0905-c5526-fltclr-00-c-ag-expected.txt:
* platform/qt/css2.1/t0905-c5526-flthw-00-c-g-expected.png:
* platform/qt/css2.1/t0905-c5526-flthw-00-c-g-expected.txt:
* platform/qt/css2.1/t090501-c414-flt-00-d-expected.png:
* platform/qt/css2.1/t090501-c414-flt-00-d-expected.txt:
* platform/qt/css2.1/t090501-c414-flt-01-b-expected.png:
* platform/qt/css2.1/t090501-c414-flt-01-b-expected.txt:
* platform/qt/css2.1/t090501-c414-flt-02-d-g-expected.png:
* platform/qt/css2.1/t090501-c414-flt-02-d-g-expected.txt:
* platform/qt/css2.1/t090501-c414-flt-03-b-g-expected.png:
* platform/qt/css2.1/t090501-c414-flt-03-b-g-expected.txt:
* platform/qt/css2.1/t090501-c414-flt-ln-00-d-expected.png:
* platform/qt/css2.1/t090501-c414-flt-ln-00-d-expected.txt:
* platform/qt/css2.1/t090501-c414-flt-ln-01-d-g-expected.png:
* platform/qt/css2.1/t090501-c414-flt-ln-01-d-g-expected.txt:
* platform/qt/css2.1/t090501-c414-flt-ln-02-d-expected.png:
* platform/qt/css2.1/t090501-c414-flt-ln-02-d-expected.txt:
* platform/qt/css2.1/t090501-c414-flt-ln-03-d-expected.png:
* platform/qt/css2.1/t090501-c414-flt-ln-03-d-expected.txt:
* platform/qt/css2.1/t090501-c5525-flt-l-00-b-g-expected.png:
* platform/qt/css2.1/t090501-c5525-flt-l-00-b-g-expected.txt:
* platform/qt/css2.1/t090501-c5525-flt-r-00-b-g-expected.png:
* platform/qt/css2.1/t090501-c5525-flt-r-00-b-g-expected.txt:
* platform/qt/css2.1/t1503-c522-font-family-00-b-expected.png:
* platform/qt/css2.1/t1503-c522-font-family-00-b-expected.txt:
* platform/qt/css2.1/t1508-c527-font-03-b-expected.png:
* platform/qt/css2.1/t1508-c527-font-03-b-expected.txt:
* platform/qt/css2.1/t1508-c527-font-06-b-expected.png:
* platform/qt/css2.1/t1508-c527-font-06-b-expected.txt:

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

9 years ago Chinese IM receives incorrect/duplicated key events in text fields in webpage...
ap@apple.com [Wed, 25 Jul 2012 17:22:47 +0000 (17:22 +0000)]
    Chinese IM receives incorrect/duplicated key events in text fields in webpages in Safari.
        https://bugs.webkit.org/show_bug.cgi?id=89048
        <rdar://problem/11786384>

        Reviewed by Andreas Kling.

        Cannot test text input from UI process side.

        Stop relying on IPC to handle key events in order. There are too many complications
        where out of order delivery is performed. Instead, queue the events at UI process
        side.

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::handleKeyboardEvent):
        (WebKit::WebPageProxy::didReceiveEvent):

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

9 years ago[BlackBerry] clock_gettime() in BackingStore.cpp should use CLOCK_MONOTONIC
zhajiang@rim.com [Wed, 25 Jul 2012 17:21:57 +0000 (17:21 +0000)]
[BlackBerry] clock_gettime() in BackingStore.cpp should use CLOCK_MONOTONIC
https://bugs.webkit.org/show_bug.cgi?id=91898

Reviewed by Yong Li.
Patch by Jacky Jiang  <zhajiang@rim.com>

Let pthread condition variable in BackingStore.cpp use monotonic clock
to fix a regression caused by r123266.

* Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::BackingStorePrivate):

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

9 years ago[chromium] Unify compositor quadTransform/drawTransform/originTransform
enne@google.com [Wed, 25 Jul 2012 17:07:29 +0000 (17:07 +0000)]
[chromium] Unify compositor quadTransform/drawTransform/originTransform
https://bugs.webkit.org/show_bug.cgi?id=91417

Reviewed by Kenneth Russell.

Source/WebCore:

drawTransform used to operate on centered layer rects. To unify quad
transforms, draw transforms, and origin transforms, make draw
transforms operate on content rects with the origin in the top left.

This essentially eliminates the need for surface origin transforms,
which will be eliminated in a future patch.

Also, remove the unused CCLayerImpl::getDrawRect function.

No-op refactoring. Tested by existing tests.

* platform/graphics/chromium/LayerRendererChromium.cpp:
(WebCore::LayerRendererChromium::drawRenderPassQuad):
* platform/graphics/chromium/RenderSurfaceChromium.cpp:
(WebCore::RenderSurfaceChromium::drawableContentRect):
* platform/graphics/chromium/cc/CCDamageTracker.cpp:
(WebCore::CCDamageTracker::extendDamageForLayer):
* platform/graphics/chromium/cc/CCLayerImpl.cpp:
(WebCore::CCLayerImpl::createSharedQuadState):
* platform/graphics/chromium/cc/CCLayerImpl.h:
(CCLayerImpl):
* platform/graphics/chromium/cc/CCLayerSorter.cpp:
(WebCore::CCLayerSorter::LayerShape::LayerShape):
(WebCore::CCLayerSorter::createGraphNodes):
* platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
(WebCore::calculateVisibleContentRect):
(WebCore::calculateDrawTransformsInternal):
* platform/graphics/chromium/cc/CCOcclusionTracker.cpp:
(WebCore::::markOccludedBehindLayer):
(WebCore::::occluded):
(WebCore::::unoccludedContentRect):
* platform/graphics/chromium/cc/CCRenderPass.cpp:
(WebCore::CCRenderPass::appendQuadsToFillScreen):
* platform/graphics/chromium/cc/CCRenderSurface.cpp:
(WebCore::CCRenderSurface::drawableContentRect):

Source/WebKit/chromium:

Clean up tests to refer to the new draw transform semantics.

* tests/CCDamageTrackerTest.cpp:
(WebKitTests::createTestTreeWithOneSurface):
(WebKitTests::createTestTreeWithTwoSurfaces):
(WebKitTests::TEST_F):
* tests/CCLayerSorterTest.cpp:
* tests/CCLayerTreeHostCommonTest.cpp:
* tests/CCLayerTreeHostImplTest.cpp:
* tests/CCLayerTreeHostTest.cpp:
(WTF::CCLayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers::commitCompleteOnCCThread):
* tests/CCQuadCullerTest.cpp:
* tests/TiledLayerChromiumTest.cpp:

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

9 years agoMediaStream API: Update MediaStreamTrack to match the specification
tommyw@google.com [Wed, 25 Jul 2012 16:52:56 +0000 (16:52 +0000)]
MediaStream API: Update MediaStreamTrack to match the specification
https://bugs.webkit.org/show_bug.cgi?id=90180

Reviewed by Adam Barth.

Source/Platform:

* chromium/public/WebMediaStreamDescriptor.h:
(WebMediaStreamDescriptor):
* chromium/public/WebMediaStreamSource.h:
(WebMediaStreamSource):

Source/WebCore:

MediaStreamTracks are now required to show the status of the underlying source,
and trigger events when that status changes.

Test: fast/mediastream/MediaStreamTrack.html

* GNUmakefile.list.am:
* Modules/mediastream/MediaStream.cpp:
(WebCore::MediaStream::MediaStream):
(WebCore::MediaStream::addTrack):
* Modules/mediastream/MediaStreamTrack.cpp:
(WebCore::MediaStreamTrack::create):
(WebCore::MediaStreamTrack::MediaStreamTrack):
(WebCore::MediaStreamTrack::~MediaStreamTrack):
(WebCore::MediaStreamTrack::setEnabled):
(WebCore::MediaStreamTrack::readyState):
(WebCore):
(WebCore::MediaStreamTrack::sourceChangedState):
(WebCore::MediaStreamTrack::stop):
(WebCore::MediaStreamTrack::interfaceName):
(WebCore::MediaStreamTrack::scriptExecutionContext):
(WebCore::MediaStreamTrack::eventTargetData):
(WebCore::MediaStreamTrack::ensureEventTargetData):
* Modules/mediastream/MediaStreamTrack.h:
* Modules/mediastream/MediaStreamTrack.idl:
* WebCore.gypi:
* dom/EventNames.h:
(WebCore):
* dom/EventTargetFactory.in:
* platform/chromium/support/WebMediaStreamDescriptor.cpp:
* platform/chromium/support/WebMediaStreamSource.cpp:
(WebKit::WebMediaStreamSource::setReadyState):
(WebKit):
(WebKit::WebMediaStreamSource::readyState):
* platform/mediastream/MediaStreamSource.cpp: Copied from Source/WebCore/platform/mediastream/MediaStreamSource.h.
(WebCore):
(WebCore::MediaStreamSource::create):
(WebCore::MediaStreamSource::MediaStreamSource):
(WebCore::MediaStreamSource::setReadyState):
(WebCore::MediaStreamSource::addObserver):
(WebCore::MediaStreamSource::removeObserver):
* platform/mediastream/MediaStreamSource.h:
(Observer):
(WebCore::MediaStreamSource::Observer::~Observer):
(MediaStreamSource):
(WebCore::MediaStreamSource::readyState):
* platform/mediastream/chromium/MediaStreamCenterChromium.cpp:
(WebCore::MediaStreamCenterChromium::queryMediaStreamSources):
(WebCore::MediaStreamCenterChromium::didCreateMediaStream):

Tools:

Adding a Mock WebMediaStreamCenter to enable better LayoutTests.

* DumpRenderTree/DumpRenderTree.gypi:
* DumpRenderTree/chromium/MockWebKitPlatformSupport.cpp:
(MockWebKitPlatformSupport::createMediaStreamCenter):
* DumpRenderTree/chromium/MockWebMediaStreamCenter.cpp: Added.
(WebKit):
(WebKit::MockWebMediaStreamCenter::MockWebMediaStreamCenter):
(WebKit::MockWebMediaStreamCenter::queryMediaStreamSources):
(WebKit::MockWebMediaStreamCenter::didEnableMediaStreamTrack):
(WebKit::MockWebMediaStreamCenter::didDisableMediaStreamTrack):
(WebKit::MockWebMediaStreamCenter::didStopLocalMediaStream):
(WebKit::MockWebMediaStreamCenter::didCreateMediaStream):
(WebKit::MockWebMediaStreamCenter::constructSDP):
* DumpRenderTree/chromium/MockWebMediaStreamCenter.h: Copied from Tools/DumpRenderTree/chromium/MockWebKitPlatformSupport.cpp.
(WebKit):
(MockWebMediaStreamCenter):
(WebKit::MockWebMediaStreamCenter::MockWebMediaStreamCenter):

LayoutTests:

* fast/mediastream/MediaStreamTrack-expected.txt: Added.
* fast/mediastream/MediaStreamTrack.html: Added.

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

9 years agoIncorrect rounding in ceiledLayoutUnit and roundedLayoutUnit.
allan.jensen@nokia.com [Wed, 25 Jul 2012 16:45:17 +0000 (16:45 +0000)]
Incorrect rounding in ceiledLayoutUnit and roundedLayoutUnit.
https://bugs.webkit.org/show_bug.cgi?id=91061

Reviewed by Adam Barth.

The two functions are currently both returning the flooredLayoutUnit when subpixel
layout is enabled. This patch changes them to return the correct fractional rounded
value.

* platform/FractionalLayoutUnit.h:
(WebCore::FractionalLayoutUnit::fromFloatCeil):
(FractionalLayoutUnit):
(WebCore::FractionalLayoutUnit::fromFloatRound):
* rendering/LayoutTypes.h:
(WebCore::roundedLayoutUnit):
(WebCore::ceiledLayoutUnit):
* rendering/RenderBlock.cpp:
(WebCore::updatePreferredWidth):

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

9 years agoAdd *explicit* keyword to constructors in WebCore/platform
gyuyoung.kim@samsung.com [Wed, 25 Jul 2012 16:13:52 +0000 (16:13 +0000)]
Add *explicit* keyword to constructors in WebCore/platform
https://bugs.webkit.org/show_bug.cgi?id=92238

Reviewed by Kentaro Hara.

As a step to let *explicit* keyword add to constructors which have a parameter,
*explicit* keyword is added to Source/WebCore/platform in order to avoid implicit
type conversion.

Some files in platform directory can't use explicit keyword because of build breaks.

No new tests. Covered by existing tests.

* platform/AutodrainedPool.h:
(AutodrainedPool):
* platform/ContentType.h:
(ContentType):
* platform/ContextMenu.h:
(ContextMenu):
* platform/ContextMenuItem.h:
(ContextMenuItem):
* platform/Cursor.h:
(WebCore::SharedCursor::SharedCursor):
(Cursor):
* platform/KURL.h:
(WebCore::KURL::KURL):
(KURL):
* platform/KURLGooglePrivate.h:
(KURLGooglePrivate):
* platform/PODRedBlackTree.h:
(WebCore::PODRedBlackTree::PODRedBlackTree):
* platform/Pasteboard.h:
(Pasteboard):
* platform/PlatformEvent.h:
(WebCore::PlatformEvent::PlatformEvent):
* platform/PlatformKeyboardEvent.h:
(PlatformKeyboardEvent):
* platform/PlatformMouseEvent.h:
(PlatformMouseEvent):
* platform/PlatformPasteboard.h:
(PlatformPasteboard):
* platform/PlatformTouchEvent.h:
(PlatformTouchEvent):
* platform/PlatformWheelEvent.h:
(PlatformWheelEvent):
* platform/RunLoop.h:
(TimerBase):
* platform/ScrollAnimator.h:
(ScrollAnimator):
* platform/ScrollAnimatorNone.h:
(ScrollAnimatorNone):
* platform/SharedBuffer.h:
(SharedBuffer):
* platform/WheelFlingPlatformGestureCurve.h:
(WheelFlingPlatformGestureCurve):
* platform/Widget.h:
(Widget):

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

9 years agoNodesFromRect and area-based hit-testing can not handle CSS transforms.
allan.jensen@nokia.com [Wed, 25 Jul 2012 16:09:53 +0000 (16:09 +0000)]
NodesFromRect and area-based hit-testing can not handle CSS transforms.
https://bugs.webkit.org/show_bug.cgi?id=85792

Reviewed by Eric Seidel.

Source/WebCore:

To support the combination of CSS transforms and rect based hit testing,
we need to test against the transformed rect, instead of the original rect.

This patch makes HitTestPoint store the exact transformed FloatPoint and
FloatQuad, and modifies the intersection methods so that they will use a
new FloatQuad based intersection when transforms requires it.

Tests: fast/dom/nodesFromRect/nodesFromRect-rotate.html
       fast/dom/nodesFromRect/nodesFromRect-scale.html

* platform/graphics/FloatQuad.cpp:
(WebCore::determinant):
(WebCore::rightMostCornerToVector):
(WebCore::FloatQuad::intersectsRect):
(WebCore::FloatQuad::isCounterclockwise):
* platform/graphics/FloatQuad.h:
(FloatQuad):
* rendering/HitTestResult.cpp:
(WebCore::HitTestPoint::HitTestPoint):
(WebCore::HitTestPoint::operator=):
(WebCore::HitTestPoint::move):
(WebCore::HitTestPoint::intersectsRect):
(WebCore::HitTestPoint::intersects):
* rendering/HitTestResult.h:
(HitTestPoint):
(WebCore::HitTestPoint::isRectilinear):
(WebCore::HitTestPoint::transformedPoint):
(WebCore::HitTestPoint::transformedRect):
* rendering/HitTestingTransformState.cpp:
(WebCore::HitTestingTransformState::flattenWithTransform):
(WebCore::HitTestingTransformState::mappedArea):
(WebCore::HitTestingTransformState::boundsOfMappedArea):
* rendering/HitTestingTransformState.h:
(WebCore::HitTestingTransformState::create):
(WebCore::HitTestingTransformState::HitTestingTransformState):
* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::hitTestRegion):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::hitTest):
(WebCore::RenderLayer::createLocalTransformState):
(WebCore::RenderLayer::hitTestLayer):
(WebCore::RenderLayer::hitTestChildLayerColumns):
* rendering/RenderLayer.h:
* rendering/svg/RenderSVGText.cpp:
(WebCore::RenderSVGText::nodeAtFloatPoint):

LayoutTests:

Adds nodesFromRect tests that tests the API under the CSS transforms
scale and rotate.

* fast/dom/nodesFromRect/nodesFromRect-rotate-expected.txt: Added.
* fast/dom/nodesFromRect/nodesFromRect-rotate.html: Added.
* fast/dom/nodesFromRect/nodesFromRect-scale-expected.txt: Added.
* fast/dom/nodesFromRect/nodesFromRect-scale.html: Added.

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

9 years agoAdd HTMLStackItem.h to project files
commit-queue@webkit.org [Wed, 25 Jul 2012 15:51:26 +0000 (15:51 +0000)]
Add HTMLStackItem.h to project files
https://bugs.webkit.org/show_bug.cgi?id=92221

Patch by Kwang Yul Seo <skyul@company100.net> on 2012-07-25
Reviewed by Adam Barth.

Added HTMLStackItem.h introduced in r123399 to project files.

Project file changes only, no change in behavior thus no new tests.

* GNUmakefile.list.am:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:

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

9 years ago[BlackBerry] Add "SelectAll" to WebPage
commit-queue@webkit.org [Wed, 25 Jul 2012 15:40:04 +0000 (15:40 +0000)]
[BlackBerry] Add "SelectAll" to WebPage
https://bugs.webkit.org/show_bug.cgi?id=92246

Patch by Andy Chen <andchen@rim.com> on 2012-07-25
Reviewed by Antonio Gomes.

Add "Select All" editor command to WebPage.
Internally reviewed by Mike Fenton.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::selectAll):
(WebKit):
* Api/WebPage.h:
* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::selectAll):
(WebKit):
* WebKitSupport/InputHandler.h:

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

9 years agoUnreviewed, rolling out r123606.
commit-queue@webkit.org [Wed, 25 Jul 2012 15:14:32 +0000 (15:14 +0000)]
Unreviewed, rolling out r123606.
http://trac.webkit.org/changeset/123606
https://bugs.webkit.org/show_bug.cgi?id=92247

broke Windows build of Chromium (Requested by tomhudson on
#webkit).

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

.:

* ManualTests/forms/color-suggestion-picker.html: Removed.

Source/WebCore:

* Resources/colorSuggestionPicker.css: Removed.
* Resources/colorSuggestionPicker.js: Removed.
* WebCore.gyp/WebCore.gyp:

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

9 years ago[Qt] css2.1/t1* tests needs rebaseline after new testfonts
caio.oliveira@openbossa.org [Wed, 25 Jul 2012 15:14:25 +0000 (15:14 +0000)]
[Qt] css2.1/t1* tests needs rebaseline after new testfonts
https://bugs.webkit.org/show_bug.cgi?id=92250

Unreviewed.

* platform/qt-5.0-wk2/Skipped:
* platform/qt-5.0/Skipped:
* platform/qt-5.0/css2.1/t100304-c43-rpl-bbx-01-d-g-expected.txt: Removed.
* platform/qt-5.0/css2.1/t1202-counter-03-b-expected.txt: Removed.
* platform/qt-5.0/css2.1/t1202-counter-04-b-expected.txt: Removed.
* platform/qt-5.0/css2.1/t1202-counters-03-b-expected.txt: Removed.
* platform/qt-5.0/css2.1/t1205-c566-list-stl-01-c-g-expected.txt: Removed.
* platform/qt/css2.1/t1001-abs-pos-cb-01-b-expected.png:
* platform/qt/css2.1/t1001-abs-pos-cb-01-b-expected.txt:
* platform/qt/css2.1/t1001-abs-pos-cb-02-b-expected.png:
* platform/qt/css2.1/t1001-abs-pos-cb-02-b-expected.txt:
* platform/qt/css2.1/t1001-abs-pos-cb-03-b-expected.png:
* platform/qt/css2.1/t1001-abs-pos-cb-03-b-expected.txt:
* platform/qt/css2.1/t1001-abs-pos-cb-04-b-expected.png:
* platform/qt/css2.1/t1001-abs-pos-cb-04-b-expected.txt:
* platform/qt/css2.1/t1001-abs-pos-cb-05-b-expected.png:
* platform/qt/css2.1/t1001-abs-pos-cb-05-b-expected.txt:
* platform/qt/css2.1/t1001-abs-pos-cb-06-b-expected.png:
* platform/qt/css2.1/t1001-abs-pos-cb-06-b-expected.txt:
* platform/qt/css2.1/t1001-abs-pos-cb-07-b-expected.png:
* platform/qt/css2.1/t1001-abs-pos-cb-07-b-expected.txt:
* platform/qt/css2.1/t1001-abs-pos-cb-08-b-expected.png:
* platform/qt/css2.1/t1001-abs-pos-cb-08-b-expected.txt:
* platform/qt/css2.1/t1001-abs-pos-cb-09-b-expected.png:
* platform/qt/css2.1/t1001-abs-pos-cb-09-b-expected.txt:
* platform/qt/css2.1/t1002-c5523-width-00-b-g-expected.png:
* platform/qt/css2.1/t1002-c5523-width-00-b-g-expected.txt:
* platform/qt/css2.1/t1002-c5523-width-01-b-g-expected.png:
* platform/qt/css2.1/t1002-c5523-width-01-b-g-expected.txt:
* platform/qt/css2.1/t1002-c5523-width-02-b-g-expected.png:
* platform/qt/css2.1/t1002-c5523-width-02-b-g-expected.txt:
* platform/qt/css2.1/t100303-c412-blockw-00-d-ag-expected.png:
* platform/qt/css2.1/t100303-c412-blockw-00-d-ag-expected.txt:
* platform/qt/css2.1/t100304-c43-rpl-bbx-00-d-g-expected.png:
* platform/qt/css2.1/t100304-c43-rpl-bbx-00-d-g-expected.txt:
* platform/qt/css2.1/t100304-c43-rpl-bbx-01-d-g-expected.png:
* platform/qt/css2.1/t100304-c43-rpl-bbx-01-d-g-expected.txt:
* platform/qt/css2.1/t1004-c43-rpl-bbx-00-d-ag-expected.png:
* platform/qt/css2.1/t1004-c43-rpl-bbx-00-d-ag-expected.txt:
* platform/qt/css2.1/t1004-c5524-width-00-b-g-expected.png:
* platform/qt/css2.1/t1004-c5524-width-00-b-g-expected.txt:
* platform/qt/css2.1/t1005-c5524-width-00-b-g-expected.png:
* platform/qt/css2.1/t1005-c5524-width-00-b-g-expected.txt:
* platform/qt/css2.1/t1005-c5524-width-01-b-g-expected.png:
* platform/qt/css2.1/t1005-c5524-width-01-b-g-expected.txt:
* platform/qt/css2.1/t1008-c44-ln-box-00-d-ag-expected.png:
* platform/qt/css2.1/t1008-c44-ln-box-00-d-ag-expected.txt:
* platform/qt/css2.1/t1008-c44-ln-box-01-d-ag-expected.png:
* platform/qt/css2.1/t1008-c44-ln-box-01-d-ag-expected.txt:
* platform/qt/css2.1/t1008-c44-ln-box-03-d-ag-expected.png:
* platform/qt/css2.1/t1008-c44-ln-box-03-d-ag-expected.txt:
* platform/qt/css2.1/t100801-c42-ibx-ht-00-d-a-expected.png:
* platform/qt/css2.1/t100801-c42-ibx-ht-00-d-a-expected.txt:
* platform/qt/css2.1/t100801-c544-valgn-00-a-ag-expected.png:
* platform/qt/css2.1/t100801-c544-valgn-00-a-ag-expected.txt:
* platform/qt/css2.1/t100801-c544-valgn-02-d-agi-expected.png:
* platform/qt/css2.1/t100801-c544-valgn-02-d-agi-expected.txt:
* platform/qt/css2.1/t100801-c544-valgn-03-d-agi-expected.png:
* platform/qt/css2.1/t100801-c544-valgn-03-d-agi-expected.txt:
* platform/qt/css2.1/t100801-c544-valgn-04-d-agi-expected.png:
* platform/qt/css2.1/t100801-c544-valgn-04-d-agi-expected.txt:
* platform/qt/css2.1/t100801-c548-leadin-00-d-a-expected.png:
* platform/qt/css2.1/t100801-c548-leadin-00-d-a-expected.txt:
* platform/qt/css2.1/t100801-c548-ln-ht-00-c-a-expected.png:
* platform/qt/css2.1/t100801-c548-ln-ht-00-c-a-expected.txt:
* platform/qt/css2.1/t100801-c548-ln-ht-01-b-ag-expected.png: Removed.
* platform/qt/css2.1/t100801-c548-ln-ht-01-b-ag-expected.txt: Removed.
* platform/qt/css2.1/t100801-c548-ln-ht-03-d-ag-expected.png:
* platform/qt/css2.1/t100801-c548-ln-ht-03-d-ag-expected.txt:
* platform/qt/css2.1/t100801-c548-ln-ht-04-d-ag-expected.png:
* platform/qt/css2.1/t100801-c548-ln-ht-04-d-ag-expected.txt:
* platform/qt/css2.1/t1202-counter-00-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-00-b-expected.txt:
* platform/qt/css2.1/t1202-counter-01-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-01-b-expected.txt:
* platform/qt/css2.1/t1202-counter-02-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-02-b-expected.txt:
* platform/qt/css2.1/t1202-counter-03-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-03-b-expected.txt:
* platform/qt/css2.1/t1202-counter-04-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-04-b-expected.txt:
* platform/qt/css2.1/t1202-counter-05-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-05-b-expected.txt:
* platform/qt/css2.1/t1202-counter-06-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-06-b-expected.txt:
* platform/qt/css2.1/t1202-counter-07-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-07-b-expected.txt:
* platform/qt/css2.1/t1202-counter-08-b-expected.png:
* platform/qt/css2.1/t1202-counter-08-b-expected.txt:
* platform/qt/css2.1/t1202-counter-11-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-11-b-expected.txt:
* platform/qt/css2.1/t1202-counter-12-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-12-b-expected.txt:
* platform/qt/css2.1/t1202-counter-13-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-13-b-expected.txt:
* platform/qt/css2.1/t1202-counter-14-b-expected.png: Added.
* platform/qt/css2.1/t1202-counter-14-b-expected.txt:
* platform/qt/css2.1/t1202-counter-16-f-expected.png: Added.
* platform/qt/css2.1/t1202-counter-16-f-expected.txt:
* platform/qt/css2.1/t1202-counters-00-b-expected.png: Added.
* platform/qt/css2.1/t1202-counters-00-b-expected.txt:
* platform/qt/css2.1/t1202-counters-01-b-expected.png: Added.
* platform/qt/css2.1/t1202-counters-01-b-expected.txt:
* platform/qt/css2.1/t1202-counters-02-b-expected.png: Added.
* platform/qt/css2.1/t1202-counters-02-b-expected.txt:
* platform/qt/css2.1/t1202-counters-03-b-expected.png: Added.
* platform/qt/css2.1/t1202-counters-03-b-expected.txt:
* platform/qt/css2.1/t1202-counters-05-b-expected.png: Added.
* platform/qt/css2.1/t1202-counters-05-b-expected.txt:
* platform/qt/css2.1/t1202-counters-06-b-expected.png: Added.
* platform/qt/css2.1/t1202-counters-06-b-expected.txt:
* platform/qt/css2.1/t1202-counters-07-b-expected.png: Added.
* platform/qt/css2.1/t1202-counters-07-b-expected.txt:
* platform/qt/css2.1/t1202-counters-08-b-expected.png:
* platform/qt/css2.1/t1202-counters-08-b-expected.txt:
* platform/qt/css2.1/t1202-counters-11-b-expected.png: Added.
* platform/qt/css2.1/t1202-counters-11-b-expected.txt:
* platform/qt/css2.1/t1202-counters-12-b-expected.png: Added.
* platform/qt/css2.1/t1202-counters-12-b-expected.txt:
* platform/qt/css2.1/t1202-counters-13-b-expected.png: Added.
* platform/qt/css2.1/t1202-counters-13-b-expected.txt:
* platform/qt/css2.1/t1202-counters-14-b-expected.png: Added.
* platform/qt/css2.1/t1202-counters-14-b-expected.txt:
* platform/qt/css2.1/t1202-counters-16-c-expected.png: Added.
* platform/qt/css2.1/t1202-counters-16-c-expected.txt:
* platform/qt/css2.1/t1202-counters-17-d-expected.png: Added.
* platform/qt/css2.1/t1202-counters-17-d-expected.txt:
* platform/qt/css2.1/t1202-counters-18-f-expected.png: Added.
* platform/qt/css2.1/t1202-counters-18-f-expected.txt:
* platform/qt/css2.1/t1204-implied-00-b-expected.png:
* platform/qt/css2.1/t1204-implied-00-b-expected.txt:
* platform/qt/css2.1/t1204-implied-01-c-expected.png:
* platform/qt/css2.1/t1204-implied-01-c-expected.txt:
* platform/qt/css2.1/t1204-implied-02-d-expected.png:
* platform/qt/css2.1/t1204-implied-02-d-expected.txt:
* platform/qt/css2.1/t1204-multiple-00-c-expected.png:
* platform/qt/css2.1/t1204-multiple-00-c-expected.txt:
* platform/qt/css2.1/t1204-multiple-01-c-expected.png:
* platform/qt/css2.1/t1204-multiple-01-c-expected.txt:
* platform/qt/css2.1/t1204-order-00-c-expected.png:
* platform/qt/css2.1/t1204-order-00-c-expected.txt:
* platform/qt/css2.1/t1204-order-01-d-expected.png:
* platform/qt/css2.1/t1204-order-01-d-expected.txt:
* platform/qt/css2.1/t1204-root-e-expected.png:
* platform/qt/css2.1/t1204-root-e-expected.txt:
* platform/qt/css2.1/t120401-scope-00-b-expected.png:
* platform/qt/css2.1/t120401-scope-00-b-expected.txt:
* platform/qt/css2.1/t120401-scope-01-c-expected.png:
* platform/qt/css2.1/t120401-scope-01-c-expected.txt:
* platform/qt/css2.1/t120401-scope-02-c-expected.png:
* platform/qt/css2.1/t120401-scope-02-c-expected.txt:
* platform/qt/css2.1/t120401-scope-03-c-expected.png:
* platform/qt/css2.1/t120401-scope-03-c-expected.txt:
* platform/qt/css2.1/t120401-scope-04-d-expected.png:
* platform/qt/css2.1/t120401-scope-04-d-expected.txt:
* platform/qt/css2.1/t120403-content-none-00-c-expected.png:
* platform/qt/css2.1/t120403-content-none-00-c-expected.txt:
* platform/qt/css2.1/t120403-display-none-00-c-expected.png:
* platform/qt/css2.1/t120403-display-none-00-c-expected.txt:
* platform/qt/css2.1/t120403-visibility-00-c-expected.png:
* platform/qt/css2.1/t120403-visibility-00-c-expected.txt:
* platform/qt/css2.1/t1205-c561-list-displ-00-b-expected.png: Added.
* platform/qt/css2.1/t1205-c561-list-displ-00-b-expected.txt:
* platform/qt/css2.1/t1205-c563-list-type-00-b-expected.png: Added.
* platform/qt/css2.1/t1205-c563-list-type-00-b-expected.txt:
* platform/qt/css2.1/t1205-c563-list-type-01-b-expected.png: Added.
* platform/qt/css2.1/t1205-c563-list-type-01-b-expected.txt:
* platform/qt/css2.1/t1205-c564-list-img-00-b-g-expected.png: Added.
* platform/qt/css2.1/t1205-c564-list-img-00-b-g-expected.txt:
* platform/qt/css2.1/t1205-c565-list-pos-00-b-expected.png: Added.
* platform/qt/css2.1/t1205-c565-list-pos-00-b-expected.txt:
* platform/qt/css2.1/t1205-c566-list-stl-00-e-ag-expected.png: Added.
* platform/qt/css2.1/t1205-c566-list-stl-00-e-ag-expected.txt:
* platform/qt/css2.1/t1205-c566-list-stl-01-c-g-expected.png: Added.
* platform/qt/css2.1/t1205-c566-list-stl-01-c-g-expected.txt:
* platform/qt/css2.1/t1401-c531-color-00-a-expected.png:
* platform/qt/css2.1/t1401-c531-color-00-a-expected.txt:
* platform/qt/css2.1/t1402-c45-bg-canvas-00-b-expected.png:
* platform/qt/css2.1/t1402-c45-bg-canvas-00-b-expected.txt:
* platform/qt/css2.1/t140201-c532-bgcolor-00-a-expected.png: Added.
* platform/qt/css2.1/t140201-c532-bgcolor-00-a-expected.txt:
* platform/qt/css2.1/t140201-c532-bgcolor-01-b-expected.png: Added.
* platform/qt/css2.1/t140201-c532-bgcolor-01-b-expected.txt:
* platform/qt/css2.1/t140201-c533-bgimage-00-a-expected.png: Added.
* platform/qt/css2.1/t140201-c533-bgimage-00-a-expected.txt:
* platform/qt/css2.1/t140201-c533-bgimage-01-b-g-expected.png: Added.
* platform/qt/css2.1/t140201-c533-bgimage-01-b-g-expected.txt:
* platform/qt/css2.1/t140201-c534-bgre-00-b-ag-expected.png: Added.
* platform/qt/css2.1/t140201-c534-bgre-00-b-ag-expected.txt:
* platform/qt/css2.1/t140201-c534-bgre-01-b-ag-expected.png:
* platform/qt/css2.1/t140201-c534-bgre-01-b-ag-expected.txt:
* platform/qt/css2.1/t140201-c535-bg-fixd-00-b-g-expected.png: Added.
* platform/qt/css2.1/t140201-c535-bg-fixd-00-b-g-expected.txt:
* platform/qt/css2.1/t140201-c536-bgpos-00-b-ag-expected.png: Added.
* platform/qt/css2.1/t140201-c536-bgpos-00-b-ag-expected.txt:
* platform/qt/css2.1/t140201-c536-bgpos-01-b-ag-expected.png:
* platform/qt/css2.1/t140201-c536-bgpos-01-b-ag-expected.txt:
* platform/qt/css2.1/t140201-c537-bgfxps-00-c-ag-expected.png:
* platform/qt/css2.1/t140201-c537-bgfxps-00-c-ag-expected.txt:
* platform/qt/css2.1/t1504-c523-font-style-00-b-expected.png: Added.
* platform/qt/css2.1/t1504-c523-font-style-00-b-expected.txt:
* platform/qt/css2.1/t1505-c524-font-var-00-b-expected.png:
* platform/qt/css2.1/t1505-c524-font-var-00-b-expected.txt:
* platform/qt/css2.1/t1506-c525-font-wt-00-b-expected.png: Added.
* platform/qt/css2.1/t1506-c525-font-wt-00-b-expected.txt:
* platform/qt/css2.1/t1507-c526-font-sz-00-b-expected.png: Added.
* platform/qt/css2.1/t1507-c526-font-sz-00-b-expected.txt:
* platform/qt/css2.1/t1507-c526-font-sz-01-b-a-expected.png: Added.
* platform/qt/css2.1/t1507-c526-font-sz-01-b-a-expected.txt:
* platform/qt/css2.1/t1507-c526-font-sz-02-b-a-expected.png: Added.
* platform/qt/css2.1/t1507-c526-font-sz-02-b-a-expected.txt:
* platform/qt/css2.1/t1507-c526-font-sz-03-f-a-expected.png: Added.
* platform/qt/css2.1/t1507-c526-font-sz-03-f-a-expected.txt:
* platform/qt/css2.1/t1508-c527-font-00-b-expected.png: Added.
* platform/qt/css2.1/t1508-c527-font-00-b-expected.txt:
* platform/qt/css2.1/t1508-c527-font-01-b-expected.png: Added.
* platform/qt/css2.1/t1508-c527-font-01-b-expected.txt:
* platform/qt/css2.1/t1508-c527-font-02-b-expected.png: Added.
* platform/qt/css2.1/t1508-c527-font-02-b-expected.txt:
* platform/qt/css2.1/t1508-c527-font-04-b-expected.png: Added.
* platform/qt/css2.1/t1508-c527-font-04-b-expected.txt:
* platform/qt/css2.1/t1508-c527-font-05-b-expected.png: Added.
* platform/qt/css2.1/t1508-c527-font-05-b-expected.txt:
* platform/qt/css2.1/t1508-c527-font-07-b-expected.png: Added.
* platform/qt/css2.1/t1508-c527-font-07-b-expected.txt:
* platform/qt/css2.1/t1508-c527-font-08-b-expected.png: Added.
* platform/qt/css2.1/t1508-c527-font-08-b-expected.txt:
* platform/qt/css2.1/t1508-c527-font-09-b-expected.png: Added.
* platform/qt/css2.1/t1508-c527-font-09-b-expected.txt: Added.
* platform/qt/css2.1/t1508-c527-font-10-c-expected.png: Added.
* platform/qt/css2.1/t1508-c527-font-10-c-expected.txt:
* platform/qt/css2.1/t1601-c547-indent-01-d-expected.png:
* platform/qt/css2.1/t1601-c547-indent-01-d-expected.txt:
* platform/qt/css2.1/t1602-c546-txt-align-00-b-expected.png:
* platform/qt/css2.1/t1602-c546-txt-align-00-b-expected.txt:
* platform/qt/css2.1/t1604-c541-word-sp-01-b-a-expected.png:
* platform/qt/css2.1/t1604-c541-word-sp-01-b-a-expected.txt:
* platform/qt/css2.1/t1606-c562-white-sp-00-b-ag-expected.png:
* platform/qt/css2.1/t1606-c562-white-sp-00-b-ag-expected.txt:

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

9 years ago[chromium] Calendar picker popup displays at wrong scale when deviceScaleFactor ...
commit-queue@webkit.org [Wed, 25 Jul 2012 15:09:22 +0000 (15:09 +0000)]
[chromium] Calendar picker popup displays at wrong scale when deviceScaleFactor != 1.
https://bugs.webkit.org/show_bug.cgi?id=92177

Manually tested at deviceScaleFactor = 1 and 2.

Patch by Kevin Ellis <kevers@chromium.org> on 2012-07-25
Reviewed by Kent Tamura.

The device scale factor was not being set for the calendar popup.
As a result, the popup was rendered too small on hidpi displays.
This patch sets the device scale factor for any page popup.

* src/WebPagePopupImpl.cpp:
(WebKit::WebPagePopupImpl::initPage):

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

9 years agoWeb Inspector: disabling property should remove "overriden" decoration from overriden...
pfeldman@chromium.org [Wed, 25 Jul 2012 15:05:40 +0000 (15:05 +0000)]
Web Inspector: disabling property should remove "overriden" decoration from overriden UA shorthand.
https://bugs.webkit.org/show_bug.cgi?id=92253

Reviewed by Vsevolod Vlasov.

Source/WebCore:

Bug fix with a test and more compilation markup.

Test: inspector/styles/styles-disable-then-enable-overriden-ua.html

* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylePropertiesSection.prototype.update):
(WebInspector.StylePropertyTreeElement):
(WebInspector.StylePropertyTreeElement.prototype):

LayoutTests:

* inspector/styles/styles-disable-then-enable-overriden-ua-expected.txt: Added.
* inspector/styles/styles-disable-then-enable-overriden-ua.html: Added.

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

9 years ago[BlackBerry] Don't touch a tile buffer while it's still on its way to the GPU
commit-queue@webkit.org [Wed, 25 Jul 2012 14:59:36 +0000 (14:59 +0000)]
[BlackBerry] Don't touch a tile buffer while it's still on its way to the GPU
https://bugs.webkit.org/show_bug.cgi?id=91992

Patch by Arvid Nilsson <anilsson@rim.com> on 2012-07-25
Reviewed by Adam Treat.

PR: 141439
The copyPreviousContentsToBackSurfaceOfTile() call will also modify
buffer contents, move it after the blit generation condvar to make sure
we've waited for the buffer to become available first.

This is done as part of some general BackingStorePrivate::render()
cleanup in PR 141439.

Internally reviewed by Jakob Petsovits.

* Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::render):

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

9 years agoWeb Inspector: Improve ObjectPropertiesSection UI by adding a tooltip for the value.
vsevik@chromium.org [Wed, 25 Jul 2012 14:55:03 +0000 (14:55 +0000)]
Web Inspector: Improve ObjectPropertiesSection UI by adding a tooltip for the value.
https://bugs.webkit.org/show_bug.cgi?id=92225

Reviewed by Pavel Feldman.

Added tooltip with property value description on the property's valueElement.

* inspector/front-end/ObjectPropertiesSection.js:
(WebInspector.ObjectPropertyTreeElement.prototype.update):

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

9 years ago[Qt] css2.1/t040* rebaseline after new test fonts
caio.oliveira@openbossa.org [Wed, 25 Jul 2012 14:12:57 +0000 (14:12 +0000)]
[Qt] css2.1/t040* rebaseline after new test fonts
https://bugs.webkit.org/show_bug.cgi?id=92248

Unreviewed.

* platform/qt-5.0/Skipped:
* platform/qt/css2.1/t040102-keywords-00-b-expected.png: Added.
* platform/qt/css2.1/t040102-keywords-00-b-expected.txt:
* platform/qt/css2.1/t040102-keywords-01-b-expected.png: Added.
* platform/qt/css2.1/t040102-keywords-01-b-expected.txt:
* platform/qt/css2.1/t040103-case-00-b-expected.png: Added.
* platform/qt/css2.1/t040103-case-00-b-expected.txt:
* platform/qt/css2.1/t040103-case-01-c-expected.png: Added.
* platform/qt/css2.1/t040103-case-01-c-expected.txt:
* platform/qt/css2.1/t040103-escapes-00-b-expected.png: Added.
* platform/qt/css2.1/t040103-escapes-00-b-expected.txt:
* platform/qt/css2.1/t040103-escapes-01-b-expected.png:
* platform/qt/css2.1/t040103-escapes-01-b-expected.txt:
* platform/qt/css2.1/t040103-escapes-02-d-expected.png: Added.
* platform/qt/css2.1/t040103-escapes-02-d-expected.txt:
* platform/qt/css2.1/t040103-escapes-03-b-expected.png: Added.
* platform/qt/css2.1/t040103-escapes-03-b-expected.txt:
* platform/qt/css2.1/t040103-escapes-04-b-expected.png: Added.
* platform/qt/css2.1/t040103-escapes-04-b-expected.txt:
* platform/qt/css2.1/t040103-escapes-05-c-expected.png: Added.
* platform/qt/css2.1/t040103-escapes-05-c-expected.txt:
* platform/qt/css2.1/t040103-escapes-06-b-expected.png: Added.
* platform/qt/css2.1/t040103-escapes-06-b-expected.txt:
* platform/qt/css2.1/t040103-escapes-07-b-expected.png: Added.
* platform/qt/css2.1/t040103-escapes-07-b-expected.txt:
* platform/qt/css2.1/t040103-escapes-08-b-expected.png: Added.
* platform/qt/css2.1/t040103-escapes-08-b-expected.txt:
* platform/qt/css2.1/t040103-ident-00-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-00-c-expected.txt:
* platform/qt/css2.1/t040103-ident-01-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-01-c-expected.txt:
* platform/qt/css2.1/t040103-ident-02-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-02-c-expected.txt:
* platform/qt/css2.1/t040103-ident-03-c-expected.txt: Removed.
* platform/qt/css2.1/t040103-ident-04-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-04-c-expected.txt:
* platform/qt/css2.1/t040103-ident-05-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-05-c-expected.txt:
* platform/qt/css2.1/t040103-ident-06-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-06-c-expected.txt:
* platform/qt/css2.1/t040103-ident-07-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-07-c-expected.txt:
* platform/qt/css2.1/t040103-ident-08-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-08-c-expected.txt:
* platform/qt/css2.1/t040103-ident-09-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-09-c-expected.txt:
* platform/qt/css2.1/t040103-ident-10-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-10-c-expected.txt:
* platform/qt/css2.1/t040103-ident-11-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-11-c-expected.txt:
* platform/qt/css2.1/t040103-ident-12-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-12-c-expected.txt:
* platform/qt/css2.1/t040103-ident-13-c-expected.png: Added.
* platform/qt/css2.1/t040103-ident-13-c-expected.txt:
* platform/qt/css2.1/t040105-atkeyw-00-b-expected.png: Added.
* platform/qt/css2.1/t040105-atkeyw-00-b-expected.txt:
* platform/qt/css2.1/t040105-atkeyw-01-b-expected.png: Added.
* platform/qt/css2.1/t040105-atkeyw-01-b-expected.txt:
* platform/qt/css2.1/t040105-atkeyw-02-b-expected.png: Added.
* platform/qt/css2.1/t040105-atkeyw-02-b-expected.txt:
* platform/qt/css2.1/t040105-atrule-00-b-expected.png: Added.
* platform/qt/css2.1/t040105-atrule-00-b-expected.txt:
* platform/qt/css2.1/t040105-atrule-01-b-expected.png: Added.
* platform/qt/css2.1/t040105-atrule-01-b-expected.txt:
* platform/qt/css2.1/t040105-atrule-02-b-expected.png: Added.
* platform/qt/css2.1/t040105-atrule-02-b-expected.txt:
* platform/qt/css2.1/t040105-atrule-03-b-expected.png: Added.
* platform/qt/css2.1/t040105-atrule-03-b-expected.txt:
* platform/qt/css2.1/t040105-atrule-04-b-expected.png: Added.
* platform/qt/css2.1/t040105-atrule-04-b-expected.txt:
* platform/qt/css2.1/t040105-import-00-b-expected.png: Added.
* platform/qt/css2.1/t040105-import-00-b-expected.txt:
* platform/qt/css2.1/t040105-import-01-b-expected.png: Added.
* platform/qt/css2.1/t040105-import-01-b-expected.txt:
* platform/qt/css2.1/t040105-import-10-b-expected.png:
* platform/qt/css2.1/t040105-import-10-b-expected.txt:
* platform/qt/css2.1/t040109-c17-comments-00-b-expected.png: Added.
* platform/qt/css2.1/t040109-c17-comments-00-b-expected.txt:
* platform/qt/css2.1/t040109-c17-comments-01-b-expected.png: Added.
* platform/qt/css2.1/t040109-c17-comments-01-b-expected.txt:
* platform/qt/css2.1/t0402-c71-fwd-parsing-00-f-expected.png: Added.
* platform/qt/css2.1/t0402-c71-fwd-parsing-00-f-expected.txt:
* platform/qt/css2.1/t0402-c71-fwd-parsing-01-f-expected.png: Added.
* platform/qt/css2.1/t0402-c71-fwd-parsing-01-f-expected.txt:
* platform/qt/css2.1/t0402-c71-fwd-parsing-02-f-expected.png: Added.
* platform/qt/css2.1/t0402-c71-fwd-parsing-02-f-expected.txt:
* platform/qt/css2.1/t0402-c71-fwd-parsing-03-f-expected.png: Added.
* platform/qt/css2.1/t0402-c71-fwd-parsing-03-f-expected.txt:
* platform/qt/css2.1/t0402-c71-fwd-parsing-04-f-expected.png: Added.
* platform/qt/css2.1/t0402-c71-fwd-parsing-04-f-expected.txt:
* platform/qt/css2.1/t0402-syntax-01-f-expected.png: Added.
* platform/qt/css2.1/t0402-syntax-01-f-expected.txt:
* platform/qt/css2.1/t0402-syntax-02-f-expected.png: Added.
* platform/qt/css2.1/t0402-syntax-02-f-expected.txt:
* platform/qt/css2.1/t0402-syntax-03-f-expected.png: Added.
* platform/qt/css2.1/t0402-syntax-03-f-expected.txt:
* platform/qt/css2.1/t0402-syntax-04-f-expected.png: Added.
* platform/qt/css2.1/t0402-syntax-04-f-expected.txt:
* platform/qt/css2.1/t0402-syntax-05-f-expected.png: Added.
* platform/qt/css2.1/t0402-syntax-05-f-expected.txt:
* platform/qt/css2.1/t0402-syntax-06-f-expected.png: Added.
* platform/qt/css2.1/t0402-syntax-06-f-expected.txt:
* platform/qt/css2.1/t040302-c61-ex-len-00-b-a-expected.png: Added.
* platform/qt/css2.1/t040302-c61-ex-len-00-b-a-expected.txt:
* platform/qt/css2.1/t040302-c61-phys-len-00-b-expected.png: Added.
* platform/qt/css2.1/t040302-c61-phys-len-00-b-expected.txt:
* platform/qt/css2.1/t040302-c61-rel-len-00-b-ag-expected.png: Added.
* platform/qt/css2.1/t040302-c61-rel-len-00-b-ag-expected.txt:
* platform/qt/css2.1/t040303-c62-percent-00-b-ag-expected.png:
* platform/qt/css2.1/t040303-c62-percent-00-b-ag-expected.txt:
* platform/qt/css2.1/t040304-c64-uri-00-a-g-expected.png: Added.
* platform/qt/css2.1/t040304-c64-uri-00-a-g-expected.txt:
* platform/qt/css2.1/t040306-c63-color-00-b-ag-expected.png: Added.
* platform/qt/css2.1/t040306-c63-color-00-b-ag-expected.txt:
* platform/qt/css2.1/t040306-syntax-01-f-expected.png: Added.
* platform/qt/css2.1/t040306-syntax-01-f-expected.txt:
* platform/qt/css2.1/t040307-syntax-01-b-expected.png: Added.
* platform/qt/css2.1/t040307-syntax-01-b-expected.txt:

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

9 years ago[NRWT] Rename baseline_search_path() to default_baseline_search_path()
kkristof@inf.u-szeged.hu [Wed, 25 Jul 2012 13:58:47 +0000 (13:58 +0000)]
[NRWT] Rename baseline_search_path() to default_baseline_search_path()
https://bugs.webkit.org/show_bug.cgi?id=92122

Reviewed by Dirk Pranke.

* Scripts/webkitpy/layout_tests/port/base.py:
(Port.baseline_version_dir):
(Port.baseline_search_path):
(Port):
(Port.default_baseline_search_path):
(Port.expected_baselines):
* Scripts/webkitpy/layout_tests/port/base_unittest.py:
(PortTest.test_additional_platform_directory):
* Scripts/webkitpy/layout_tests/port/mac.py:
(MacPort.default_baseline_search_path):
* Scripts/webkitpy/layout_tests/port/qt.py:
(QtPort.default_baseline_search_path):
* Scripts/webkitpy/layout_tests/port/win.py:
(WinPort.default_baseline_search_path):

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

9 years ago[Qt] Fix rebaseline for two tests in svg/hixie
caio.oliveira@openbossa.org [Wed, 25 Jul 2012 13:52:36 +0000 (13:52 +0000)]
[Qt] Fix rebaseline for two tests in svg/hixie
https://bugs.webkit.org/show_bug.cgi?id=92244

Reviewed by Alexis Menard.

* platform/qt-5.0/svg/hixie/intrinsic/003-expected.txt: Removed.
* platform/qt/svg/hixie/error/017-expected.txt:
* platform/qt/svg/hixie/intrinsic/003-expected.png:

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

9 years agoSource/WebCore: https://bugs.webkit.org/show_bug.cgi?id=91931
pfeldman@chromium.org [Wed, 25 Jul 2012 13:48:47 +0000 (13:48 +0000)]
Source/WebCore: https://bugs.webkit.org/show_bug.cgi?id=91931

Reviewed by Vsevolod Vlasov.

- Synthetic shorthand values are now only returned for source-less styles
- CSSAgents reports longhands along with the property names in getSupportedCSSProperties
- StylesSidebarPane now has two paths: for source-enabled styles and for CSSOM-based ones (UA styles)
- CSSStyleModel uses style metainfo as a source of shorthand / longhand relationship now

Test: inspector/styles/styles-overriden-properties.html

* inspector/Inspector.json:
* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::getSupportedCSSProperties):
* inspector/InspectorCSSAgent.h:
(InspectorCSSAgent):
* inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyle::styleWithProperties):
* inspector/front-end/CSSCompletions.js:
(WebInspector.CSSCompletions):
(WebInspector.CSSCompletions.requestCSSNameCompletions):
(WebInspector.CSSCompletions.prototype._closest):
(WebInspector.CSSCompletions.prototype.longhands):
(WebInspector.CSSCompletions.prototype.shorthands):
* inspector/front-end/CSSStyleModel.js:
(WebInspector.CSSStyleDeclaration):
(WebInspector.CSSStyleDeclaration.prototype.longhandProperties):
(WebInspector.CSSStyleDeclaration.prototype.shorthandValue):
(WebInspector.CSSStyleDeclaration.prototype.newBlankProperty):
(WebInspector.CSSProperty):
(WebInspector.CSSProperty.parsePayload):
* inspector/front-end/SourceCSSTokenizer.js:
(WebInspector.SourceCSSTokenizer):
* inspector/front-end/SourceCSSTokenizer.re2js:
* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylePropertiesSection.prototype.isPropertyOverloaded):
(WebInspector.StylePropertiesSection.prototype.update):
(WebInspector.StylePropertiesSection.prototype.onpopulate):
(WebInspector.StylePropertyTreeElement.prototype):

LayoutTests: Web Inspector: Redundant Style Declarations Missing in Styles Section
https://bugs.webkit.org/show_bug.cgi?id=91931

Reviewed by Vsevolod Vlasov.

* http/tests/inspector/elements-test.js:
(initialize_ElementTest.InspectorTest.dumpStyleTreeItem):
* inspector/elements/elements-panel-styles-expected.txt:
* inspector/styles/force-pseudo-state-expected.txt:
* inspector/styles/inject-stylesheet-expected.txt:
* inspector/styles/lazy-computed-style-expected.txt:
* inspector/styles/styles-overriden-properties-expected.txt: Added.
* inspector/styles/styles-overriden-properties.html: Added.
* inspector/styles/styles-update-from-js-expected.txt:
* platform/chromium/inspector/styles/inject-stylesheet-expected.txt: Removed.

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

9 years ago[Qt] Unreviewed gardening.
ossy@webkit.org [Wed, 25 Jul 2012 13:31:11 +0000 (13:31 +0000)]
[Qt] Unreviewed gardening.

* platform/qt/Skipped: Skip 2 more tests because of minor 32/64 bit differences.

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

9 years ago[BlackBerry] notifyContentRendered() call missing in two spots
jpetsovits@rim.com [Wed, 25 Jul 2012 13:18:44 +0000 (13:18 +0000)]
[BlackBerry] notifyContentRendered() call missing in two spots
https://bugs.webkit.org/show_bug.cgi?id=92153
RIM PR 173340

Reviewed by Antonio Gomes.

In dispatchDidFirstVisualLayout() and repaint() in
immediate mode, we render but don't notify the
WebPageClient that the content was modified.

In the long run, we should probably keep track of
the modified reason from within render() itself
and use this to automatically notify the client
from within blitContents() and/or invalidateWindow(),
depending on the rendering path. That's somewhat of
a medium-size undertaking though; for now, adding
the call directly to the renderVisibleContents()
call sites will do.

This patch also adds a blitVisibleContents() to
dispatchDidFirstVisualLayout() where it was
inexplicably missing, probably on account of
old code that was never updated.

* Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::repaint):
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::resumeBackingStore):
* WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
(WebCore::FrameLoaderClientBlackBerry::dispatchDidFirstVisuallyNonEmptyLayout):

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

9 years ago[Qt] svg/dom, svg/filters, svg/foreignObject rebaseline after new test fonts.
alexis.menard@openbossa.org [Wed, 25 Jul 2012 13:00:38 +0000 (13:00 +0000)]
[Qt] svg/dom, svg/filters, svg/foreignObject rebaseline after new test fonts.
https://bugs.webkit.org/show_bug.cgi?id=92243

Unreviewed gardening.

These tests have been skipped because monospace fonts weren't properly used by
layout tests. After r121971, the test results are normal again.

* platform/qt-5.0/Skipped:
* platform/qt/svg/dom/SVGPathSegList-cloning-expected.png:
* platform/qt/svg/dom/SVGPathSegList-cloning-expected.txt:
* platform/qt/svg/dom/SVGPathSegList-segment-modification-expected.png:
* platform/qt/svg/dom/SVGPathSegList-segment-modification-expected.txt:
* platform/qt/svg/dom/SVGPathSegList-xml-dom-synchronization2-expected.png:
* platform/qt/svg/dom/SVGPathSegList-xml-dom-synchronization2-expected.txt:
* platform/qt/svg/filters/feColorMatrix-values-expected.txt:
* platform/qt/svg/filters/feComposite-expected.png: Added.
* platform/qt/svg/filters/feComposite-expected.txt:
* platform/qt/svg/filters/filter-on-filter-for-text-expected.png:
* platform/qt/svg/filters/filter-on-filter-for-text-expected.txt:
* platform/qt/svg/filters/filter-on-tspan-expected.png:
* platform/qt/svg/filters/filter-on-tspan-expected.txt:
* platform/qt/svg/filters/filter-width-update-expected.png:
* platform/qt/svg/filters/filter-width-update-expected.txt:
* platform/qt/svg/filters/sourceAlpha-expected.png: Added.
* platform/qt/svg/filters/sourceAlpha-expected.txt:
* platform/qt/svg/foreignObject/fO-parent-display-changes-expected.txt:
* platform/qt/svg/foreignObject/fO-parent-display-none-expected.txt:
* platform/qt/svg/foreignObject/fO-parent-display-none-with-relative-pos-content-expected.txt:
* platform/qt/svg/foreignObject/fO-parent-of-parent-display-none-expected.txt:
* platform/qt/svg/foreignObject/fO-parent-of-parent-display-none-with-relative-pos-content-expected.txt:
* platform/qt/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.png:
* platform/qt/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.txt:
* platform/qt/svg/foreignObject/svg-document-as-direct-child-expected.txt:
* platform/qt/svg/foreignObject/svg-document-in-html-document-expected.png:
* platform/qt/svg/foreignObject/svg-document-in-html-document-expected.txt:

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

9 years ago[Qt] svg/hixie rebaseline after new test fonts.
alexis.menard@openbossa.org [Wed, 25 Jul 2012 12:32:29 +0000 (12:32 +0000)]
[Qt] svg/hixie rebaseline after new test fonts.
https://bugs.webkit.org/show_bug.cgi?id=92242

Unreviewed gardening.

These tests have been skipped because monospace fonts weren't properly used by
layout tests. After r121971, the test results are normal again.

* platform/qt-5.0/Skipped:
* platform/qt/svg/hixie/dynamic/002-expected.txt:
* platform/qt/svg/hixie/error/002-expected.txt:
* platform/qt/svg/hixie/error/003-expected.png:
* platform/qt/svg/hixie/error/003-expected.txt:
* platform/qt/svg/hixie/error/010-expected.png:
* platform/qt/svg/hixie/error/010-expected.txt:
* platform/qt/svg/hixie/error/011-expected.png:
* platform/qt/svg/hixie/error/011-expected.txt:
* platform/qt/svg/hixie/error/013-expected.png:
* platform/qt/svg/hixie/error/013-expected.txt:
* platform/qt/svg/hixie/error/017-expected.png:
* platform/qt/svg/hixie/error/017-expected.txt:
* platform/qt/svg/hixie/intrinsic/001-expected.png:
* platform/qt/svg/hixie/intrinsic/001-expected.txt:
* platform/qt/svg/hixie/intrinsic/002-expected.png:
* platform/qt/svg/hixie/intrinsic/002-expected.txt:
* platform/qt/svg/hixie/intrinsic/003-expected.png:
* platform/qt/svg/hixie/intrinsic/003-expected.txt:
* platform/qt/svg/hixie/links/002-expected.png:
* platform/qt/svg/hixie/links/002-expected.txt:
* platform/qt/svg/hixie/mixed/003-expected.png:
* platform/qt/svg/hixie/mixed/003-expected.txt:
* platform/qt/svg/hixie/mixed/004-expected.txt: Added.
* platform/qt/svg/hixie/mixed/005-expected.txt: Added.
* platform/qt/svg/hixie/mixed/006-expected.png:
* platform/qt/svg/hixie/mixed/006-expected.txt:
* platform/qt/svg/hixie/mixed/007-expected.txt:
* platform/qt/svg/hixie/mixed/008-expected.png:
* platform/qt/svg/hixie/mixed/008-expected.txt:
* platform/qt/svg/hixie/mixed/009-expected.png:
* platform/qt/svg/hixie/mixed/009-expected.txt:
* platform/qt/svg/hixie/mixed/010-expected.png:
* platform/qt/svg/hixie/mixed/010-expected.txt:
* platform/qt/svg/hixie/mixed/011-expected.png:
* platform/qt/svg/hixie/mixed/011-expected.txt:
* platform/qt/svg/hixie/perf/001-expected.txt:
* platform/qt/svg/hixie/perf/002-expected.txt:
* platform/qt/svg/hixie/perf/003-expected.png:
* platform/qt/svg/hixie/perf/003-expected.txt:
* platform/qt/svg/hixie/perf/004-expected.png:
* platform/qt/svg/hixie/perf/004-expected.txt:
* platform/qt/svg/hixie/perf/005-expected.png:
* platform/qt/svg/hixie/perf/005-expected.txt:
* platform/qt/svg/hixie/perf/006-expected.png:
* platform/qt/svg/hixie/perf/006-expected.txt:
* platform/qt/svg/hixie/perf/007-expected.png:
* platform/qt/svg/hixie/perf/007-expected.txt:
* platform/qt/svg/hixie/processing-model/003-expected.png:
* platform/qt/svg/hixie/processing-model/003-expected.txt:
* platform/qt/svg/hixie/processing-model/004-expected.png:
* platform/qt/svg/hixie/processing-model/004-expected.txt:
* platform/qt/svg/hixie/rendering-model/003-expected.png:
* platform/qt/svg/hixie/rendering-model/003-expected.txt:
* platform/qt/svg/hixie/rendering-model/004-expected.png:
* platform/qt/svg/hixie/rendering-model/004-expected.txt:
* platform/qt/svg/hixie/text/002-expected.png:
* platform/qt/svg/hixie/text/002-expected.txt:
* platform/qt/svg/hixie/text/003-expected.png:
* platform/qt/svg/hixie/text/003-expected.txt:
* platform/qt/svg/hixie/text/003a-expected.png:
* platform/qt/svg/hixie/text/003a-expected.txt:
* platform/qt/svg/hixie/text/003b-expected.png:
* platform/qt/svg/hixie/text/003b-expected.txt:
* platform/qt/svg/hixie/viewbox/002-expected.txt:
* platform/qt/svg/hixie/viewbox/003-expected.txt:
* platform/qt/svg/hixie/viewbox/preserveAspectRatio/001-expected.png:
* platform/qt/svg/hixie/viewbox/preserveAspectRatio/001-expected.txt:
* platform/qt/svg/hixie/viewbox/preserveAspectRatio/002-expected.png:
* platform/qt/svg/hixie/viewbox/preserveAspectRatio/002-expected.txt:

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

9 years ago[Qt] Unreviewed gardening.
ossy@webkit.org [Wed, 25 Jul 2012 12:28:06 +0000 (12:28 +0000)]
[Qt] Unreviewed gardening.

* platform/qt-4.8/Skipped: Unskip now passing tests. (bug85203)
* platform/qt/Skipped: Skip new tests without expected files.

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

9 years agoImplement ColorSuggestionPicker page popup
keishi@webkit.org [Wed, 25 Jul 2012 11:57:21 +0000 (11:57 +0000)]
Implement ColorSuggestionPicker page popup
https://bugs.webkit.org/show_bug.cgi?id=92109

Reviewed by Kent Tamura.

.:

* ManualTests/forms/color-suggestion-picker.html: Added. Tests colorSuggestionPicker.{js,css}

Source/WebCore:

Implements ColorSuggestionPicker page popup. This will be used in
certain ports as the datalist UI for <input type=color>.

No new tests because there is no way to open the popup yet.

* Resources/colorSuggestionPicker.css: Added.
(body):
(#main):
(.color-swatch):
(.color-swatch:hover):
(.color-swatch-container):
(.other-color):
* Resources/colorSuggestionPicker.js: Added.
(getScrollbarWidth):When there are more than 20 colors we need to
increase the window width to accommodate the scroll bar.
(createElement):
(handleMessage):
(initialize):
(handleArgumentsTimeout):
(validateArguments):
(submitValue): Calls setValueAndClosePopup with a numValue of 0.
(handleCancel): Calls setValueAndClosePopup with a numValue of -1.
(chooseOtherColor): Calls setValueAndClosePopup with a numValue of -2.
(ColorPicker):
(ColorPicker.prototype._layout): Lays out the color swatches in a 5x4
grid.
(ColorPicker.prototype._handleSwatchClick):
* WebCore.gyp/WebCore.gyp:

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

9 years agoFix arithmetic composite filter for auto-vectorization
allan.jensen@nokia.com [Wed, 25 Jul 2012 11:54:36 +0000 (11:54 +0000)]
Fix arithmetic composite filter for auto-vectorization
https://bugs.webkit.org/show_bug.cgi?id=92123

Reviewed by Nikolas Zimmermann.

Since only clamping of the result prevents GCC from auto-vectorizing the inner loop, this patch
adds a faster version of the inner loop to handle cases where clamping is unnecessary,

* platform/graphics/filters/FEComposite.cpp:
(WebCore::computeArithmeticPixelsUnclamped):
(WebCore::arithmeticSoftware):

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

9 years ago[EFL] Use eina_stringshare_add instead of strdup.
gyuyoung.kim@samsung.com [Wed, 25 Jul 2012 11:46:56 +0000 (11:46 +0000)]
[EFL] Use eina_stringshare_add instead of strdup.
https://bugs.webkit.org/show_bug.cgi?id=92072

Reviewed by Kentaro Hara.

Eina of EFL libraries supports a string functionality that replaces strdup. So, EFL port needs
to replace strdup with eina_stringshare_add function.

Source/WebKit/efl:

In addition, some API descriptions need to be modified according to ewk APIs's parameter and
return type change.

* WebCoreSupport/ChromeClientEfl.cpp:
(WebCore::ChromeClientEfl::runJavaScriptPrompt):
* ewk/ewk_cookies.cpp:
(ewk_cookies_get_all):
(ewk_cookies_cookie_free):
* ewk/ewk_cookies.h:
* ewk/ewk_frame.cpp:
(ewk_frame_script_execute):
(ewk_frame_selection_get):
(ewk_frame_resources_location_get):
(ewk_frame_plain_text_get):
* ewk/ewk_frame.h:
* ewk/ewk_intent.cpp:
(ewk_intent_suggestions_get):
(ewk_intent_extra_get):
(ewk_intent_extra_names_get):
* ewk/ewk_intent.h:
* ewk/ewk_js.cpp:
(ewk_js_variant_to_npvariant):
(ewk_js_object_new):
* ewk/ewk_view.cpp:
(_ewk_view_smart_run_javascript_prompt):
(ewk_view_selection_get):
(ewk_view_run_javascript_prompt):
(ewk_view_run_open_panel):
* ewk/ewk_view.h:
* ewk/ewk_view_private.h:

Source/WebKit2:

* UIProcess/API/efl/ewk_intent.cpp:
(ewk_intent_suggestions_get):
(ewk_intent_extra_get):
* UIProcess/API/efl/ewk_intent.h:

Tools:

DumpRenderTree also needs to be modified according to ewk APIs's parameter change.

* DumpRenderTree/efl/DumpRenderTree.cpp:
(dumpFramesAsText):
* DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
(DumpRenderTreeChrome::onFrameIntentNew):
* DumpRenderTree/efl/DumpRenderTreeView.cpp:
(onJavaScriptPrompt):

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

9 years ago[EFL] Rebaseline for changed mathml dump after r123492
commit-queue@webkit.org [Wed, 25 Jul 2012 11:28:39 +0000 (11:28 +0000)]
[EFL] Rebaseline for changed mathml dump after r123492
https://bugs.webkit.org/show_bug.cgi?id=92234

Unreviewed, EFL rebaseline.

Patch by Dominik Röttsches <dominik.rottsches@intel.com> on 2012-07-25

* platform/efl/mathml/msub-anonymous-child-render-crash-expected.txt: Added.

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

9 years agoFix blend filter for autovectorizing
allan.jensen@nokia.com [Wed, 25 Jul 2012 11:15:47 +0000 (11:15 +0000)]
Fix blend filter for autovectorizing
https://bugs.webkit.org/show_bug.cgi?id=91398

Reviewed by Nikolas Zimmermann.

Get rid of wrapper classes, and use functions directly as template argument.

* platform/graphics/filters/FEBlend.cpp:
(WebCore::feBlendNormal):
(WebCore::feBlendMultiply):
(WebCore::feBlendScreen):
(WebCore::feBlendDarken):
(WebCore::feBlendLighten):
(WebCore::feBlendUnknown):
(WebCore::platformApply):
(WebCore::FEBlend::platformApplyGeneric):

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

9 years agoAdd methods to ColorChooserClient so the color chooser can show suggestions
keishi@webkit.org [Wed, 25 Jul 2012 11:03:38 +0000 (11:03 +0000)]
Add methods to ColorChooserClient so the color chooser can show suggestions
https://bugs.webkit.org/show_bug.cgi?id=92114

Reviewed by Kent Tamura.

Added methods to ColorChooserClient so the color chooser can ask the
client for suggestions and current color.

No new tests. The methods are not used yet.

* html/ColorInputType.cpp:
(WebCore::ColorInputType::currentColor): Returns what color the color
chooser should display.
(WebCore):
(WebCore::ColorInputType::shouldShowSuggestions): Returns if the UI for
suggestions should be shown.
(WebCore::ColorInputType::suggestions): Returns a list of colors to be
suggested to the user.
* html/ColorInputType.h:
(ColorInputType):
* html/HTMLInputElement.h:
(HTMLInputElement): Made dataList() public.
* platform/ColorChooserClient.h:
(ColorChooserClient):

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

9 years agoReplace int with long in test IDL files
haraken@chromium.org [Wed, 25 Jul 2012 10:35:26 +0000 (10:35 +0000)]
Replace int with long in test IDL files
https://bugs.webkit.org/show_bug.cgi?id=92181

Reviewed by Adam Barth.

int is not a valid type in WebIDL. It should be long.
We should replace int with long in bindings/scripts/test/*.idl.
This is a follow-up patch for r123550.

Test: bindings/scripts/test/TestObj.idl

* bindings/scripts/test/CPP/WebDOMTestObj.cpp:
(WebDOMTestObj::readOnlyLongAttr):
(WebDOMTestObj::Attr):
(WebDOMTestObj::setAttr):
(WebDOMTestObj::voidMethodWithArgs):
(WebDOMTestObj::Method):
(WebDOMTestObj::MethodWithArgs):
(WebDOMTestObj::objMethodWithArgs):
* bindings/scripts/test/CPP/WebDOMTestObj.h:
* bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
(webkit_dom_test_obj_set_property):
(webkit_dom_test_obj_get_property):
(webkit_dom_test_obj_class_init):
(webkit_dom_test_obj_void_method_with_args):
(webkit_dom_test_obj_method):
(webkit_dom_test_obj_method_with_args):
(webkit_dom_test_obj_obj_method_with_args):
(webkit_dom_test_obj_get_read_only_long_attr):
(webkit_dom_test_obj_get_attr):
(webkit_dom_test_obj_set_attr):
(webkit_dom_test_obj_get_strawberry):
(webkit_dom_test_obj_set_strawberry):
* bindings/scripts/test/GObject/WebKitDOMTestObj.h:
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore):
(WebCore::jsTestObjReadOnlyLongAttr):
(WebCore::jsTestObjConstructorStaticReadOnlyLongAttr):
(WebCore::jsTestObjAttr):
(WebCore::setJSTestObjAttr):
(WebCore::setJSTestObjStrawberry):
(WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionMethod):
(WebCore::jsTestObjPrototypeFunctionMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionMethodReturningSequence):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
* bindings/scripts/test/JS/JSTestObj.h:
(WebCore):
* bindings/scripts/test/ObjC/DOMTestObj.h:
* bindings/scripts/test/ObjC/DOMTestObj.mm:
(-[DOMTestObj readOnlyLongAttr]):
(-[DOMTestObj Attr]):
(-[DOMTestObj setAttr:]):
(-[DOMTestObj voidMethodWithArgs:strArg:objArg:]):
(-[DOMTestObj Method]):
(-[DOMTestObj MethodWithArgs:strArg:objArg:]):
(-[DOMTestObj objMethodWithArgs:strArg:objArg:]):
(-[DOMTestObj customMethodWithArgs:strArg:objArg:]):
* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/V8/V8TestObj.cpp:
(WebCore::TestObjV8Internal::readOnlyLongAttrAttrGetter):
(WebCore::TestObjV8Internal::staticReadOnlyLongAttrAttrGetter):
(WebCore::TestObjV8Internal::AttrAttrGetter):
(WebCore::TestObjV8Internal::AttrAttrSetter):
(WebCore::TestObjV8Internal::strawberryAttrSetter):
(WebCore::TestObjV8Internal::voidMethodWithArgsCallback):
(WebCore::TestObjV8Internal::MethodCallback):
(WebCore::TestObjV8Internal::MethodWithArgsCallback):
(WebCore::TestObjV8Internal::objMethodWithArgsCallback):
(WebCore::TestObjV8Internal::methodReturningSequenceCallback):
(WebCore::TestObjV8Internal::overloadedMethod2Callback):
(WebCore::TestObjV8Internal::overloadedMethod4Callback):
(WebCore):
(WebCore::ConfigureV8TestObjTemplate):

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

9 years ago[WTR][EFL] Wheel events are not emitted
commit-queue@webkit.org [Wed, 25 Jul 2012 10:26:31 +0000 (10:26 +0000)]
[WTR][EFL] Wheel events are not emitted
https://bugs.webkit.org/show_bug.cgi?id=92094

Patch by Alexander Shalamov <alexander.shalamov@intel.com> on 2012-07-25
Reviewed by Csaba Osztrogonác.

Wheel events are not emitted, therefore, layout tests that use mouseScrollBy method are failing.

* WebKitTestRunner/efl/EventSenderProxyEfl.cpp:
(WTR::dispatchMouseScrollByEvent):
(WTR::EventSenderProxy::mouseScrollBy):
* WebKitTestRunner/efl/PlatformWebViewEfl.cpp:
(WTR::PlatformWebView::PlatformWebView):
(WTR::PlatformWebView::focus):

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

9 years agoA validation bubble should not be modifiable.
shinyak@chromium.org [Wed, 25 Jul 2012 10:09:16 +0000 (10:09 +0000)]
A validation bubble should not be modifiable.
https://bugs.webkit.org/show_bug.cgi?id=92217

Reviewed by Kent Tamura.

Source/WebCore:

A user can set -webkit-user-modify: read-write to validation message elements.
This might cause a undesired crash like Bug 65738. They should be unmodifiable.

Test: fast/forms/validation-user-modify.html

* css/html.css:
Added -webkit-user-modify: read-only !important; for these elements so that they won't be
changed by a user.
(::-webkit-validation-bubble):
(::-webkit-validation-bubble-message):
(::-webkit-validation-bubble-text-block):
(::-webkit-validation-bubble-heading):
(::-webkit-validation-bubble-arrow):
(::-webkit-validation-bubble-arrow-clipper):

LayoutTests:

* fast/forms/validation-message-user-modify-expected.txt: Added.
* fast/forms/validation-message-user-modify.html: Added.

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

9 years ago[EFL] Add File Chooser API
commit-queue@webkit.org [Wed, 25 Jul 2012 10:00:48 +0000 (10:00 +0000)]
[EFL] Add File Chooser API
https://bugs.webkit.org/show_bug.cgi?id=91957

Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-07-25
Reviewed by Hajime Morita.

Source/WebKit:

Add ewk_file_chooser source and header.

* PlatformEfl.cmake:

Source/WebKit/efl:

Add APIs for file chooser. These APIs allow an application(like a browser) queries informations
about multiple files allowed, directory upload allowed, accept mimetypes list,
accept file extentions list, selected files list and capture to support HTML media capture.

* ewk/EWebKit.h:
* ewk/ewk_file_chooser.cpp: Added.
(_Ewk_File_Chooser):
(ewk_file_chooser_allows_multiple_files_get):
(ewk_file_chooser_allows_directory_upload_get):
(ewk_file_chooser_accept_mimetypes_get):
(ewk_file_chooser_accept_file_extentions_get):
(ewk_file_chooser_selected_files_get):
(ewk_file_chooser_capture_get):
(ewk_file_chooser_new):
(ewk_file_chooser_free):
* ewk/ewk_file_chooser.h: Added.
* ewk/ewk_file_chooser_private.h: Added.
(WebCore):

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

9 years ago[Qt] Unreviewed gardening, update Qt5 specific test results.
ossy@webkit.org [Wed, 25 Jul 2012 09:54:11 +0000 (09:54 +0000)]
[Qt] Unreviewed gardening, update Qt5 specific test results.

* platform/qt-5.0-wk1/fast/text/whitespace/028-expected.png: Added.
* platform/qt-5.0-wk1/fast/text/whitespace/028-expected.txt: Added.
* platform/qt-5.0-wk2/fast/text/whitespace/028-expected.png: Added.
* platform/qt-5.0-wk2/fast/text/whitespace/028-expected.txt: Added.
* platform/qt-5.0/css2.1/t0805-c5519-brdr-r-01-e-expected.png: Added.
* platform/qt-5.0/css2.1/t0805-c5519-brdr-r-01-e-expected.txt: Added.
* platform/qt-5.0/svg/as-image/img-preserveAspectRatio-support-1-expected.png:
* platform/qt-5.0/svg/as-image/img-preserveAspectRatio-support-1-expected.txt:
* platform/qt-5.0/svg/as-object/object-box-sizing-no-width-height-expected.png: Added.
* platform/qt-5.0/svg/as-object/object-box-sizing-no-width-height-expected.txt: Added.
* platform/qt-5.0/svg/batik/text/longTextOnPath-expected.png: Added.
* platform/qt-5.0/svg/batik/text/longTextOnPath-expected.txt: Added.
* platform/qt-5.0/svg/carto.net/tabgroup-expected.png: Added.
* platform/qt-5.0/svg/carto.net/tabgroup-expected.txt: Added.

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

9 years ago[Qt] Unreviewed gardening.
kkristof@inf.u-szeged.hu [Wed, 25 Jul 2012 09:43:20 +0000 (09:43 +0000)]
[Qt] Unreviewed gardening.

Patch by Balazs Ankes <bank@inf.u-szeged.hu> on 2012-07-25

* platform/qt/Skipped:

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

9 years agoUnreviewed GTK gardening, updating one mathml test baseline after r123492.
zandobersek@gmail.com [Wed, 25 Jul 2012 09:30:32 +0000 (09:30 +0000)]
Unreviewed GTK gardening, updating one mathml test baseline after r123492.

* platform/gtk/mathml/msub-anonymous-child-render-crash-expected.txt: Added.

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

9 years ago[EFL][WK2] Add ewk_view_cursor_set to change cursor.
ryuan.choi@samsung.com [Wed, 25 Jul 2012 09:16:12 +0000 (09:16 +0000)]
[EFL][WK2] Add ewk_view_cursor_set to change cursor.
https://bugs.webkit.org/show_bug.cgi?id=89140

Reviewed by Hajime Morita.

Implement ewk_view_cursor_set to support cursor changes.

* UIProcess/API/efl/PageClientImpl.cpp:
(WebKit::PageClientImpl::setCursor): Called ewk_view_cursor_set.
* UIProcess/API/efl/ewk_view.cpp:
(_Ewk_View_Private_Data):
(_Ewk_View_Private_Data::_Ewk_View_Private_Data):
(_Ewk_View_Private_Data::~_Ewk_View_Private_Data):
(_ewk_view_priv_new): Check whether ecore_x can be used.
(_ewk_view_smart_add):
Change order of initialization to use base structure in _ewk_view_priv_new.
(ewk_view_cursor_set): Added to set cursor.
* UIProcess/API/efl/ewk_view_private.h:

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

9 years ago[Qt] Unreviewed gardening.
kkristof@inf.u-szeged.hu [Wed, 25 Jul 2012 09:05:55 +0000 (09:05 +0000)]
[Qt] Unreviewed gardening.

Patch by Balazs Ankes <bank@inf.u-szeged.hu> on 2012-07-25

* platform/qt/Skipped:

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

9 years ago[EFL][WK2] Update uri when the active URI is changed while loading.
ryuan.choi@samsung.com [Wed, 25 Jul 2012 09:03:55 +0000 (09:03 +0000)]
[EFL][WK2] Update uri when the active URI is changed while loading.
https://bugs.webkit.org/show_bug.cgi?id=92001

Reviewed by Hajime Morita.

For now, ewk_view_uri_get just return the last uri of setter.
This patch updates the uri of ewk_view when it is changed while loading.

* UIProcess/API/efl/ewk_view.cpp:
(ewk_view_uri_update):
Added to check whether current active URI has changed and send uri,changed
signal if it has changed.
(ewk_view_uri_set):
Called ewk_view_uri_update to make sure the active uri is updated when the
load operation is started.
(ewk_view_reload): Ditto.
(ewk_view_reload_bypass_cache): Ditto.
(ewk_view_load_finished): Ditto.
(ewk_view_load_provisional_redirect): Ditto.
(ewk_view_load_provisional_started): Ditto.
(ewk_view_html_string_load): Ditto.
* UIProcess/API/efl/ewk_view.h: Updated comment for uri,changed signal.
* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.cpp:
(EWK2UnitTest::EWK2UnitTestEnvironment::urlForResource):
Added to get url of custom resource for test.
* UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.h:
* UIProcess/API/efl/tests/resources/redirect_uri_to_default.html:
Added to test ewk_view_uri_get when the page is redirected.
* UIProcess/API/efl/tests/test_ewk2_view.cpp: Ditto.
(onLoadFinishedForRedirection):
(TEST_F): Added new test case whether ewk_view_uri_get returns correct uri when
the page is redirected.

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

9 years ago[Qt] There are parallel GC related crashes regularly
ossy@webkit.org [Wed, 25 Jul 2012 09:00:39 +0000 (09:00 +0000)]
[Qt] There are parallel GC related crashes regularly
https://bugs.webkit.org/show_bug.cgi?id=90957

Rubber-stamped by Zoltan Herczeg.

* wtf/Platform.h: Disable parallel GC temporarily on Qt until proper fix.

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

9 years agoAnother unreviewed win build fix against r123569.
morrita@google.com [Wed, 25 Jul 2012 08:42:44 +0000 (08:42 +0000)]
Another unreviewed win build fix against r123569.

* tests/IDBAbortOnCorruptTest.cpp:

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

9 years ago[Qt][WK2] Disable CopyToTexture for GraphicsSurfaceMac.
zeno.albisser@nokia.com [Wed, 25 Jul 2012 08:35:59 +0000 (08:35 +0000)]
[Qt][WK2] Disable CopyToTexture for GraphicsSurfaceMac.
https://bugs.webkit.org/show_bug.cgi?id=92159

Disable CopyToTexture feature for GraphicsSurface on Mac.
While this is actually working, it is currently used for Tiles
that are single buffered, and therefore requires a call to glFlush.
This call blocks the GPU for about 40ms which would make smooth animations impossible.

Reviewed by Noam Rosenthal.

* platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp:
(WebCore::GraphicsSurface::platformCreate):
(WebCore::GraphicsSurface::platformImport):

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

9 years ago[EFL][WK2] Add ewk_main.{cpp,h} to EFL WK2
commit-queue@webkit.org [Wed, 25 Jul 2012 08:30:00 +0000 (08:30 +0000)]
[EFL][WK2] Add ewk_main.{cpp,h} to EFL WK2
https://bugs.webkit.org/show_bug.cgi?id=92101

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-07-25
Reviewed by Kenneth Rohde Christiansen.

Added a centralized place for general initialization in UI process for EFL WK2.

Source/WebKit2:

* PlatformEfl.cmake:
* UIProcess/API/efl/EWebKit2.h:
* UIProcess/API/efl/ewk_main.cpp: Added.
(ewk_init): General initialization.
(ewk_shutdown): General freeing.
(_ewk_init_body): An aux function.
* UIProcess/API/efl/ewk_main.h: Added.

Tools:

* MiniBrowser/efl/main.c: Added using of newly added ewk_init() and ewk_shutdown() functions.
(main):
* WebKitTestRunner/efl/main.cpp: Ditto.
(main):

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

9 years ago[Chromium] Fix up includes in HarfBuzzNGFace.h
bashi@chromium.org [Wed, 25 Jul 2012 08:18:59 +0000 (08:18 +0000)]
[Chromium] Fix up includes in HarfBuzzNGFace.h
https://bugs.webkit.org/show_bug.cgi?id=92127

Reviewed by Hajime Morita.

Move constructors of FontPlatformData from headers to corresponding cpp files
so that we can use forward declaration for HarfBuzzNGFace instead of including HarfBuzzNGFace.h.
This way we can include hb.h in HarfBuzzNGFace.h.

No new tests. No changes in behavior.

* platform/graphics/FontPlatformData.cpp:
(WebCore::FontPlatformData::FontPlatformData): Moved from header file.
(WebCore):
* platform/graphics/FontPlatformData.h:
(WebCore):
(FontPlatformData): Moved to cpp file.
* platform/graphics/cocoa/FontPlatformDataCocoa.mm: Include HarfBuzzNGFace.h
* platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.cpp:
(WebCore::FontPlatformData::FontPlatformData): Moved from header file.
(WebCore):
* platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.h:
(WebCore):
(FontPlatformData): Moved to cpp file.
* platform/graphics/harfbuzz/ng/HarfBuzzNGFace.h: Include hb.h.

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

9 years agoUnreviewed win build fix against r123569.
morrita@google.com [Wed, 25 Jul 2012 08:00:53 +0000 (08:00 +0000)]
Unreviewed win build fix against r123569.

* tests/IDBAbortOnCorruptTest.cpp:
* tests/IDBDatabaseBackendTest.cpp:

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

9 years agoREGRESSION(r123505): Date.getYear() returns the same as Date.getFullYear()
paroga@webkit.org [Wed, 25 Jul 2012 07:42:03 +0000 (07:42 +0000)]
REGRESSION(r123505): Date.getYear() returns the same as Date.getFullYear()
https://bugs.webkit.org/show_bug.cgi?id=92218

Reviewed by Csaba Osztrogonác.

* runtime/DatePrototype.cpp:
(JSC::dateProtoFuncGetYear): Added the missing offset of 1900 to the return value.

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

9 years agofast/events/panScroll-click-hyperlink.html test should be put in platform/win
zandobersek@gmail.com [Wed, 25 Jul 2012 07:32:07 +0000 (07:32 +0000)]
fast/events/panScroll-click-hyperlink.html test should be put in platform/win
https://bugs.webkit.org/show_bug.cgi?id=92111

Reviewed by Daniel Bates.

Move the test into platform/win directory where other pan scrolling tests reside,
and remove other ports' baselines as they just indicated that pan scrolling is not
supported on those platforms. chromium-win and qt-win platforms still pass the test
but should cope with the default baseline just fine.

* platform/chromium-linux/fast/events/panScroll-click-hyperlink-expected.txt: Removed.
* platform/chromium-win/fast/events/panScroll-click-hyperlink-expected.txt: Removed.
* platform/efl/fast/events/panScroll-click-hyperlink-expected.txt: Removed.
* platform/gtk/TestExpectations:
* platform/mac/fast/events/panScroll-click-hyperlink-expected.txt: Removed.
* platform/qt/fast/events/panScroll-click-hyperlink-expected.txt: Removed.
* platform/win/fast/events/panScroll-click-hyperlink.html: Renamed from LayoutTests/fast/events/panScroll-click-hyperlink.html.

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

9 years agoQualifiedName's HashSet should be big enough to hold at least all the static names
benjamin@webkit.org [Wed, 25 Jul 2012 07:22:48 +0000 (07:22 +0000)]
QualifiedName's HashSet should be big enough to hold at least all the static names
https://bugs.webkit.org/show_bug.cgi?id=91891

Patch by Benjamin Poulain  <bpoulain@apple.com> && Joseph Pecoraro <pecoraro@apple.com> on 2012-07-24
Reviewed by Darin Adler.

Source/WebCore:

QualifiedName's table has a standard size of 64 buckets. When initializing WebKit,
we create 850 static QualifiedName for the standard names (HTMLNames, SVGNames etc).

The small base size forces us to grow and rehash the table several time on startup.

This patch solves the issue by defining the initial table size to the minimum size that
can hold all the static QualifiedName.

* dom/QualifiedName.cpp:
(QualifiedNameHashTraits):
* dom/make_names.pl:
(printNamesHeaderFile):

Source/WTF:

Add a static struct to compute the HashTable capacity for any given size at compile time.
This allow us to create HashTraits giving the minimumSize without hardcoding the values.

* wtf/HashTable.h:
(OneifyLowBits):
(UpperPowerOfTwoBound):
(HashTableCapacityForSize): Compute the HashTable capacity at compile time.

Tools:

Add a test for WTF::hashTableCapacityForSize.

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/WTF/HashSet.cpp: Added.
(InitialCapacityTestHashTraits):
(TestWebKitAPI::testInitialCapacity):
(TestWebKitAPI::generateTestCapacityUpToSize):
(TestWebKitAPI::TEST):

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

9 years agoRemove anonymous namespace and make functions static.
kseo@webkit.org [Wed, 25 Jul 2012 06:52:43 +0000 (06:52 +0000)]
Remove anonymous namespace and make functions static.
https://bugs.webkit.org/show_bug.cgi?id=92214

Reviewed by Adam Barth.

Mark functions as static instead of enclosing them in anonymous namespaces.
One exception to this rule is when a function is passed as a template argument.
In this case, the function must have an external linkage.

No functional change. Covered by existing tests.

* html/parser/HTMLConstructionSite.cpp:
(WebCore::hasImpliedEndTag):
(WebCore::causesFosterParenting):
(WebCore::isAllWhitespace):
* html/parser/HTMLDocumentParser.cpp:
(WebCore):
(WebCore::tokenizerStateForContextElement):
* html/parser/HTMLElementStack.cpp:
(WebCore::isNumberedHeaderElement):
(WebCore::isRootNode):
(WebCore):
* html/parser/HTMLEntityParser.cpp:
(WebCore::isAlphaNumeric):
* html/parser/HTMLEntitySearch.cpp:
(WebCore::halfway):
* html/parser/HTMLPreloadScanner.cpp:
(WebCore):
* html/parser/HTMLTokenizer.cpp:
(WebCore::toLowerCase):
(WebCore::vectorEqualsString):
(WebCore::isEndTagBufferingState):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore):
(WebCore::uninitializedPositionValue1):
(WebCore::isAllWhitespace):
(WebCore::isAllWhitespaceOrReplacementCharacters):
(WebCore::isNumberedHeaderTag):
(WebCore::isCaptionColOrColgroupTag):
(WebCore::isTableCellContextTag):
(WebCore::isTableBodyContextTag):
(WebCore::isSpecialNode):
(WebCore::isNonAnchorNonNobrFormattingTag):
(WebCore::isNonAnchorFormattingTag):
(WebCore::isFormattingTag):
(WebCore::closestFormAncestor):
(WebCore::mapLoweredLocalNameToName):
(WebCore::adjustSVGTagNameCase):
(WebCore::adjustAttributes):
(WebCore::adjustSVGAttributes):
(WebCore::adjustMathMLAttributes):
(WebCore::addNamesWithPrefix):
(WebCore::adjustForeignAttributes):

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

9 years agoThe EWS bots get flaky when we hit the failure limit
abarth@webkit.org [Wed, 25 Jul 2012 06:40:49 +0000 (06:40 +0000)]
The EWS bots get flaky when we hit the failure limit
https://bugs.webkit.org/show_bug.cgi?id=92212

Reviewed by Eric Seidel.

Previously we were missing some failure types, which means we didn't
notice that the bots were hitting the failure limit.

* Scripts/webkitpy/common/net/layouttestresults.py:
(LayoutTestResults.failing_test_results):
* Scripts/webkitpy/common/net/layouttestresults_unittest.py:
(LayoutTestResultsTest.test_results_from_string):
(LayoutTestResultsTest.test_tests_matching_failure_types):

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

9 years agoUnreviewed r123494 follow-up: fixed inspector undock icon.
vsevik@chromium.org [Wed, 25 Jul 2012 06:01:25 +0000 (06:01 +0000)]
Unreviewed r123494 follow-up: fixed inspector undock icon.

* inspector/front-end/Images/statusbarButtonGlyphs.png:

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

9 years ago[Tests] Copy fast/forms/number/number-spinbutton-change-and-input-events.html to...
yosin@chromium.org [Wed, 25 Jul 2012 05:53:29 +0000 (05:53 +0000)]
[Tests] Copy fast/forms/number/number-spinbutton-change-and-input-events.html to fast/forms/js/resources
https://bugs.webkit.org/show_bug.cgi?id=92209

Reviewed by Kent Tamura.

This patch copies test file fast/forms/number/number-spinbutton-change-and-input-events.html
to JavaScript code directory fast/forms/resources as common-spinbutton-change-and-input-events.js
for sharing code with other input types.

This patch is preparation of re-factoring.

* fast/forms/resources/common-spinbutton-change-and-input-events.js: Copied from LayoutTests/fast/forms/number/number-spinbutton-change-and-input-events.html.

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

9 years agoRead tag names and attributes from the saved tokens where possible.
kseo@webkit.org [Wed, 25 Jul 2012 05:47:29 +0000 (05:47 +0000)]
Read tag names and attributes from the saved tokens where possible.
https://bugs.webkit.org/show_bug.cgi?id=92079

Reviewed by Adam Barth.

Read tag names and attributes from the saved tokens, not from the DOM.
Also added convenient methods such as hasLocalName, hasTagName, localName,
isElementNode and isDocumentFragmentNode to HTMLStackItem class.

No new tests, covered by existing tests.

* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLNames::hasImpliedEndTag):
(WebCore::HTMLNames::causesFosterParenting):
(WebCore::HTMLConstructionSite::generateImpliedEndTagsWithExclusion):
(WebCore::HTMLConstructionSite::generateImpliedEndTags):
(WebCore::HTMLConstructionSite::shouldFosterParent):
* html/parser/HTMLConstructionSite.h:
(WebCore::HTMLConstructionSite::currentStackItem):
* html/parser/HTMLElementStack.cpp:
(WebCore::HTMLNames::isNumberedHeaderElement):
(WebCore::HTMLNames::isRootNode):
(WebCore::HTMLNames::isScopeMarker):
(WebCore::HTMLNames::isListItemScopeMarker):
(WebCore::HTMLNames::isTableScopeMarker):
(WebCore::HTMLNames::isTableBodyScopeMarker):
(WebCore::HTMLNames::isTableRowScopeMarker):
(WebCore::HTMLNames::isForeignContentScopeMarker):
(WebCore::HTMLNames::isButtonScopeMarker):
(WebCore::HTMLNames::isSelectScopeMarker):
(WebCore::HTMLElementStack::ElementRecord::replaceElement):
(WebCore::HTMLElementStack::popUntilNumberedHeaderElementPopped):
(WebCore::HTMLElementStack::popUntilTableScopeMarker):
(WebCore::HTMLElementStack::popUntilTableBodyScopeMarker):
(WebCore::HTMLElementStack::popUntilTableRowScopeMarker):
(WebCore::HTMLElementStack::isMathMLTextIntegrationPoint):
(WebCore::HTMLElementStack::isHTMLIntegrationPoint):
(WebCore::HTMLElementStack::popUntilForeignContentScopeMarker):
(WebCore::HTMLElementStack::pushRootNode):
(WebCore::HTMLElementStack::oneBelowTop):
(WebCore::HTMLElementStack::topmost):
(WebCore):
(WebCore::inScopeCommon):
(WebCore::HTMLElementStack::hasNumberedHeaderElementInScope):
(WebCore::HTMLElementStack::inScope):
* html/parser/HTMLElementStack.h:
(WebCore::HTMLElementStack::topStackItem):
(HTMLElementStack):
(WebCore::isInHTMLNamespace):
* html/parser/HTMLStackItem.h:
(WebCore::HTMLStackItem::isDocumentFragmentNode):
(WebCore::HTMLStackItem::isElementNode):
(HTMLStackItem):
(WebCore::HTMLStackItem::hasLocalName):
(WebCore::HTMLStackItem::hasTagName):
(WebCore::HTMLStackItem::HTMLStackItem):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore):
(WebCore::HTMLTreeBuilder::constructTreeFromAtomicToken):
(WebCore::HTMLTreeBuilder::processFakeEndTag):
(WebCore::HTMLTreeBuilder::processCloseWhenNestedTag):
(WebCore::HTMLTreeBuilder::processStartTagForInBody):
(WebCore::HTMLTreeBuilder::processStartTag):
(WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody):
(WebCore::HTMLTreeBuilder::furthestBlockForFormattingElement):
(WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
(WebCore::HTMLTreeBuilder::processEndTagForInTableBody):
(WebCore::HTMLTreeBuilder::processEndTagForInCell):
(WebCore::HTMLTreeBuilder::processEndTagForInBody):
(WebCore::HTMLTreeBuilder::processCaptionEndTagForInCaption):
(WebCore::HTMLTreeBuilder::processTrEndTagForInRow):
(WebCore::HTMLTreeBuilder::processEndTag):
(WebCore::HTMLTreeBuilder::processCharacterBuffer):
(WebCore::HTMLTreeBuilder::processEndOfFile):
(WebCore::HTMLTreeBuilder::shouldProcessTokenInForeignContent):
(WebCore::HTMLTreeBuilder::processTokenInForeignContent):
* html/parser/HTMLTreeBuilder.h:

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

9 years agoUnreviewed. Rolled DEPS.
commit-queue@webkit.org [Wed, 25 Jul 2012 05:28:36 +0000 (05:28 +0000)]
Unreviewed.  Rolled DEPS.

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

* DEPS:

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

9 years ago[Tests] Rename fast/number/number-events.html to number-spinbutton-change-and-input...
yosin@chromium.org [Wed, 25 Jul 2012 05:18:06 +0000 (05:18 +0000)]
[Tests] Rename fast/number/number-events.html to number-spinbutton-change-and-input-events.html
https://bugs.webkit.org/show_bug.cgi?id=92208

Reviewed by Kent Tamura.

This patch renames fast/forms/number/number-events.html to number-spinbutton-change-and-input-events.html
to make file name explains what test will be done.

* fast/forms/number/number-events-expected.txt: Removed.
* fast/forms/number/number-events.html: Removed.
* fast/forms/number/number-spinbutton-change-and-input-events-expected.txt: Copied from LayoutTests/fast/forms/number/number-events-expected.txt.
* fast/forms/number/number-spinbutton-change-and-input-events.html: Copied from LayoutTests/fast/forms/number/number-events.html.
* platform/qt/Skipped:
* platform/win/Skipped:
* platform/wincairo/Skipped:

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

9 years ago[chromium] Move renderingStats from WebView to WebWidget.
commit-queue@webkit.org [Wed, 25 Jul 2012 05:04:10 +0000 (05:04 +0000)]
[chromium] Move renderingStats from WebView to WebWidget.
https://bugs.webkit.org/show_bug.cgi?id=92184

Patch by Dave Tu <dtu@chromium.org> on 2012-07-24
Reviewed by Adam Barth.

We are going to add some rendering stats that work in non-composited mode, so the renderingStats() method should be moved from WebView to WebWidget.

* public/WebView.h:
(WebKit):
(WebView):
* public/WebWidget.h:
(WebKit):
(WebWidget):
(WebKit::WebWidget::renderingStats):
* src/WebViewImpl.h:
(WebViewImpl):

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

9 years ago[Tests] Remove duplicated fast/forms/number/number-spinbutton-events.html
yosin@chromium.org [Wed, 25 Jul 2012 05:00:54 +0000 (05:00 +0000)]
[Tests] Remove duplicated fast/forms/number/number-spinbutton-events.html
https://bugs.webkit.org/show_bug.cgi?id=92205

Reviewed by Kent Tamura.

This patch removes fast/forms/number/number-spinbutton-events.html
because fast/forms/number/number-events.html covers and checked more.

r108955 is an evidence of coverage.

* fast/forms/number/number-spinbutton-events-expected.txt: Removed.
* fast/forms/number/number-spinbutton-events.html: Removed.
* platform/efl/Skipped:
* platform/qt-arm/TestExpectations:
* platform/win/Skipped:

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

9 years agoAvoid moving child objects multiple times when vertical scrollbar are shown at the...
hbono@chromium.org [Wed, 25 Jul 2012 04:51:55 +0000 (04:51 +0000)]
Avoid moving child objects multiple times when vertical scrollbar are shown at the left side.
https://bugs.webkit.org/show_bug.cgi?id=91756

Reviewed by Tony Chang.

Source/WebCore:

My r123067 moves the top-left origin of an RTL element right when its vertical
scrollbar is shown at its left side. (That is, r123067 moves all child objects
in the RTL element right.) This change also increases RenderBox::clientLeft()
at the same time, i.e. it also moves child objects right. Furthermore, my r109512
moves positioned objects in an RTL element right at the same time. This makes
WebKit move objects in an RTL element up to three times by the scrollbar width.
(Moving an absolute object right increases the scrollWidth value and it causes
this bug.) This change removes unnecessary code that moves objects right in my
r109512 and RenderBox::clientLeft().

Test: scrollbars/rtl/div-absolute.html
      fast/block/float/026.html
      fast/block/float/028.html
      fast/overflow/unreachable-overflow-rtl-bug.html

* dom/Element.cpp:
(WebCore::Element::clientLeft): Increase clientLeft value by the width of a vertical scrollbar as written in the CSSOM specification.
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::addOverflowFromPositionedObjects): Removed unnecessary code.
(WebCore::RenderBlock::determineLogicalLeftPositionForChild): Removed unnecessary code.
* rendering/RenderBox.h:
(WebCore::RenderBox::clientLeft): Removed unnecessary code.

LayoutTests:

This change adds a test that compares CSSOM properties of an RTL element which
includes positioned objects with the CSSOM properties of an LTR one. This change
also uses clientLeft properties in offsetX-offsetY.html to remove a hard-coded
value in the test and adds rebaselined results for Windows.

* fast/events/offsetX-offsetY.html: Replaced a hard-coded value 'borderLeft' with clientLeft.
* platform/chromium-linux/fast/block/float/026-expected.png:
* platform/chromium-linux/fast/block/float/028-expected.png:
* platform/chromium-win/fast/block/float/026-expected.png:
* platform/chromium-win/fast/block/float/028-expected.png:
* platform/chromium-win/fast/overflow/unreachable-overflow-rtl-bug-expected.png:
* platform/chromium-win/fast/overflow/unreachable-overflow-rtl-bug-expected.txt:
* scrollbars/rtl/div-absolute-expected.txt: Added.
* scrollbars/rtl/div-absolute.html: Added.

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

9 years agoRenderBlock::positionForPoint can fail when the block or its children have a vertical...
mitz@apple.com [Wed, 25 Jul 2012 04:42:44 +0000 (04:42 +0000)]
RenderBlock::positionForPoint can fail when the block or its children have a vertical writing mode
https://bugs.webkit.org/show_bug.cgi?id=92202

Reviewed by Beth Dakin.

Source/WebCore:

Test: fast/writing-mode/positionForPoint.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::positionForPoint): Fixed two issues, each of which are covered by
one of the sub-tests in the new regression test: (1) changed to compare children’s logical
bounds against pointInLogicalContents, i.e. compare childern’s horizontal bounds to the
point’s horizontal component; and (2) changed to use logicalTopForChild and
logicalHeightForChild, which account for this block’s writing mode, instead of logicalTop
and logicalBottom, which are based on the child’s writing mode.

LayoutTests:

* fast/writing-mode/positionForPoint-expected.txt: Added.
* fast/writing-mode/positionForPoint.html: Added.

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=89179
morrita@google.com [Wed, 25 Jul 2012 04:13:41 +0000 (04:13 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=89179
Rendering LI having Shadow DOM seems weird

Reviewed by Dimitri Glazkov.

Source/WebCore:

This incorrect rendering happend because HTMLLIElement::attach()
wasn't aware of composed shadow subtree. This change makes it
aware of that using ComposedShadowTreeParentWalker.

Test: fast/dom/shadow/shadow-and-list-elements.html

* html/HTMLLIElement.cpp:
(WebCore::HTMLLIElement::attach):

LayoutTests:

* fast/dom/shadow/shadow-and-list-elements-expected.html: Added.
* fast/dom/shadow/shadow-and-list-elements.html: Added.

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

9 years agoIndexedDB: fix #include dependencies so IDBRequest isn't an include root
commit-queue@webkit.org [Wed, 25 Jul 2012 03:25:58 +0000 (03:25 +0000)]
IndexedDB: fix #include dependencies so IDBRequest isn't an include root
https://bugs.webkit.org/show_bug.cgi?id=92167

Patch by Alec Flett <alecflett@chromium.org> on 2012-07-24
Reviewed by Tony Chang.

Source/WebCore:

Remove implicit dependencies due to using IDBRequest.h, and fix all
places that break as a result.

* Modules/indexeddb/IDBCallbacks.h:
(WebCore):
* Modules/indexeddb/IDBObjectStore.cpp:
* Modules/indexeddb/IDBRequest.h:
* inspector/InspectorIndexedDBAgent.cpp:

Source/WebKit/chromium:

Remove implicit dependencies due to using IDBRequest.h, and fix all
places that break as a result.

* src/IDBCallbacksProxy.cpp:
* src/WebIDBDatabaseImpl.cpp:
* src/WebIDBTransactionImpl.cpp:

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

9 years agoMove PagePopupClient helper functions so they can be shared
keishi@webkit.org [Wed, 25 Jul 2012 02:35:01 +0000 (02:35 +0000)]
Move PagePopupClient helper functions so they can be shared
https://bugs.webkit.org/show_bug.cgi?id=92096

Reviewed by Kent Tamura.

Move PagePopupClient helper functions to a separate file,
so they can be shared with new PagePopupClients.

No new tests. Covered by fast/forms/date/calendar-picker-appearance.html

* WebCore.gypi: Added PagePopupClient.cpp
* html/shadow/CalendarPickerElement.cpp:
(WebCore::CalendarPickerElement::writeDocument): Modified to use PagePopupClient.
* page/PagePopupClient.cpp: Added.
(WebCore):
(WebCore::PagePopupClient::addJavaScriptString):
(WebCore::PagePopupClient::addProperty):
* page/PagePopupClient.h:
(WebCore::PagePopupClient::addString):

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

9 years agosetting playbackRate on a MediaController doesn't change the playbackRate for slaved...
jer.noble@apple.com [Wed, 25 Jul 2012 02:31:27 +0000 (02:31 +0000)]
setting playbackRate on a MediaController doesn't change the playbackRate for slaved media
https://bugs.webkit.org/show_bug.cgi?id=92035

Reviewed by Darin Adler.

Source/WebCore:

Allow updatePlaybackRate() to change the MediaPlayer rate when the media element has a
current media controller.

Test: media/media-controller-playbackrate.html

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::updatePlaybackRate):

LayoutTests:

* media/media-controller-playbackrate-expected.txt: Added.
* media/media-controller-playbackrate.html: Added.

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

9 years ago[Qt] svg/as-border-image, svg/as-image, svg/as-object, svg/css rebaseline after new...
alexis.menard@openbossa.org [Wed, 25 Jul 2012 02:13:53 +0000 (02:13 +0000)]
[Qt] svg/as-border-image, svg/as-image, svg/as-object, svg/css rebaseline after new test fonts.
https://bugs.webkit.org/show_bug.cgi?id=92193

Unreviewed gardening.

These tests have been skipped because monospace fonts weren't properly used by
layout tests. After r121971, the test results are normal again.

* platform/qt-5.0/Skipped:
* platform/qt/svg/as-border-image/svg-as-border-image-2-expected.png:
* platform/qt/svg/as-border-image/svg-as-border-image-2-expected.txt:
* platform/qt/svg/as-border-image/svg-as-border-image-expected.png:
* platform/qt/svg/as-border-image/svg-as-border-image-expected.txt:
* platform/qt/svg/as-image/animated-svg-as-image-expected.png: Added.
* platform/qt/svg/as-image/animated-svg-as-image-expected.txt:
* platform/qt/svg/as-image/animated-svg-as-image-no-fixed-intrinsic-size-expected.png: Added.
* platform/qt/svg/as-image/animated-svg-as-image-no-fixed-intrinsic-size-expected.txt:
* platform/qt/svg/as-image/animated-svg-as-image-same-image-expected.png: Added.
* platform/qt/svg/as-image/animated-svg-as-image-same-image-expected.txt:
* platform/qt/svg/as-image/image-respects-pageScaleFactor-expected.png:
* platform/qt/svg/as-image/image-respects-pageScaleFactor-expected.txt:
* platform/qt/svg/as-image/img-preserveAspectRatio-support-1-expected.png:
* platform/qt/svg/as-image/img-preserveAspectRatio-support-1-expected.txt:
* platform/qt/svg/as-image/img-preserveAspectRatio-support-2-expected.png:
* platform/qt/svg/as-image/img-preserveAspectRatio-support-2-expected.txt:
* platform/qt/svg/as-image/same-image-two-instances-expected.txt:
* platform/qt/svg/as-image/svg-image-change-content-size-expected.png:
* platform/qt/svg/as-image/svg-image-change-content-size-expected.txt:
* platform/qt/svg/as-object/svg-embedded-in-html-in-iframe-expected.txt:
* platform/qt/svg/css/composite-shadow-text-expected.png:
* platform/qt/svg/css/composite-shadow-text-expected.txt:
* platform/qt/svg/css/css-box-min-width-expected.png:
* platform/qt/svg/css/css-box-min-width-expected.txt:
* platform/qt/svg/css/text-shadow-multiple-expected.png:
* platform/qt/svg/css/text-shadow-multiple-expected.txt:

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

9 years agoRename FocusScope to FocusNavigationScope.
hayato@chromium.org [Wed, 25 Jul 2012 02:08:38 +0000 (02:08 +0000)]
Rename FocusScope to FocusNavigationScope.
https://bugs.webkit.org/show_bug.cgi?id=92062

Reviewed by Dimitri Glazkov.

FocusNavagationScope is better name than FocusScope since the
class is only used for controlling focus navigation.

No new tests - no functional changes.

* page/FocusController.cpp:
(WebCore::FocusNavigationScope::FocusNavigationScope):
(WebCore::FocusNavigationScope::rootNode):
(WebCore::FocusNavigationScope::owner):
(WebCore::FocusNavigationScope::focusNavigationScopeOf):
(WebCore::FocusNavigationScope::focusNavigationScopeOwnedByShadowHost):
(WebCore::FocusNavigationScope::focusNavigationScopeOwnedByIFrame):
(WebCore::FocusController::findFocusableNodeDecendingDownIntoFrameDocument):
(WebCore::FocusController::advanceFocusInDocumentOrder):
(WebCore::FocusController::findFocusableNodeAcrossFocusScope):
(WebCore::FocusController::findFocusableNodeRecursively):
(WebCore::FocusController::findFocusableNode):
(WebCore::FocusController::nextFocusableNode):
(WebCore::FocusController::previousFocusableNode):
* page/FocusController.h:
(FocusNavigationScope):
(FocusController):

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

9 years ago[Qt] css2.1/t080* rebaseline after new test fonts
caio.oliveira@openbossa.org [Wed, 25 Jul 2012 01:57:08 +0000 (01:57 +0000)]
[Qt] css2.1/t080* rebaseline after new test fonts
https://bugs.webkit.org/show_bug.cgi?id=92191

Unreviewed.

* platform/qt-5.0/Skipped:
* platform/qt-5.0/css2.1/t0805-c5518-brdr-t-01-e-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0805-c5519-brdr-r-00-a-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0805-c5519-brdr-r-01-e-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0805-c5520-brdr-b-01-e-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0805-c5521-brdr-l-00-a-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0805-c5521-brdr-l-01-e-expected.txt: Removed.
* platform/qt-5.0/css2.1/t0805-c5521-ibrdr-l-00-a-expected.txt: Removed.
* platform/qt/css2.1/t0801-c412-hz-box-00-b-a-expected.png:
* platform/qt/css2.1/t0801-c412-hz-box-00-b-a-expected.txt:
* platform/qt/css2.1/t0803-c5501-imrgn-t-00-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5501-imrgn-t-00-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5501-mrgn-t-00-b-a-expected.png:
* platform/qt/css2.1/t0803-c5501-mrgn-t-00-b-a-expected.txt:
* platform/qt/css2.1/t0803-c5502-imrgn-r-00-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5502-imrgn-r-00-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5502-imrgn-r-01-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5502-imrgn-r-01-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5502-imrgn-r-02-b-a-expected.png:
* platform/qt/css2.1/t0803-c5502-imrgn-r-02-b-a-expected.txt:
* platform/qt/css2.1/t0803-c5502-imrgn-r-03-b-a-expected.png:
* platform/qt/css2.1/t0803-c5502-imrgn-r-03-b-a-expected.txt:
* platform/qt/css2.1/t0803-c5502-imrgn-r-04-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5502-imrgn-r-04-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5502-imrgn-r-05-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5502-imrgn-r-05-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5502-imrgn-r-06-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5502-imrgn-r-06-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5502-mrgn-r-00-c-ag-expected.png:
* platform/qt/css2.1/t0803-c5502-mrgn-r-00-c-ag-expected.txt:
* platform/qt/css2.1/t0803-c5502-mrgn-r-01-c-a-expected.png:
* platform/qt/css2.1/t0803-c5502-mrgn-r-01-c-a-expected.txt:
* platform/qt/css2.1/t0803-c5502-mrgn-r-02-c-expected.png:
* platform/qt/css2.1/t0803-c5502-mrgn-r-02-c-expected.txt:
* platform/qt/css2.1/t0803-c5502-mrgn-r-03-c-expected.png:
* platform/qt/css2.1/t0803-c5502-mrgn-r-03-c-expected.txt:
* platform/qt/css2.1/t0803-c5503-imrgn-b-00-b-a-expected.png:
* platform/qt/css2.1/t0803-c5503-imrgn-b-00-b-a-expected.txt:
* platform/qt/css2.1/t0803-c5503-mrgn-b-00-b-a-expected.png:
* platform/qt/css2.1/t0803-c5503-mrgn-b-00-b-a-expected.txt:
* platform/qt/css2.1/t0803-c5504-imrgn-l-00-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5504-imrgn-l-00-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5504-imrgn-l-01-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5504-imrgn-l-01-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5504-imrgn-l-02-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5504-imrgn-l-02-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5504-imrgn-l-03-b-a-expected.png:
* platform/qt/css2.1/t0803-c5504-imrgn-l-03-b-a-expected.txt:
* platform/qt/css2.1/t0803-c5504-imrgn-l-04-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5504-imrgn-l-04-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5504-imrgn-l-05-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5504-imrgn-l-05-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5504-imrgn-l-06-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5504-imrgn-l-06-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5504-mrgn-l-00-c-ag-expected.png:
* platform/qt/css2.1/t0803-c5504-mrgn-l-00-c-ag-expected.txt:
* platform/qt/css2.1/t0803-c5504-mrgn-l-01-c-a-expected.png:
* platform/qt/css2.1/t0803-c5504-mrgn-l-01-c-a-expected.txt:
* platform/qt/css2.1/t0803-c5504-mrgn-l-02-c-expected.png:
* platform/qt/css2.1/t0803-c5504-mrgn-l-02-c-expected.txt:
* platform/qt/css2.1/t0803-c5504-mrgn-l-03-c-expected.png:
* platform/qt/css2.1/t0803-c5504-mrgn-l-03-c-expected.txt:
* platform/qt/css2.1/t0803-c5505-imrgn-00-a-ag-expected.png:
* platform/qt/css2.1/t0803-c5505-imrgn-00-a-ag-expected.txt:
* platform/qt/css2.1/t0803-c5505-mrgn-00-b-ag-expected.png:
* platform/qt/css2.1/t0803-c5505-mrgn-00-b-ag-expected.txt:
* platform/qt/css2.1/t0803-c5505-mrgn-01-e-a-expected.png:
* platform/qt/css2.1/t0803-c5505-mrgn-01-e-a-expected.txt:
* platform/qt/css2.1/t0803-c5505-mrgn-02-c-expected.png:
* platform/qt/css2.1/t0803-c5505-mrgn-02-c-expected.txt:
* platform/qt/css2.1/t0803-c5505-mrgn-03-c-ag-expected.png:
* platform/qt/css2.1/t0803-c5505-mrgn-03-c-ag-expected.txt:
* platform/qt/css2.1/t080301-c411-vt-mrgn-00-b-expected.png:
* platform/qt/css2.1/t080301-c411-vt-mrgn-00-b-expected.txt:
* platform/qt/css2.1/t0804-c5506-ipadn-t-00-b-a-expected.png:
* platform/qt/css2.1/t0804-c5506-ipadn-t-00-b-a-expected.txt:
* platform/qt/css2.1/t0804-c5506-ipadn-t-01-b-a-expected.png:
* platform/qt/css2.1/t0804-c5506-ipadn-t-01-b-a-expected.txt:
* platform/qt/css2.1/t0804-c5506-ipadn-t-02-b-a-expected.png:
* platform/qt/css2.1/t0804-c5506-ipadn-t-02-b-a-expected.txt:
* platform/qt/css2.1/t0804-c5506-padn-t-00-b-a-expected.png:
* platform/qt/css2.1/t0804-c5506-padn-t-00-b-a-expected.txt:
* platform/qt/css2.1/t0804-c5507-ipadn-r-00-b-ag-expected.png:
* platform/qt/css2.1/t0804-c5507-ipadn-r-00-b-ag-expected.txt:
* platform/qt/css2.1/t0804-c5507-ipadn-r-01-b-ag-expected.png:
* platform/qt/css2.1/t0804-c5507-ipadn-r-01-b-ag-expected.txt:
* platform/qt/css2.1/t0804-c5507-ipadn-r-02-b-ag-expected.png:
* platform/qt/css2.1/t0804-c5507-ipadn-r-02-b-ag-expected.txt:
* platform/qt/css2.1/t0804-c5507-ipadn-r-03-b-a-expected.png:
* platform/qt/css2.1/t0804-c5507-ipadn-r-03-b-a-expected.txt:
* platform/qt/css2.1/t0804-c5507-ipadn-r-04-b-ag-expected.png:
* platform/qt/css2.1/t0804-c5507-ipadn-r-04-b-ag-expected.txt:
* platform/qt/css2.1/t0804-c5507-padn-r-00-c-ag-expected.png:
* platform/qt/css2.1/t0804-c5507-padn-r-00-c-ag-expected.txt:
* platform/qt/css2.1/t0804-c5507-padn-r-01-c-a-expected.png:
* platform/qt/css2.1/t0804-c5507-padn-r-01-c-a-expected.txt:
* platform/qt/css2.1/t0804-c5507-padn-r-02-f-expected.png:
* platform/qt/css2.1/t0804-c5507-padn-r-02-f-expected.txt:
* platform/qt/css2.1/t0804-c5507-padn-r-03-f-expected.png:
* platform/qt/css2.1/t0804-c5507-padn-r-03-f-expected.txt:
* platform/qt/css2.1/t0804-c5508-ipadn-b-00-b-a-expected.png:
* platform/qt/css2.1/t0804-c5508-ipadn-b-00-b-a-expected.txt:
* platform/qt/css2.1/t0804-c5508-ipadn-b-01-f-a-expected.png:
* platform/qt/css2.1/t0804-c5508-ipadn-b-01-f-a-expected.txt:
* platform/qt/css2.1/t0804-c5508-ipadn-b-02-b-a-expected.png:
* platform/qt/css2.1/t0804-c5508-ipadn-b-02-b-a-expected.txt:
* platform/qt/css2.1/t0804-c5508-ipadn-b-03-b-a-expected.png:
* platform/qt/css2.1/t0804-c5508-ipadn-b-03-b-a-expected.txt:
* platform/qt/css2.1/t0804-c5509-ipadn-l-00-b-ag-expected.png:
* platform/qt/css2.1/t0804-c5509-ipadn-l-00-b-ag-expected.txt:
* platform/qt/css2.1/t0804-c5509-ipadn-l-01-b-ag-expected.png:
* platform/qt/css2.1/t0804-c5509-ipadn-l-01-b-ag-expected.txt:
* platform/qt/css2.1/t0804-c5509-ipadn-l-02-b-ag-expected.png:
* platform/qt/css2.1/t0804-c5509-ipadn-l-02-b-ag-expected.txt:
* platform/qt/css2.1/t0804-c5509-ipadn-l-03-b-a-expected.png:
* platform/qt/css2.1/t0804-c5509-ipadn-l-03-b-a-expected.txt:
* platform/qt/css2.1/t0804-c5509-ipadn-l-04-f-ag-expected.png:
* platform/qt/css2.1/t0804-c5509-ipadn-l-04-f-ag-expected.txt:
* platform/qt/css2.1/t0804-c5509-padn-l-00-b-ag-expected.png:
* platform/qt/css2.1/t0804-c5509-padn-l-00-b-ag-expected.txt:
* platform/qt/css2.1/t0804-c5509-padn-l-01-b-a-expected.png:
* platform/qt/css2.1/t0804-c5509-padn-l-01-b-a-expected.txt:
* platform/qt/css2.1/t0804-c5509-padn-l-02-f-expected.png:
* platform/qt/css2.1/t0804-c5509-padn-l-02-f-expected.txt:
* platform/qt/css2.1/t0804-c5509-padn-l-03-f-g-expected.png:
* platform/qt/css2.1/t0804-c5509-padn-l-03-f-g-expected.txt:
* platform/qt/css2.1/t0804-c5510-ipadn-00-b-ag-expected.png:
* platform/qt/css2.1/t0804-c5510-ipadn-00-b-ag-expected.txt:
* platform/qt/css2.1/t0804-c5510-padn-00-b-ag-expected.png:
* platform/qt/css2.1/t0804-c5510-padn-00-b-ag-expected.txt:
* platform/qt/css2.1/t0804-c5510-padn-01-e-a-expected.png:
* platform/qt/css2.1/t0804-c5510-padn-01-e-a-expected.txt:
* platform/qt/css2.1/t0804-c5510-padn-02-f-expected.png:
* platform/qt/css2.1/t0804-c5510-padn-02-f-expected.txt:
* platform/qt/css2.1/t0805-c5511-brdr-tw-00-b-expected.png:
* platform/qt/css2.1/t0805-c5511-brdr-tw-00-b-expected.txt:
* platform/qt/css2.1/t0805-c5511-brdr-tw-01-b-g-expected.png:
* platform/qt/css2.1/t0805-c5511-brdr-tw-01-b-g-expected.txt:
* platform/qt/css2.1/t0805-c5511-brdr-tw-02-b-expected.png:
* platform/qt/css2.1/t0805-c5511-brdr-tw-02-b-expected.txt:
* platform/qt/css2.1/t0805-c5511-brdr-tw-03-b-expected.png:
* platform/qt/css2.1/t0805-c5511-brdr-tw-03-b-expected.txt:
* platform/qt/css2.1/t0805-c5511-ibrdr-tw-00-a-expected.png:
* platform/qt/css2.1/t0805-c5511-ibrdr-tw-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5512-brdr-rw-00-b-expected.png:
* platform/qt/css2.1/t0805-c5512-brdr-rw-00-b-expected.txt:
* platform/qt/css2.1/t0805-c5512-brdr-rw-01-b-g-expected.png:
* platform/qt/css2.1/t0805-c5512-brdr-rw-01-b-g-expected.txt:
* platform/qt/css2.1/t0805-c5512-brdr-rw-02-b-expected.png:
* platform/qt/css2.1/t0805-c5512-brdr-rw-02-b-expected.txt:
* platform/qt/css2.1/t0805-c5512-brdr-rw-03-b-expected.png:
* platform/qt/css2.1/t0805-c5512-brdr-rw-03-b-expected.txt:
* platform/qt/css2.1/t0805-c5512-ibrdr-rw-00-a-expected.png:
* platform/qt/css2.1/t0805-c5512-ibrdr-rw-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5513-brdr-bw-00-b-expected.png:
* platform/qt/css2.1/t0805-c5513-brdr-bw-00-b-expected.txt:
* platform/qt/css2.1/t0805-c5513-brdr-bw-01-b-g-expected.png:
* platform/qt/css2.1/t0805-c5513-brdr-bw-01-b-g-expected.txt:
* platform/qt/css2.1/t0805-c5513-brdr-bw-02-b-expected.png:
* platform/qt/css2.1/t0805-c5513-brdr-bw-02-b-expected.txt:
* platform/qt/css2.1/t0805-c5513-brdr-bw-03-b-expected.png:
* platform/qt/css2.1/t0805-c5513-brdr-bw-03-b-expected.txt:
* platform/qt/css2.1/t0805-c5513-ibrdr-bw-00-a-expected.png:
* platform/qt/css2.1/t0805-c5513-ibrdr-bw-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5514-brdr-lw-00-b-expected.png:
* platform/qt/css2.1/t0805-c5514-brdr-lw-00-b-expected.txt:
* platform/qt/css2.1/t0805-c5514-brdr-lw-01-b-g-expected.png:
* platform/qt/css2.1/t0805-c5514-brdr-lw-01-b-g-expected.txt:
* platform/qt/css2.1/t0805-c5514-brdr-lw-02-b-expected.png:
* platform/qt/css2.1/t0805-c5514-brdr-lw-02-b-expected.txt:
* platform/qt/css2.1/t0805-c5514-brdr-lw-03-b-expected.png:
* platform/qt/css2.1/t0805-c5514-brdr-lw-03-b-expected.txt:
* platform/qt/css2.1/t0805-c5514-ibrdr-lw-00-a-expected.png:
* platform/qt/css2.1/t0805-c5514-ibrdr-lw-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5515-brdr-w-00-a-expected.png:
* platform/qt/css2.1/t0805-c5515-brdr-w-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5515-brdr-w-01-b-g-expected.png:
* platform/qt/css2.1/t0805-c5515-brdr-w-01-b-g-expected.txt:
* platform/qt/css2.1/t0805-c5515-brdr-w-02-b-expected.png:
* platform/qt/css2.1/t0805-c5515-brdr-w-02-b-expected.txt:
* platform/qt/css2.1/t0805-c5515-ibrdr-00-b-expected.png:
* platform/qt/css2.1/t0805-c5515-ibrdr-00-b-expected.txt:
* platform/qt/css2.1/t0805-c5516-brdr-c-00-a-expected.png:
* platform/qt/css2.1/t0805-c5516-brdr-c-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5516-ibrdr-c-00-a-expected.png:
* platform/qt/css2.1/t0805-c5516-ibrdr-c-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5517-brdr-s-00-c-expected.png:
* platform/qt/css2.1/t0805-c5517-brdr-s-00-c-expected.txt:
* platform/qt/css2.1/t0805-c5517-ibrdr-s-00-a-expected.png:
* platform/qt/css2.1/t0805-c5517-ibrdr-s-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5518-brdr-t-00-a-expected.png:
* platform/qt/css2.1/t0805-c5518-brdr-t-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5518-brdr-t-01-e-expected.png:
* platform/qt/css2.1/t0805-c5518-brdr-t-01-e-expected.txt:
* platform/qt/css2.1/t0805-c5518-ibrdr-t-00-a-expected.png:
* platform/qt/css2.1/t0805-c5518-ibrdr-t-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5519-brdr-r-00-a-expected.png:
* platform/qt/css2.1/t0805-c5519-brdr-r-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5519-brdr-r-01-e-expected.png:
* platform/qt/css2.1/t0805-c5519-brdr-r-01-e-expected.txt:
* platform/qt/css2.1/t0805-c5519-brdr-r-02-e-expected.png:
* platform/qt/css2.1/t0805-c5519-brdr-r-02-e-expected.txt:
* platform/qt/css2.1/t0805-c5519-ibrdr-r-00-a-expected.png:
* platform/qt/css2.1/t0805-c5519-ibrdr-r-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5520-brdr-b-00-a-expected.png:
* platform/qt/css2.1/t0805-c5520-brdr-b-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5520-brdr-b-01-e-expected.png:
* platform/qt/css2.1/t0805-c5520-brdr-b-01-e-expected.txt:
* platform/qt/css2.1/t0805-c5520-ibrdr-b-00-a-expected.png:
* platform/qt/css2.1/t0805-c5520-ibrdr-b-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5521-brdr-l-00-a-expected.png:
* platform/qt/css2.1/t0805-c5521-brdr-l-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5521-brdr-l-01-e-expected.png:
* platform/qt/css2.1/t0805-c5521-brdr-l-01-e-expected.txt:
* platform/qt/css2.1/t0805-c5521-brdr-l-02-e-expected.png:
* platform/qt/css2.1/t0805-c5521-brdr-l-02-e-expected.txt:
* platform/qt/css2.1/t0805-c5521-ibrdr-l-00-a-expected.png:
* platform/qt/css2.1/t0805-c5521-ibrdr-l-00-a-expected.txt:
* platform/qt/css2.1/t0805-c5522-brdr-00-b-expected.png:
* platform/qt/css2.1/t0805-c5522-brdr-00-b-expected.txt:
* platform/qt/css2.1/t0805-c5522-brdr-01-b-g-expected.png:
* platform/qt/css2.1/t0805-c5522-brdr-01-b-g-expected.txt:
* platform/qt/css2.1/t0805-c5522-brdr-02-e-expected.png:
* platform/qt/css2.1/t0805-c5522-brdr-02-e-expected.txt:
* platform/qt/css2.1/t0805-c5522-ibrdr-00-a-expected.png:
* platform/qt/css2.1/t0805-c5522-ibrdr-00-a-expected.txt:

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

9 years ago[Tests] Re-factor some tests in fast/forms/number for sharing with other input types
yosin@chromium.org [Wed, 25 Jul 2012 01:45:20 +0000 (01:45 +0000)]
[Tests] Re-factor some tests in fast/forms/number for sharing with other input types
https://bugs.webkit.org/show_bug.cgi?id=92081

Reviewed by Kent Tamura.

This patch moves JavaScript code from test HTML files into JavaScript
files for sharing JavaScript code with other input types.

* fast/forms/number/number-change-type-on-focus.html: Removed JavaScript code and changed to load JavaScript code from fast/forms/resources/common-change-type-on-focus.js.
* fast/forms/number/number-losing-renderer-on-click.html: Removed JavaScript code and changed to load JavaScript code from fast/forms/resources/common-losing-renderer-on-click.js.
* fast/forms/resources/common-change-type-on-focus.js: Remove HTML markup text.
* fast/forms/resources/common-losing-renderer-on-click.js: Remove HTML markup text.

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

9 years ago[EFL] Unreviewed build fix.
rakuco@webkit.org [Wed, 25 Jul 2012 01:23:29 +0000 (01:23 +0000)]
[EFL] Unreviewed build fix.

* WebKitTestRunner/efl/EventSenderProxyEfl.cpp: Include unistd.h
for usleep(3).

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

9 years ago[Qt] css2.1/t170602* rebaseline after new test fonts
caio.oliveira@openbossa.org [Wed, 25 Jul 2012 01:14:51 +0000 (01:14 +0000)]
[Qt] css2.1/t170602* rebaseline after new test fonts
https://bugs.webkit.org/show_bug.cgi?id=92188

Unreviewed.

* platform/qt-5.0/Skipped:
* platform/qt/css2.1/t170602-bdr-conflct-w-00-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-00-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-01-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-01-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-02-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-02-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-03-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-03-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-04-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-04-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-05-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-05-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-06-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-06-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-07-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-07-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-08-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-08-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-09-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-09-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-10-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-10-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-11-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-11-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-12-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-12-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-13-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-13-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-14-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-14-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-15-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-15-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-16-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-16-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-17-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-17-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-18-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-18-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-19-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-19-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-20-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-20-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-21-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-21-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-22-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-22-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-23-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-23-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-24-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-24-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-25-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-25-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-26-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-26-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-27-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-27-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-28-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-28-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-29-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-29-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-30-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-30-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-31-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-31-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-32-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-32-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-33-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-33-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-34-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-34-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-35-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-35-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-36-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-36-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-37-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-37-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-38-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-38-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-39-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-39-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-40-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-40-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-41-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-41-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-42-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-42-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-43-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-43-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-44-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-44-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-45-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-45-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-46-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-46-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-47-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-47-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-48-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-48-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-49-d-expected.png: Added.
* platform/qt/css2.1/t170602-bdr-conflct-w-49-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-50-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-50-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-51-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-51-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-52-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-52-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-53-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-53-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-54-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-54-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-55-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-55-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-56-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-56-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-57-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-57-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-58-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-58-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-59-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-59-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-60-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-60-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-61-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-61-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-62-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-62-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-63-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-63-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-64-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-64-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-65-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-65-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-66-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-66-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-67-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-67-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-68-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-68-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-69-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-69-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-70-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-70-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-71-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-71-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-72-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-72-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-73-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-73-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-74-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-74-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-75-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-75-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-76-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-76-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-77-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-77-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-78-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-78-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-79-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-79-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-80-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-80-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-81-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-81-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-82-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-82-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-83-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-83-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-84-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-84-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-85-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-85-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-86-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-86-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-87-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-87-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-88-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-88-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-89-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-89-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-90-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-90-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-91-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-91-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-92-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-92-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-93-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-93-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-94-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-94-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-95-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-95-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-96-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-96-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-97-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-97-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-98-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-98-d-expected.txt:
* platform/qt/css2.1/t170602-bdr-conflct-w-99-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-99-d-expected.txt:

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

9 years agoConvert HTML parser to handle 8-bit resources without converting to UChar*
msaboff@apple.com [Wed, 25 Jul 2012 01:11:16 +0000 (01:11 +0000)]
Convert HTML parser to handle 8-bit resources without converting to UChar*
https://bugs.webkit.org/show_bug.cgi?id=90321

Reviewed by Geoffrey Garen.

Source/WebCore:

No new tests, no new functionality therefore covered by existing tests.

Changed the parsing of HTML to handle 8-bit strings without converting the
whole string to 16-bits.  Primary change was to use the appropriate
character pointer type (LChar* or UChar*) depending on the source string.
This access is abstracted in SegmentedSubstring by getCurrentChar{8,16} and
incrementAndGetCurrentChar{8,16} methods.  In SegmentedString, the advance()
and advanceAndUpdateLineNumber() methods have been refactored into a
state machine managed pair of function pointers.  The possible functions
have not only the 8 and 16 bitness factored out, they also have the
"exclude line numbers" logic factored out for advanceAndUpdateLineNumber().
This provides a net speed-up even with the 8/16 bit testing.
Other changes involve using String methods to access and compare with the
source data.

* html/FTPDirectoryDocument.cpp:
(WebCore::FTPDirectoryDocumentParser::append): Changed to use currentChar()
instead of SegmentedString '*' operator.
* html/parser/HTMLEntityParser.cpp: Changed to use currentChar() instead of
SegmentedString '*' operator.
* html/parser/HTMLParserIdioms.cpp:
(WebCore::stripLeadingAndTrailingHTMLSpaces): Added 8-bit fast path.
* html/parser/HTMLSourceTracker.cpp:
(WebCore::HTMLSourceTracker::sourceForToken): Changed to use currentChar() instead of
SegmentedString '*' operator.
* loader/cache/CachedScript.cpp:
(WebCore::CachedScript::script): Updated to use new String::dataSize() method.
* platform/text/SegmentedString.cpp:
(WebCore::SegmentedString::SegmentedString):
(WebCore::SegmentedString::operator=):
(WebCore::SegmentedString::clear):
(WebCore::SegmentedString::append):
(WebCore::SegmentedString::prepend):
(WebCore::SegmentedString::advanceSubstring):
(WebCore::SegmentedString::advance): Changed to be a wrapper that invokes current
advance function.
(WebCore::SegmentedString::advance8): Fast path advance function for 8 bit data.
(WebCore::SegmentedString::advance16): Fast path advance function for 16 bit data.
(WebCore::SegmentedString::advanceAndUpdateLineNumber8IncludeLineNumbers): Fast
path advanceAndUpdateLineNumber for 8 bit data when we need to update the line number.
(WebCore::SegmentedString::advanceAndUpdateLineNumber16IncludeLineNumbers): Fast
path advanceAndUpdateLineNumber for 16 bit data when we need to update the line number.
(WebCore::SegmentedString::advanceSlowCase): Slow case advance function for both
8 and 16 bit advance.
(WebCore::SegmentedString::advanceAndUpdateLineNumberSlowCase): Slow case
advanceAndUpdateLineNumber function for both 8 and 16 bit data.
(WebCore::SegmentedString::advanceEmpty): Advance function when input has been exhausted.
* platform/text/SegmentedString.h:
(WebCore::SegmentedSubstring::SegmentedSubstring):
(WebCore::SegmentedSubstring::clear):
(SegmentedSubstring):
(WebCore::SegmentedSubstring::is8Bit): New getter.
(WebCore::SegmentedSubstring::appendTo):
(WebCore::SegmentedSubstring::getCurrentChar8): New getter for the 8 bit case.
(WebCore::SegmentedSubstring::getCurrentChar16): New getter for the 16 bit case.
(WebCore::SegmentedSubstring::incrementAndGetCurrentChar8): New wrapper functions
that pre-increments the 8 bit pointer and returns the next character.
(WebCore::SegmentedSubstring::incrementAndGetCurrentChar16): New wrapper functions
that pre-increments the 16 bit pointer and returns the next character.
(WebCore::SegmentedSubstring::currentSubString):
(WebCore::SegmentedSubstring::getCurrentChar):
(WebCore::SegmentedSubstring::incrementAndGetCurrentChar):
(WebCore::SegmentedString::SegmentedString):
(WebCore::SegmentedString::push):
(WebCore::SegmentedString::isEmpty):
(WebCore::SegmentedString::lookAhead):
(WebCore::SegmentedString::lookAheadIgnoringCase):
(WebCore::SegmentedString::advance):
(WebCore::SegmentedString::advanceAndUpdateLineNumber):
(WebCore::SegmentedString::advanceAndASSERT):
(WebCore::SegmentedString::advanceAndASSERTIgnoringCase):
(WebCore::SegmentedString::advancePastNonNewline):
(WebCore::SegmentedString::advancePastNewlineAndUpdateLineNumber):
(WebCore::SegmentedString::currentChar):
(WebCore::SegmentedString::setSlowCase): Set advance function pointers to slow case
functions.
(WebCore::SegmentedString::decrementAndCheckLength): Decrement substring length and
change to slow case functions when only one character left.
(WebCore::SegmentedString::setAdvanceFunctionPointers): Select appropriate advance
functions based on current substring.
(WebCore::SegmentedString::lookAheadInline): Changed to use String::startsWith().
(WebCore::SegmentedString::lookAheadSlowCase):
* xml/parser/CharacterReferenceParserInlineMethods.h:
(WebCore::consumeCharacterReference): Changed to use currentChar() instead of
SegmentedString '*' operator.
* xml/parser/MarkupTokenizerBase.h:
(WebCore::MarkupTokenizerBase::InputStreamPreprocessor::nextInputCharacter):
(WebCore::MarkupTokenizerBase::InputStreamPreprocessor::peek): Changed to use
currentChar() instead of SegmentedString '*' operator.
(WebCore::MarkupTokenizerBase::InputStreamPreprocessor::advance):

Source/WTF:

* wtf/text/WTFString.h:
(WTF::String::dataSize): New method to return the number of bytes
the string requires.  This replaces a harcoded calculation based on
length and sizeof(UChar).

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

9 years agoAdd per-HashTable stats
weinig@apple.com [Wed, 25 Jul 2012 01:07:21 +0000 (01:07 +0000)]
Add per-HashTable stats
https://bugs.webkit.org/show_bug.cgi?id=92185

Reviewed by Anders Carlsson.

Add per-HashTable stats, so we can look at the effectiveness of an individual HashTable.

* wtf/HashTable.h:
(WTF::HashTable::Stats::Stats):
Add a HashTable::Stats to hold the stats.

(WTF::HashTable::Stats::recordCollisionAtCount):
(WTF::HashTable::Stats::dumpStats):
Add versions of recordCollisionAtCount and dumpStats for per-HashTable version.

(WTF::HashTable):
Keep the stats, if enabled, in an OwnPtr, to not blow JSCell max size restrictions.

(WTF::lookup):
(WTF::lookupForWriting):
(WTF::fullLookupForWriting):
(WTF::add):
(WTF::reinsert):
(WTF::remove):
(WTF::rehash):
Keep track of the stats as the table is used.

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

9 years agoGardening stuff, rebaseline.
zmo@google.com [Wed, 25 Jul 2012 00:48:31 +0000 (00:48 +0000)]
Gardening stuff, rebaseline.

Unreviewed.

* platform/chromium-mac/fast/hidpi: Added.
* platform/chromium-mac/fast/hidpi/broken-image-icon-hidpi-expected.png: Added.
* platform/chromium-mac/fast/hidpi/broken-image-with-size-hidpi-expected.png: Added.
* platform/chromium-mac/fast/hidpi/clip-text-in-hidpi-expected.png: Added.
* platform/chromium-mac/fast/hidpi/device-scale-factor-paint-expected.png: Added.
* platform/chromium-mac/fast/hidpi/focus-rings-expected.png: Added.
* platform/chromium-mac/fast/hidpi/image-set-as-background-expected.png: Added.
* platform/chromium-mac/fast/hidpi/image-set-background-dynamic-expected.png: Added.
* platform/chromium-mac/fast/hidpi/image-set-background-repeat-expected.png: Added.
* platform/chromium-mac/fast/hidpi/image-set-background-repeat-without-size-expected.png: Added.
* platform/chromium-mac/fast/hidpi/image-set-border-image-comparison-expected.png: Added.
* platform/chromium-mac/fast/hidpi/image-set-border-image-dynamic-expected.png: Added.
* platform/chromium-mac/fast/hidpi/image-set-border-image-simple-expected.png: Added.
* platform/chromium-mac/fast/hidpi/image-set-in-content-dynamic-expected.png: Added.
* platform/chromium-mac/fast/hidpi/image-set-out-of-order-expected.png: Added.
* platform/chromium-mac/fast/hidpi/image-set-simple-expected.png: Added.
* platform/chromium-mac/fast/hidpi/image-set-without-specified-width-expected.png: Added.
* platform/chromium-mac/fast/hidpi/resize-corner-hidpi-expected.png: Added.
* platform/chromium-mac/fast/hidpi/video-controls-in-hidpi-expected.png: Added.
* platform/chromium-mac/fast/hidpi/video-controls-in-hidpi-expected.txt: Added.
* platform/chromium-win/fast/hidpi: Added.
* platform/chromium-win/fast/hidpi/broken-image-icon-hidpi-expected.png: Added.
* platform/chromium-win/fast/hidpi/broken-image-icon-hidpi-expected.txt: Added.
* platform/chromium-win/fast/hidpi/broken-image-with-size-hidpi-expected.png: Added.
* platform/chromium-win/fast/hidpi/broken-image-with-size-hidpi-expected.txt: Added.
* platform/chromium-win/fast/hidpi/clip-text-in-hidpi-expected.png: Added.
* platform/chromium-win/fast/hidpi/clip-text-in-hidpi-expected.txt: Added.
* platform/chromium-win/fast/hidpi/device-scale-factor-paint-expected.png: Added.
* platform/chromium-win/fast/hidpi/focus-rings-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-as-background-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-as-background-expected.txt: Added.
* platform/chromium-win/fast/hidpi/image-set-background-dynamic-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-background-dynamic-expected.txt: Added.
* platform/chromium-win/fast/hidpi/image-set-background-repeat-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-background-repeat-expected.txt: Added.
* platform/chromium-win/fast/hidpi/image-set-background-repeat-without-size-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-background-repeat-without-size-expected.txt: Added.
* platform/chromium-win/fast/hidpi/image-set-border-image-comparison-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-border-image-comparison-expected.txt: Added.
* platform/chromium-win/fast/hidpi/image-set-border-image-dynamic-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-border-image-dynamic-expected.txt: Added.
* platform/chromium-win/fast/hidpi/image-set-border-image-simple-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-border-image-simple-expected.txt: Added.
* platform/chromium-win/fast/hidpi/image-set-in-content-dynamic-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-in-content-dynamic-expected.txt: Added.
* platform/chromium-win/fast/hidpi/image-set-out-of-order-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-out-of-order-expected.txt: Added.
* platform/chromium-win/fast/hidpi/image-set-simple-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-simple-expected.txt: Added.
* platform/chromium-win/fast/hidpi/image-set-without-specified-width-expected.png: Added.
* platform/chromium-win/fast/hidpi/image-set-without-specified-width-expected.txt: Added.
* platform/chromium-win/fast/hidpi/resize-corner-hidpi-expected.png: Added.
* platform/chromium-win/fast/hidpi/resize-corner-hidpi-expected.txt: Added.
* platform/chromium-win/fast/hidpi/video-controls-in-hidpi-expected.png: Added.
* platform/chromium-win/fast/hidpi/video-controls-in-hidpi-expected.txt: Added.

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

9 years agoWKContextGetGlobalStatistics() assigns wrong value to wkFrameCount in WKContextStatistics
commit-queue@webkit.org [Wed, 25 Jul 2012 00:46:42 +0000 (00:46 +0000)]
WKContextGetGlobalStatistics() assigns wrong value to wkFrameCount in WKContextStatistics
https://bugs.webkit.org/show_bug.cgi?id=92173

Patch by Jae Hyun Park <jae.park@company100.net> on 2012-07-24
Reviewed by John Sullivan.

In WKContextGetGlobalStatistics(), wkViewCount in WebContext::Statistics
is assigned to wkFrameCount in WKContextStatistics.
wkFrameCount in WebContext:Statistics should be assigned to wkFrameCount in WKContextStatistics.

* UIProcess/API/C/WKContext.cpp:
(WKContextGetGlobalStatistics):

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

9 years ago[chromium] Hint garbage collector to run if page uses Canvas contexts
kbr@google.com [Wed, 25 Jul 2012 00:37:11 +0000 (00:37 +0000)]
[chromium] Hint garbage collector to run if page uses Canvas contexts
https://bugs.webkit.org/show_bug.cgi?id=76225

Reviewed by Kentaro Hara.

Source/WebCore:

Upon creating a canvas context, set a hint in the current isolate
indicating that a full GC should be done upon the next page
navigation.

This improves Chrome's robustness on some WebGL stress tests which
simulate real-world behavior by repeatedly navigating among
several samples. More general measures are being investigated, but
this change makes V8 behave the same as JSC on these stress tests.
JSC doesn't currently use generational garbage collection, so it
has more opportunities to discover unreferenced canvas contexts.

Test: fast/canvas/webgl/context-creation-and-destruction.html

* bindings/v8/V8Binding.cpp:
(WebCore::V8BindingPerIsolateData::V8BindingPerIsolateData):
    Initialize per-isolate low memory hint.
* bindings/v8/V8Binding.h:
(V8BindingPerIsolateData):
(WebCore::V8BindingPerIsolateData::setLowMemoryNotificationHint):
    Set a per-isolate hint to signal a low memory condition upon the next page navigation.
(WebCore::V8BindingPerIsolateData::clearLowMemoryNotificationHint):
    Clear the previously set hint.
(WebCore::V8BindingPerIsolateData::isLowMemoryNotificationHint):
    Get the previously set hint.
* bindings/v8/V8Proxy.cpp:
(WebCore::V8Proxy::hintForGCIfNecessary):
    If necessary, send V8 a hint that it should GC.
(WebCore):
(WebCore::V8Proxy::clearForClose):
(WebCore::V8Proxy::clearForNavigation):
    Call hintForGCIfNecessary.
* bindings/v8/V8Proxy.h:
(V8Proxy):
* bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
(WebCore::V8HTMLCanvasElement::getContextCallback):
    Set a hint that we should GC upon the next page navigation.

LayoutTests:

This test doesn't directly exercise this code path yet, but it
needs to work regardless and also needs to be expanded.

* fast/canvas/webgl/context-creation-and-destruction-expected.txt: Added.
* fast/canvas/webgl/context-creation-and-destruction.html: Added.

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

9 years ago[Qt] svg/as-background-image rebaseline after new test fonts
alexis.menard@openbossa.org [Wed, 25 Jul 2012 00:28:46 +0000 (00:28 +0000)]
[Qt] svg/as-background-image rebaseline after new test fonts
https://bugs.webkit.org/show_bug.cgi?id=92180

Unreviewed gardening.

These tests have been skipped because monospace fonts weren't properly used by
layout tests. After r121971, the test results are normal again.

* platform/qt-5.0/Skipped:
* platform/qt/svg/as-background-image/animated-svg-as-background-expected.png: Added.
* platform/qt/svg/as-background-image/animated-svg-as-background-expected.txt:
* platform/qt/svg/as-background-image/background-image-preserveaspectRatio-support-expected.png:
* platform/qt/svg/as-background-image/background-image-preserveaspectRatio-support-expected.txt:
* platform/qt/svg/as-background-image/svg-as-background-1-expected.txt:
* platform/qt/svg/as-background-image/svg-as-background-2-expected.txt:
* platform/qt/svg/as-background-image/svg-as-background-3-expected.txt:
* platform/qt/svg/as-background-image/svg-as-background-4-expected.png: Added.
* platform/qt/svg/as-background-image/svg-as-background-4-expected.txt:
* platform/qt/svg/as-background-image/svg-as-background-5-expected.png: Added.
* platform/qt/svg/as-background-image/svg-as-background-5-expected.txt:
* platform/qt/svg/as-background-image/svg-as-background-6-expected.txt:
* platform/qt/svg/as-background-image/svg-as-background-expected.txt:
* platform/qt/svg/as-background-image/svg-as-background-with-relative-size-expected.txt:
* platform/qt/svg/as-background-image/svg-as-background-with-viewBox-expected.txt:
* platform/qt/svg/as-background-image/svg-as-tiled-background-expected.txt:
* platform/qt/svg/as-background-image/svg-background-partial-redraw-expected.png:
* platform/qt/svg/as-background-image/svg-background-partial-redraw-expected.txt:
* platform/qt/svg/as-background-image/svg-width-100p-as-background-expected.txt:

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