WebKit-https.git
9 years agoroll-chromium-deps doesn't roll DEPS
rniwa@webkit.org [Thu, 11 Apr 2013 08:29:35 +0000 (08:29 +0000)]
roll-chromium-deps doesn't roll DEPS
https://bugs.webkit.org/show_bug.cgi?id=114421

Reviewed by Antti Koivisto.

Roll DEPS. Rolling DEPS. Rolled DEPS.

* Scripts/webkitpy/tool/bot/irc_command.py:
(RollChromiumDEPS.execute):

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

9 years ago[webkitpy] Remove lingering return_exit_code usage in scm_mock and rebaselineserver.
glenn@skynav.com [Thu, 11 Apr 2013 08:27:06 +0000 (08:27 +0000)]
[webkitpy] Remove lingering return_exit_code usage in scm_mock and rebaselineserver.
https://bugs.webkit.org/show_bug.cgi?id=114418

Reviewed by Ryosuke Niwa.

* Scripts/webkitpy/common/checkout/scm/scm_mock.py:
(MockSCM.add): Remove optional remove_exit_code argument.
(MockSCM.add_list): Remove optional remove_exit_code argument and return value.
* Scripts/webkitpy/tool/servers/rebaselineserver.py:
(_rebaseline_test): Use ScriptError to capture SCM.add() failure and exit code.
(_move_test_baselines): Use ScriptError to capture SCM.add() failure and exit code.

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

9 years agoFrameLoaderClient::assignIdentifierToInitialRequest() not called for the main resourc...
carlosgc@webkit.org [Thu, 11 Apr 2013 08:25:51 +0000 (08:25 +0000)]
FrameLoaderClient::assignIdentifierToInitialRequest() not called for the main resource when loaded from the memory cache
https://bugs.webkit.org/show_bug.cgi?id=112418

Source/WebCore:

Reviewed by Darin Adler.

When the main resource is loaded from the memory cache the
response is not added to the ResponseVector of the document
loader, so that when committing the provisional load the remaining
delegate messages are not called because the ResponseVector of the
document loader is empty. When the main resource is loaded from
the memory cache, there's no resource loader, and the client is
notified about the response received using
ResourceLoadNotifier::dispatchDidReceiveResponse() directly
instead of ResourceLoadNotifier::didReceiveResponse() which is the
one adding the response to the ResponseVector of the document
loader. So, the problem can be fixed by adding the response to the
ResponseVector before calling dispatchDidReceiveResponse() when
loading the main resource without a resource loade

Test: loader/go-back-cached-main-resource.html

* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::responseReceived):

LayoutTests:

Patch by Manuel Rego Casasnovas <rego@igalia.com> on 2013-04-11
Reviewed by Darin Adler.

* loader/go-back-cached-main-resource-expected.txt: Added.
* loader/go-back-cached-main-resource.html: Added.
* loader/resources/first-page.html: Added.
* loader/resources/other-page.html: Added.
* platform/gtk-wk1/loader/go-back-cached-main-resource-expected.txt: Added.
* platform/wk2/loader/go-back-cached-main-resource-expected.txt: Added.

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

9 years agoFix roll-chromium-deps and hi.
rniwa@webkit.org [Thu, 11 Apr 2013 07:45:34 +0000 (07:45 +0000)]
Fix roll-chromium-deps and hi.

* Scripts/webkitpy/tool/bot/irc_command.py:
(Hi.execute):
(RollChromiumDEPS.execute):

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

9 years agoRemove webkitpy code to roll Chromium DEPS
rniwa@webkit.org [Thu, 11 Apr 2013 07:40:29 +0000 (07:40 +0000)]
Remove webkitpy code to roll Chromium DEPS
https://bugs.webkit.org/show_bug.cgi?id=114415

Reviewed by Benjamin Poulain.

Removed the code to roll Chromium DEPS in WebKit.

* Scripts/webkitpy/common/checkout/checkout.py:
(Checkout.bug_id_for_this_commit):
* Scripts/webkitpy/common/checkout/checkout_mock.py:
(MockCheckout.commit_message_for_this_commit):
* Scripts/webkitpy/common/checkout/checkout_unittest.py:
(CheckoutTest.test_suggested_reviewers):
* Scripts/webkitpy/common/checkout/deps.py: Removed.
* Scripts/webkitpy/common/checkout/deps_mock.py: Removed.
* Scripts/webkitpy/tool/bot/irc_command.py:
(RollChromiumDEPS): Teach webkitbot a sense of humor.
(RollChromiumDEPS.execute):
* Scripts/webkitpy/tool/bot/irc_command_unittest.py:
(IRCCommandTest.test_create_bug):
* Scripts/webkitpy/tool/bot/ircbot_unittest.py:
(IRCBotTest.test_revert):
* Scripts/webkitpy/tool/bot/sheriff.py:
(Sheriff.post_rollout_patch):
* Scripts/webkitpy/tool/commands/__init__.py:
* Scripts/webkitpy/tool/commands/roll.py: Removed.
* Scripts/webkitpy/tool/commands/roll_unittest.py: Removed.
* Scripts/webkitpy/tool/steps/__init__.py:
* Scripts/webkitpy/tool/steps/preparechangelogfordepsroll.py: Removed.
* Scripts/webkitpy/tool/steps/updatechromiumdeps.py: Removed.
* Scripts/webkitpy/tool/steps/updatechromiumdeps_unittest.py: Removed.

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

9 years agoUnreviewed Qt buildfixes after r148147, r148148 and r148154.
ossy@webkit.org [Thu, 11 Apr 2013 07:20:28 +0000 (07:20 +0000)]
Unreviewed Qt buildfixes after r148147, r148148 and r148154.

* DerivedSources.pri:
* Target.pri:

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

9 years ago[webkitpy] SVNTest fails four tests when using subversion client 1.7 or later
glenn@skynav.com [Thu, 11 Apr 2013 07:03:40 +0000 (07:03 +0000)]
[webkitpy] SVNTest fails four tests when using subversion client 1.7 or later
https://bugs.webkit.org/show_bug.cgi?id=114386

Reviewed by Benjamin Poulain.

Subversion client 1.7 uses a new locking scheme that invalidates the technique used
in test_svn_lock(), so skip that test for 1.7 (or later) until a new technique
can be implemented. Further, 1.7 changed svn add to not add intermediate directories
by default and to return exit code 1 if a file/dir had already been added.

* Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
(test_svn_lock): Skip body of test if subversion client 1.7 or later.
* Scripts/webkitpy/common/checkout/scm/svn.py:
(SVN.add_list): Use --parents option and handle exit code 1 if subversion client 1.7 or later.

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

9 years agoUnreviewed GTK build fix, fixing the WebKit2 build.
zandobersek@gmail.com [Thu, 11 Apr 2013 06:29:53 +0000 (06:29 +0000)]
Unreviewed GTK build fix, fixing the WebKit2 build.

* GNUmakefile.list.am:

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

9 years ago Remove some includes of CachedImage.h
ap@apple.com [Thu, 11 Apr 2013 06:22:14 +0000 (06:22 +0000)]
    Remove some includes of CachedImage.h
        https://bugs.webkit.org/show_bug.cgi?id=114411

        Reviewed by Dan Bernstein.

        * css/CSSCrossfadeValue.h: Initializing CachedResourceHandle with 0 requires a
        definition of a class it holds, but default construction does not.

        * rendering/RenderImageResource.cpp:
        * rendering/RenderImageResource.h:
        Moved definitions of virtual functions to a .cpp file. There is no win from having
        them inline, and now we don't need CachedImage.h in the header.

        * bindings/js/JSNodeCustom.cpp:
        * dom/Clipboard.cpp:
        (WebCore::Clipboard::Clipboard):
        * platform/mac/ClipboardMac.h:
        * rendering/InlineFlowBox.cpp:
        * rendering/RenderBox.cpp:
        * rendering/RenderListItem.cpp:
        * rendering/RenderListMarker.cpp:
        * rendering/RenderTableCol.cpp:
        * rendering/RenderTableRow.cpp:
        * rendering/RenderTableSection.cpp:
        * svg/graphics/SVGImageCache.cpp:
        Removed unnecessary includes.

        * platform/mac/PasteboardMac.mm:
        * rendering/RenderSnapshottedPlugIn.cpp:
        Added ones where they are now necessary.

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

9 years agoUnreviewed.
zandobersek@gmail.com [Thu, 11 Apr 2013 06:19:55 +0000 (06:19 +0000)]
Unreviewed.

* GNUmakefile.am: Removing extra whitespace that's producing warnings.

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

9 years ago[webkitpy] Remove unused return_exit_code argument and returned values from SCM....
glenn@skynav.com [Thu, 11 Apr 2013 06:04:31 +0000 (06:04 +0000)]
[webkitpy] Remove unused return_exit_code argument and returned values from SCM.{add,add_list}
https://bugs.webkit.org/show_bug.cgi?id=114410

Reviewed by Ryosuke Niwa.

* Scripts/webkitpy/common/checkout/scm/git.py:
(Git.add_list): Remove optional return_exit_code argument. Remove return value.
* Scripts/webkitpy/common/checkout/scm/scm.py:
(SCM.add): Remove optional return_exit_code argument.
(SCM.add_list): Remove optional return_exit_code argument.
* Scripts/webkitpy/common/checkout/scm/svn.py:
(SVN.add_list): Remove optional return_exit_code argument. Remove return value.

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

9 years agoAllow direct compositing of background images
commit-queue@webkit.org [Thu, 11 Apr 2013 05:47:44 +0000 (05:47 +0000)]
Allow direct compositing of background images
https://bugs.webkit.org/show_bug.cgi?id=108203

Patch by No'am Rosenthal <noam@webkit.org> on 2013-04-10
Reviewed by Simon Fraser.

Source/WebCore:

Use setContentsToImage for background images, if the GraphicsLayer has only a background
bitmap image and nothing else. Compute the contentsRect/contentsTileRect from the box model.
Added new properties to GraphicsLayer, contentsTilePhase and contentsTileSize, which controls the "single tile rect",
which allows us to compute the pattern-space transform of a tile, thus allowing background-size
and other characteristics of background images.

This feature is explicitly disabled when there is any composition with a background color or if
there are several background images, as in that case having a single backing store has some
advantages over directly compositing in hardware.

Currently, this feature is disabled for all ports, allowing ports to implement their backend
and decide when to enable it.

Note that RenderBoxModelObject::getGeometryForBackgroundImage crops the contents rect to the
area that contains the tiles, which allows us to assume full tiling in GraphicsLayer.
In this way contentsTileSize/Phase is equivalent to GraphicsContext::drawTiledImage.

Tests: compositing/patterns/direct-pattern-compositing-add-text.html
       compositing/patterns/direct-pattern-compositing-change.html
       compositing/patterns/direct-pattern-compositing-contain.html
       compositing/patterns/direct-pattern-compositing-cover.html
       compositing/patterns/direct-pattern-compositing-load.html
       compositing/patterns/direct-pattern-compositing-padding.html
       compositing/patterns/direct-pattern-compositing-position.html
       compositing/patterns/direct-pattern-compositing-rotation.html
       compositing/patterns/direct-pattern-compositing-size.html
       compositing/patterns/direct-pattern-compositing.html

* platform/graphics/GraphicsLayer.h:
(GraphicsLayer):
(WebCore::GraphicsLayer::setContentsTileSize):
(WebCore::GraphicsLayer::setContentsTilePhase):
(WebCore::GraphicsLayer::contentsTileSize):
(WebCore::GraphicsLayer::contentsTilePhase):
(WebCore::GraphicsLayer::supportsContentsTiling):
        Add a contentsTileRect property that enables tile-repeat of background images.

* rendering/RenderBox.cpp:
(WebCore::RenderBox::imageChanged):
        Pass background image changes to the layer backing.

* rendering/RenderBoxModelObject.cpp:
* rendering/RenderBoxModelObject.h:
(WebCore::RenderBoxModelObject::getGeometryForBackgroundImage):
        Expose a function that performs the geometry calculations needed to determine
        the tileRect for a background image. This function is also responsible
        for cropping the contentsRect to fit the area that is drawn into.

* rendering/RenderLayerBacking.h:
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::contentChanged):
(WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration):
(WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
(WebCore::RenderLayerBacking::updateDirectlyCompositedContents):
(WebCore::RenderLayerBacking::resetContentsRect):
(WebCore::hasBoxDecorationsOrBackgroundImage):
(WebCore::RenderLayerBacking::updateDirectlyCompositedBackgroundColor):
(WebCore::canCreateTiledImage):
(WebCore::RenderLayerBacking::updateDirectlyCompositedBackgroundImage):
(WebCore::backgroundRectForBox):
        Allow background images to be directly composited if conditions allow (see bug description).

LayoutTests:

Added several ref-tests as preparation for supporting direct compositing of background
images.

* compositing/patterns/direct-pattern-compositing-add-text-expected.html: Added.
* compositing/patterns/direct-pattern-compositing-add-text.html: Added.
* compositing/patterns/direct-pattern-compositing-change-expected.html: Added.
* compositing/patterns/direct-pattern-compositing-change.html: Added.
* compositing/patterns/direct-pattern-compositing-contain-expected.html: Added.
* compositing/patterns/direct-pattern-compositing-contain.html: Added.
* compositing/patterns/direct-pattern-compositing-cover-expected.html: Added.
* compositing/patterns/direct-pattern-compositing-cover.html: Added.
* compositing/patterns/direct-pattern-compositing-expected.html: Added.
* compositing/patterns/direct-pattern-compositing-load-expected.html: Added.
* compositing/patterns/direct-pattern-compositing-load.html: Added.
* compositing/patterns/direct-pattern-compositing-padding-expected.html: Added.
* compositing/patterns/direct-pattern-compositing-padding.html: Added.
* compositing/patterns/direct-pattern-compositing-position-expected.html: Added.
* compositing/patterns/direct-pattern-compositing-position.html: Added.
* compositing/patterns/direct-pattern-compositing-size-expected.html: Added.
* compositing/patterns/direct-pattern-compositing-size.html: Added.
* compositing/patterns/direct-pattern-compositing.html: Added.

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

9 years agoRemove myself from the watchlists, I'm getting too much bug mail. :)
eric@webkit.org [Thu, 11 Apr 2013 04:59:06 +0000 (04:59 +0000)]
Remove myself from the watchlists, I'm getting too much bug mail. :)

* Scripts/webkitpy/common/config/watchlist:

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

9 years agoReplace ENABLE_LEGACY_WEB_AUDIO preprocessor statements in IDL files with Conditional...
paroga@webkit.org [Thu, 11 Apr 2013 03:53:24 +0000 (03:53 +0000)]
Replace ENABLE_LEGACY_WEB_AUDIO preprocessor statements in IDL files with Conditional attribute
https://bugs.webkit.org/show_bug.cgi?id=114351

Reviewed by Ryosuke Niwa.

The Conditional attribute does not need a preprocessor, which is source of much pain on native windows.

* Modules/webaudio/AudioBufferSourceNode.idl:
* Modules/webaudio/AudioContext.idl:
* Modules/webaudio/AudioParam.idl:
* Modules/webaudio/OscillatorNode.idl:

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

9 years ago[WK2] Build warning in didReceiveMessage() generated by messages.py
gyuyoung.kim@samsung.com [Thu, 11 Apr 2013 03:23:26 +0000 (03:23 +0000)]
[WK2] Build warning in didReceiveMessage() generated by messages.py
https://bugs.webkit.org/show_bug.cgi?id=112513

Reviewed by Anders Carlsson.

Legacy receiver makes -Wunused-parameter build warnings. This patch is to fix them.

* Scripts/webkit2/messages.py:
(generate_message_handler):

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

9 years agoReplace ENABLE_DIRECTORY_UPLOAD preprocessor statements in IDL files with Conditional...
paroga@webkit.org [Thu, 11 Apr 2013 03:21:28 +0000 (03:21 +0000)]
Replace ENABLE_DIRECTORY_UPLOAD preprocessor statements in IDL files with Conditional attribute
https://bugs.webkit.org/show_bug.cgi?id=114350

Reviewed by Ryosuke Niwa.

The Conditional attribute does not need a preprocessor, which is source of much pain on native windows.

* fileapi/File.idl:

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

9 years agoUnify JSC Parser's error and error message
benjamin@webkit.org [Thu, 11 Apr 2013 03:17:08 +0000 (03:17 +0000)]
Unify JSC Parser's error and error message
https://bugs.webkit.org/show_bug.cgi?id=114363

Reviewed by Geoffrey Garen.

The parser kept the error state over two attributes:
error and errorMessage. They were changed in sync,
but had some discrepancy (for example, the error message
was always defined to something).

This patch unifies the two. There is an error if
if the error message is non-null or if the parsing finished
before the end.

This also gets rid of the allocation of the error message
when instantiating a parser.

* parser/Parser.cpp:
(JSC::::Parser):
(JSC::::parseInner):
(JSC::::parseSourceElements):
(JSC::::parseVarDeclaration):
(JSC::::parseConstDeclaration):
(JSC::::parseForStatement):
(JSC::::parseSwitchStatement):
(JSC::::parsePrimaryExpression):
* parser/Parser.h:
(JSC::Parser::updateErrorMessage):
(JSC::Parser::updateErrorWithNameAndMessage):
(JSC::Parser::hasError):
(Parser):

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

9 years ago[WTF] Get rid of truncated thread name warnings for non-Windows platforms
thiago.santos@intel.com [Thu, 11 Apr 2013 03:12:14 +0000 (03:12 +0000)]
[WTF] Get rid of truncated thread name warnings for non-Windows platforms
https://bugs.webkit.org/show_bug.cgi?id=114266

Reviewed by Ryosuke Niwa.

Hide the annoying message from ports that are not really interested
about it.

* wtf/Threading.cpp:
(WTF::createThread):

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

9 years ago[CMAKE] Build fix after StorageArea refactoring
ryuan.choi@samsung.com [Thu, 11 Apr 2013 01:59:39 +0000 (01:59 +0000)]
[CMAKE] Build fix after StorageArea refactoring
https://bugs.webkit.org/show_bug.cgi?id=114398

Unreviewed build fix.

Change StorageAreaImpl.messages.in with StorageAreaMap.messages.in.
Add StorageAreaMap.cpp in CMakeLists.txt.

Patch by Jaehun Lim <ljaehun.lim@samsung.com> on 2013-04-10

* CMakeLists.txt:

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

9 years agoUnreviewed, rolling out r148158.
rniwa@webkit.org [Thu, 11 Apr 2013 01:36:29 +0000 (01:36 +0000)]
Unreviewed, rolling out r148158.
http://trac.webkit.org/changeset/148158
https://bugs.webkit.org/show_bug.cgi?id=114405

We need to migrate status data (Requested by rniwa on
#webkit).

* Scripts/webkitpy/common/net/statusserver.py:
(StatusServer):

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

9 years agoCleanup local variables in Editor::markAndReplaceFor
rniwa@webkit.org [Thu, 11 Apr 2013 01:27:26 +0000 (01:27 +0000)]
Cleanup local variables in Editor::markAndReplaceFor
https://bugs.webkit.org/show_bug.cgi?id=114383

Reviewed by Enrica Casucci.

Added resultEndLocation, which is the sum of resultLocation and resultLength.

Also replaced ambiguousBoundaryOffset by useAmbiguousBoundaryOffset since the ambiguous offset is always
selectionOffset -1 to avoid the extra house keeping and obnoxious -1 check.

* editing/Editor.cpp:
(WebCore::Editor::markAndReplaceFor):

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

9 years agoSet trap is not being called for API objects
oliver@apple.com [Thu, 11 Apr 2013 01:25:33 +0000 (01:25 +0000)]
Set trap is not being called for API objects
https://bugs.webkit.org/show_bug.cgi?id=114403

Reviewed by Anders Carlsson.

Intercept putByIndex on the callback object and add tests
to make sure we don't regress in future.

* API/JSCallbackObject.h:
(JSCallbackObject):
* API/JSCallbackObjectFunctions.h:
(JSC::::putByIndex):
(JSC):
* API/tests/testapi.c:
(PropertyCatchalls_setProperty):
* API/tests/testapi.js:

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

9 years agoMake StorageAreaImpl a wrapper around StorageAreaMap
andersca@apple.com [Thu, 11 Apr 2013 01:22:52 +0000 (01:22 +0000)]
Make StorageAreaImpl a wrapper around StorageAreaMap
https://bugs.webkit.org/show_bug.cgi?id=114404

Reviewed by Oliver Hunt.

Prepare for moving all the code that deals with local storage values to StorageAreaMap,
and make StorageAreaImpl a dumb wrapper that simply calls through to the map.

* WebProcess/Storage/StorageAreaImpl.cpp:
(WebKit::StorageAreaImpl::create):
(WebKit::StorageAreaImpl::StorageAreaImpl):
(WebKit::StorageAreaImpl::~StorageAreaImpl):
(WebKit::StorageAreaImpl::storageType):
(WebKit::StorageAreaImpl::length):
(WebKit::StorageAreaImpl::key):
(WebKit::StorageAreaImpl::getItem):
(WebKit::StorageAreaImpl::setItem):
(WebKit::StorageAreaImpl::contains):
* WebProcess/Storage/StorageAreaImpl.h:
(WebKit::StorageAreaImpl::storageAreaID):
* WebProcess/Storage/StorageAreaMap.cpp:
(WebKit::generateStorageMapID):
(WebKit::StorageAreaMap::create):
(WebKit::StorageAreaMap::StorageAreaMap):
(WebKit::StorageAreaMap::storageType):
(WebKit::StorageAreaMap::length):
(WebKit::StorageAreaMap::key):
(WebKit::StorageAreaMap::item):
(WebKit::StorageAreaMap::setItem):
(WebKit::StorageAreaMap::contains):
(WebKit::StorageAreaMap::didSetItem):
(WebKit::StorageAreaMap::dispatchStorageEvent):
* WebProcess/Storage/StorageAreaMap.h:
* WebProcess/Storage/StorageNamespaceImpl.cpp:
(WebKit::StorageNamespaceImpl::storageArea):
* WebProcess/Storage/StorageNamespaceImpl.h:
(StorageNamespaceImpl):

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

9 years agoRename StorageManager messages to refer to the StorageMap instead of the StorageArea
andersca@apple.com [Thu, 11 Apr 2013 01:03:03 +0000 (01:03 +0000)]
Rename StorageManager messages to refer to the StorageMap instead of the StorageArea
https://bugs.webkit.org/show_bug.cgi?id=114401

Reviewed by Ryosuke Niwa.

* UIProcess/Storage/StorageManager.cpp:
(WebKit::StorageManager::createStorageMap):
(WebKit::StorageManager::destroyStorageMap):
(WebKit::StorageManager::setItem):
* UIProcess/Storage/StorageManager.h:
* UIProcess/Storage/StorageManager.messages.in:
* WebProcess/Storage/StorageAreaImpl.cpp:
(WebKit::StorageAreaImpl::StorageAreaImpl):
(WebKit::StorageAreaImpl::~StorageAreaImpl):

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

9 years agoMass remove all the empty directories
benjamin@webkit.org [Thu, 11 Apr 2013 00:20:36 +0000 (00:20 +0000)]
Mass remove all the empty directories

Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-04-10
Rubberstamped by Ryosuke Niwa.

PerformanceTests:

* Bindings/resources: Removed.

Source/JavaScriptCore:

* qt/api: Removed.
* qt/benchmarks/qscriptengine: Removed.
* qt/benchmarks/qscriptvalue: Removed.
* qt/tests/qscriptengine: Removed.
* qt/tests/qscriptstring: Removed.
* qt/tests/qscriptvalue: Removed.
* qt/tests/qscriptvalueiterator: Removed.

Source/ThirdParty/ANGLE:

* src/libGLESv2/geometry: Removed.

Source/WebCore:

* Modules/intents: Removed.
* Modules/protocolhandler: Removed.
* Modules/speech/mac: Removed.
* accessibility/efl: Removed.
* accessibility/gtk: Removed.
* bridge/jni/jsc: Removed.
* editing/android: Removed.
* editing/gtk: Removed.
* history/android: Removed.
* page/android: Removed.
* platform/android: Removed.
* platform/clutter: Removed.
* platform/graphics/blackberry/skia: Removed.
* platform/graphics/harfbuzz/ng: Removed.
* platform/graphics/pango: Removed.
* platform/image-decoders/cg: Removed.
* platform/image-decoders/qt: Removed.
* platform/network/android: Removed.
* platform/network/soup/cache/webkit: Removed.
* platform/text/android: Removed.
* platform/text/wince: Removed.
* platform/track: Removed.

Source/WebKit/efl:

* DefaultTheme/widget/button: Removed.
* DefaultTheme/widget/check: Removed.
* DefaultTheme/widget/combo: Removed.
* DefaultTheme/widget/entry: Removed.
* DefaultTheme/widget/file: Removed.
* DefaultTheme/widget/mediacontrol/fullscreenbutton: Removed.
* DefaultTheme/widget/mediacontrol/mutebutton: Removed.
* DefaultTheme/widget/mediacontrol/playpausebutton: Removed.
* DefaultTheme/widget/mediacontrol/seekbackwardbutton: Removed.
* DefaultTheme/widget/mediacontrol/seekforwardbutton: Removed.
* DefaultTheme/widget/mediacontrol/togglecaptionsbutton: Removed.
* DefaultTheme/widget/progressbar: Removed.
* DefaultTheme/widget/radio: Removed.
* DefaultTheme/widget/scrollbar: Removed.
* DefaultTheme/widget/search/cancel: Removed.
* DefaultTheme/widget/search/decoration: Removed.
* DefaultTheme/widget/search/field: Removed.
* DefaultTheme/widget/slider: Removed.
* DefaultTheme/widget/spinner: Removed.

Source/WebKit/gtk:

* gyp: Removed.
* po: Removed.

Source/WebKit/mac:

* ForwardingHeaders/wtf/unicode/icu: Removed.

Source/WebKit/qt:

* tests/qdeclarativewebview/resources: Removed.

Source/WebKit2:

* Platform/CoreIPC/gtk: Removed.
* Platform/CoreIPC/qt: Removed.
* PluginProcess/EntryPoint/mac/XPCService/PluginService.32: Removed.
* PluginProcess/EntryPoint/mac/XPCService/PluginService.64: Removed.
* PluginProcess/gtk: Removed.
* Shared/API/c/win: Removed.
* Shared/Plugins/Netscape/win: Removed.
* Shared/cg/win: Removed.
* Shared/win: Removed.
* UIProcess/API/C/win: Removed.
* UIProcess/API/gtk/webkit: Removed.
* UIProcess/Launcher/win: Removed.
* UIProcess/Plugins/gtk: Removed.
* UIProcess/Plugins/win: Removed.
* UIProcess/texmap: Removed.
* UIProcess/win: Removed.
* WebProcess/Authentication/mac: Removed.
* WebProcess/Cookies/efl: Removed.
* WebProcess/Cookies/gtk: Removed.
* WebProcess/Downloads/cf/win: Removed.
* WebProcess/Downloads/cfnet: Removed.
* WebProcess/Downloads/curl: Removed.
* WebProcess/Downloads/efl: Removed.
* WebProcess/Downloads/gtk: Removed.
* WebProcess/Downloads/mac: Removed.
* WebProcess/Downloads/qt: Removed.
* WebProcess/Downloads/soup: Removed.
* WebProcess/FullScreen/gtk: Removed.
* WebProcess/FullScreen/mac: Removed.
* WebProcess/FullScreen/qt: Removed.
* WebProcess/FullScreen/win: Removed.
* WebProcess/InjectedBundle/API/c/win: Removed.
* WebProcess/InjectedBundle/win: Removed.
* WebProcess/KeyValueStorage: Removed.
* WebProcess/Network/CustomProtocols/mac: Removed.
* WebProcess/Plugins/Netscape/gtk: Removed.
* WebProcess/Plugins/Netscape/win: Removed.
* WebProcess/WebCoreSupport/win: Removed.
* WebProcess/WebPage/LayerTreeCoordinator: Removed.
* WebProcess/WebPage/ca/mac: Removed.
* WebProcess/WebPage/ca/win: Removed.
* WebProcess/WebPage/win: Removed.
* WebProcess/win: Removed.
* qt/Resources: Removed.

Source/WTF:

* wtf/qt/compat: Removed.
* wtf/unicode/glib: Removed.
* wtf/unicode/qt4: Removed.
* wtf/unicode/wince: Removed.

Tools:

* BuildSlaveSupport/gtk/crashmon/log: Removed.
* BuildSlaveSupport/gtk/xvfb/log: Removed.
* DumpRenderTree/ForwardingHeaders/wtf: Removed.
* DumpRenderTree/unix/TestNetscapePlugin/ForwardingHeaders/WebKit: Removed.
* MiniBrowser/gtk/WebBundle: Removed.
* MiniBrowser/win: Removed.
* QtTestPlatformPlugin/mac: Removed.
* Scripts/webkitpy/tool/bot/testdata: Removed.
* Scripts/webkitpy/tool/commands/data/rebaselineserver: Removed.
* efl/ImageDiff: Removed.
* iExploder/htdocs: Removed.
* iExploder/iexploder-1.7.2/output: Removed.
* iExploder/tools: Removed.
* qmake/config.tests/libexecdir: Removed.
* qmake/config.tests/libjpeg: Removed.
* qmake/config.tests/libpng: Removed.

WebKitLibraries:

* win/bin: Removed.
* win/lib/WebKitSystemInterface: Removed.

LayoutTests:

* css2.1/reference: Removed.
* css3/flexbox/script-tests: Removed.
* css3/viewport-relative-lengths: Removed.
* editing/deleting/resources: Removed.
* editing/inserting/resources: Removed.
* editing/style/resources: Removed.
* editing/text-iterator/resources: Removed.
* fast/dom/CSSStyleDeclaration/resources: Removed.
* fast/dom/EntityReference/resources: Removed.
* fast/dom/HTMLFontElement/resources: Removed.
* fast/dom/HTMLFormElement/resources: Removed.
* fast/dom/HTMLSelectElement/resources: Removed.
* fast/dom/HTMLTableElement/resources: Removed.
* fast/dom/HTMLTableRowElement/resources: Removed.
* fast/dom/HTMLTableSectionElement/resources: Removed.
* fast/dom/MediaStream/script-tests: Removed.
* fast/dom/Node/resources: Removed.
* fast/dom/Proximity: Removed.
* fast/dom/Selection/resources: Removed.
* fast/dom/Text/resources: Removed.
* fast/events/spatial-navigation/resources: Removed.
* fast/events/transformaction: Removed.
* fast/forms/script-tests: Removed.
* fast/loading/resources: Removed.
* fast/mutation: Removed.
* fast/regex/resources: Removed.
* fast/speech/script-tests: Removed.
* fast/xhtmlmp: Removed.
* http/tests/inspector/resources/compiler-source-mapping-provider: Removed.
* http/tests/media/media-source/webm: Removed.
* http/tests/w3c/webperf/approved/navigation-timing/html5: Removed.
* http/tests/w3c/webperf/submission/resource-timing/html: Removed.
* http/tests/w3c/webperf/submission/user-timing: Removed.
* http/tests/xhtmlmp: Removed.
* http/tests/xmlhttprequest/web-apps/recursion: Removed.
* inspector/performance/resources: Removed.
* inspector/protocol/resources: Removed.
* inspector/resources: Removed.
* media/track/captions: Removed.
* platform/efl-wk1/dom/xhtml/level3/core: Removed.
* platform/efl-wk1/fast/dom/DOMException: Removed.
* platform/efl-wk1/mathml/presentation: Removed.
* platform/efl-wk1/svg/dynamic-updates: Removed.
* platform/efl-wk2/dom/xhtml/level3/core: Removed.
* platform/efl-wk2/fast/block/basic: Removed.
* platform/efl-wk2/fast/dom/DOMException: Removed.
* platform/efl-wk2/fast/frames: Removed.
* platform/efl-wk2/http/tests/loading: Removed.
* platform/efl/fast/css3-text-decoration/repaint: Removed.
* platform/efl/fast/dom/HTMLTemplateElement: Removed.
* platform/efl/fast/files: Removed.
* platform/efl/fast/forms/mailto: Removed.
* platform/efl/fast/innerHTML: Removed.
* platform/efl/fast/viewport: Removed.
* platform/efl/inspector/editor: Removed.
* platform/gtk/css3/calc: Removed.
* platform/gtk/editing/pasteboard/resources: Removed.
* platform/gtk/fast/innerHTML: Removed.
* platform/gtk/fast/js/regress: Removed.
* platform/gtk/fast/viewport: Removed.
* platform/gtk/http/tests/webarchive: Removed.
* platform/gtk/http/tests/websocket/tests: Removed.
* platform/gtk/ietestcenter/css3/grid: Removed.
* platform/gtk/platform/gtk/fonts: Removed.
* platform/gtk/sputnik/Unicode/Unicode_510: Removed.
* platform/gtk/svg/hittest: Removed.
* platform/gtk/tables/hittesting: Removed.
* platform/mac-future/accessibility: Removed.
* platform/mac-lion/animations: Removed.
* platform/mac-lion/compositing/visible-rect: Removed.
* platform/mac-lion/css1/units: Removed.
* platform/mac-lion/css3/selectors3: Removed.
* platform/mac-lion/editing/execCommand: Removed.
* platform/mac-lion/editing/inserting: Removed.
* platform/mac-lion/editing/pasteboard: Removed.
* platform/mac-lion/fast/block/float: Removed.
* platform/mac-lion/fast/block/margin-collapse: Removed.
* platform/mac-lion/fast/frames: Removed.
* platform/mac-lion/fast/inline: Removed.
* platform/mac-lion/fast/layers: Removed.
* platform/mac-lion/fast/lists: Removed.
* platform/mac-lion/fast/overflow: Removed.
* platform/mac-lion/fast/text/basic: Removed.
* platform/mac-lion/ietestcenter/css3: Removed.
* platform/mac-lion/tables/mozilla: Removed.
* platform/mac-lion/transforms: Removed.
* platform/mac-snowleopard/css3/filters/custom: Removed.
* platform/mac-snowleopard/fast/canvas/webgl: Removed.
* platform/mac-snowleopard/fast/html: Removed.
* platform/mac-snowleopard/fast/loader: Removed.
* platform/mac-snowleopard/fast/regions: Removed.
* platform/mac-snowleopard/http/tests/media: Removed.
* platform/mac-snowleopard/mathml/presentation: Removed.
* platform/mac-snowleopard/sputnik/Unicode/Unicode_510: Removed.
* platform/mac-snowleopard/svg/batik/filters: Removed.
* platform/mac-snowleopard/svg/batik/masking: Removed.
* platform/mac-snowleopard/svg/batik/text: Removed.
* platform/mac-wk2/compositing/geometry: Removed.
* platform/mac-wk2/compositing/iframes: Removed.
* platform/mac-wk2/css3/filters/custom: Removed.
* platform/mac-wk2/fast/css: Removed.
* platform/mac-wk2/fast/dynamic: Removed.
* platform/mac-wk2/fast/harness: Removed.
* platform/mac-wk2/fast/multicol/vertical-rl: Removed.
* platform/mac-wk2/http/tests/appcache: Removed.
* platform/mac-wk2/http/tests/inspector: Removed.
* platform/mac-wk2/http/tests/misc: Removed.
* platform/mac-wk2/mathml: Removed.
* platform/mac-wk2/media: Removed.
* platform/mac-wk2/platform/mac/accessibility: Removed.
* platform/mac-wk2/tables/mozilla: Removed.
* platform/mac/css3/calc: Removed.
* platform/mac/css3/filters/custom: Removed.
* platform/mac/dom/xhtml/level2/html: Removed.
* platform/mac/fast/dom/shadow: Removed.
* platform/mac/fast/files: Removed.
* platform/mac/fast/forms/label: Removed.
* platform/mac/fast/innerHTML: Removed.
* platform/mac/fast/inspector: Removed.
* platform/mac/http/tests/xmlhttprequest/web-apps: Removed.
* platform/mac/inspector/console: Removed.
* platform/mac/inspector/debugger: Removed.
* platform/mac/inspector/extensions: Removed.
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background: Removed.
* platform/mac/platform/mac-wk2/tiled-drawing/sticky: Removed.
* platform/mac/sputnik/Unicode/Unicode_510: Removed.
* platform/mac/svg/animations: Removed.
* platform/mac/tables/mozilla/images: Removed.
* platform/mac/tiled-drawing/fixed: Removed.
* platform/mac/tiled-drawing/fixed-background: Removed.
* platform/mac/tiled-drawing/sticky: Removed.
* platform/qt-5.0-wk1/compositing/backing: Removed.
* platform/qt-5.0-wk1/compositing/filters: Removed.
* platform/qt-5.0-wk1/compositing/images: Removed.
* platform/qt-5.0-wk1/compositing/masks: Removed.
* platform/qt-5.0-wk1/compositing/rtl: Removed.
* platform/qt-5.0-wk1/compositing/tiling: Removed.
* platform/qt-5.0-wk1/compositing/visibility: Removed.
* platform/qt-5.0-wk1/css3/filters: Removed.
* platform/qt-5.0-wk1/editing/inserting: Removed.
* platform/qt-5.0-wk1/fast/dom/Window: Removed.
* platform/qt-5.0-wk2/compositing/backing: Removed.
* platform/qt-5.0-wk2/compositing/shadows: Removed.
* platform/qt-5.0-wk2/css1/basic: Removed.
* platform/qt-5.0-wk2/css1/box_properties: Removed.
* platform/qt-5.0-wk2/fast/block/basic: Removed.
* platform/qt-5.0-wk2/fast/block/float: Removed.
* platform/qt-5.0-wk2/fast/block/margin-collapse: Removed.
* platform/qt-5.0-wk2/fast/block/positioning/auto: Removed.
* platform/qt-5.0-wk2/fast/dom/HTMLHeadElement: Removed.
* platform/qt-5.0-wk2/fast/dom/HTMLTableElement: Removed.
* platform/qt-5.0-wk2/fast/dom/HTMLTextAreaElement: Removed.
* platform/qt-5.0-wk2/fast/dom/Window: Removed.
* platform/qt-5.0-wk2/fast/dynamic: Removed.
* platform/qt-5.0-wk2/fast/forms/datalist: Removed.
* platform/qt-5.0-wk2/fast/forms/mailto: Removed.
* platform/qt-5.0-wk2/fast/forms/number: Removed.
* platform/qt-5.0-wk2/fast/frames: Removed.
* platform/qt-5.0-wk2/fast/html: Removed.
* platform/qt-5.0-wk2/fast/images/png-suite: Removed.
* platform/qt-5.0-wk2/fast/inline: Removed.
* platform/qt-5.0-wk2/fast/lists: Removed.
* platform/qt-5.0-wk2/fast/multicol/span: Removed.
* platform/qt-5.0-wk2/fast/multicol/vertical-lr: Removed.
* platform/qt-5.0-wk2/fast/parser: Removed.
* platform/qt-5.0-wk2/fast/text/international: Removed.
* platform/qt-5.0-wk2/fullscreen/fullscreen: Removed.
* platform/qt-5.0-wk2/http/tests/websocket/test/hybi: Removed.
* platform/qt-5.0-wk2/platform/qt/plugins: Removed.
* platform/qt-5.0-wk2/svg/dom: Removed.
* platform/qt-5.0/animations: Removed.
* platform/qt-5.0/css1/text_properties: Removed.
* platform/qt-5.0/css2.1/20110323: Removed.
* platform/qt-5.0/editing/deleting: Removed.
* platform/qt-5.0/editing/inserting: Removed.
* platform/qt-5.0/editing/pasteboard: Removed.
* platform/qt-5.0/fast/borders: Removed.
* platform/qt-5.0/fast/css: Removed.
* platform/qt-5.0/fast/dom/DeviceMotion: Removed.
* platform/qt-5.0/fast/dom/DeviceOrientation: Removed.
* platform/qt-5.0/fast/dom/HTMLProgressElement: Removed.
* platform/qt-5.0/fast/dom/HTMLTextAreaElement: Removed.
* platform/qt-5.0/fast/dynamic: Removed.
* platform/qt-5.0/fast/html: Removed.
* platform/qt-5.0/fast/inline: Removed.
* platform/qt-5.0/fast/js: Removed.
* platform/qt-5.0/fast/multicol: Removed.
* platform/qt-5.0/fast/parser: Removed.
* platform/qt-5.0/fast/repaint: Removed.
* platform/qt-5.0/fast/replaced: Removed.
* platform/qt-5.0/fast/table/border-collapsing: Removed.
* platform/qt-5.0/fast/writing-mode: Removed.
* platform/qt-5.0/fast/xsl: Removed.
* platform/qt-5.0/svg/as-background-image: Removed.
* platform/qt-5.0/svg/custom: Removed.
* platform/qt-5.0/svg/hixie/intrinsic: Removed.
* platform/qt-5.0/svg/text: Removed.
* platform/qt-5.0/svg/wicd: Removed.
* platform/qt-5.0/svg/zoom/page: Removed.
* platform/qt-5.0/tables/mozilla/bugs: Removed.
* platform/qt-5.0/transitions: Removed.
* platform/qt-arm/fast/block: Removed.
* platform/qt-arm/fast/dom: Removed.
* platform/qt-arm/transforms: Removed.
* platform/qt-linux/fast/css: Removed.
* platform/qt-mac/editing: Removed.
* platform/qt-mac/fast/block/float: Removed.
* platform/qt-mac/plugins: Removed.
* platform/qt-win/fast/events: Removed.
* platform/qt.5-0/fast/text/whitespace: Removed.
* platform/qt/compositing/tiling: Removed.
* platform/qt/fast/css/dumpAsText: Removed.
* platform/qt/fast/encoding/dumpAsText: Removed.
* platform/qt/fast/forms/mailto: Removed.
* platform/qt/fast/innerHTML: Removed.
* platform/qt/fast/inspector: Removed.
* platform/qt/fast/js/regress: Removed.
* platform/qt/fast/media/w3c: Removed.
* platform/qt/http/tests/plugins: Removed.
* platform/qt/http/tests/security/aboutBlank: Removed.
* platform/qt/http/tests/security/cookies: Removed.
* platform/qt/http/tests/security/mixedContent: Removed.
* platform/qt/http/tests/security/xssAuditor: Removed.
* platform/qt/http/tests/xmlhttprequest/workers: Removed.
* platform/qt/inspector/console: Removed.
* platform/qt/inspector/debugger: Removed.
* platform/qt/inspector/extensions: Removed.
* platform/qt/mathml/presentation: Removed.
* platform/qt/scrollingcoordinator: Removed.
* platform/qt/svg/hixie/error/dumpAsText: Removed.
* platform/qt/tables/mozilla/images: Removed.
* platform/qt/traversal: Removed.
* platform/win-7sp0/fast/harness: Removed.
* platform/win-wk2/css2.1: Removed.
* platform/win-wk2/editing/deleting: Removed.
* platform/win-wk2/editing/selection: Removed.
* platform/win-wk2/fast/css: Removed.
* platform/win-wk2/fast/forms: Removed.
* platform/win-wk2/fast/repaint: Removed.
* platform/win-wk2/fast/ruby: Removed.
* platform/win-wk2/fast/text/international: Removed.
* platform/win-wk2/http/tests/inspector-enabled: Removed.
* platform/win-wk2/http/tests/security: Removed.
* platform/win-wk2/http/tests/uri: Removed.
* platform/win-wk2/media: Removed.
* platform/win-wk2/platform/win/inverted-colors: Removed.
* platform/win-wk2/platform/win/plugins: Removed.
* platform/win-wk2/plugins/npruntime: Removed.
* platform/win-wk2/svg/W3C-I18N: Removed.
* platform/win-wk2/svg/W3C-SVG-1.1-SE: Removed.
* platform/win-wk2/svg/text: Removed.
* platform/win-wk2/svg/zoom/page: Removed.
* platform/win/canvas/philip/tests: Removed.
* platform/win/compositing/geometry: Removed.
* platform/win/compositing/overflow: Removed.
* platform/win/editing/style: Removed.
* platform/win/editing/undo: Removed.
* platform/win/fast/block/basic: Removed.
* platform/win/fast/css/getComputedStyle: Removed.
* platform/win/fast/css3-text-decoration/getComputedStyle: Removed.
* platform/win/fast/dom/Element: Removed.
* platform/win/fast/dom/HTMLTextAreaElement: Removed.
* platform/win/fast/dom/Window: Removed.
* platform/win/fast/events/resources: Removed.
* platform/win/fast/frames/seamless: Removed.
* platform/win/fast/layers: Removed.
* platform/win/fast/loader: Removed.
* platform/win/fast/overflow: Removed.
* platform/win/fast/parser: Removed.
* platform/win/fast/table: Removed.
* platform/win/fast/transforms: Removed.
* platform/win/inspector/debugger: Removed.
* platform/win/platform/win/accessibility: Removed.
* platform/win/tables/mozilla/bugs: Removed.
* platform/win/tables/mozilla/other: Removed.
* platform/win/tables/mozilla_expected_failures/bugs: Removed.
* platform/wk2/tables/mozilla/bugs: Removed.
* pointer-lock/resources: Removed.
* storage/indexeddb/script-tests: Removed.
* svg/dom/SVGStyleElement/resources: Removed.
* webintents/resources: Removed.

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

9 years agoUse webkit-queeus.appspot.com instead of webkit-commit-queue.appspot.com
rniwa@webkit.org [Thu, 11 Apr 2013 00:15:13 +0000 (00:15 +0000)]
Use webkit-queeus.appspot.com instead of webkit-commit-queue.appspot.com
https://bugs.webkit.org/show_bug.cgi?id=114397

Reviewed by Benjamin Poulain.

* Scripts/webkitpy/common/net/statusserver.py:
(StatusServer):

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

9 years ago[CMAKE] Build fix after r148147, r148148
ryuan.choi@samsung.com [Thu, 11 Apr 2013 00:10:18 +0000 (00:10 +0000)]
[CMAKE] Build fix after r148147, r148148
https://bugs.webkit.org/show_bug.cgi?id=114395

Unreviewed build fix.

Use StorageAreaImpl, StorageNamespaceImpl instead of StorageAreaProxy, StorageNamespaceProxy.

Patch by Jaehun Lim <ljaehun.lim@samsung.com> on 2013-04-10

* CMakeLists.txt:

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

9 years agoMake old EWS bubbles less opaque to disambiguate two set of bubbles.
rniwa@webkit.org [Thu, 11 Apr 2013 00:09:34 +0000 (00:09 +0000)]
Make old EWS bubbles less opaque to disambiguate two set of bubbles.

Rubber-stamped by Benjamin Poulain.

* code-review.js:
* template/en/custom/attachment/edit.html.tmpl:
* template/en/custom/attachment/list.html.tmpl:
* template/en/custom/attachment/reviewform.html.tmpl:

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

9 years agoLog when the animation timer fires
simon.fraser@apple.com [Thu, 11 Apr 2013 00:04:06 +0000 (00:04 +0000)]
Log when the animation timer fires
https://bugs.webkit.org/show_bug.cgi?id=114393

Reviewed by Dean Jackson.

Logging to the Animations log channel when the updateAnimationTimer
fires is useful, because it indicates whether we're running
software animations.

* page/animation/AnimationController.cpp:
(WebCore::AnimationControllerPrivate::updateAnimationTimer):

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

9 years agoAdd a stubbed out StorageAreaMap class
andersca@apple.com [Thu, 11 Apr 2013 00:02:01 +0000 (00:02 +0000)]
Add a stubbed out StorageAreaMap class
https://bugs.webkit.org/show_bug.cgi?id=114392

Reviewed by Andreas Kling.

The intention is that StorageAreaMap is going to take over responsibility for storing the storage values in the
web process, as well as dispatching events. A StorageAreaMap will be shared between multiple StorageAreaImpl objects,
for example if multiple frames with the same origin use local storage.

* DerivedSources.make:
* UIProcess/Storage/StorageManager.cpp:
(WebKit::StorageManager::StorageArea::dispatchEvents):
(WebKit::StorageManager::setItem):
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/Storage/StorageAreaImpl.cpp:
(WebKit::StorageAreaImpl::StorageAreaImpl):
(WebKit::StorageAreaImpl::~StorageAreaImpl):
* WebProcess/Storage/StorageAreaMap.cpp: Added.
(WebKit):
(WebKit::StorageAreaMap::create):
(WebKit::StorageAreaMap::StorageAreaMap):
(WebKit::StorageAreaMap::~StorageAreaMap):
(WebKit::StorageAreaMap::didSetItem):
(WebKit::StorageAreaMap::dispatchStorageEvent):
* WebProcess/Storage/StorageAreaMap.h: Added.
(WebKit):
(StorageAreaMap):
* WebProcess/Storage/StorageAreaMap.messages.in: Renamed from Source/WebKit2/WebProcess/Storage/StorageAreaImpl.messages.in.

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

9 years agoBugzilla should show bubbles from webkit-queues.appspot.com
rniwa@webkit.org [Thu, 11 Apr 2013 00:00:32 +0000 (00:00 +0000)]
Bugzilla should show bubbles from webkit-queues.appspot.com
https://bugs.webkit.org/show_bug.cgi?id=114391

Reviewed by Benjamin Poulain.

Include iframe from webkit-queues.appspot.com as well as one for webkit-commit-queue.appspot.com.

* code-review.js:
* template/en/custom/attachment/edit.html.tmpl:
* template/en/custom/attachment/list.html.tmpl:
* template/en/custom/attachment/reviewform.html.tmpl:

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

9 years agoRemove abarth from watchlists
abarth@webkit.org [Wed, 10 Apr 2013 23:53:42 +0000 (23:53 +0000)]
Remove abarth from watchlists
https://bugs.webkit.org/show_bug.cgi?id=114390

Reviewed by Ryosuke Niwa.

I'm trying to cut down on the amount of bugmail I get so that I'll have
more of a chance to notice a piece of bugmail directed at me.

* Scripts/webkitpy/common/config/watchlist:

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

9 years agowebkit-test-results.appspot.com loads the dashboard for Chromium by default
rniwa@webkit.org [Wed, 10 Apr 2013 23:44:07 +0000 (23:44 +0000)]
webkit-test-results.appspot.com loads the dashboard for Chromium by default
https://bugs.webkit.org/show_bug.cgi?id=114381

Reviewed by Benjamin Poulain.

Changed the defaults.

* TestResultServer/static-dashboards/builders.js:
* TestResultServer/static-dashboards/dashboard_base.js:
(currentBuilderGroupCategory):

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

9 years agoInspector highlights are offset when the WKView has a header
bdakin@apple.com [Wed, 10 Apr 2013 23:25:53 +0000 (23:25 +0000)]
Inspector highlights are offset when the WKView has a header
https://bugs.webkit.org/show_bug.cgi?id=114389
-and corresponding-
<rdar://problem/13522434>

Reviewed by Sam Weinig.

rootViewToContents() and contentsToRootView() need to factor in the
headerHeight(), much like windowToContents() and contentsToWindow() do already.
* platform/ScrollView.cpp:
(WebCore::ScrollView::rootViewToContents):
(WebCore::ScrollView::contentsToRootView):

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

9 years agoRename StorageAreaProxy to StorageAreaImpl.
andersca@apple.com [Wed, 10 Apr 2013 23:22:02 +0000 (23:22 +0000)]
Rename StorageAreaProxy to StorageAreaImpl.

Rubber-stamped by Beth Dakin.

* DerivedSources.make:
* UIProcess/Storage/StorageManager.cpp:
(WebKit::StorageManager::StorageArea::dispatchEvents):
(WebKit::StorageManager::setItem):
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/Storage/StorageAreaImpl.cpp: Renamed from Source/WebKit2/WebProcess/Storage/StorageAreaProxy.cpp.
* WebProcess/Storage/StorageAreaImpl.h: Renamed from Source/WebKit2/WebProcess/Storage/StorageAreaProxy.h.
* WebProcess/Storage/StorageAreaImpl.messages.in: Renamed from Source/WebKit2/WebProcess/Storage/StorageAreaProxy.messages.in.
* WebProcess/Storage/StorageNamespaceImpl.cpp:
(WebKit::StorageNamespaceImpl::storageArea):
* WebProcess/Storage/StorageNamespaceImpl.h:
(WebKit):
(StorageNamespaceImpl):

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

9 years agoRename StorageNamespaceProxy to StorageNamespaceImpl.
andersca@apple.com [Wed, 10 Apr 2013 23:21:59 +0000 (23:21 +0000)]
Rename StorageNamespaceProxy to StorageNamespaceImpl.

Rubber-stamped by Beth Dakin.

* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/Storage/StorageAreaProxy.cpp:
(WebKit::StorageAreaProxy::create):
(WebKit::StorageAreaProxy::StorageAreaProxy):
* WebProcess/Storage/StorageAreaProxy.h:
(StorageAreaProxy):
* WebProcess/Storage/StorageNamespaceImpl.cpp: Renamed from Source/WebKit2/WebProcess/Storage/StorageNamespaceProxy.cpp.
* WebProcess/Storage/StorageNamespaceImpl.h: Renamed from Source/WebKit2/WebProcess/Storage/StorageNamespaceProxy.h.
* WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::sessionStorageNamespace):

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

9 years agoRemove Chromium EWS bots from the queue status server
rniwa@webkit.org [Wed, 10 Apr 2013 23:11:24 +0000 (23:11 +0000)]
Remove Chromium EWS bots from the queue status server
https://bugs.webkit.org/show_bug.cgi?id=113988

Reviewed by Benjamin Poulain.

Removed Chromium EWS bots. Also updated it to use webkit-queues.appspot.com.

* QueueStatusServer/app.yaml:
* QueueStatusServer/config/queues.py:
* QueueStatusServer/model/queues.py:
(Queue.short_name):
(Queue.display_name):
* QueueStatusServer/model/queues_unittest.py:
(QueueTest.test_short_name):
(QueueTest.test_display_name):
(QueueTest.test_name_with_underscores):
* QueueStatusServer/templates/activebots.html:

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

9 years agoFlesh out the Animations logging
simon.fraser@apple.com [Wed, 10 Apr 2013 22:47:07 +0000 (22:47 +0000)]
Flesh out the Animations logging
https://bugs.webkit.org/show_bug.cgi?id=114388

Reviewed by Dean Jackson.

Log state changes and transition/animation creation and destruction
to the Animations log channel.

* page/animation/AnimationBase.cpp:
(WebCore::nameForState):
(WebCore::AnimationBase::updateStateMachine):
(WebCore::AnimationBase::fireAnimationEventsIfNeeded):
(WebCore::AnimationBase::goIntoEndingOrLoopingState):
(WebCore::AnimationBase::freezeAtTime):
* page/animation/CompositeAnimation.cpp:
(WebCore::CompositeAnimation::updateTransitions):
(WebCore::CompositeAnimation::updateKeyframeAnimations):
* page/animation/KeyframeAnimation.h:
(WebCore::KeyframeAnimation::keyframes):
(KeyframeAnimation):

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

9 years ago <rdar://problem/13047266> External XML entities are not loaded with modern...
ap@apple.com [Wed, 10 Apr 2013 22:45:35 +0000 (22:45 +0000)]
    <rdar://problem/13047266> External XML entities are not loaded with modern libxml2
        https://bugs.webkit.org/show_bug.cgi?id=114377

        Reviewed by Darin Adler.

        Covered by http/tests/security/xss-DENIED-xml-external-entity.xhtml when using
        new enough libxml2.

        * xml/parser/XMLDocumentParserLibxml2.cpp:
        (WebCore::switchToUTF16): Added a FIXME with an idea for improvement.
        (WebCore::XMLParserContext::createStringParser): Apply XML_PARSE_NOENT in a non-hacky
        way, so that the new libxml2 check doesn't fail.
        (WebCore::XMLParserContext::createMemoryParser): Updated an unhelpful and incorrect
        comment (XML_PARSE_NODICT actually means "Do not reuse the context dictionary").

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

9 years ago[wk2] Un-pollute TCADA methods with "PageOverlayLayerMap::iterator end"
timothy_horton@apple.com [Wed, 10 Apr 2013 22:35:29 +0000 (22:35 +0000)]
[wk2] Un-pollute TCADA methods with "PageOverlayLayerMap::iterator end"
https://bugs.webkit.org/show_bug.cgi?id=114387

Reviewed by Simon Fraser.

* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
(WebKit::TiledCoreAnimationDrawingArea::paintContents):
(WebKit::TiledCoreAnimationDrawingArea::flushLayers):
(WebKit::TiledCoreAnimationDrawingArea::setExposedRect):
(WebKit::TiledCoreAnimationDrawingArea::mainFrameScrollabilityChanged):
(WebKit::TiledCoreAnimationDrawingArea::updateGeometry):
(WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):

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

9 years agoJSObject::getOwnNonIndexPropertyNames calculates numCacheableSlots incorrectly
mhahnenberg@apple.com [Wed, 10 Apr 2013 22:25:36 +0000 (22:25 +0000)]
JSObject::getOwnNonIndexPropertyNames calculates numCacheableSlots incorrectly
https://bugs.webkit.org/show_bug.cgi?id=114235

Reviewed by Filip Pizlo.

If the object doesn't have any properties but the prototype does, we'll assume those prototype properties are
accessible in the base object's backing store, which is bad.

Source/JavaScriptCore:

* runtime/JSObject.cpp:
(JSC::JSObject::getPropertyNames):
(JSC::JSObject::getOwnNonIndexPropertyNames):
* runtime/PropertyNameArray.h:
(JSC::PropertyNameArray::PropertyNameArray):
(JSC::PropertyNameArray::setNumCacheableSlotsForObject):
(JSC::PropertyNameArray::setBaseObject):
(PropertyNameArray):

LayoutTests:

* fast/js/get-by-pname-only-prototype-properties-expected.txt: Added.
* fast/js/get-by-pname-only-prototype-properties.html: Added.
* fast/js/script-tests/get-by-pname-only-prototype-properties.js: Added.
(foo):

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

9 years ago[wk2] REGRESSION: Find highlight does not update when the view is resized
timothy_horton@apple.com [Wed, 10 Apr 2013 22:18:49 +0000 (22:18 +0000)]
[wk2] REGRESSION: Find highlight does not update when the view is resized
https://bugs.webkit.org/show_bug.cgi?id=114382
<rdar://problem/13599797>

Reviewed by Simon Fraser.

Invalidate the page overlays from TiledCoreAnimationDrawingArea::updateGeometry.
This will have no effect if the page overlay hasn't previously asked to be painted
(as drawsContent will remain false on the layer).

* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
(TiledCoreAnimationDrawingArea): Add invalidateAllPageOverlays.
* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::invalidateAllPageOverlays): Factor this out of didChangeScrollOffsetForAnyFrame.
(WebKit::TiledCoreAnimationDrawingArea::didChangeScrollOffsetForAnyFrame): Call invalidateAllPageOverlays.
(WebKit::TiledCoreAnimationDrawingArea::updateGeometry): Call invalidateAllPageOverlays.

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

9 years ago[Mac] in-band tracks sometimes not recognized
eric.carlson@apple.com [Wed, 10 Apr 2013 21:53:28 +0000 (21:53 +0000)]
[Mac] in-band tracks sometimes not recognized
https://bugs.webkit.org/show_bug.cgi?id=114380

Reviewed by Jer Noble.

No new tests, covered by existing in-band tests.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerItem): Don't call selectMediaOption,
    availableMediaCharacteristicsWithMediaSelectionOptions is unlikely to be loaded at this time.
(WebCore::MediaPlayerPrivateAVFoundationObjC::processTextTracks): Disable automatic text track
    selection.
(WebCore::assetMetadataKeyNames): Watch for the status of availableMediaCharacteristicsWithMediaSelectionOptions
    to change.

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

9 years ago[CSS Exclusions] Zoom causes shape-inside to fail when shape-padding is specified
hmuller@adobe.com [Wed, 10 Apr 2013 21:22:39 +0000 (21:22 +0000)]
[CSS Exclusions] Zoom causes shape-inside to fail when shape-padding is specified
https://bugs.webkit.org/show_bug.cgi?id=113730

Reviewed by Dirk Schulze.

Source/WebCore:

Snap computed margin and polygon boundaries to the LayoutUnit grid to ensure
that they fall within the shape's LayoutUnit bounding box.

Test: fast/exclusions/shape-inside/shape-inside-polygon-zoom.html

* rendering/ExclusionPolygon.cpp:
(WebCore::snapVerticesToLayoutUnitGrid): Convert the FloatPoint coordinates to LayoutUnits and then back to floats.
(WebCore::computeShapePaddingBounds): Now calls snapVerticesToLayoutUnitGrid() before creating a FloatPolygon.
(WebCore::computeShapeMarginBounds): Ditto.

LayoutTests:

Verify that content lays out within a padded shape-inside polygon when the
document has been zoomed.

* fast/exclusions/shape-inside/shape-inside-polygon-zoom-expected.html: Added.
* fast/exclusions/shape-inside/shape-inside-polygon-zoom.html: Added.

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

9 years agoOne more unreviewed buildfix after r148123.
ossy@webkit.org [Wed, 10 Apr 2013 21:11:23 +0000 (21:11 +0000)]
One more unreviewed buildfix after r148123.

* platform/graphics/filters/CustomFilterMeshGenerator.h:

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

9 years agoFindBanner matches are offset when the WKView has a header or footer
bdakin@apple.com [Wed, 10 Apr 2013 20:57:25 +0000 (20:57 +0000)]
FindBanner matches are offset when the WKView has a header or footer
https://bugs.webkit.org/show_bug.cgi?id=114314
-and corresponding-
<rdar://problem/13522434>

Reviewed by Simon Fraser.

Source/WebCore:

There were already a few places in the code where we needed to adjust the
scrollOffset() to pretend that (0,0) is that the top of the Document rather than
the top of the header. To fix the FindBanner issues, we need to know that version
of the offset in a few more places, so I added a function on ScrollView to fetch
it called scrollOffsetRelativeToDocument().

New function subtracts out the headerHeight() to treat the top of
the document as (0,0).
* WebCore.exp.in:
* platform/ScrollView.cpp:
(WebCore::ScrollView::scrollOffsetRelativeToDocument):

Use scrollOffsetRelativeToDocument() where we were previously making this
calculation. Also re-name an inaccurately named variable where we are actually
converting FROM a document offset to a ScrollableArea offset.
(WebCore::ScrollView::windowToContents):
* platform/ScrollView.h:
(ScrollView):

getRectToExpose needs to know about the actual visibleContentRect and the
visibleContentRect that is relative to the Document. So this
patch adds a new parameter to getRectToExpose for that purpose.
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::scrollRectToVisible):
(WebCore::RenderLayer::getRectToExpose):
* rendering/RenderLayer.h:

Source/WebKit2:

When calculating the matching rects, also adjust to the scroll offset that is
relative to the Document.
* WebProcess/WebPage/FindController.cpp:
(WebKit::FindController::rectsForTextMatches):

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

9 years agowhen ARIA button contains a link, label text is ignored (affects main buttons on...
cfleizach@apple.com [Wed, 10 Apr 2013 20:45:43 +0000 (20:45 +0000)]
when ARIA button contains a link, label text is ignored (affects main buttons on m.facebook.com)
https://bugs.webkit.org/show_bug.cgi?id=113906

Reviewed by Tim Horton.

Source/WebCore:

If an element does not expose any children, then it's safe to include all of its sub children when determining
the visible text.
The bug is that all elements were ignoring focusable elements (like <a>) when determining visible children text

Test: accessibility/link-inside-button-accessible-text.html

* accessibility/AccessibilityNodeObject.cpp:
(WebCore::shouldUseAccessiblityObjectInnerText):
* accessibility/AccessibilityNodeObject.h:
(AccessibilityNodeObject):
* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::isDescendantOfBarrenParent):
(AccessibilityObject):

LayoutTests:

The static-text-role-uses-text-under-element.html relies on similar logic to this bug.

I realized that it was verifying the wrong thing and if we had looked closely at this layout test
we would have caught this regression earlier most likely.

* accessibility/link-inside-button-accessible-text-expected.txt: Added.
* accessibility/link-inside-button-accessible-text.html: Added.
* platform/mac/accessibility/static-text-role-uses-text-under-element-expected.txt:
* platform/mac/accessibility/static-text-role-uses-text-under-element.html:

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

9 years agoAX: Make sure all AX methods called from outside call prepareAccessibility
cfleizach@apple.com [Wed, 10 Apr 2013 20:38:25 +0000 (20:38 +0000)]
AX: Make sure all AX methods called from outside call prepareAccessibility
https://bugs.webkit.org/show_bug.cgi?id=113818

Reviewed by Darin Adler.

Make sure any calls that can be made from outside WebCore are protected with the
prepareAccessibility method.

* accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
(-[WebAccessibilityObjectWrapper accessibilityMathRootIndexObject]):
(-[WebAccessibilityObjectWrapper accessibilityMathRadicandObject]):
(-[WebAccessibilityObjectWrapper accessibilityMathNumeratorObject]):
(-[WebAccessibilityObjectWrapper accessibilityMathDenominatorObject]):
(-[WebAccessibilityObjectWrapper accessibilityMathBaseObject]):
(-[WebAccessibilityObjectWrapper accessibilityMathSubscriptObject]):
(-[WebAccessibilityObjectWrapper accessibilityMathSuperscriptObject]):
(-[WebAccessibilityObjectWrapper accessibilityMathUnderObject]):
(-[WebAccessibilityObjectWrapper accessibilityMathOverObject]):
(-[WebAccessibilityObjectWrapper accessibilityMathFencedOpenString]):
(-[WebAccessibilityObjectWrapper accessibilityMathFencedCloseString]):
(-[WebAccessibilityObjectWrapper accessibilityIsMathTopObject]):
(-[WebAccessibilityObjectWrapper accessibilityMathType]):

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

9 years agoRemove code duplicates from MacroAssemblerARM
paroga@webkit.org [Wed, 10 Apr 2013 20:30:19 +0000 (20:30 +0000)]
Remove code duplicates from MacroAssemblerARM
https://bugs.webkit.org/show_bug.cgi?id=104457

Reviewed by Oliver Hunt.

Reuse some existing methods to avoid duplicated code.

* assembler/MacroAssemblerARM.h:
(JSC::MacroAssemblerARM::store8):
(JSC::MacroAssemblerARM::store32):
(JSC::MacroAssemblerARM::swap):
(JSC::MacroAssemblerARM::add32):
(JSC::MacroAssemblerARM::sub32):

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

9 years agoUnreviewed buildfix after r148123.
ossy@webkit.org [Wed, 10 Apr 2013 20:21:02 +0000 (20:21 +0000)]
Unreviewed buildfix after r148123.

* inspector/InspectorInstrumentation.h:
(WebCore):

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

9 years agoChange all instances of test-results.appspot.com to webkit-test-results.appspot.com
ojan@chromium.org [Wed, 10 Apr 2013 20:05:48 +0000 (20:05 +0000)]
Change all instances of test-results.appspot.com to webkit-test-results.appspot.com
https://bugs.webkit.org/show_bug.cgi?id=114370

Reviewed by Ryosuke Niwa.

Finish the transition of WebKit over to it's own instance of the flakiness dashboard.
Unfortunately, there's no way to test this until this is committed and there is
a master restart.

* BuildSlaveSupport/build.webkit.org-config/master.cfg:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/garden-o-matic.html:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/builders_unittests.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui/notifications_unittests.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui/results.js:
* TestResultServer/generate_builders_json.py:
* TestResultServer/static-dashboards/dashboard_base.js:
* TestResultServer/static-dashboards/loader.js:

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

9 years agoClicking on the volume slider of HTML5 elements is pausing sometimes
commit-queue@webkit.org [Wed, 10 Apr 2013 20:02:43 +0000 (20:02 +0000)]
Clicking on the volume slider of HTML5 elements is pausing sometimes
https://bugs.webkit.org/show_bug.cgi?id=112548

Patch by Xabier Rodriguez Calvar <calvaris@igalia.com> on 2013-04-10
Reviewed by Eric Carlson.

Source/WebCore:

Test: media/click-volume-bar-not-pausing.html

* html/shadow/MediaControlElementTypes.cpp:
(WebCore::MediaControlVolumeSliderElement::defaultEventHandler):
Calling the setDefaultHandled() method on the event prevents it
from being incorrectly propagated from the volume button up to the
MediaDocument.

LayoutTests:

Added test.

* media/click-volume-bar-not-pausing-expected.txt: Added.
* media/click-volume-bar-not-pausing.html: Added.

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

9 years agoDFG: Negative size for new Array() interpreted as large unsigned int
msaboff@apple.com [Wed, 10 Apr 2013 20:01:14 +0000 (20:01 +0000)]
DFG: Negative size for new Array() interpreted as large unsigned int
https://bugs.webkit.org/show_bug.cgi?id=114366

Reviewed by Oliver Hunt.

Source/JavaScriptCore:

Added new check in operationNewArrayWithSize() for a negative
size.  If size is negative throw a "RangeError: Array size is not a
small enough positive integer" exception.

* dfg/DFGOperations.cpp:

LayoutTests:

New test to make sure DFG generated code for new Array() with a
computed negative size throws an exception.

* fast/js/dfg-negative-array-size-expected.txt: Added.
* fast/js/dfg-negative-array-size.html: Added.
* fast/js/script-tests/dfg-negative-array-size.js: Added.

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

9 years ago[BlackBerry] Rename BlackBerry specific Texture class
anilsson@rim.com [Wed, 10 Apr 2013 19:56:23 +0000 (19:56 +0000)]
[BlackBerry] Rename BlackBerry specific Texture class
https://bugs.webkit.org/show_bug.cgi?id=95781

Reviewed by Rob Buis.

Texture was a bit too generic and prone to name conflicts. Renamed it
to LayerTexture.

Source/WebCore:

No change in behavior, no new tests.

PR 322882

* PlatformBlackBerry.cmake:
* platform/graphics/blackberry/LayerCompositingThread.cpp:
(WebCore::LayerCompositingThread::drawSurface):
(WebCore::LayerCompositingThread::contentsTexture):
* platform/graphics/blackberry/LayerCompositingThread.h:
(LayerCompositingThread):
* platform/graphics/blackberry/LayerCompositingThreadClient.h:
(WebCore):
(WebCore::LayerCompositingThreadClient::contentsTexture):
* platform/graphics/blackberry/LayerFilterRenderer.cpp:
(WebCore::LayerFilterRenderer::applyActions):
* platform/graphics/blackberry/LayerFilterRenderer.h:
(LayerFilterRenderer):
* platform/graphics/blackberry/LayerRendererSurface.h:
(WebCore::LayerRendererSurface::texture):
(LayerRendererSurface):
* platform/graphics/blackberry/LayerTexture.cpp: Renamed from Source/WebCore/platform/graphics/blackberry/Texture.cpp.
(WebCore):
(WebCore::LayerTexture::LayerTexture):
(WebCore::LayerTexture::~LayerTexture):
(WebCore::LayerTexture::updateContents):
(WebCore::LayerTexture::setContentsToColor):
(WebCore::LayerTexture::protect):
* platform/graphics/blackberry/LayerTexture.h: Renamed from Source/WebCore/platform/graphics/blackberry/Texture.h.
(WebCore):
(LayerTexture):
(WebCore::LayerTexture::create):
(WebCore::LayerTexture::textureId):
(WebCore::LayerTexture::isDirty):
(WebCore::LayerTexture::hasTexture):
(WebCore::LayerTexture::isColor):
(WebCore::LayerTexture::isOpaque):
(WebCore::LayerTexture::isProtected):
(WebCore::LayerTexture::protect):
(WebCore::LayerTexture::unprotect):
(WebCore::LayerTexture::size):
(WebCore::LayerTexture::width):
(WebCore::LayerTexture::height):
(WebCore::LayerTexture::bytesPerPixel):
(WebCore::LayerTexture::sizeInBytes):
(WebCore::LayerTexture::setTextureId):
(WebCore::LayerTexture::setSize):
* platform/graphics/blackberry/LayerTile.cpp:
(WebCore::LayerTile::setContents):
(WebCore::LayerTile::updateContents):
(WebCore::LayerTile::setTexture):
* platform/graphics/blackberry/LayerTile.h:
(WebCore::LayerTile::texture):
(LayerTile):
* platform/graphics/blackberry/LayerTiler.cpp:
(WebCore::LayerTiler::drawTile):
(WebCore::LayerTiler::contentsTexture):
* platform/graphics/blackberry/LayerTiler.h:
(LayerTiler):
(WebCore::LayerTiler::TextureJob::TextureJob):
(WebCore::LayerTiler::TextureJob::setContents):
(WebCore::LayerTiler::TextureJob::updateContents):
(TextureJob):
* platform/graphics/blackberry/TextureCacheCompositingThread.cpp:
(WebCore::TextureProtector::TextureProtector):
(TextureProtector):
(WebCore::TextureCacheCompositingThread::allocateTextureId):
(WebCore::freeTextureId):
(WebCore::TextureCacheCompositingThread::textureResized):
(WebCore::TextureCacheCompositingThread::textureSizeInBytesChanged):
(WebCore::TextureCacheCompositingThread::textureDestroyed):
(WebCore::TextureCacheCompositingThread::install):
(WebCore::TextureCacheCompositingThread::resizeTexture):
(WebCore::TextureCacheCompositingThread::evict):
(WebCore::TextureCacheCompositingThread::textureAccessed):
(WebCore::TextureCacheCompositingThread::prune):
(WebCore::TextureCacheCompositingThread::textureForTiledContents):
(WebCore::TextureCacheCompositingThread::textureForColor):
(WebCore::TextureCacheCompositingThread::updateContents):
* platform/graphics/blackberry/TextureCacheCompositingThread.h:
(WebCore::TextureCacheCompositingThread::createTexture):
(TextureCacheCompositingThread):
(WebCore::TextureCacheCompositingThread::ZombieTexture::ZombieTexture):
(ZombieTexture):

Source/WebKit/blackberry:

PR 322882

* Api/WebOverlay.cpp:
(BlackBerry::WebKit::WebOverlayLayerCompositingThreadClient::uploadTexturesIfNeeded):
* Api/WebOverlay_p.h:
(WebOverlayLayerCompositingThreadClient):

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

9 years agoDisallow programmatic movement of the browser window while user gestures are in progress.
akling@apple.com [Wed, 10 Apr 2013 19:38:07 +0000 (19:38 +0000)]
Disallow programmatic movement of the browser window while user gestures are in progress.
<http://webkit.org/b/114271>
<rdar://problem/13226530>

Reviewed by Oliver Hunt.

* page/DOMWindow.cpp:
(WebCore::DOMWindow::moveBy):
(WebCore::DOMWindow::moveTo):
(WebCore::DOMWindow::resizeBy):
(WebCore::DOMWindow::resizeTo):

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

9 years agoWinCairo build fails to link.
commit-queue@webkit.org [Wed, 10 Apr 2013 19:33:39 +0000 (19:33 +0000)]
WinCairo build fails to link.
https://bugs.webkit.org/show_bug.cgi?id=114358

Patch by peavo@outlook.com <peavo@outlook.com> on 2013-04-10
Reviewed by Brent Fulgham.

Export the symbol WTF::MD5::checksum().

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreExports.def:
* JavaScriptCore.vcxproj/JavaScriptCoreExportGenerator/JavaScriptCoreExports.def.in:

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

9 years ago[Qt] Fix regression to test-webkitpy.
glenn@skynav.com [Wed, 10 Apr 2013 19:24:46 +0000 (19:24 +0000)]
[Qt] Fix regression to test-webkitpy.
https://bugs.webkit.org/show_bug.cgi?id=114368

Reviewed by Ryosuke Niwa.

* Scripts/webkitpy/layout_tests/port/factory.py:
(PortFactory._default_port): Return qt-linux instead of chromium-linux as default port for linux/freebsd.
(PortFactory.get): Remove obsolete chromium port related code.
* Scripts/webkitpy/layout_tests/port/mac.py:
(MacPort.default_child_processes): Prevent type error if can't determine total memory.

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

9 years agoFixed build failure in Plugin.h: FloatPoint was not in namespace WebCore
commit-queue@webkit.org [Wed, 10 Apr 2013 19:18:46 +0000 (19:18 +0000)]
Fixed build failure in Plugin.h: FloatPoint was not in namespace WebCore

make[1]: *** Waiting for unfinished jobs....
In file included from Source/WebKit2/PluginProcess/PluginCreationParameters.h:31:0,
                 from Source/WebKit2/PluginProcess/PluginCreationParameters.cpp:27:
./Source/WebKit2/WebProcess/Plugins/Plugin.h:268:58: error: 'FloatPoint' in namespace 'WebCore' does not name a type
./Source/WebKit2/WebProcess/Plugins/Plugin.h:268:77: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
cc1plus: warning: unrecognized command line option "-Wno-c++11-extensions" [enabled by default]
make[1]: *** [Source/WebKit2/PluginProcess/libwebkit2gtk_3_0_la-PluginCreationParameters.lo] Error 1

It now passes that make target.

https://bugs.webkit.org/show_bug.cgi?id=111862

Patch by Tobias Mueller <tobiasmue@gnome.org> on 2013-04-10
Reviewed by Darin Adler.

* WebProcess/Plugins/Plugin.h:
(WebCore): Added FloatPoint to the WebCore namespace

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

9 years agoRefactor Editor::markAndReplaceFor before fixing autocorrection bugs
rniwa@webkit.org [Wed, 10 Apr 2013 19:16:58 +0000 (19:16 +0000)]
Refactor Editor::markAndReplaceFor before fixing autocorrection bugs
https://bugs.webkit.org/show_bug.cgi?id=114344

Reviewed by Enrica Casucci.

This patch refactors Editor::markAndReplaceFor so that we can start fixing bugs in a sane state.
Extracted isAutomaticTextReplacementType and correctSpellcheckingPreservingTextCheckingParagraph,
and made convenience local variables const.

In particular, shouldMarkSpelling used to be assigned of false when shouldShowCorrectionPanel was true
in a middle of a function but this was removed in favor of explicitly checking this condition later
since shouldMarkSpelling was only referenced once after the assignment.

* editing/Editor.cpp:
(WebCore::isAutomaticTextReplacementType): Extracted.

(WebCore::correctSpellcheckingPreservingTextCheckingParagraph): Extracted.  Used highestAncestor
and rangeFromLocationAndLength to match the rest of the up-to-date editing code.

(WebCore::Editor::markAndReplaceFor): See above.

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

9 years agoRemove unneeded headers from FrameLoader.h
andersca@apple.com [Wed, 10 Apr 2013 19:11:20 +0000 (19:11 +0000)]
Remove unneeded headers from FrameLoader.h
https://bugs.webkit.org/show_bug.cgi?id=114223

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

Update for WTF changes.

* bytecode/SpeculatedType.h:
* runtime/JSCJSValue.h:

Source/WebCore:

Remove unneeded headers from FrameLoader.h and add them back into the respective .cpp files where needed.

* dom/Document.cpp:
* history/CachedFrame.cpp:
* history/PageCache.cpp:
* inspector/InspectorResourceAgent.cpp:
* loader/DocumentLoader.cpp:
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::FrameLoader):
(WebCore::FrameLoader::retryAfterFailedCacheOnlyMainResourceLoad):
* loader/FrameLoader.h:
(WebCore):
(WebCore::FrameLoader::policyChecker):
(WebCore::FrameLoader::history):
(WebCore::FrameLoader::icon):
* loader/MixedContentChecker.h:
* loader/icon/IconLoader.cpp:
* page/History.cpp:
* page/Page.cpp:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
* testing/Internals.cpp:

Source/WebKit/blackberry:

Include HistoryController.h from WebCore.

* WebCoreSupport/FrameLoaderClientBlackBerry.cpp:

Source/WebKit/mac:

Include HistoryController.h from WebCore.

* WebCoreSupport/WebFrameLoaderClient.mm:
* WebView/WebView.mm:

Source/WebKit/win:

Include HistoryController.h from WebCore.

* WebView.cpp:

Source/WebKit2:

Include HistoryController.h from WebCore.

* WebProcess/Plugins/PDF/SimplePDFPlugin.h:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
* WebProcess/WebPage/WebPage.cpp:

Source/WTF:

* wtf/Forward.h:
Add PrintStream.

* wtf/HashTable.h:
Don't include DataLog.h unless DUMP_HASHTABLE_STATS_PER_TABLE is 1.

Tools:

Add back headers implicitly included by other headers.

* WebKitTestRunner/WorkQueueManager.cpp:

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

9 years agoMinor code cleanup in AnimationBase::progress
simon.fraser@apple.com [Wed, 10 Apr 2013 19:03:02 +0000 (19:03 +0000)]
Minor code cleanup in AnimationBase::progress
https://bugs.webkit.org/show_bug.cgi?id=114371

Reviewed by Dean Jackson.

Convert some "return; else if" to just "return; if".

* page/animation/AnimationBase.cpp:
(WebCore::AnimationBase::progress):

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

9 years agoEmpty inline continuations should only get lineboxes if the padding applies to their...
robert@webkit.org [Wed, 10 Apr 2013 18:56:36 +0000 (18:56 +0000)]
Empty inline continuations should only get lineboxes if the padding applies to their side of the inline
https://bugs.webkit.org/show_bug.cgi?id=113896

Reviewed by David Hyatt.

Source/WebCore:

Test: fast/inline/inline-with-empty-inline-continuations.html

Where an empty inline is split across anonymous blocks we should only give lineboxes to the 'sides' of the
inline that have borders, padding or margin.

* rendering/RenderBlockLineLayout.cpp:
(WebCore::shouldApplyStartBorderPaddingOrMargin):
(WebCore):
(WebCore::shouldApplyEndBorderPaddingOrMargin):
(WebCore::hasInlineDirectionBordersPaddingOrMargin):
(WebCore::alwaysRequiresLineBox):

LayoutTests:

* fast/inline/inline-with-empty-inline-continuations-expected.txt: Added.
* fast/inline/inline-with-empty-inline-continuations.html: Added.

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

9 years ago[CSS Exclusions] Increasing padding does not correctly layout child blocks
zoltan@webkit.org [Wed, 10 Apr 2013 18:53:49 +0000 (18:53 +0000)]
[CSS Exclusions] Increasing padding does not correctly layout child blocks
https://bugs.webkit.org/show_bug.cgi?id=112929

Reviewed by David Hyatt.

If a child block has changed dimension inside a shape and it has affected the block siblings
we need to relayout the content inside the shape.

Source/WebCore:

Test: fast/exclusions/shape-inside/shape-inside-sibling-block-dimension-change-needs-relayout.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::updateRegionsAndExclusionsAfterChildLayout): Add condition for dimension change.
(WebCore::RenderBlock::layoutBlock): Call updateRegionsAndExclusionsAfterChildLayout with the new parameter.
* rendering/RenderBlock.h:
(RenderBlock): Add extra parameter to updateRegionsAndExclusionsAfterChildLayout(...)

LayoutTests:

* fast/exclusions/shape-inside/shape-inside-sibling-block-dimension-change-needs-relayout-expected.html: Added.
* fast/exclusions/shape-inside/shape-inside-sibling-block-dimension-change-needs-relayout.html: Added.

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

9 years agoRemoved bitrotted TimeoutChecker code
ggaren@apple.com [Wed, 10 Apr 2013 18:51:47 +0000 (18:51 +0000)]
Removed bitrotted TimeoutChecker code
https://bugs.webkit.org/show_bug.cgi?id=114336

Reviewed by Alexey Proskuryakov.

../JavaScriptCore:

This mechanism hasn't worked for a while.

MarkL is working on a new version of this feature with a distinct
implementation.

* API/APIShims.h:
(JSC::APIEntryShim::~APIEntryShim):
(JSC::APIEntryShim::init):
* GNUmakefile.list.am:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreExports.def:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:
* JavaScriptCore.vcxproj/JavaScriptCoreExportGenerator/JavaScriptCoreExports.def.in:
* JavaScriptCore.xcodeproj/project.pbxproj:
* Target.pri:
* dfg/DFGGPRInfo.h:
* jit/JIT.cpp:
* jit/JIT.h:
* jit/JITStubs.cpp:
* jit/JITStubs.h:
* jit/JSInterfaceJIT.h:
(JSInterfaceJIT):
* runtime/JSGlobalData.cpp:
(JSC::JSGlobalData::JSGlobalData):
* runtime/JSGlobalData.h:
* runtime/JSGlobalObject.cpp:
* runtime/JSONObject.cpp:
(JSC::Stringifier::appendStringifiedValue):
(JSC::Walker::walk):
* runtime/TimeoutChecker.cpp: Removed.
* runtime/TimeoutChecker.h: Removed.

../WebCore:

This mechanism hasn't worked for a while.

MarkL is working on a new version of this feature with a distinct
implementation.

* bindings/js/JSCallbackData.cpp:
(WebCore::JSCallbackData::invokeCallback):
* bindings/js/JSCustomXPathNSResolver.cpp:
(WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::commonJSGlobalData):
* bindings/js/JSErrorHandler.cpp:
(WebCore::JSErrorHandler::handleEvent):
* bindings/js/JSEventListener.cpp:
(WebCore::JSEventListener::handleEvent):
* bindings/js/JSMutationCallback.cpp:
(WebCore::JSMutationCallback::call):
* bindings/js/ScheduledAction.cpp:
(WebCore::ScheduledAction::executeFunctionInContext):
* bindings/js/ScriptController.cpp:
(WebCore::ScriptController::evaluateInWorld):
* bindings/js/SerializedScriptValue.cpp:
(WebCore::CloneBase::CloneBase):
(WebCore::CloneSerializer::serialize):
(WebCore::CloneDeserializer::deserialize):
* bindings/js/WorkerScriptController.cpp:
(WebCore::WorkerScriptController::evaluate):
* bindings/objc/WebScriptObject.mm:
(-[WebScriptObject callWebScriptMethod:withArguments:]):
(-[WebScriptObject evaluateWebScript:]):

../WebKit/blackberry:

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::setTimeoutForJavaScriptExecution):

../WebKit/mac:

This mechanism hasn't worked for a while.

MarkL is working on a new version of this feature with a distinct
implementation.

* Plugins/Hosted/NetscapePluginInstanceProxy.mm:
(WebKit::NetscapePluginInstanceProxy::evaluate):

../WebKit/qt:

* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::createDocumentLoader):

../WebKit2:

This mechanism hasn't worked for a while.

MarkL is working on a new version of this feature with a distinct
implementation.

* WebProcess/Plugins/Netscape/NPJSObject.cpp:
(WebKit::NPJSObject::construct):
(WebKit::NPJSObject::invoke):
* WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
(WebKit::NPRuntimeObjectMap::evaluate):

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

9 years agoReplace ENABLE_JAVASCRIPT_DEBUGGER preprocessor statements in IDL files with Conditio...
paroga@webkit.org [Wed, 10 Apr 2013 18:50:15 +0000 (18:50 +0000)]
Replace ENABLE_JAVASCRIPT_DEBUGGER preprocessor statements in IDL files with Conditional attribute
https://bugs.webkit.org/show_bug.cgi?id=114352

Reviewed by Timothy Hatcher.

The Conditional attribute does not need a preprocessor, which is source of much pain on native windows.

* page/Console.idl:

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

9 years agoLayers with opacity and blur filters are reported as opaque to the compositor
achicu@adobe.com [Wed, 10 Apr 2013 18:48:01 +0000 (18:48 +0000)]
Layers with opacity and blur filters are reported as opaque to the compositor
https://bugs.webkit.org/show_bug.cgi?id=114295

Reviewed by Simon Fraser.

Source/WebCore:

Test: compositing/contents-opaque/filter.html

Some filters like opacity and blur might still trigger transparency in the layer, even though the
background is opaque. I've added the special case in RenderLayer::backgroundIsKnownToBeOpaqueInRect to check
for filters that might have transparency. Note that this special case is required only for software drawn
filters, as the transparency is going to be backed in the GraphicsLayer content. Composited filters can
figure it out in the compositor.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::backgroundIsKnownToBeOpaqueInRect):

LayoutTests:

Added test to check for blur and opacity filters drawn in software mode which needs
to force the layer report non-opaque to the compositor.

* compositing/contents-opaque/filter-expected.txt: Added.
* compositing/contents-opaque/filter.html: Added.

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

9 years ago[Texmap] In certain situations nested blending with overflow:hidden displays clipped...
commit-queue@webkit.org [Wed, 10 Apr 2013 18:26:26 +0000 (18:26 +0000)]
[Texmap] In certain situations nested blending with overflow:hidden displays clipped results
https://bugs.webkit.org/show_bug.cgi?id=114290

Patch by Noam Rosenthal <noam@webkit.org> on 2013-04-10
Reviewed by Allan Sandfeld Jensen.

Source/WebCore:

Always apply the clip when binding a surface, even if it hasn't changed.
Otherwise when binding a nested surface and rebinding its container surface,
the clip wouldn't apply.

Test: compositing/overlap-blending/nested-overlap-overflow.html

* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::BitmapTextureGL::bind):

LayoutTests:

Added a ref-test that exposes an issue with TextureMapper overlap blending when composited.
This ref-test does not show correct results on Mac, skipped in TestExpectations and created a bug.

* compositing/overlap-blending/nested-overlap-overflow-expected.html: Added.
* compositing/overlap-blending/nested-overlap-overflow.html: Added.
* platform/mac/TestExpectations: Skipped new tests and created bug.

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

9 years agoI should know better than to lie in ChangeLog entries.
mrowe@apple.com [Wed, 10 Apr 2013 18:17:16 +0000 (18:17 +0000)]
I should know better than to lie in ChangeLog entries.

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

9 years ago<rdar://problem/13617144> WKNavigationData needs to expose the destination of the...
mrowe@apple.com [Wed, 10 Apr 2013 18:14:42 +0000 (18:14 +0000)]
<rdar://problem/13617144> WKNavigationData needs to expose the destination of the navigation

Introduce WKNavigationDataCopyNavigationDestinationURL to access the destination of the navigation.

Reviewed by Darin Adler.

* UIProcess/API/C/WKNavigationData.cpp:
(WKNavigationDataCopyURL): Add a note about returning the URL from the original request for sake of
backwards-compatibility.
(WKNavigationDataCopyNavigationDestinationURL): Return the URL from our underlying WebNavigationDataStore.
* UIProcess/API/C/WKNavigationData.h:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::updateGlobalHistory): Store the current URL in to the WebNavigationDataStore
object. WKNavigationData can retrieve the value that we were previously storing here via the originalRequest.

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

9 years ago<rdar://problem/13617104> WKPageCopySessionState needs to provide more context to...
mrowe@apple.com [Wed, 10 Apr 2013 18:14:33 +0000 (18:14 +0000)]
<rdar://problem/13617104> WKPageCopySessionState needs to provide more context to the filter callback

Introduce a new value type for WKPageSessionStateFilterCallback that represents the passing
of whole WKBackForwardListItemRefs to the filter callback. This allows clients to consider
more than the original URL of the item when filtering entries from the session state.

Reviewed by Darin Adler.

* UIProcess/API/C/WKPage.cpp:
(WKPageGetSessionBackForwardListItemValueType): Return a static string representing our new value type.
* UIProcess/API/C/WKPage.h:
* UIProcess/cf/WebBackForwardListCF.cpp:
(WebKit::WebBackForwardList::createCFDictionaryRepresentation): Call the filter function with each of the
possible value types in turn, respecting the first false value, if any, that is returned.

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

9 years agoUse minimal tiles during live resize
antti@apple.com [Wed, 10 Apr 2013 18:07:41 +0000 (18:07 +0000)]
Use minimal tiles during live resize
https://bugs.webkit.org/show_bug.cgi?id=114364

Reviewed by Darin Adler.

We currently update non-visible speculative tiles during resizing. We should just drop them.

* page/FrameView.cpp:
(WebCore::FrameView::willStartLiveResize):
(WebCore::FrameView::willEndLiveResize):
* page/FrameView.h:
* rendering/RenderLayerBacking.cpp:
(WebCore::computeTileCoverage):

    Use minimal coverage in live resize state.

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

9 years ago[GTK] Include a crash-fixing patch for the at-spi2-atk dependency
zandobersek@gmail.com [Wed, 10 Apr 2013 18:05:41 +0000 (18:05 +0000)]
[GTK] Include a crash-fixing patch for the at-spi2-atk dependency
https://bugs.webkit.org/show_bug.cgi?id=114365

Reviewed by Martin Robinson.

Add a patch for the at-spi2-atk 2.8.0 dependency that is applied through the Jhbuild setup.
The patch addresses crashes in the tally_event_reply method. It is already committed into the
at-spi2-atk source tree and will be available with the next stable release, after which the
patch should be removed and the dependency version bumped.

* gtk/jhbuild.modules:
* gtk/patches/at-spi2-atk-2.8.0-null-check-after-cleanup.patch: Added.

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

9 years agoREGRESSION (r148073): WebKit Nightly r148082 crashes on launch in JSObjectSetPrivate
oliver@apple.com [Wed, 10 Apr 2013 17:47:44 +0000 (17:47 +0000)]
REGRESSION (r148073): WebKit Nightly r148082 crashes on launch in JSObjectSetPrivate
https://bugs.webkit.org/show_bug.cgi?id=114341

Reviewed by Alexey Proskuryakov.

Make JSObjectSetPrivate use uncheckedToJS as some clients
clear their private data during finalization for some reason.

* API/JSObjectRef.cpp:
(JSObjectSetPrivate):

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

9 years agoBlob content type normalization.
commit-queue@webkit.org [Wed, 10 Apr 2013 17:13:40 +0000 (17:13 +0000)]
Blob content type normalization.
https://bugs.webkit.org/show_bug.cgi?id=111380

Patch by Victor Costan <costan@gmail.com> on 2013-04-10
Reviewed by Alexey Proskuryakov.

Source/WebCore:

Tests: http/tests/fast/files/blob-constructor.js
       http/tests/fileapi/xhr-send-form-data-filename-escaping.html
       http/tests/fileapi/xhr-send-form-data-mimetype-normalization.html

* WebCore.exp.in: exported Blob::isNormalizedContentType()
* bindings/js/JSBlobCustom.cpp:
(WebCore::JSBlobConstructor::constructJSBlob): remove checks on Blob type, BlobBuilder will normalize it
* fileapi/Blob.cpp:
(BlobType): utilities for normalizing a Blob's type according to the File API spec
(WebCore::BlobType::isValid): content type validity checks in the File API spec
(WebCore::BlobType::normalize): implements the normalization rules in the File API spec
(WebCore::BlobType::isNormalized): useful for ASSERTing that a Blob type has been normalized
(WebCore): implement Blob type normalization according to the File API spec
(WebCore::Blob::Blob): normalize the Blob type in the data URL
(WebCore::Blob::slice): normalize the Blob type argument
* fileapi/Blob.h:
(BlobType): utilities for normalizing a Blob's type according to the File API spec
(WebCore::Blob::create): assert that the deserialized Blob's type was normalized
* fileapi/File.cpp:
(WebCore::createBlobDataForFileWithType): assert that the File's MIME type is a normalized Blob type
* fileapi/WebKitBlobBuilder.cpp:
(WebCore::BlobBuilder::getBlob): normalize the Blob's type before building it
* platform/network/BlobData.h:
(WebCore::BlobData::setContentType): assert that the Blob type has been normalized
* platform/network/FormData.cpp:
(WebCore::FormData::appendKeyValuePairItems): assert that Blob's type has been normalized
* platform/network/FormDataBuilder.cpp:
(WebCore::FormDataBuilder::addContentTypeToMultiPartHeader): assert that the Content-Type field is normalized
* xml/XMLHttpRequest.cpp: when responseType is blob, normalize Content-Type before passing to Blob constructor

LayoutTests:

* http/tests/fast/files/script-tests/blob-constructor.js: added/updated test cases for Blob type normalization
* http/tests/fast/files/blob-constructor-expected.txt: added/updated test cases for Blob type normalization
* http/tests/fileapi/xhr-send-form-data-filename-escaping-expected.txt: Added.
* http/tests/fileapi/xhr-send-form-data-filename-escaping.html: Added.
* http/tests/fileapi/xhr-send-form-data-mimetype-normalization-expected.txt: Added.
* http/tests/fileapi/xhr-send-form-data-mimetype-normalization.html: Added.
* http/tests/local/formdata/resources/send-form-data-common.js:
(dumpResponse): return the HTTP response text so it can be used in JS test code
(sendFormData): passthrough the HTTP response text returned by dumpResponse()
(testSendingFormData): passthrough the HTTP response text returned by dumpResponse()
* http/tests/xmlhttprequest/post-blob-content-type-async-expected.txt: updated expectation for invalid Content-Type
* http/tests/xmlhttprequest/post-blob-content-type-sync-expected.txt: updated expectation for invalid Content-Type
* http/tests/xmlhttprequest/post-blob-content-type-tests.js: updated expectation for invalid Content-Type

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

9 years agoRebaseline four tiled drawing tests affeted by r148049.
simon.fraser@apple.com [Wed, 10 Apr 2013 17:11:07 +0000 (17:11 +0000)]
Rebaseline four tiled drawing tests affeted by r148049.

Move results from platform/mac/platform/mac-wk2/tiled-drawing to  platform/mac-wk2/tiled-drawing

* platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-body-layer-expected.txt:
* platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-expected.txt:
* platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-opacity-html-expected.txt:
* platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-positioned-expected.txt:
* platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-transformed-html-expected.txt:
* platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed-expected.txt:
* platform/mac-wk2/tiled-drawing/fixed-background/fixed-html-background-expected.txt:
* platform/mac-wk2/tiled-drawing/fixed/four-bars-expected.txt:
* platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer-expected.txt:
* platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed-expected.txt:
* platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-in-view-expected.txt:
* platform/mac-wk2/tiled-drawing/sticky/sticky-vertical-expected.txt:
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-body-layer-expected.txt: Removed.
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-expected.txt: Removed.
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-opacity-html-expected.txt: Removed.
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-positioned-expected.txt: Removed.
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-transformed-html-expected.txt: Removed.
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed-expected.txt: Removed.
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-html-background-expected.txt: Removed.
* platform/mac/platform/mac-wk2/tiled-drawing/sticky/sticky-vertical-expected.txt: Removed.

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

9 years ago[WinCairo] Unreviewed build fix. Correct DropBox download link.
bfulgham@webkit.org [Wed, 10 Apr 2013 16:50:41 +0000 (16:50 +0000)]
[WinCairo] Unreviewed build fix. Correct DropBox download link.

* Scripts/update-webkit-wincairo-libs: Revise download URL to
match change in DropBox server behavior.

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

9 years agoTileController doesn't remove tiles when the view is resized, leading to stale content
timothy_horton@apple.com [Wed, 10 Apr 2013 16:32:51 +0000 (16:32 +0000)]
TileController doesn't remove tiles when the view is resized, leading to stale content
https://bugs.webkit.org/show_bug.cgi?id=114323
<rdar://problem/13520671>

Reviewed by Simon Fraser.

Ensure that tiles are removed if the view shrinks, so that they are not displayed
with stale content if the view later grows again (they will not be repainted by WebCore
while out-of-view).

* platform/graphics/ca/mac/TileController.h:
* platform/graphics/ca/mac/TileController.mm:
(WebCore::TileController::revalidateTiles):

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

9 years agoUpdate the localizable strings file.
jberlin@webkit.org [Wed, 10 Apr 2013 16:28:34 +0000 (16:28 +0000)]
Update the localizable strings file.

Rubber-stamped by Dan Bernstein.

* English.lproj/Localizable.strings:

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

9 years agoReplace ENABLE_CHANNEL_MESSAGING preprocessor statements in IDL files with Conditiona...
paroga@webkit.org [Wed, 10 Apr 2013 16:27:10 +0000 (16:27 +0000)]
Replace ENABLE_CHANNEL_MESSAGING preprocessor statements in IDL files with Conditional attribute
https://bugs.webkit.org/show_bug.cgi?id=114346

Reviewed by Geoffrey Garen.

The Conditional attribute does not need a preprocessor, which is source of much pain on native windows.

* page/DOMWindow.idl:
* workers/WorkerContext.idl:

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

9 years agoUpdate all float attributes in HTMLMediaElement to double
eric.carlson@apple.com [Wed, 10 Apr 2013 16:25:14 +0000 (16:25 +0000)]
Update all float attributes in HTMLMediaElement to double
https://bugs.webkit.org/show_bug.cgi?id=113615

Reviewed by Geoffrey Garen
Patch by Aaron Colwell

No new tests. Primary behavior doesn't change. Just time, playbackRate, and volume precision.
All existing LayoutTests/media tests still pass.

* WebCore.exp.in: Remove function that no longer need to be exported.

* html/HTMLMediaElement.cpp: Change all float attributes to double.
* html/HTMLMediaElement.h: Ditto.
* html/HTMLMediaElement.idl: Ditto.
* html/MediaController.cpp: Ditto.
* html/MediaController.h: Ditto.
* html/MediaControllerInterface.h: Ditto.
* html/TimeRanges.cpp: Ditto.
* html/TimeRanges.idl: Ditto.
* html/shadow/MediaControlElementTypes.cpp: Ditto.
* html/shadow/MediaControlElementTypes.h: Ditto.
* html/shadow/MediaControlElements.cpp: Ditto.
* html/shadow/MediaControlElements.h: Ditto.
* html/shadow/MediaControls.cpp: Ditto.
* html/shadow/MediaControlsApple.cpp: Ditto.
* html/shadow/MediaControlsBlackBerry.cpp: Ditto.
* html/shadow/MediaControlsBlackBerry.h: Ditto.
* html/shadow/MediaControlsGtk.cpp: Ditto.
* html/track/TextTrackCue.cpp: Ditto.
* html/track/TextTrackCue.h: Ditto.
* platform/Clock.h: Ditto.
* platform/ClockGeneric.cpp: Ditto.
* platform/ClockGeneric.h: Ditto.
* platform/graphics/MediaPlayer.cpp: Ditto.
* platform/graphics/MediaPlayer.h: Ditto.
* platform/graphics/MediaPlayerPrivate.h: Ditto.
* platform/mac/PlatformClockCA.cpp: Ditto.
* platform/mac/PlatformClockCA.h: Ditto.
* platform/mac/PlatformClockCM.h: Ditto.
* platform/mac/PlatformClockCM.mm: Ditto.

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

9 years agoReplace ENABLE_MICRODATA preprocessor statements in IDL files with Conditional attribute
paroga@webkit.org [Wed, 10 Apr 2013 16:16:13 +0000 (16:16 +0000)]
Replace ENABLE_MICRODATA preprocessor statements in IDL files with Conditional attribute
https://bugs.webkit.org/show_bug.cgi?id=114349

Reviewed by Geoffrey Garen.

The Conditional attribute does not need a preprocessor, which is source of much pain on native windows.

* dom/Document.idl:
* html/HTMLElement.idl:

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

9 years agoREGRESSION(r148034): IconDatabase::updateIconRecord crashes with null iconData and...
rakuco@webkit.org [Wed, 10 Apr 2013 16:13:35 +0000 (16:13 +0000)]
REGRESSION(r148034): IconDatabase::updateIconRecord crashes with null iconData and iconBitmap.
https://bugs.webkit.org/show_bug.cgi?id=114356

Reviewed by Tim Horton.

When loading an icon fails (for example, when a non-existent URI is
passed to the loader), updateIconRecord can be called with both
iconData and iconBitmap having no data.

This used to be fine before r148034, but causes an assertion now.

No new tests, existing tests such as fast/encoding/mispositioned-meta.html
were crashing.

* loader/icon/IconDatabase.cpp:
(WebCore::IconDatabase::updateIconRecord): Change the ASSERT() to check
for a NAND condition that only fails if both iconData and iconBitmap
are not 0.

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

9 years agoRemoved an annoying message from svn-create-patch
ggaren@apple.com [Wed, 10 Apr 2013 15:44:29 +0000 (15:44 +0000)]
Removed an annoying message from svn-create-patch
https://bugs.webkit.org/show_bug.cgi?id=114332

Reviewed by Alexey Proskuryakov.

I see this message basically every time I write a patch, so it must not
be true.

* Scripts/svn-create-patch:
(generateDiff):

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

9 years ago[Qt] Add API in QWebSettings for setting the CSS media type
commit-queue@webkit.org [Wed, 10 Apr 2013 15:10:08 +0000 (15:10 +0000)]
[Qt] Add API in QWebSettings for setting the CSS media type
https://bugs.webkit.org/show_bug.cgi?id=113853

Patch by Jose Lejin PJ <jose.lejin@gmail.com> on 2013-04-10
Reviewed by Jocelyn Turcotte.

* Api/qwebsettings.cpp:
(QWebSettingsPrivate):
(QWebSettingsPrivate::apply):
(QWebSettings::setCSSMediaType):
(QWebSettings::cssMediaType):
* Api/qwebsettings.h:
* WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::overrideMediaType):
* tests/qwebpage/tst_qwebpage.cpp:
(tst_QWebPage):
(tst_QWebPage::cssMediaTypeGlobalSetting):
(tst_QWebPage::cssMediaTypePageSetting):

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

9 years ago[Texmap] Update a dirty region which is not covered with keepRect.
commit-queue@webkit.org [Wed, 10 Apr 2013 14:58:37 +0000 (14:58 +0000)]
[Texmap] Update a dirty region which is not covered with keepRect.
https://bugs.webkit.org/show_bug.cgi?id=113752

Patch by JungJik Lee <jungjik.lee@samsung.com> on 2013-04-10
Reviewed by Jocelyn Turcotte.

There can be a dirty region which is not covered with keepRect.
However the dirty could be inside the tile area. In this case,
currently we ignore the dirty by intersecting with keepRect
and the dirty region will not be invalidated until the tile is
recreated. We must expand the keep rect to its intersecting tiles
to make sure that the dirty region is applied to existing tiles.

No tests needed, change is unobservable.

* platform/graphics/TiledBackingStore.cpp:
(WebCore::TiledBackingStore::invalidate):

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

9 years agoRemove ENABLE_3D_PLUGIN
l.gombos@samsung.com [Wed, 10 Apr 2013 14:36:00 +0000 (14:36 +0000)]
Remove ENABLE_3D_PLUGIN
https://bugs.webkit.org/show_bug.cgi?id=108002

Source/WebCore:

Remove ENABLE_3D_PLUGIN, it was only used by Chromium.

Reviewed by Antti Koivisto.

No new tests, removing dead code.

* loader/SubframeLoader.cpp:
(WebCore::SubframeLoader::loadPlugin):

Source/WTF:

Reviewed by Antti Koivisto.

Remove ENABLE_3D_PLUGIN, it was only used by Chromium.

* wtf/FeatureDefines.h:

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

9 years ago[CSS Regions] Add tests for lists and counters
abucur@adobe.com [Wed, 10 Apr 2013 13:47:24 +0000 (13:47 +0000)]
[CSS Regions] Add tests for lists and counters
https://bugs.webkit.org/show_bug.cgi?id=103975

Reviewed by Antti Koivisto.

Lists and counters work correctly with regions since r148026 (http://trac.webkit.org/changeset/148026).
This patch adds W3C formatted ref tests to our battery.

* fast/regions/counters/extract-list-items-001-expected.html: Added.
* fast/regions/counters/extract-list-items-001.html: Added.
* fast/regions/counters/extract-list-items-002-expected.html: Added.
* fast/regions/counters/extract-list-items-002.html: Added.
* fast/regions/counters/extract-list-items-003-expected.html: Added.
* fast/regions/counters/extract-list-items-003.html: Added.
* fast/regions/counters/extract-list-items-004-expected.html: Added.
* fast/regions/counters/extract-list-items-004.html: Added.
* fast/regions/counters/extract-list-items-005-expected.html: Added.
* fast/regions/counters/extract-list-items-005.html: Added.
* fast/regions/counters/extract-list-items-006-expected.html: Added.
* fast/regions/counters/extract-list-items-006.html: Added.
* fast/regions/counters/extract-list-items-007-expected.html: Added.
* fast/regions/counters/extract-list-items-007.html: Added.
* fast/regions/counters/extract-list-items-008-expected.html: Added.
* fast/regions/counters/extract-list-items-008.html: Added.
* fast/regions/counters/extract-list-items-009-expected.html: Added.
* fast/regions/counters/extract-list-items-009.html: Added.
* fast/regions/counters/extract-list-items-010-expected.html: Added.
* fast/regions/counters/extract-list-items-010.html: Added.
* fast/regions/counters/extract-list-items-011-expected.html: Added.
* fast/regions/counters/extract-list-items-011.html: Added.
* fast/regions/counters/extract-list-items-012-expected.html: Added.
* fast/regions/counters/extract-list-items-012.html: Added.
* fast/regions/counters/extract-list-items-013-expected.html: Added.
* fast/regions/counters/extract-list-items-013.html: Added.
* fast/regions/counters/extract-list-items-014-expected.html: Added.
* fast/regions/counters/extract-list-items-014.html: Added.
* fast/regions/counters/extract-list-items-015-expected.html: Added.
* fast/regions/counters/extract-list-items-015.html: Added.
* fast/regions/counters/extract-numbered-paragraphs-divs-001-expected.html: Added.
* fast/regions/counters/extract-numbered-paragraphs-divs-001.html: Added.
* fast/regions/counters/extract-numbered-paragraphs-divs-002-expected.html: Added.
* fast/regions/counters/extract-numbered-paragraphs-divs-002.html: Added.
* fast/regions/counters/extract-numbered-paragraphs-expected.html: Added.
* fast/regions/counters/extract-numbered-paragraphs.html: Added.
* fast/regions/counters/extract-numbered-spans-display-only-some-expected.html: Added.
* fast/regions/counters/extract-numbered-spans-display-only-some.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-001-expected.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-001.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-002-expected.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-002.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-003-expected.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-003.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-001-expected.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-001.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-002-expected.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-002.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-003-expected.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-003.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-004-expected.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-004.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-005-expected.html: Added.
* fast/regions/counters/extract-ordered-lists-in-regions-explicit-counters-005.html: Added.
* fast/regions/counters/extract-unordered-lists-in-regions-expected.html: Added.
* fast/regions/counters/extract-unordered-lists-in-regions.html: Added.

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

9 years ago[Qt][WK2] Unreviewed gardening. Rebaselining after r148049.
zarvai@inf.u-szeged.hu [Wed, 10 Apr 2013 12:18:33 +0000 (12:18 +0000)]
[Qt][WK2] Unreviewed gardening. Rebaselining after r148049.

* platform/qt-5.0-wk2/compositing/iframes/composited-parent-iframe-expected.txt:
* platform/qt-5.0-wk2/compositing/iframes/connect-compositing-iframe-delayed-expected.txt:
* platform/qt-5.0-wk2/compositing/iframes/connect-compositing-iframe-expected.txt:
* platform/qt-5.0-wk2/compositing/iframes/connect-compositing-iframe2-expected.txt:
* platform/qt-5.0-wk2/compositing/iframes/connect-compositing-iframe3-expected.txt:
* platform/qt-5.0-wk2/compositing/iframes/enter-compositing-iframe-expected.txt:
* platform/qt-5.0-wk2/compositing/iframes/iframe-resize-expected.txt:
* platform/qt-5.0-wk2/compositing/iframes/invisible-nested-iframe-show-expected.txt:
* platform/qt-5.0-wk2/compositing/iframes/overlapped-iframe-expected.txt:

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

9 years ago[Texmap] Hierarchy of layers with opacity may result in wrong blending.
commit-queue@webkit.org [Wed, 10 Apr 2013 11:48:32 +0000 (11:48 +0000)]
[Texmap] Hierarchy of layers with opacity may result in wrong blending.
https://bugs.webkit.org/show_bug.cgi?id=113732

Patch by Noam Rosenthal <noam@webkit.org> on 2013-04-10
Reviewed by Allan Sandfeld Jensen.

Source/WebCore:

This is a combination of three issues with nested intermediate surfaces:
- glScissor inside an intermediate surface should not be mirrored.
- The current surface should be passed to the next surface in paintOptions.
- When clipping for the non-overlap region, the containing surface offset
should be applied.

Though the changes are separate, they cannot be tested separately as neither
fixes a testable case on its own.

Tests: compositing/overlap-blending/nested-non-overlap-clipping.html
       compositing/overlap-blending/nested-overlap.html

* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::TextureMapperGL::ClipStack::reset):
(WebCore::TextureMapperGL::ClipStack::apply):
(WebCore::TextureMapperGL::beginPainting):
(WebCore::BitmapTextureGL::clearIfNeeded):
* platform/graphics/texmap/TextureMapperGL.h:
(ClipStack):
    Do not mirror the scissor clip when painting to an FBO.
    Also a minor refactor to avoid reading the viewport values from the driver.

* platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::paintUsingOverlapRegions):
    Apply the offset when clipping for a non-overlap region.
(WebCore::TextureMapperLayer::paintIntoSurface):
    Make sure the current surface is passed to the next one.

LayoutTests:

Added two ref-tests for nested composited overlaps.
This ref-test does not work on Mac due to a slight mismatch opacity value on CoreAnimation.
A new bug has been posted, and TestExpectations has been updated.

* compositing/overlap-blending/nested-non-overlap-clipping-expected.html: Added.
* compositing/overlap-blending/nested-non-overlap-clipping.html: Added.
* compositing/overlap-blending/nested-overlap-expected.html: Added.
* compositing/overlap-blending/nested-overlap.html: Added.
* platform/mac/TestExpectations: Skipped new tests and created bug.

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

9 years agoCreate fewer tiles when page is loading
antti@apple.com [Wed, 10 Apr 2013 11:34:53 +0000 (11:34 +0000)]
Create fewer tiles when page is loading
https://bugs.webkit.org/show_bug.cgi?id=114294

Source/WebCore:

Reviewed by Anders Carlsson.

We currently create speculative tiles immediately. Page is often changing rapidly during loading and
keeping the speculative tiles up to date creates extra work.

Tests: platform/mac-wk2/tiled-drawing/tile-coverage-after-scroll-speculative.html
       platform/mac-wk2/tiled-drawing/tile-coverage-speculative.html

       * loader/FrameLoader.cpp:
(WebCore::FrameLoader::loadProgressingStatusChanged):
* page/FrameView.cpp:
(WebCore::FrameView::adjustTiledBackingCoverage):
(WebCore::FrameView::setWasScrolledByUser):

    User scrolling enables speculative tiling no matter what the load status.

* page/FrameView.h:
* rendering/RenderLayerBacking.cpp:
(WebCore::computeTileCoverage):
(WebCore::RenderLayerBacking::adjustTiledBackingCoverage):

    Cover only the viewport during loading.

LayoutTests:

Reviewed by Anders Carlsson.

Reduced initial tile counts and new tests for speculative tiles.

* platform/mac-wk2/tiled-drawing/fixed-background/fixed-background-no-image-expected.txt:
* platform/mac-wk2/tiled-drawing/tile-coverage-after-scroll-expected.txt:
* platform/mac-wk2/tiled-drawing/tile-coverage-after-scroll-speculative-expected.txt: Added.
* platform/mac-wk2/tiled-drawing/tile-coverage-after-scroll-speculative.html: Added.
* platform/mac-wk2/tiled-drawing/tile-coverage-scroll-to-bottom-expected.txt:
* platform/mac-wk2/tiled-drawing/tile-coverage-speculative-expected.txt: Added.
* platform/mac-wk2/tiled-drawing/tile-coverage-speculative.html: Added.
* platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-expected.txt:
* platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-scrolled-expected.txt:
* platform/mac-wk2/tiled-drawing/use-tiled-drawing-expected.txt:
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-body-layer-expected.txt:
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-expected.txt:
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-opacity-html-expected.txt:
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-positioned-expected.txt:
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-transformed-html-expected.txt:
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed-expected.txt:
* platform/mac/platform/mac-wk2/tiled-drawing/fixed-background/fixed-html-background-expected.txt:

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

9 years ago[GTK] Add support for Page Visibility
mario@webkit.org [Wed, 10 Apr 2013 10:48:30 +0000 (10:48 +0000)]
[GTK] Add support for Page Visibility
https://bugs.webkit.org/show_bug.cgi?id=97324

Patch by Anton Obzhirov <a.obzhirov@samsung.com> on 2013-04-10
Reviewed by Sam Weinig.

.:

Page Visibility has been enabled for GTK port.
New GTK unittest has been added.

* Source/autotools/SetupWebKitFeatures.m4:

Source/WebKit/gtk:

Implemented access to page visibility API for GTK test runner.

* WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
(DumpRenderTreeSupportGtk::setPageVisibility):
* WebCoreSupport/DumpRenderTreeSupportGtk.h:

Source/WebKit2:

Added new unittest to test page visibility using GTK Widget visibility API.

* UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
(testWebViewPageVisibility):
(beforeAll):
* UIProcess/API/gtk/tests/WebViewTest.cpp:
(WebViewTest::showInWindow):
* UIProcess/API/gtk/tests/WebViewTest.h:

Tools:

Implemented test runner API for page visibility layout tests.

* DumpRenderTree/gtk/TestRunnerGtk.cpp:
(TestRunner::resetPageVisibility):
(TestRunner::setPageVisibility):
* Scripts/webkitperl/FeatureList.pm:

LayoutTests:

* platform/gtk/TestExpectations:

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

9 years ago[BlackBerry] RenderThemeBlackBerry: get rid of all the SKIA code
commit-queue@webkit.org [Wed, 10 Apr 2013 09:47:41 +0000 (09:47 +0000)]
[BlackBerry] RenderThemeBlackBerry: get rid of all the SKIA code
https://bugs.webkit.org/show_bug.cgi?id=114339

Patch by Alberto Garcia <agarcia@igalia.com> on 2013-04-10
Reviewed by Carlos Garcia Campos.

* platform/blackberry/RenderThemeBlackBerry.cpp:
(WebCore::RenderThemeBlackBerry::paintMediaSliderTrack):
(WebCore::RenderThemeBlackBerry::paintMediaSliderThumb):
(WebCore::RenderThemeBlackBerry::paintMediaVolumeSliderTrack):
(WebCore::RenderThemeBlackBerry::paintMediaVolumeSliderThumb):

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

9 years ago[ATK] REGRESSION(r148033): Add a stub for AccessibilityUIElement::pathDescription().
rakuco@webkit.org [Wed, 10 Apr 2013 09:17:09 +0000 (09:17 +0000)]
[ATK] REGRESSION(r148033): Add a stub for AccessibilityUIElement::pathDescription().
https://bugs.webkit.org/show_bug.cgi?id=114342

Reviewed by Gyuyoung Kim.

Commit 148033 only added an implementation for the Mac port, which made
other ports fail most tests since loading the injected bundle failed
with a missing symbol.

* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
(WTR::AccessibilityUIElement::pathDescription):

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

9 years ago[Qt] Unreviewed gardening. Rebaselining after r148049.
zarvai@inf.u-szeged.hu [Wed, 10 Apr 2013 09:06:48 +0000 (09:06 +0000)]
[Qt] Unreviewed gardening. Rebaselining after r148049.

* platform/qt-5.0-wk2/compositing/iframes/page-cache-layer-tree-expected.txt: Removed.
* platform/qt/compositing/iframes/page-cache-layer-tree-expected.txt: Renamed from LayoutTests/platform/qt-5.0-wk1/compositing/iframes/page-cache-layer-tree-expected.txt.
* platform/qt/fast/multicol/shadow-breaking-expected.txt:
* platform/qt/svg/css/composite-shadow-text-expected.png:
* platform/qt/svg/css/composite-shadow-text-expected.txt:
* platform/qt/svg/css/group-with-shadow-expected.txt:
* platform/qt/svg/css/path-with-shadow-expected.txt:
* platform/qt/svg/css/shadow-and-opacity-expected.txt:
* platform/qt/svg/css/shadow-breaking-expected.png: Added.
* platform/qt/svg/css/text-shadow-multiple-expected.txt:
* platform/qt/transitions/svg-text-shadow-transition-expected.txt:

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

9 years ago[EFL] Add spell checking option to MiniBrowser
commit-queue@webkit.org [Wed, 10 Apr 2013 07:55:54 +0000 (07:55 +0000)]
[EFL] Add spell checking option to MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=114282

Patch by Artur Moryc <a.moryc@samsung.com> on 2013-04-10
Reviewed by Ryosuke Niwa.

Spell checking is enabled by adding a flag (t/text-checking)
with launching MiniBrowser.

* MiniBrowser/efl/main.c:
(window_create):
(elm_main):

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

9 years agoREGRESSION (r146518): WebKit2APITests/TestInspector is failing
zandobersek@gmail.com [Wed, 10 Apr 2013 07:39:18 +0000 (07:39 +0000)]
REGRESSION (r146518): WebKit2APITests/TestInspector is failing
https://bugs.webkit.org/show_bug.cgi?id=113281

Reviewed by Darin Adler.

Source/WebKit2:

Changes to the WebInspectorProxy opening processing in r146518 caused the change in how the GTK-specific
WebInspectorProxy code operates, specifically the 'bring-to-front' signal is not emitted anymore when opening the
inspector due to the WebInspectorProxy::bringToFront method now only bringing the inspector window to front if it exists
and opening it (and thus unable to bring it to front) otherwise.

Closing of the inspector through the didClose method is now done immediately after sending the WebInspector::Close()
message to the WebProcess rather than waiting for the WebProcess to communicate back the order of closing. Due to this
the relevant code in the test cases had to be changed to not run the loop but rather just check that the closing was
successful.

(InspectorTest::InspectorTest): Remove the initialization of the now redundant m_quitOnBringToFront member variable.
(InspectorTest::bringToFront): Quit the loop without checking the removed member variable.
(InspectorTest::closed): Do not quit the loop as it is not run anymore.
(InspectorTest::showIdle): A helper method that asynchronously calls the webkit_web_inspector_show method, removing some
unnecessary complexity about under what exact circumstances to quit the loop in open-window/bring-to-front callbacks.
(InspectorTest::show): Replaces the showAndWaitUntilFinished method, adding an idle invocation of the showIdle helper
method and running the loop.
(InspectorTest::close): Formerly closeAndWaitUntilClosed, now does not run the loop anymore as there's no need for it.
(testInspectorDefault): Only the window opening event is now expected upon showing the inspector for the first time.
Adjusting callsites to use InspectorTest::show and InspectorTest::close instead of
InspectorTest::showAndWaitUntilFinished and InspectorTest::showAndWaitUntilFinished.
(CustomInspectorTest::destroyWindow): Formerly destroyWindowAndWaitUntilClosed, the closing is not asynchronous anymore
so the loop is not run.
(testInspectorManualAttachDetach): Only the window opening event is now expected upon showing the inspector for the first time.
Adjusting callsites to use InspectorTest::show and InspectorTest::close instead of
InspectorTest::showAndWaitUntilFinished and InspectorTest::showAndWaitUntilFinished.
(testInspectorCustomContainerDestroyed): Adjusting callsites to use InspectorTest::show and CustomInspectorTest::destroyWindow
instead of InspectorTest::showAndWaitUntilFinished and CustomInspectorTest::destroyWindowAndWaitUntilClosed.
* UIProcess/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::show): When showing a connected WebInspectorProxy, call the bringToFront method which will
open the inspector if it's not yet visible or bring it to the front otherwise.

Tools:

* Scripts/run-gtk-tests:
(TestRunner): Remove the skip entry for the WebKit2APITests/TestInspector unit test.

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

9 years ago[GTK][WK2] Implement WebInspectorProxy::platformInspectedWindowWidth
zandobersek@gmail.com [Wed, 10 Apr 2013 07:38:02 +0000 (07:38 +0000)]
[GTK][WK2] Implement WebInspectorProxy::platformInspectedWindowWidth
https://bugs.webkit.org/show_bug.cgi?id=113498

Patch by Zan Dobersek <zandobersek@gmail.com> on 2013-04-10
Reviewed by Martin Robinson.

The method was introduced in r147004.

* UIProcess/API/gtk/tests/TestInspector.cpp: Specify the gMinimumAttachedInspectorWidth variable, reflecting the value
of WebInspectorProxy::minimumAttachedWidth. Use it as the width to which the inspected view should be resized in
InspectorTest::resizeViewAndAttach.
* UIProcess/gtk/WebInspectorProxyGtk.cpp:
(WebKit::WebInspectorProxy::platformInspectedWindowHeight): Use the gtk_widget_get_allocated_height method to return the
widget height.
(WebKit::WebInspectorProxy::platformInspectedWindowWidth): Newly implemented, similarly uses the
gtk_widget_get_allocated_width method to return the widget width.

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

9 years agoREGRESSION (r147719): Failures in two a11y tests on GTK
zandobersek@gmail.com [Wed, 10 Apr 2013 07:36:42 +0000 (07:36 +0000)]
REGRESSION (r147719): Failures in two a11y tests on GTK
https://bugs.webkit.org/show_bug.cgi?id=114259

Reviewed by Ryosuke Niwa.

No new tests - covered by existing tests.

Partially revert r147719, restoring the possible creation of the AXObject cache
and the subsequent call to its handleFocusedUIElementChanged method. Removing this
code caused regressions in accessibility tests on the GTK port, so the comment about
the AXObject cache is adjusted accordingly.

* dom/Document.cpp:
(WebCore::Document::setFocusedNode):

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

9 years agoUnreviewed GTK gardening. Rebaselining after r148049.
zandobersek@gmail.com [Wed, 10 Apr 2013 07:18:22 +0000 (07:18 +0000)]
Unreviewed GTK gardening. Rebaselining after r148049.

* platform/gtk/fast/multicol/shadow-breaking-expected.txt:
* platform/gtk/svg/css/composite-shadow-text-expected.txt:
* platform/gtk/svg/css/group-with-shadow-expected.txt:
* platform/gtk/svg/css/path-with-shadow-expected.txt:
* platform/gtk/svg/css/shadow-and-opacity-expected.txt:
* platform/gtk/svg/css/shadow-changes-expected.txt:
* platform/gtk/svg/css/text-gradient-shadow-expected.txt:
* platform/gtk/svg/css/text-shadow-multiple-expected.txt:
* platform/gtk/svg/custom/transform-with-shadow-and-gradient-expected.txt:
* platform/gtk/transitions/svg-text-shadow-transition-expected.txt:

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

9 years ago[GStreamer] playbin uri getter is invalid
philn@webkit.org [Wed, 10 Apr 2013 06:59:28 +0000 (06:59 +0000)]
[GStreamer] playbin uri getter is invalid
https://bugs.webkit.org/show_bug.cgi?id=113884

Reviewed by Martin Robinson.

Source/WebCore:

When loading a new media location use the url stored as a member
variable instead of the one stored as a playbin property. The uri
property semantic changed in playbin since 0.10.36+. One should
now use current-uri but to avoid ifdefs depending on GStreamer
version we simply use the url already known as member variable.

Test: http/tests/media/video-redirect.html

* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

LayoutTests:

New test for Quicktime reference movie redirect
support.

* http/tests/media/resources/redirect-to-counting-captioned.mov: Added.
* http/tests/media/video-redirect-expected.txt: Added.
* http/tests/media/video-redirect.html: Added.

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