WebKit-https.git
9 years agowatchlist should not CC the bug reporter
levin@chromium.org [Fri, 28 Oct 2011 19:58:04 +0000 (19:58 +0000)]
watchlist should not CC the bug reporter
https://bugs.webkit.org/show_bug.cgi?id=71079

Reviewed by Adam Barth.

Tested by test_apply_watch_list_local (webkitpy.tool.steps.applywatchlist_unittest.ApplyWatchListTest)
which remains upchanged and thus verifies that the reporter doesn't get added to the cc line.

* Scripts/webkitpy/tool/commands/applywatchlistlocal_unittest.py: Add the new email in the output.
* Scripts/webkitpy/tool/mocktool.py: Change the reporter and make them one of the people to cc.
* Scripts/webkitpy/tool/steps/applywatchlist.py: Remove the reporter from the cc list.

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

9 years agoFix builds which have ACCELERATED_COMPOSITING disabled.
simon.fraser@apple.com [Fri, 28 Oct 2011 19:42:43 +0000 (19:42 +0000)]
Fix builds which have ACCELERATED_COMPOSITING disabled.

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

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

9 years agoUnreviewed gardening.
johnnyg@google.com [Fri, 28 Oct 2011 19:36:50 +0000 (19:36 +0000)]
Unreviewed gardening.

* platform/chromium-cg-mac-leopard/fast/css/child-style-can-override-visited-style-expected.png: Added.
* platform/chromium-cg-mac-leopard/fullscreen/parent-flow-inline-with-block-child-expected.png: Removed.
* platform/chromium-cg-mac-snowleopard/fullscreen/full-screen-render-inline-expected.png: Removed.
* platform/chromium-cg-mac-snowleopard/svg/hixie: Added.
* platform/chromium-cg-mac-snowleopard/svg/hixie/perf: Added.
* platform/chromium-cg-mac-snowleopard/svg/hixie/perf/002-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla_expected_failures/bugs/bug14007-2-expected.png:
* platform/chromium-cg-mac/svg/hixie/perf/002-expected.png: Removed.
* platform/chromium-linux-x86/svg/hixie/perf/002-expected.png:
* platform/chromium-linux/svg/hixie/perf/002-expected.png:
* platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug14007-2-expected.png:
* platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug14007-2-expected.txt:
* platform/chromium-mac-snowleopard/fast/backgrounds/background-leakage-expected.png:
* platform/chromium-mac-snowleopard/fast/backgrounds/background-leakage-transforms-expected.png:
* platform/chromium-mac-snowleopard/fast/borders/borderRadiusDashed06-expected.png:
* platform/chromium-mac-snowleopard/fast/text/emphasis-overlap-expected.png:
* platform/chromium-mac-snowleopard/fullscreen/full-screen-render-inline-expected.png: Removed.
* platform/chromium-mac-snowleopard/fullscreen/parent-flow-inline-with-block-child-expected.png: Removed.
* platform/chromium-mac-snowleopard/media/audio-repaint-expected.png:
* platform/chromium-mac-snowleopard/svg/batik/text/textOnPath-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/hixie: Added.
* platform/chromium-mac-snowleopard/svg/hixie/perf: Added.
* platform/chromium-mac-snowleopard/svg/hixie/perf/002-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/hixie/perf/002-expected.txt: Added.
* platform/chromium-mac-snowleopard/tables/mozilla_expected_failures/bugs/bug14007-2-expected.png:
* platform/chromium-mac/svg/batik/text/textOnPath-expected.png: Removed.
* platform/chromium-mac/svg/hixie/perf/002-expected.png: Removed.
* platform/chromium-mac/svg/hixie/perf/002-expected.txt: Removed.
* platform/chromium-win-vista/svg/batik/text: Removed.
* platform/chromium-win-xp/svg/batik/text/textOnPath-expected.png: Added.
* platform/chromium-win/svg/batik/text/textOnPath-expected.png:
* platform/chromium-win/tables/mozilla_expected_failures/bugs/bug14007-2-expected.png:
* platform/chromium-win/tables/mozilla_expected_failures/bugs/bug14007-2-expected.txt:
* platform/chromium/fast/js/array-prototype-properties-expected.txt: Replaced.
* platform/chromium/fast/js/exception-sequencing-binops2-expected.txt: Removed.
* platform/chromium/fast/js/kde/RegExp-expected.txt: Removed.
* platform/chromium/fast/js/regexp-caching-expected.txt: Removed.
* platform/chromium/tables/mozilla_expected_failures/bugs/bug14007-2-expected.txt: Removed.
* platform/chromium/test_expectations.txt:

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

9 years agoRemove LegacyDefaultOptionalArguments flag from inspector IDLs
arv@chromium.org [Fri, 28 Oct 2011 19:29:00 +0000 (19:29 +0000)]
Remove LegacyDefaultOptionalArguments flag from inspector IDLs
https://bugs.webkit.org/show_bug.cgi?id=65748

Reviewed by Adam Barth.

Covered by existing tests.

* inspector/InjectedScriptHost.idl:
* inspector/InspectorFrontendHost.idl:
* inspector/JavaScriptCallFrame.idl:

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

9 years agoIndexedDB: Database metadata changes should be tied to transaction
commit-queue@webkit.org [Fri, 28 Oct 2011 19:22:27 +0000 (19:22 +0000)]
IndexedDB: Database metadata changes should be tied to transaction
https://bugs.webkit.org/show_bug.cgi?id=70974

Patch by Joshua Bell <jsbell@chromium.org> on 2011-10-28
Reviewed by Tony Chang.

Source/WebCore:

Database metadata (that is, the version string) was rolled back
on abort by an abort task. If the abort task didn't run e.g.
due to a crash, the metadata would not be reverted. All of the
other store/index/data changes were written into the transaction
itself, so the metadata now is too. Refactored the metadata
get/create/update methods for clarity as well.

Note that the new tests don't actually verify that the code handles
this case; that will need to be done with persistence tests
that span multiple runs of the browser and induce crashes.
The new tests do verify that these changes don't cause regressions
not caught by other tests.

Tests: storage/indexeddb/open-during-transaction.html
       storage/indexeddb/version-change-abort.html

* storage/IDBBackingStore.h:
* storage/IDBDatabaseBackendImpl.cpp:
(WebCore::IDBDatabaseBackendImpl::IDBDatabaseBackendImpl):
(WebCore::IDBDatabaseBackendImpl::setVersionInternal):
* storage/IDBLevelDBBackingStore.cpp:
(WebCore::IDBLevelDBBackingStore::getIDBDatabaseMetaData):
(WebCore::IDBLevelDBBackingStore::createIDBDatabaseMetaData):
(WebCore::IDBLevelDBBackingStore::updateIDBDatabaseMetaData):
* storage/IDBLevelDBBackingStore.h:

LayoutTests:

* storage/indexeddb/open-during-transaction-expected.txt: Added.
* storage/indexeddb/open-during-transaction.html: Added.
* storage/indexeddb/version-change-abort-expected.txt: Added.
* storage/indexeddb/version-change-abort.html: Added.

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

9 years agoUse enum instead of bool to represent -webkit-column-span property.
macpherson@chromium.org [Fri, 28 Oct 2011 19:15:26 +0000 (19:15 +0000)]
Use enum instead of bool to represent -webkit-column-span property.
https://bugs.webkit.org/show_bug.cgi?id=70867

Reviewed by Darin Adler.

Covered by existing tests.

* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore::CSSPrimitiveValue::operator ColumnSpan):
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::applyProperty):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::createAnonymousColumnSpanBlock):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::propagateStyleToAnonymousChildren):
* rendering/style/RenderStyle.h:
(WebCore::InheritedFlags::columnSpan):
(WebCore::InheritedFlags::setColumnSpan):
(WebCore::InheritedFlags::initialColumnSpan):
* rendering/style/RenderStyleConstants.h:
* rendering/style/StyleMultiColData.h:

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

9 years agoDe-virtualize isGlobalObject, isVariableObject, isActivationObject, and isErrorInstan...
mhahnenberg@apple.com [Fri, 28 Oct 2011 19:08:24 +0000 (19:08 +0000)]
De-virtualize isGlobalObject, isVariableObject, isActivationObject, and isErrorInstance in JSObject
https://bugs.webkit.org/show_bug.cgi?id=70968

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

* API/JSCallbackObject.cpp: Added two specializations for createStructure that use different JSTypes in their
TypeInfo.  Had to also create a specialization for JSNonFinalObject, even JSGlobalObject was the only that
needed it because Windows wouldn't build without it.
(JSC::::createStructure):
* API/JSCallbackObject.h:
* JavaScriptCore.exp:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
* runtime/ErrorInstance.h: Removed virtual function and changed JSType provided to TypeInfo in createStructure.
(JSC::ErrorInstance::createStructure):
* runtime/ErrorPrototype.h: Ditto
(JSC::ErrorPrototype::createStructure):
* runtime/JSActivation.h: Ditto
(JSC::JSActivation::createStructure):
* runtime/JSGlobalObject.h: Ditto
(JSC::JSGlobalObject::createStructure):
* runtime/JSObject.h: De-virtualized functions.  They now check the JSType of the object for the corresponding type.
(JSC::JSObject::isGlobalObject):
(JSC::JSObject::isVariableObject):
(JSC::JSObject::isActivationObject):
(JSC::JSObject::isErrorInstance):
* runtime/JSType.h: Added new types for GlobalObject, VariableObject, ActivationObject, and ErrorInstance.
* runtime/JSVariableObject.cpp: Removed virtual function.
* runtime/JSVariableObject.h: Changed JSType provided to TypeInfo in createStructure.
(JSC::JSVariableObject::createStructure):

Source/WebCore:

No new tests.

* bindings/js/JSDOMGlobalObject.h: Changed JSType provided to TypeInfo in createStructure since this
class inherits from JSGlobalObject.
(WebCore::JSDOMGlobalObject::createStructure):
* bindings/js/JSDOMWindowBase.h: Ditto
(WebCore::JSDOMWindowBase::createStructure):
* bindings/js/JSWorkerContextBase.h: Ditto
(WebCore::JSWorkerContextBase::createStructure):
* bindings/scripts/CodeGeneratorJS.pm: Added extra check to make sure subclasses of JSGlobalObject,
namely JSDOMWindow and JSWorkerContext, get their special JSType in their createStructure function.
(GenerateHeader):

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

9 years agoAdded some missing results for compositing visibilty tests.
simon.fraser@apple.com [Fri, 28 Oct 2011 18:57:35 +0000 (18:57 +0000)]
Added some missing results for compositing visibilty tests.

* platform/mac/compositing/visibility/visibility-composited-expected.txt: Added.
* platform/mac/compositing/visibility/visibility-composited-transforms-expected.txt: Added.
* platform/mac/compositing/visibility/visibility-image-layers-expected.txt: Added.

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

9 years agoUnreviewed, rolling out r98736.
commit-queue@webkit.org [Fri, 28 Oct 2011 18:43:36 +0000 (18:43 +0000)]
Unreviewed, rolling out r98736.
http://trac.webkit.org/changeset/98736
https://bugs.webkit.org/show_bug.cgi?id=71125

This patch broke perf/array-binary-search.html test (Requested
by annacc on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-10-28

Source/WebCore:

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::loadTextTracks):
(WebCore::HTMLMediaElement::addTrack):
* html/HTMLMediaElement.h:
* html/HTMLTrackElement.cpp:
(WebCore::HTMLTrackElement::insertedIntoTree):
(WebCore::HTMLTrackElement::willRemove):
* html/HTMLTrackElement.h:
* html/LoadableTextTrack.cpp:
(WebCore::LoadableTextTrack::cueLoadingCompleted):

LayoutTests:

* media/track/track-load-error-readyState-expected.txt: Removed.
* media/track/track-load-error-readyState.html: Removed.
* media/track/track-load-from-element-readyState-expected.txt: Removed.
* media/track/track-load-from-element-readyState.html: Removed.
* media/track/track-load-from-src-readyState-expected.txt: Removed.
* media/track/track-load-from-src-readyState.html: Removed.

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

9 years agoTesting allowed identifier chars which are greater than 126
zherczeg@webkit.org [Fri, 28 Oct 2011 18:40:14 +0000 (18:40 +0000)]
Testing allowed identifier chars which are greater than 126
https://bugs.webkit.org/show_bug.cgi?id=71097

Reviewed by Darin Adler.

* fast/css/parsing-css-nonascii-expected.txt: Added.
* fast/css/parsing-css-nonascii.html: Added.

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

9 years agoRenderTableSection::recalcCells should not free its grid
jchaffraix@webkit.org [Fri, 28 Oct 2011 18:04:14 +0000 (18:04 +0000)]
RenderTableSection::recalcCells should not free its grid
https://bugs.webkit.org/show_bug.cgi?id=71056

Reviewed by Darin Adler.

Refactoring only, no change in behavior.

r98614 had the bad side effect of clearing the row vector (m_grid) on
the RenderTableSection when doing a recalcCells. This change removes the
unneeded free and inline the |row| field into the RowStruct as it made
no sense to have it as a pointer.

* rendering/RenderTableSection.cpp:
(WebCore::setRowLogicalHeightToRowStyleLogicalHeightIfNotRelative):
(WebCore::RenderTableSection::addChild):
(WebCore::RenderTableSection::setCellLogicalWidths):
(WebCore::RenderTableSection::calcRowLogicalHeight):
(WebCore::RenderTableSection::firstLineBoxBaseline):
(WebCore::RenderTableSection::appendColumn):
(WebCore::RenderTableSection::splitColumn):
Mechanical changes now that |row| is a member of RowStruct.

(WebCore::RenderTableSection::~RenderTableSection): Clear our row vector.

(WebCore::RenderTableSection::ensureRows):
(WebCore::RenderTableSection::recalcCells):
Those 2 functions were refactored to use fillRowsWithDefaultStartingAtPosition.

(WebCore::RenderTableSection::fillRowsWithDefaultStartingAtPosition):
Factored the code to fill the RowStruct structure with default values.

* rendering/RenderTableSection.h:
(WebCore::RenderTableSection::cellAt):
(WebCore::RenderTableSection::primaryCellAt):
More mechanical change after the |row| field change.

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

9 years agoUnskip tables/mozilla_expected_failures/bugs/bug14007-2.html
rniwa@webkit.org [Fri, 28 Oct 2011 18:00:36 +0000 (18:00 +0000)]
Unskip tables/mozilla_expected_failures/bugs/bug14007-2.html
since the test was rebaselined in r98691.

Also enable platform/mac/editing/deleting/backward-delete.html on Chromium Mac
and skip it again on Chromium Windows and Linux.

* platform/chromium/test_expectations.txt:
* platform/gtk/Skipped:
* platform/mac/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:

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

9 years agoImplement load notification and events for <track>.
annacc@chromium.org [Fri, 28 Oct 2011 17:54:32 +0000 (17:54 +0000)]
Implement load notification and events for <track>.
https://bugs.webkit.org/show_bug.cgi?id=71054

Reviewed by Eric Carlson.

Source/WebCore:

Tests: media/track/track-load-error-readyState.html
       media/track/track-load-from-element-readyState.html
       media/track/track-load-from-src-readyState.html

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::loadTextTracks):
(WebCore::HTMLMediaElement::loadNextTextTrack):
(WebCore::HTMLMediaElement::trackWasAdded):
(WebCore::HTMLMediaElement::trackWillBeRemoved):
(WebCore::HTMLMediaElement::trackSourceChanged):
* html/HTMLMediaElement.h:
* html/HTMLTrackElement.cpp:
(WebCore::HTMLTrackElement::insertedIntoTree):
(WebCore::HTMLTrackElement::willRemove):
(WebCore::HTMLTrackElement::parseMappedAttribute):
(WebCore::HTMLTrackElement::attributeChanged):
* html/HTMLTrackElement.h:
* html/LoadableTextTrack.cpp:
(WebCore::LoadableTextTrack::cueLoadingCompleted):

LayoutTests:

* media/track/track-load-error-readyState-expected.txt: Added.
* media/track/track-load-error-readyState.html: Added.
* media/track/track-load-from-element-readyState-expected.txt: Added.
* media/track/track-load-from-element-readyState.html: Added.
* media/track/track-load-from-src-readyState-expected.txt: Added.
* media/track/track-load-from-src-readyState.html: Added.

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

9 years agoSource/WebCore: The HTML5 video element in Safari does not respect "visibility:hidden...
simon.fraser@apple.com [Fri, 28 Oct 2011 17:46:38 +0000 (17:46 +0000)]
Source/WebCore: The HTML5 video element in Safari does not respect "visibility:hidden" CSS property
https://bugs.webkit.org/show_bug.cgi?id=38829

Reviewed by James Robinson.

Make compositing and CSS visibility play nicely together.

The main issue was that an old optimization (see bug 4377) caused
visibility:hidden layers to not appear in the z-order lists, but those
layers could still become composited, but would remain detached. In addition,
composited layers which were visibility:hidden would become visible sometimes.

With this fix, the z-order lists always contain all layers when the page
is in compositing mode. GraphicsLayer is changed to ensure that visibility:hidden
layers show no content, and visible descendants of hidden layers work correctly.

Tests: compositing/visibility/visibility-composited-transforms.html
       compositing/visibility/visibility-composited.html
       compositing/visibility/visibility-image-layers-dynamic.html
       compositing/visibility/visibility-image-layers.html

* platform/graphics/GraphicsLayer.cpp:
(WebCore::GraphicsLayer::GraphicsLayer): Init m_contentsVisible to true.
(WebCore::GraphicsLayer::dumpProperties): Dump m_contentsVisible if not true.
* platform/graphics/GraphicsLayer.h:
(WebCore::GraphicsLayer::contentsAreVisible): Getter for m_contentsVisible.
(WebCore::GraphicsLayer::setContentsVisible): Setter for m_contentsVisible.
* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::setContentsVisible): Override setContentsVisible.
(WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): Handle ContentsVisibilityChanged
flag
(WebCore::GraphicsLayerCA::updateSublayerList): Only parent the m_contentsLayer if the layer
has visible contents.
(WebCore::GraphicsLayerCA::updateContentsVisibility): For bits painted into the layer itself,
we hide it by clearing the backing store.
* platform/graphics/ca/GraphicsLayerCA.h: Removed obsolete comment on the DrawsContentChanged flag,
added ContentsVisibilityChanged flag.
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::updateZOrderLists): If we're in compositing mode, include all layers
in the z-order lists.
(WebCore::RenderLayer::collectLayers): New param to specify whether we need to collect all layers.
* rendering/RenderLayer.h:
(WebCore::RenderLayer::hasVisibleDescendant): Add comment about the need for an assertion in hasVisibleContent()
, and assertion in hasVisibleDescendant().
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): Call setContentsVisible() on the GraphicsLayer.
(WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer): We can use simple container layers in cases
where visibility:hidden causes layer content to not be drawn.
(WebCore::RenderLayerBacking::hasVisibleNonCompositingDescendants): Renamed from hasNonCompositingDescendants()
because it now also looks at visibility to decide when things are visible.
* rendering/RenderLayerBacking.h: hasNonCompositingDescendants() renamed to hasVisibleNonCompositingDescendants().

LayoutTests: The HTML5 video element in Safari does not respect "visibility:hidden" CSS property
https://bugs.webkit.org/show_bug.cgi?id=38829

Test various configurations of compositing layers and visibility.

Reviewed by James Robinson.

* compositing/visibility/visibility-composited-expected.png: Added.
* compositing/visibility/visibility-composited-transforms-expected.png: Added.
* compositing/visibility/visibility-composited-transforms.html: Added.
* compositing/visibility/visibility-composited.html: Added.
* compositing/visibility/visibility-image-layers-dynamic-expected.txt: Added.
* compositing/visibility/visibility-image-layers-dynamic.html: Added.
* compositing/visibility/visibility-image-layers-expected.png: Added.
* compositing/visibility/visibility-image-layers.html: Added.

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

9 years agoJS Test Harness: Remove js-test-post-function.js
arv@chromium.org [Fri, 28 Oct 2011 17:35:50 +0000 (17:35 +0000)]
JS Test Harness: Remove js-test-post-function.js
https://bugs.webkit.org/show_bug.cgi?id=70959

Reviewed by Ojan Vafai.

This moves isSuccessfullyParsed to js-test-pre.js and removes js-test-post-function.js and all references to it.

* fast/js/resources/js-test-post-function.js: Removed.
* fast/js/resources/js-test-pre.js:
(isSuccessfullyParsed): Moved here from js-test-post-function.js

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

9 years agoempty-urls.html needs to stop being flaky.
japhet@chromium.org [Fri, 28 Oct 2011 16:58:33 +0000 (16:58 +0000)]
empty-urls.html needs to stop being flaky.
Because it was in http/tests/loading, it output
frame load callbacks, and it was unpredictable whether
the callback for onload or for the load completing would
be called first. Ergo, move the test to http/tests/misc,
and remove the logic which failed to enforce a frame load
callback ordering.
https://bugs.webkit.org/show_bug.cgi?id=67359

Reviewed by Adam Barth.

* http/tests/loading/empty-urls-expected.txt: Removed.
* http/tests/loading/empty-urls.html: Removed.
* http/tests/misc/empty-urls-expected.txt: Copied from LayoutTests/http/tests/loading/empty-urls-expected.txt.
* http/tests/misc/empty-urls.html: Copied from LayoutTests/http/tests/loading/empty-urls.html.
* platform/chromium/test_expectations.txt:

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

9 years ago[GTK] Build fixes for glib 2.31 (current master)
philn@webkit.org [Fri, 28 Oct 2011 16:47:14 +0000 (16:47 +0000)]
[GTK] Build fixes for glib 2.31 (current master)
https://bugs.webkit.org/show_bug.cgi?id=70679

Reviewed by Martin Robinson.

g_cond_new and g_mutex_new have been replaced by _init
functions. Same for _free, replaced by _clear.

* platform/graphics/gstreamer/VideoSinkGStreamer.cpp:
(webkit_video_sink_init):
(webkit_video_sink_dispose):

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

9 years agoRename a number of methods mentioning JavaScript to just Script instead
jochen@chromium.org [Fri, 28 Oct 2011 16:29:26 +0000 (16:29 +0000)]
Rename a number of methods mentioning JavaScript to just Script instead
https://bugs.webkit.org/show_bug.cgi?id=71105

Reviewed by Adam Barth.

Source/WebCore:

* WebCore.exp.in:
* bindings/ScriptControllerBase.cpp:
(WebCore::ScriptController::canExecuteScripts):
* bindings/v8/V8Proxy.cpp:
(WebCore::V8Proxy::handleOutOfMemory):
* loader/FrameLoaderClient.h:
(WebCore::FrameLoaderClient::allowScript):
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::canRequest):
* page/Settings.cpp:
(WebCore::Settings::Settings):
(WebCore::Settings::setScriptEnabled):
* page/Settings.h:
(WebCore::Settings::isScriptEnabled):
* svg/graphics/SVGImage.cpp:
(WebCore::SVGImage::dataChanged):

Source/WebKit/chromium:

* src/FrameLoaderClientImpl.cpp:
(WebKit::FrameLoaderClientImpl::allowScript):
* src/FrameLoaderClientImpl.h:
* src/WebFrameImpl.cpp:
(WebKit::WebFrameImpl::collectGarbage):
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setJavaScriptEnabled):

Source/WebKit/efl:

* WebCoreSupport/FrameLoaderClientEfl.cpp:
(WebCore::FrameLoaderClientEfl::dispatchDidClearWindowObjectInWorld):
* ewk/ewk_view.cpp:
(_ewk_view_priv_new):
(ewk_view_setting_enable_scripts_set):

Source/WebKit/gtk:

* WebCoreSupport/FrameLoaderClientGtk.cpp:
(WebKit::FrameLoaderClient::dispatchDidClearWindowObjectInWorld):
* webkit/webkitwebview.cpp:
(webkit_web_view_update_settings):
(webkit_web_view_settings_notify):

Source/WebKit/mac:

* WebView/WebView.mm:
(-[WebView _preferencesChanged:]):

Source/WebKit/qt:

* Api/qwebsettings.cpp:
(QWebSettingsPrivate::apply):

Source/WebKit/win:

* WebFrame.cpp:
(WebFrame::dispatchDidClearWindowObjectInWorld):
* WebView.cpp:
(WebView::notifyPreferencesChanged):

Source/WebKit/wince:

* WebView.cpp:
(WebView::WebView):

Source/WebKit/wx:

* WebSettings.cpp:
(wxWebSettings::SetJavaScriptEnabled):
(wxWebSettings::IsJavaScriptEnabled):
* WebView.cpp:
(wxWebView::Create):

Source/WebKit2:

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):

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

9 years agoUnreviewed gardening.
jchaffraix@webkit.org [Fri, 28 Oct 2011 16:22:18 +0000 (16:22 +0000)]
Unreviewed gardening.

* platform/chromium/test_expectations.txt:
Remove fast/replaced/table-percent-height.html that has been passing for at least
a week. Also tighten some tests that have not been passing (but occasionally timing
out) on the flakyness dashboard for some time.

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

9 years agoUnreviewed, skiped failing test inspector/debugger/selected-call-frame-after-formatti...
vsevik@chromium.org [Fri, 28 Oct 2011 14:57:53 +0000 (14:57 +0000)]
Unreviewed, skiped failing test inspector/debugger/selected-call-frame-after-formatting-source.html.

* platform/mac/Skipped:

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

9 years agoAdd watchlist for QtWebKit2 API and for WK2's Qt specific files.
zoltan@webkit.org [Fri, 28 Oct 2011 14:52:19 +0000 (14:52 +0000)]
Add watchlist for QtWebKit2 API and for WK2's Qt specific files.
https://bugs.webkit.org/show_bug.cgi?id=71116

Reviewed by David Levin.

* Scripts/webkitpy/common/config/watchlist:

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

9 years ago[Qt] Unreviewed gardening.
ossy@webkit.org [Fri, 28 Oct 2011 14:42:56 +0000 (14:42 +0000)]
[Qt] Unreviewed gardening.

* platform/qt-5.0/Skipped:
* platform/qt-wk2/Skipped:

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

9 years ago[Qt][WK2] Unreviewed gardening.
ossy@webkit.org [Fri, 28 Oct 2011 13:59:58 +0000 (13:59 +0000)]
[Qt][WK2] Unreviewed gardening.

REGRESSION: 5 editing tests fail
https://bugs.webkit.org/show_bug.cgi?id=71117

* platform/qt-wk2/Skipped: Skip failing tests.

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

9 years agoReset line numbers for scripts generated with document.write.
pfeldman@chromium.org [Fri, 28 Oct 2011 13:27:32 +0000 (13:27 +0000)]
Reset line numbers for scripts generated with document.write.
https://bugs.webkit.org/show_bug.cgi?id=71099

Reviewed by Yury Semikhatsky.

Source/JavaScriptCore:

* wtf/text/TextPosition.h:
(WTF::OrdinalNumber::OrdinalNumber):

Source/WebCore:

Test: http/tests/inspector-enabled/document-write.html

* dom/Document.h:
(WebCore::Document::isInDocumentWrite):
* dom/ScriptElement.cpp:
(WebCore::ScriptElement::prepareScript):

LayoutTests:

* http/tests/inspector-enabled/document-write-expected.txt: Added.
* http/tests/inspector-enabled/document-write.html: Added.
* platform/chromium-win/fast/dom/nested-script-exceptions-expected.txt:

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

9 years ago2011-10-28 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Fri, 28 Oct 2011 13:10:36 +0000 (13:10 +0000)]
2011-10-28  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Unsupress css3/font-feature-settings-rendering.html as it should
        pass on Linux after r98716.

        * platform/chromium/test_expectations.txt:

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

9 years ago[Qt] Adapt to QSG* to QQuick* API change in qtdeclarative
ossy@webkit.org [Fri, 28 Oct 2011 13:06:52 +0000 (13:06 +0000)]
[Qt] Adapt to QSG* to QQuick* API change in qtdeclarative
https://bugs.webkit.org/show_bug.cgi?id=70494

One more buildfix. (unreviewed)

* UIProcess/API/qt/qtouchwebpage.cpp:
(computeEffectiveOpacity):
(QTouchWebPage::itemChange):

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

9 years ago[Qt] Adapt to QSG* to QQuick* API change in qtdeclarative
ossy@webkit.org [Fri, 28 Oct 2011 13:06:34 +0000 (13:06 +0000)]
[Qt] Adapt to QSG* to QQuick* API change in qtdeclarative
https://bugs.webkit.org/show_bug.cgi?id=70494

Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2011-10-28
Reviewed by Kenneth Christiansen.

Use QQuick* instead of QSG* as well as QStandardPaths
instead of QDesktopLocation.

Source/WebKit/qt:

* Api/qwebsettings.cpp:
(QWebSettings::enablePersistentStorage):

Source/WebKit2:

* UIProcess/API/qt/qdesktopwebview.cpp:
(QDesktopWebView::QDesktopWebView):
(QDesktopWebView::geometryChanged):
(QDesktopWebView::event):
(QDesktopWebViewPrivate::engine):
* UIProcess/API/qt/qdesktopwebview.h:
* UIProcess/API/qt/qtouchwebpage.cpp:
(QTouchWebPage::QTouchWebPage):
(QTouchWebPage::event):
(QTouchWebPage::geometryChanged):
* UIProcess/API/qt/qtouchwebpage.h:
* UIProcess/API/qt/qtouchwebview.cpp:
(QTouchWebView::QTouchWebView):
(QTouchWebView::geometryChanged):
(QTouchWebView::touchEvent):
* UIProcess/API/qt/qtouchwebview.h:
* UIProcess/API/qt/tests/testwindow.h:
(TestWindow::TestWindow):
(TestWindow::resizeEvent):
* UIProcess/qt/QtDesktopWebPageProxy.cpp:
(QtDesktopWebPageProxy::createPopupMenuProxy):
* UIProcess/qt/QtSGUpdateQueue.cpp:
(WebKit::QtSGUpdateQueue::QtSGUpdateQueue):
* UIProcess/qt/QtSGUpdateQueue.h:
* UIProcess/qt/QtTouchViewInterface.cpp:
(WebKit::QtTouchViewInterface::engine):
* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::contentRectInViewportCoordinates):
(WebKit::QtViewportInteractionEngine::QtViewportInteractionEngine):
* UIProcess/qt/QtViewportInteractionEngine.h:
* UIProcess/qt/WebContextQt.cpp:
(WebKit::defaultDataLocation):
* UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
(WebKit::WebPopupMenuProxyQtDesktop::WebPopupMenuProxyQtDesktop):
* UIProcess/qt/WebPopupMenuProxyQtDesktop.h:
(WebKit::WebPopupMenuProxyQtDesktop::create):

Tools:

* MiniBrowser/qt/BrowserWindow.cpp:
(BrowserWindow::BrowserWindow):
* MiniBrowser/qt/BrowserWindow.h:
* QtTestBrowser/cookiejar.cpp:
(TestBrowserCookieJar::TestBrowserCookieJar):
* QtTestBrowser/launcherwindow.cpp:
(LauncherWindow::setDiskCache):
* WebKitTestRunner/PlatformWebView.h:
* WebKitTestRunner/qt/PlatformWebViewQt.cpp:
(WTR::WrapperWindow::WrapperWindow):
(WTR::WrapperWindow::handleStatusChanged):

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

9 years agoMac build fix after r98711
aroben@apple.com [Fri, 28 Oct 2011 12:37:55 +0000 (12:37 +0000)]
Mac build fix after r98711

* WebCore.xcodeproj/project.pbxproj: Mark ExceptionCodeDescription.h private so WebKit can
find it.

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

9 years ago[Qt] Fix the Ctrl behavior for touch mocking in MiniBrowser.
jocelyn.turcotte@nokia.com [Fri, 28 Oct 2011 12:28:31 +0000 (12:28 +0000)]
[Qt] Fix the Ctrl behavior for touch mocking in MiniBrowser.
https://bugs.webkit.org/show_bug.cgi?id=71106

Reviewed by Simon Hausmann.

Holding Ctrl allows multiple touch points to be held on the screen using
mouse buttons. It would previously only prevent TouchReleased to be sent
and would require another MouseButtonRelease to be sent without holding Ctrl.

This patch makes sure that all held touch points are released when Ctrl
is released if MouseButtonRelease was received.
It also removes the touch QEvent::Type logic since it's currently handled
by QtGui by observing the modified touch points.

* MiniBrowser/qt/MiniBrowserApplication.cpp:
(MiniBrowserApplication::notify):
(MiniBrowserApplication::sendTouchEvent):
* MiniBrowser/qt/MiniBrowserApplication.h:

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

9 years ago[Qt] MiniBrowser needs a -window-size option
kenneth@webkit.org [Fri, 28 Oct 2011 12:20:13 +0000 (12:20 +0000)]
[Qt] MiniBrowser needs a -window-size option
https://bugs.webkit.org/show_bug.cgi?id=70999

Reviewed by Simon Hausmann.

Add an -window-size option useful for testing the viewport handling.
Also clean up the option handling.

* MiniBrowser/qt/BrowserWindow.cpp:
(BrowserWindow::BrowserWindow):
* MiniBrowser/qt/MiniBrowserApplication.cpp:
(MiniBrowserApplication::handleUserOptions):
* MiniBrowser/qt/MiniBrowserApplication.h:
(WindowOptions::WindowOptions):
(WindowOptions::setRequestedWindowSize):
(WindowOptions::requestedWindowSize):
* MiniBrowser/qt/utils.cpp:
(takeOptionValue):
* MiniBrowser/qt/utils.h:

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

9 years ago[Qt] Make the kinetic engine use the same curve and constants as on the N9
kenneth@webkit.org [Fri, 28 Oct 2011 12:18:03 +0000 (12:18 +0000)]
[Qt] Make the kinetic engine use the same curve and constants as on the N9
https://bugs.webkit.org/show_bug.cgi?id=71102

Reviewed by Simon Hausmann.

Now that we are using the QScroller for kinetic scrolling and page
interaction, we need to make sure it uses the same curve (exponential)
and the same values as the MeeGo Touch physics engine used on the N9.

* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::QtViewportInteractionEngine::reset):

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

9 years ago[Chromium] css3/font-feature-settings-rendering.html has incorrect image result after...
antti@apple.com [Fri, 28 Oct 2011 11:47:47 +0000 (11:47 +0000)]
[Chromium] css3/font-feature-settings-rendering.html has incorrect image result after r98542
https://bugs.webkit.org/show_bug.cgi?id=71019

Source/WebCore:

Reviewed by Andreas Kling.

These properties need to be marked inherited too.

Note that the new test case doesn't fail even without the patch. If I understand correctly
the image test in the title is pretty much the only way to see this. However the
new test improves code coverage and protects against future regressions.

Test: fast/css/inherited-properties-rare-text.html

* css/CSSProperty.cpp:
(WebCore::CSSProperty::isInheritedProperty):

LayoutTests:

Reviewed by Andreas Kling.

* fast/css/inherited-properties-rare-text-expected.txt: Added.
* fast/css/inherited-properties-rare-text.html: Added.

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

9 years agoRemove getExceptionCodeDescription()
abarth@webkit.org [Fri, 28 Oct 2011 09:52:28 +0000 (09:52 +0000)]
Remove getExceptionCodeDescription()
https://bugs.webkit.org/show_bug.cgi?id=71103

Reviewed by Eric Seidel.

Source/WebCore:

This function serves no purpose.

* bindings/js/JSDOMBinding.cpp:
(WebCore::setDOMException):
* bindings/objc/ExceptionHandlers.mm:
(WebCore::raiseDOMException):
* bindings/scripts/CodeGeneratorGObject.pm:
():
* bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
(webkit_dom_test_obj_method_that_requires_all_args_and_throws):
(webkit_dom_test_obj_method_with_exception):
(webkit_dom_test_obj_with_script_state_void_exception):
(webkit_dom_test_obj_with_script_state_obj_exception):
(webkit_dom_test_obj_get_attr_with_getter_exception):
(webkit_dom_test_obj_set_attr_with_getter_exception):
(webkit_dom_test_obj_set_attr_with_setter_exception):
(webkit_dom_test_obj_set_string_attr_with_getter_exception):
(webkit_dom_test_obj_set_string_attr_with_setter_exception):
* bindings/v8/V8Proxy.cpp:
(WebCore::V8Proxy::setDOMException):
* dom/ExceptionCode.cpp:
* dom/ExceptionCode.h:

Source/WebKit/chromium:

Migrate to new API.

* src/StorageInfoChromium.cpp:
* src/WebStorageQuotaCallbacksImpl.cpp:
(WebKit::WebStorageQuotaCallbacksImpl::didFail):

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

9 years agoWeb Inspector: CSS background-image applied inline shows a warning, but still works.
apavlov@chromium.org [Fri, 28 Oct 2011 09:43:30 +0000 (09:43 +0000)]
Web Inspector: CSS background-image applied inline shows a warning, but still works.
https://bugs.webkit.org/show_bug.cgi?id=70325

Reviewed by Antti Koivisto.

Source/WebCore:

This change eliminates the "non-parsed property" warning displayed next to any
"background-image" property of an element's inline style.

* css/CSSParser.cpp:
(WebCore::CSSParser::parseDeclaration):
* css/CSSParser.h:
* inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyle::setPropertyText):
(WebCore::InspectorStyleSheetForInlineStyle::getStyleAttributeRanges):

LayoutTests:

* inspector/styles/styles-new-API-expected.txt:
* inspector/styles/styles-new-API.html:

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

9 years agoAttempt to fixenate Qt.
abarth@webkit.org [Fri, 28 Oct 2011 09:36:43 +0000 (09:36 +0000)]
Attempt to fixenate Qt.

* CodeGenerators.pri:
* dom/make_event_factory.pl:
(toMacroStyle):

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

9 years agoIndexedDB: Clean-up unused functions in WebIDBFactory
hans@chromium.org [Fri, 28 Oct 2011 09:27:05 +0000 (09:27 +0000)]
IndexedDB: Clean-up unused functions in WebIDBFactory
https://bugs.webkit.org/show_bug.cgi?id=71011

Reviewed by Tony Chang.

This is a clean-up after r97453. Since Chromium was updated,
these functions are no longer used.

* public/WebIDBFactory.h:
(WebKit::WebIDBFactory::getDatabaseNames):
(WebKit::WebIDBFactory::open):

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

9 years agoExceptionCode.cpp shouldn't need to know about every feature that throws exceptions
abarth@webkit.org [Fri, 28 Oct 2011 09:11:50 +0000 (09:11 +0000)]
ExceptionCode.cpp shouldn't need to know about every feature that throws exceptions
https://bugs.webkit.org/show_bug.cgi?id=70890

Reviewed by Eric Seidel.

.:

Add a code generation step.

* Source/cmake/WebKitMacros.cmake:

Source/WebCore:

Generate the feature-specific parts of ExceptionCode.cpp from a ".in"
file.  This is an incremental step towards inlining
getExceptionCodeDescription into its callers and replacing the switch
statements at those locations with autogenerated code.

* CMakeLists.txt:
* CodeGenerators.pri:
* DerivedSources.make:
* GNUmakefile.am:
* GNUmakefile.list.am:
* WebCore.gyp/WebCore.gyp:
* WebCore.gyp/scripts/action_makenames.py:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSDOMBinding.cpp:
(WebCore::setDOMException):
* bindings/v8/V8Proxy.cpp:
(WebCore::V8Proxy::setDOMException):
* dom/DOMCoreException.cpp:
(WebCore::DOMCoreException::initializeDescription):
* dom/ExceptionCode.cpp:
(WebCore::getExceptionCodeDescription):
* dom/ExceptionCode.h:
* dom/ExceptionCodeDescription.in: Added.
* dom/make_exception_code_description.pl: Added.
(defaultItemFactory):
(generateCode):
(generateHeader):
(generateImplementation):

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

9 years agoWeb Inspector: CallStackSidebarPane should remove discarded Placards from RawSourceCo...
yurys@chromium.org [Fri, 28 Oct 2011 09:09:29 +0000 (09:09 +0000)]
Web Inspector: CallStackSidebarPane should remove discarded Placards from RawSourceCode listeners list
https://bugs.webkit.org/show_bug.cgi?id=70996

Reviewed by Pavel Feldman.

Source/WebCore:

Test: inspector/debugger/callstack-placards-discarded.html

* inspector/front-end/CallStackSidebarPane.js:
(WebInspector.CallStackSidebarPane.prototype.update):
* inspector/front-end/DebuggerPresentationModel.js:
(WebInspector.DebuggerPresentationModel.prototype.createPlacard):
(WebInspector.DebuggerPresentationModel.CallFramePlacard):
(WebInspector.DebuggerPresentationModel.CallFramePlacard.prototype.discard):
(WebInspector.DebuggerPresentationModel.CallFramePlacard.prototype._update):
* inspector/front-end/Placard.js:
(WebInspector.Placard.prototype.toggleSelected):
(WebInspector.Placard.prototype.discard):

LayoutTests:

* inspector/debugger/callstack-placards-discarded-expected.txt: Added.
* inspector/debugger/callstack-placards-discarded.html: Added.

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

9 years agoUnreviewed. Rolled DEPS.
commit-queue@webkit.org [Fri, 28 Oct 2011 08:48:16 +0000 (08:48 +0000)]
Unreviewed.  Rolled DEPS.

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-10-28

* DEPS:

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

9 years agoAdd allowScriptFromSource callback to FrameLoaderClient
jochen@chromium.org [Fri, 28 Oct 2011 08:16:59 +0000 (08:16 +0000)]
Add allowScriptFromSource callback to FrameLoaderClient
https://bugs.webkit.org/show_bug.cgi?id=71013

Reviewed by Darin Fisher.

Source/WebCore:

Test: platform/chromium/permissionclient/script-permissions.html

* loader/FrameLoaderClient.h:
(WebCore::FrameLoaderClient::allowScriptFromSource):
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::canRequest):

Source/WebKit/chromium:

* public/WebPermissionClient.h:
(WebKit::WebPermissionClient::allowScriptFromSource):
* src/FrameLoaderClientImpl.cpp:
(WebKit::FrameLoaderClientImpl::allowScriptFromSource):
* src/FrameLoaderClientImpl.h:

Tools:

* DumpRenderTree/chromium/LayoutTestController.cpp:
(LayoutTestController::LayoutTestController):
(LayoutTestController::setScriptsAllowed):
* DumpRenderTree/chromium/LayoutTestController.h:
* DumpRenderTree/chromium/WebPermissions.cpp:
(WebPermissions::allowScriptFromSource):
(WebPermissions::setScriptsAllowed):
(WebPermissions::reset):
* DumpRenderTree/chromium/WebPermissions.h:

LayoutTests:

* platform/chromium/permissionclient/resources/script.js: Added.
* platform/chromium/permissionclient/script-permissions-expected.txt: Added.
* platform/chromium/permissionclient/script-permissions.html: Added.

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

9 years ago[GTK] Add webkit_web_view_get_uri() to WebKit2 GTK+ API
carlosgc@webkit.org [Fri, 28 Oct 2011 08:12:53 +0000 (08:12 +0000)]
[GTK] Add webkit_web_view_get_uri() to WebKit2 GTK+ API
https://bugs.webkit.org/show_bug.cgi?id=70814

Reviewed by Gustavo Noronha Silva.

* UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
(didStartProvisionalLoadForFrame): Update WebView URI to make sure
it's updated to provisional URL.
(didReceiveServerRedirectForProvisionalLoadForFrame): Update
WebView URI if there's a server redirection.
(didCommitLoadForFrame): Update WebView URI to make sure it
contains the final one.
(didSameDocumentNavigationForFrame): Update WebView URI when a
navigation action within the same document is performed.
(webkitWebLoaderClientAttachLoaderClientToPage): Add
implementation for didSameDocumentNavigationForFrame callback.
* UIProcess/API/gtk/WebKitWebView.cpp:
(webkit_web_view_class_init): Add URI property.
(webkitWebViewUpdateURI): Check whether current active URI has
changed to updated it and emit ::notify signal if it changes.
(webkit_web_view_load_uri): Call webkitWebViewUpdateURI() to make
sure the active URI is updated when load operation is started.
(webkit_web_view_load_alternate_html): Ditto.
(webkit_web_view_reload): Ditto.
(webkit_web_view_reload_bypass_cache): Ditto.
(webkit_web_view_go_back): Ditto.
(webkit_web_view_go_forward): Ditto.
(webkit_web_view_get_uri): Ditto.
(webkit_web_view_go_to_back_forward_list_item): Ditto.
* UIProcess/API/gtk/WebKitWebView.h:
* UIProcess/API/gtk/WebKitWebViewPrivate.h: Add
webkitWebViewUpdateURI().
* UIProcess/API/gtk/tests/LoadTrackingTest.cpp:
(provisionalLoadStartedCallback): Check provisional URL is the
requested URI.
(provisionalLoadReceivedServerRedirectCallback): Check provisional
URL after server redirection is the expected redirected URI.
(provisionalLoadFailedCallback): Check active URI.
(loadCommittedCallback): Ditto.
(loadFinishedCallback): Ditto.
(loadFailedCallback): Ditto
(LoadTrackingTest::LoadTrackingTest): Check active URI is NULL
before any loading operation has started.
* UIProcess/API/gtk/tests/LoadTrackingTest.h:
(LoadTrackingTest::setRedirectURI): Set the redirect URI to check
it after a server redirection.
* UIProcess/API/gtk/tests/TestBackForwardList.cpp:
(testBackForwardListNavigation): Use WebViewTest methods for
navigation actions instead of using WebKitWebView API directly.
(testBackForwardListLimitAndCache): Ditto.
* UIProcess/API/gtk/tests/TestWebKitWebLoaderClient.cpp:
(testLoadingStatus): Ditto.
(testLoadingError): Ditto.
(testLoadAlternateContent): Ditto.
(testLoadCancelled): Ditto.
(testWebViewReload): Ditto.
(testLoadProgress): Ditto.
(testWebViewActiveURI): Add a test to check that notify signal is
emitted when active URI changes and it's correctly updated when
loader client signals are emitted.
(beforeAll): Add active-uri test.
* UIProcess/API/gtk/tests/WebViewTest.cpp: Add custom load methods
wrapping the WebKitWebView ones, to initialize the active URI to
the requested one, so that it can be checked by the loader client
test.
(WebViewTest::loadURI):
(WebViewTest::loadAlternateHTML):
(WebViewTest::goBack):
(WebViewTest::goForward):
(WebViewTest::goToBackForwardListItem):
* UIProcess/API/gtk/tests/WebViewTest.h:

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

9 years ago[Qt][WK2] Synchronize tiling with accelerated compositing
hausmann@webkit.org [Fri, 28 Oct 2011 07:59:18 +0000 (07:59 +0000)]
[Qt][WK2] Synchronize tiling with accelerated compositing
https://bugs.webkit.org/show_bug.cgi?id=69151

Patch by No'am Rosenthal <noam.rosenthal@nokia.com> on 2011-10-21
Reviewed by Simon Hausmann.

Make QTouchWebView always render with accelerated compositing.
At first, the web content would only render after the rest of the scene has rendered. In a
future patch we'll enable rendering the web content via an FBO, which would cover all other
cases as well.

Right now this only works for QTouchWebView, and thus accelerated compositing is disabled
for desktop web-views. This required adding some settings enablers in Q
WebPreferencesPrivate. Those are not exposed to the public API, as they are an implementation
detail.

* UIProcess/API/qt/qtouchwebpage.cpp:
(QTouchWebPage::QTouchWebPage):
(QTouchWebPage::initSceneGraphConnections):
(QTouchWebPagePrivate::QTouchWebPagePrivate):
(QTouchWebPagePrivate::setPage):
(computeEffectiveOpacity):
(QTouchWebPagePrivate::paintToCurrentGLContext):
(QTouchWebPagePrivate::_q_onAfterSceneRender):
(QTouchWebPagePrivate::_q_onSceneGraphInitialized):
(QTouchWebPage::itemChange):
* UIProcess/API/qt/qtouchwebpage.h:
* UIProcess/API/qt/qtouchwebpage_p.h:
* UIProcess/API/qt/qwebpreferences.cpp:
(QWebPreferencesPrivate::testAttribute):
(QWebPreferencesPrivate::setAttribute):
(QWebPreferencesPrivate::get):
* UIProcess/API/qt/qwebpreferences_p.h:
* UIProcess/TiledDrawingAreaProxy.cpp:
(WebKit::TiledDrawingAreaProxy::renderNextFrame):
* UIProcess/qt/QtDesktopWebPageProxy.cpp:
(QtDesktopWebPageProxy::QtDesktopWebPageProxy):
* UIProcess/qt/QtTouchViewInterface.cpp:
(WebKit::QtTouchViewInterface::setViewNeedsDisplay):
* UIProcess/qt/QtTouchWebPageProxy.cpp:
(QtTouchWebPageProxy::QtTouchWebPageProxy):
(QtTouchWebPageProxy::createDrawingAreaProxy):
(QtTouchWebPageProxy::renderToCurrentGLContext):
(QtTouchWebPageProxy::setVisibleContentRectAndScale):
(QtTouchWebPageProxy::setVisibleContentRectTrajectoryVector):
(QtTouchWebPageProxy::renderNextFrame):
* UIProcess/qt/QtTouchWebPageProxy.h:
* WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
(WebKit::LayerTreeHost::supportsAcceleratedCompositing):
* WebProcess/WebPage/qt/WebPageQt.cpp:
(WebKit::WebPage::platformInitialize):
* WebProcess/qt/WebProcessMainQt.cpp:
(WebKit::WebProcessMainQt):

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

9 years agoUnreviewed, update Chromium test expectation.
yutak@chromium.org [Fri, 28 Oct 2011 07:39:59 +0000 (07:39 +0000)]
Unreviewed, update Chromium test expectation.

* platform/chromium/test_expectations.txt:
Mark http/tests/websocket/tests/hybi/reserved-bits.html as flaky.

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

9 years agoRefactor make_event_factory.pl to use InFilesCompiler.pm
abarth@webkit.org [Fri, 28 Oct 2011 07:20:58 +0000 (07:20 +0000)]
Refactor make_event_factory.pl to use InFilesCompiler.pm
https://bugs.webkit.org/show_bug.cgi?id=71094

Reviewed by Eric Seidel.

This refactoring helps share code with
make_exception_code_descriptions.pl, which is coming in a future patch.
I have a dream of refactoring make_names.pl to use this module as well.

* CodeGenerators.pri:
* DerivedSources.make:
* GNUmakefile.am:
* WebCore.gyp/scripts/action_makenames.py:
* bindings/scripts/InFilesCompiler.pm: Added.
(itemHandler):
(parameterHandler):
(new):
(compile):
(license):
* dom/make_event_factory.pl:
(defaultItemFactory):
(interfaceForEvent):
(generateCode):
(printFactoryFile):
(printMacroFile):
(printHeadersFile):

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

9 years agoAdded myself as a committer.
achicu@adobe.com [Fri, 28 Oct 2011 07:18:36 +0000 (07:18 +0000)]
Added myself as a committer.

* Scripts/webkitpy/common/config/committers.py:

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

9 years agoRemove WinCairo from the set of core builders. WinCairo rarely builds
abarth@webkit.org [Fri, 28 Oct 2011 07:01:23 +0000 (07:01 +0000)]
Remove WinCairo from the set of core builders.  WinCairo rarely builds
and is never green.

Rubber-stamped by Eric Seidel.

* Scripts/webkitpy/common/net/buildbot/buildbot.py:
* Scripts/webkitpy/common/net/buildbot/buildbot_unittest.py:

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

9 years ago[chromium] Implement frame rate control portions of CCScheduler
nduca@chromium.org [Fri, 28 Oct 2011 06:50:19 +0000 (06:50 +0000)]
[chromium] Implement frame rate control portions of CCScheduler
https://bugs.webkit.org/show_bug.cgi?id=70713

Reviewed by James Robinson.

Source/WebCore:

* WebCore.gypi:
* platform/graphics/chromium/cc/CCDelayBasedTimeSource.cpp: Added.
(WebCore::CCDelayBasedTimeSource::setActive):
(WebCore::CCDelayBasedTimeSource::postTickTask):
(WebCore::CCDelayBasedTimeSource::onTick):
* platform/graphics/chromium/cc/CCDelayBasedTimeSource.h: Added.
(WebCore::CCDelayBasedTimeSource::CCDelayBasedTimeSource):
(WebCore::CCDelayBasedTimeSource::~CCDelayBasedTimeSource):
(WebCore::CCDelayBasedTimeSource::setClient):
(WebCore::CCDelayBasedTimeSource::monotonicallyIncreasingTime):
* platform/graphics/chromium/cc/CCFrameRateController.cpp: Added.
(WebCore::CCFrameRateControllerTimeSourceAdapter::create):
(WebCore::CCFrameRateControllerTimeSourceAdapter::~CCFrameRateControllerTimeSourceAdapter):
(WebCore::CCFrameRateControllerTimeSourceAdapter::onTimerTick):
(WebCore::CCFrameRateControllerTimeSourceAdapter::CCFrameRateControllerTimeSourceAdapter):
(WebCore::CCFrameRateController::CCFrameRateController):
(WebCore::CCFrameRateController::~CCFrameRateController):
(WebCore::CCFrameRateController::onTimerTick):
(WebCore::CCFrameRateController::didBeginFrame):
(WebCore::CCFrameRateController::didFinishFrame):
(WebCore::CCFrameRateController::didAbortAllPendingFrames):
* platform/graphics/chromium/cc/CCFrameRateController.h: Added.
(WebCore::CCFrameRateControllerClient::~CCFrameRateControllerClient):
(WebCore::CCFrameRateController::setClient):
(WebCore::CCFrameRateController::setActive):
* platform/graphics/chromium/cc/CCTimeSource.h: Added.
(WebCore::CCTimeSourceClient::~CCTimeSourceClient):
(WebCore::CCTimeSource::~CCTimeSource):

Source/WebKit/chromium:

* WebKit.gypi:
* tests/CCDelayBasedTimeSourceTest.cpp: Added.
(WebKitTests::TEST):
* tests/CCFrameRateControllerTest.cpp: Added.
(WebKitTests::FakeCCFrameRateControllerClient::FakeCCFrameRateControllerClient):
(WebKitTests::FakeCCFrameRateControllerClient::reset):
(WebKitTests::FakeCCFrameRateControllerClient::frameBegun):
(WebKitTests::FakeCCFrameRateControllerClient::beginFrame):
(WebKitTests::TEST):
* tests/CCLayerTreeHostTest.cpp:
* tests/CCSchedulerTestCommon.h: Added.
(WebKitTests::FakeCCTimeSourceClient::FakeCCTimeSourceClient):
(WebKitTests::FakeCCTimeSourceClient::reset):
(WebKitTests::FakeCCTimeSourceClient::tickCalled):
(WebKitTests::FakeCCTimeSourceClient::onTimerTick):
(WebKitTests::FakeCCThread::FakeCCThread):
(WebKitTests::FakeCCThread::reset):
(WebKitTests::FakeCCThread::hasPendingTask):
(WebKitTests::FakeCCThread::runPendingTask):
(WebKitTests::FakeCCThread::pendingDelay):
(WebKitTests::FakeCCThread::postTask):
(WebKitTests::FakeCCThread::postDelayedTask):
(WebKitTests::FakeCCThread::threadID):
(WebKitTests::FakeCCDelayBasedTimeSource::FakeCCDelayBasedTimeSource):
(WebKitTests::FakeCCDelayBasedTimeSource::setMonotonicallyIncreasingTime):
(WebKitTests::FakeCCDelayBasedTimeSource::monotonicallyIncreasingTime):

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

9 years ago[GTK] Create .xz tarballs during distcheck
commit-queue@webkit.org [Fri, 28 Oct 2011 06:44:54 +0000 (06:44 +0000)]
[GTK] Create .xz tarballs during distcheck
https://bugs.webkit.org/show_bug.cgi?id=71001

Patch by Priit Laes <plaes@plaes.org> on 2011-10-27
Reviewed by Martin Robinson.

* configure.ac: Switched tarballs to use .xz compression.

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

9 years ago Unskip platform/mac/editing/deleting/backward-delete.html on Chromium because...
rniwa@webkit.org [Fri, 28 Oct 2011 06:26:07 +0000 (06:26 +0000)]
   Unskip platform/mac/editing/deleting/backward-delete.html on Chromium because it passes on my Mac.

* platform/chromium/test_expectations.txt:

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

9 years agoGroup editing test expectations for Chromium in one place.
rniwa@webkit.org [Fri, 28 Oct 2011 06:18:02 +0000 (06:18 +0000)]
Group editing test expectations for Chromium in one place.

* platform/chromium/test_expectations.txt:

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

9 years agoChromium Mac rebaselines.
rniwa@webkit.org [Fri, 28 Oct 2011 06:06:57 +0000 (06:06 +0000)]
Chromium Mac rebaselines.

* platform/chromium-cg-mac-leopard/editing/deleting/table-cells-expected.png:
* platform/chromium-cg-mac-leopard/editing/execCommand/create-list-with-hr-expected.png:
* platform/chromium-cg-mac-leopard/editing/execCommand/find-after-replace-expected.png:
* platform/chromium-cg-mac-leopard/editing/execCommand/paste-1-expected.png:
* platform/chromium-cg-mac-leopard/editing/execCommand/paste-2-expected.png:
* platform/chromium-cg-mac-leopard/editing/inserting/4278698-expected.png:
* platform/chromium-cg-mac-leopard/editing/inserting/paragraph-separator-in-table-2-expected.png:
* platform/chromium-cg-mac-leopard/editing/pasteboard/3976872-expected.png:
* platform/chromium-cg-mac-leopard/editing/pasteboard/4076267-2-expected.png:
* platform/chromium-cg-mac-leopard/editing/pasteboard/4076267-3-expected.png:
* platform/chromium-cg-mac-leopard/editing/pasteboard/4076267-expected.png:
* platform/chromium-cg-mac-leopard/editing/pasteboard/4944770-1-expected.png:
* platform/chromium-cg-mac-leopard/editing/pasteboard/undoable-fragment-removes-expected.png:
* platform/chromium-cg-mac-leopard/editing/selection/select-all-iframe-expected.png:
* platform/chromium-cg-mac-leopard/editing/undo/4063751-expected.png:
* platform/chromium-cg-mac-leopard/editing/unsupported-content/table-type-after-expected.png:
* platform/chromium-cg-mac-leopard/editing/unsupported-content/table-type-before-expected.png:
* platform/chromium-cg-mac-leopard/fast/dom/blur-contenteditable-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/deleting/table-cells-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/execCommand/create-list-with-hr-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/execCommand/find-after-replace-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/execCommand/paste-1-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/execCommand/paste-2-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/inserting/4278698-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/inserting/paragraph-separator-in-table-2-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/pasteboard/3976872-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/pasteboard/4076267-2-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/pasteboard/4076267-3-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/pasteboard/4076267-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/pasteboard/undoable-fragment-removes-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/selection/select-all-iframe-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/undo: Added.
* platform/chromium-cg-mac-snowleopard/editing/undo/4063751-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/unsupported-content: Added.
* platform/chromium-cg-mac-snowleopard/editing/unsupported-content/table-type-after-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/editing/unsupported-content/table-type-before-expected.png: Added.
* platform/chromium/test_expectations.txt:

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

9 years agoDeprecate [V8ConstructorSetsActiveDOMWrapper] IDL
haraken@chromium.org [Fri, 28 Oct 2011 05:52:58 +0000 (05:52 +0000)]
Deprecate [V8ConstructorSetsActiveDOMWrapper] IDL
https://bugs.webkit.org/show_bug.cgi?id=71088

Reviewed by Adam Barth.

I introduced [V8ConstructorSetsActiveDOMWrapper] IDL in bug 66536,
but I found that it has the same meaning as [ActiveDOMObject] IDL.
This patch removes [V8ConstructorSetsActiveDOMWrapper] IDL.

No change in behavior.

Tests: fast/dom/global-constructors.html
       fast/eventsource/eventsource-constructor.html
       fast/eventsource/eventsource-attribute-listeners.html
       fast/files/blob-slice-test.html
       fast/files/file-reader-abort.html
       ui_tests:WorkerTest.FLAKY_SharedWorkerFastConstructor
       ui_tests:WorkerTest.FLAKY_SharedWorkerFastName
       ui_tests:WorkerTest.FLAKY_WorkerConstructor
       ui_tests:WorkerTest.FLAKY_WorkerEventListener

* bindings/scripts/CodeGeneratorV8.pm: Replaced "V8ConstructorSetsActiveDOMWrapper" with "ActiveDOMObject".
(GenerateConstructorCallback):
* bindings/scripts/test/TestInterface.idl: Ditto.
* bindings/scripts/test/JS/JSTestInterface.cpp: Updated a test result.
(WebCore::isObservable):
(WebCore::JSTestInterfaceOwner::isReachableFromOpaqueRoots):
(WebCore::JSTestInterfaceOwner::finalize):
* bindings/scripts/test/JS/JSTestInterface.h: Ditto.
(WebCore::wrapperOwner):
(WebCore::wrapperContext):
* bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: Ditto.
* bindings/scripts/test/JS/JSTestMediaQueryListListener.h: Ditto.
* bindings/scripts/test/JS/JSTestObj.cpp: Ditto.
* bindings/scripts/test/JS/JSTestObj.h: Ditto.
* bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp: Ditto.
* bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h: Ditto.
* bindings/scripts/test/V8/V8TestInterface.cpp: Ditto.
(WebCore::V8TestInterface::toActiveDOMObject):
(WebCore::V8TestInterface::wrapSlow):
* bindings/scripts/test/V8/V8TestInterface.h: Ditto.
(WebCore::V8TestInterface::existingWrapper):
* fileapi/FileReader.idl: Removed [V8ConstructorSetsActiveDOMWrapper] IDL.
* mediastream/PeerConnection.idl: Ditto.
* page/EventSource.idl: Ditto.
* workers/SharedWorker.idl: Ditto.
* workers/Worker.idl: Ditto.

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

9 years agoRace condition in SocketStreamHandleCFNet when PAC script is used
yutak@chromium.org [Fri, 28 Oct 2011 05:39:15 +0000 (05:39 +0000)]
Race condition in SocketStreamHandleCFNet when PAC script is used
https://bugs.webkit.org/show_bug.cgi?id=70894

Reviewed by Alexey Proskuryakov.

Pass callback functions that call ref() or deref() as retain/release member
of CFStreamClientContext.

No new tests, as it is not possible to write a test with PAC script enabled.

* platform/network/cf/SocketStreamHandle.h:
* platform/network/cf/SocketStreamHandleCFNet.cpp:
(WebCore::SocketStreamHandle::scheduleStreams):
(WebCore::SocketStreamHandle::retainSocketStreamHandle):
(WebCore::SocketStreamHandle::releaseSocketStreamHandle):
(WebCore::SocketStreamHandle::pacExecutionCallbackMainThread):
This callback may be called after platformClose() is already called. We should
not create new streams in this case.
(WebCore::SocketStreamHandle::executePACFileURL):
(WebCore::SocketStreamHandle::readStreamCallback):
This manual ref/deref can be safely removed as m_readStream holds the reference.
(WebCore::SocketStreamHandle::writeStreamCallback):
Ditto.

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

9 years agoWebSocket: Connecting to localhost:8880 takes one second on Windows
yutak@chromium.org [Fri, 28 Oct 2011 05:39:13 +0000 (05:39 +0000)]
WebSocket: Connecting to localhost:8880 takes one second on Windows
https://bugs.webkit.org/show_bug.cgi?id=64788

Reviewed by Dirk Pranke.

* Scripts/webkitpy/layout_tests/servers/websocket_server.py:
Bind to "localhost" instead of "127.0.0.1" to let pywebsocket listen on both
IPv4 and IPv6 addresses. This should prevent the test reserved-opcodes.html
from timing out on Windows, because this test tries to open a lot of
connections to localhost and each attempt takes one second to fall back from
IPv6 to IPv4 on Windows (I have no idea why Windows works like this, though).

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

9 years agoReland patch ensure font load before calling Skia during printing
commit-queue@webkit.org [Fri, 28 Oct 2011 05:37:32 +0000 (05:37 +0000)]
Reland patch ensure font load before calling Skia during printing
https://bugs.webkit.org/show_bug.cgi?id=70390

Patch by Arthur Hsu <arthurhsu@chromium.org> on 2011-10-27
Reviewed by James Robinson.

* platform/graphics/chromium/FontChromiumWin.cpp:
(WebCore::Font::drawGlyphs):
* platform/graphics/skia/SkiaFontWin.cpp:
(WebCore::paintSkiaText):

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

9 years agoTest Failure in fast/dom/prototype-inheritance-2.html after r98495
msaboff@apple.com [Fri, 28 Oct 2011 05:22:35 +0000 (05:22 +0000)]
Test Failure in fast/dom/prototype-inheritance-2.html after r98495
https://bugs.webkit.org/show_bug.cgi?id=71058

Rebaselined these results due to hash order changes in r98495.

Reviewed by Darin Adler.

* fast/dom/prototype-inheritance-2-expected.txt:
* platform/mac/fast/dom/prototype-inheritance-2-expected.txt:
* platform/qt/fast/dom/prototype-inheritance-2-expected.txt:
* platform/win/fast/dom/prototype-inheritance-2-expected.txt:

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

9 years agoAttempt to fix the Qt build.
abarth@webkit.org [Fri, 28 Oct 2011 05:11:31 +0000 (05:11 +0000)]
Attempt to fix the Qt build.

* WebCore.pro:

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

9 years agoRemove erroneous expected results after r98685.
rniwa@webkit.org [Fri, 28 Oct 2011 05:10:10 +0000 (05:10 +0000)]
Remove erroneous expected results after r98685.

* platform/chromium-linux/editing/selection/click-before-and-after-table-expected.png: Removed.
* platform/chromium-win/editing/selection/click-before-and-after-table-expected.png: Removed.
* platform/chromium-win/editing/selection/click-before-and-after-table-expected.txt: Removed.
* platform/qt/editing/selection/click-before-and-after-table-expected.png: Removed.

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

9 years agobinding test rebaseline after r98679.
rniwa@webkit.org [Fri, 28 Oct 2011 04:58:21 +0000 (04:58 +0000)]
binding test rebaseline after r98679.

* bindings/scripts/test/JS/JSTestInterface.cpp:
(WebCore::JSTestInterfaceConstructor::constructJSTestInterface):
* bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
(WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::setJSTestObjStringAttr):
(WebCore::setJSTestObjStringAttrWithGetterException):
(WebCore::setJSTestObjStringAttrWithSetterException):
(WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
(WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
(WebCore::jsTestObjPrototypeFunctionSerializedValue):
(WebCore::jsTestObjPrototypeFunctionIdbKey):
(WebCore::jsTestObjPrototypeFunctionOptionsObject):
(WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
(WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod6):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod7):
(WebCore::jsTestObjPrototypeFunctionClassMethodWithOptional):

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

9 years agoDis-integrate run-bindings-tests with webkitpy
abarth@webkit.org [Fri, 28 Oct 2011 04:55:21 +0000 (04:55 +0000)]
Dis-integrate run-bindings-tests with webkitpy
https://bugs.webkit.org/show_bug.cgi?id=71092

Reviewed by Ryosuke Niwa.

These tests aren't really adding any value.

* Scripts/webkitpy/common/config/ports.py:
* Scripts/webkitpy/tool/commands/download_unittest.py:
* Scripts/webkitpy/tool/mocktool.py:
* Scripts/webkitpy/tool/steps/runtests.py:
* Scripts/webkitpy/tool/steps/runtests_unittest.py:
* Scripts/webkitpy/tool/steps/steps_unittest.py:

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

9 years agoMove type-specific exception descriptions into the implementation files for each...
abarth@webkit.org [Fri, 28 Oct 2011 04:44:36 +0000 (04:44 +0000)]
Move type-specific exception descriptions into the implementation files for each type
https://bugs.webkit.org/show_bug.cgi?id=71081

Reviewed by Eric Seidel.

There's no reason to centralize this information.  It belongs with each
exception type.  This patch is in preparation for autogenerating the central file.

* WebCore.xcodeproj/project.pbxproj:
* dom/DOMCoreException.cpp: Added.
(WebCore::DOMCoreException::initializeDescription):
* dom/DOMCoreException.h:
* dom/EventException.cpp: Copied from Source/WebCore/xml/XMLHttpRequestException.h.
(WebCore::EventException::initializeDescription):
* dom/EventException.h:
* dom/ExceptionBase.h:
(WebCore::ExceptionBase::code):
(WebCore::ExceptionBase::name):
(WebCore::ExceptionBase::message):
(WebCore::ExceptionBase::description):
* dom/ExceptionCode.cpp:
(WebCore::getExceptionCodeDescription):
* dom/RangeException.cpp: Copied from Source/WebCore/xml/XPathException.h.
(WebCore::RangeException::initializeDescription):
* dom/RangeException.h:
* fileapi/FileException.cpp: Added.
(WebCore::FileException::initializeDescription):
* fileapi/FileException.h:
* fileapi/OperationNotAllowedException.cpp: Copied from Source/WebCore/xml/XMLHttpRequestException.h.
(WebCore::OperationNotAllowedException::initializeDescription):
* fileapi/OperationNotAllowedException.h:
* storage/IDBDatabaseException.cpp: Added.
(WebCore::IDBDatabaseException::initializeDescription):
* storage/IDBDatabaseException.h:
* storage/SQLException.cpp: Added.
(WebCore::SQLException::initializeDescription):
* storage/SQLException.h:
* svg/SVGException.cpp: Copied from Source/WebCore/dom/EventException.h.
(WebCore::SVGException::initializeDescription):
* svg/SVGException.h:
* xml/XMLHttpRequestException.cpp: Copied from Source/WebCore/xml/XMLHttpRequestException.h.
(WebCore::XMLHttpRequestException::initializeDescription):
* xml/XMLHttpRequestException.h:
* xml/XPathException.cpp: Copied from Source/WebCore/xml/XPathException.h.
(WebCore::XPathException::initializeDescription):
* xml/XPathException.h:

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

9 years agoFix click-before-and-after-table.html for Chromium
rniwa@webkit.org [Fri, 28 Oct 2011 04:24:35 +0000 (04:24 +0000)]
Fix click-before-and-after-table.html for Chromium
https://bugs.webkit.org/show_bug.cgi?id=70869

Reviewed by Tony Chang.

Fixed the test by wrapping tests in a function to avoid shadowing "top" variable.

* editing/selection/click-before-and-after-table.html:
* platform/chromium/test_expectations.txt:

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

9 years agoFix the GTK+ build after r98664.
mrobinson@webkit.org [Fri, 28 Oct 2011 03:50:15 +0000 (03:50 +0000)]
Fix the GTK+ build after r98664.

* WebProcess/Plugins/Plugin.h: Add an IntSize forward declaration.

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

9 years agoUpdate chromium test expectations.
johnnyg@google.com [Fri, 28 Oct 2011 03:50:06 +0000 (03:50 +0000)]
Update chromium test expectations.

* platform/chromium/test_expectations.txt:

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

9 years agoREGRESSION (r98639): NRWT crashes when parsing leaks output
eric@webkit.org [Fri, 28 Oct 2011 03:47:02 +0000 (03:47 +0000)]
REGRESSION (r98639): NRWT crashes when parsing leaks output
https://bugs.webkit.org/show_bug.cgi?id=71087

Unreviewed.  Sadly we have no good way to test logging.

* Scripts/webkitpy/layout_tests/port/leakdetector.py:

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

9 years agoCMake: Add support to optionally install the built JavaScript shell
dbates@webkit.org [Fri, 28 Oct 2011 02:54:17 +0000 (02:54 +0000)]
CMake: Add support to optionally install the built JavaScript shell
https://bugs.webkit.org/show_bug.cgi?id=71062

Reviewed by Antonio Gomes.

.:

Adds a CMake option, called SHOULD_INSTALL_JS_SHELL, that when
defined will generate an installation rule to install the built
JavaScript shell into /bin (with respect to the prefix path).

By default, we don't define this option and hence don't generate
an installation rule for the JavaScript shell.

* Source/CMakeLists.txt:

Source/JavaScriptCore:

Generate an installation rule for installing the JavaScript shell in
/bin (with respect to the prefix path) when SHOULD_INSTALL_JS_SHELL
is defined.

* shell/CMakeLists.txt:

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

9 years ago[EFL] Fix variable renaming issue inside ewk_view.cpp
commit-queue@webkit.org [Fri, 28 Oct 2011 02:47:48 +0000 (02:47 +0000)]
[EFL] Fix variable renaming issue inside ewk_view.cpp
https://bugs.webkit.org/show_bug.cgi?id=71020

Unreviewed build fix.

Patch by Gustavo Lima Chaves <glima@profusion.mobi> on 2011-10-27

* ewk/ewk_view.cpp:
(ewk_view_js_object_add):

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

9 years agoGenerate WebKitCSSMatrix constructor for JSC by [Constructor] IDL
haraken@chromium.org [Fri, 28 Oct 2011 02:43:12 +0000 (02:43 +0000)]
Generate WebKitCSSMatrix constructor for JSC by [Constructor] IDL
https://bugs.webkit.org/show_bug.cgi?id=70215

Reviewed by Adam Barth.

Source/JavaScriptCore:

Added a method that judges if a given JSValue is empty.

Tests: transforms/svg-vs-css.xhtml
       transforms/cssmatrix-2d-interface.xhtml
       transforms/cssmatrix-3d-interface.xhtml

* runtime/JSValue.h:
* runtime/JSValueInlineMethods.h:
(JSC::JSValue::isEmpty):

Source/WebCore:

This patch implements [Optional=CallWithNullValue] IDL for JSC.
While a parameter specified as [Optional=CallWithDefaultValue] is
handled as a string "undefined", a parameter specified as
[Optional=CallWithNullValue] is handled as a null string.
(Note: not a string "null", but a null string).

c.f. [Optional=CallWithNullValue] is implemented in V8 in bug 67458.

Tests: fast/dom/global-constructors.html
       transforms/svg-vs-css.xhtml
       transforms/cssmatrix-2d-interface.xhtml
       transforms/cssmatrix-3d-interface.xhtml

* GNUmakefile.list.am: Removed JSWebKitCSSMatrixCustom.cpp.
* UseJSC.cmake: Ditto.
* WebCore.gypi: Ditto.
* WebCore.pro: Ditto.
* WebCore.xcodeproj/project.pbxproj: Ditto.
* bindings/js/JSBindingsAllInOne.cpp: Ditto.
* bindings/js/JSDOMBinding.h: MAYBE_MISSING_PARAMETER(exec, index, policy) returns the index-th parameter, if the parameter exists. It returns an undefined value, if the index-th parameter is missing and the policy is MissingIsUndefined. It returns an empty value, otherwise (i.e. if the index-th parameter is missing and the policy is MissingIsEmpty).
* bindings/js/JSWebKitCSSMatrixCustom.cpp: Removed.
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateParametersCheck): Supported [Optional=CallWithNullValue].
(GenerateConstructorDefinition): Supported [Optional=CallWithNullValue].
* css/WebKitCSSMatrix.idl: Removed [JSCustomConstructor].

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

9 years agoAdd more test expectations and chromium results.
johnnyg@google.com [Fri, 28 Oct 2011 02:30:16 +0000 (02:30 +0000)]
Add more test expectations and chromium results.

* platform/chromium-cg-mac-leopard/fast/backgrounds/size/contain-and-cover-expected.png: Added.
* platform/chromium-cg-mac-leopard/fast/css/getComputedStyle: Removed.
* platform/chromium-cg-mac-leopard/fast/multicol/block-axis-horizontal-bt-expected.png: Added.
* platform/chromium-cg-mac-leopard/fast/multicol/block-axis-horizontal-tb-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/css/child-style-can-override-visited-style-expected.png: Added.
* platform/chromium-linux-x86/fast/css/child-style-can-override-visited-style-expected.png: Added.
* platform/chromium-linux-x86/fast/css/child-style-can-override-visited-style-expected.txt: Added.
* platform/chromium-linux/fast/css/child-style-can-override-visited-style-expected.png: Added.
* platform/chromium-linux/fast/css/child-style-can-override-visited-style-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/css/child-style-can-override-visited-style-expected.png: Added.
* platform/chromium-win/fast/css/child-style-can-override-visited-style-expected.png: Added.
* platform/chromium-win/fast/css/child-style-can-override-visited-style-expected.txt: Added.
* platform/chromium/test_expectations.txt:

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

9 years ago[GTK] Remove most of the documentation errors from WebKit1
mrobinson@webkit.org [Fri, 28 Oct 2011 01:40:49 +0000 (01:40 +0000)]
[GTK] Remove most of the documentation errors from WebKit1
https://bugs.webkit.org/show_bug.cgi?id=70670

Reviewed by Gustavo Noronha Silva.

Fix most of the documentation errors for WebKit and make many
missing symbols show up in the documentation.

* webkit/webkitglobals.h: Doc fixes.
* webkit/webkitspellchecker.h: Ditto.
* webkit/webkitspellcheckerenchant.cpp: Ditto.
* webkit/webkitwebbackforwardlist.h: Ditto.
* webkit/webkitwebdatasource.cpp: Ditto.
* webkit/webkitwebframe.cpp: Ditto.
* webkit/webkitwebinspector.cpp: Ditto.
* webkit/webkitwebinspector.h: Ditto.
* webkit/webkitwebplugin.h: Ditto.
* webkit/webkitwebplugindatabase.cpp: Ditto.
* webkit/webkitwebplugindatabase.h: Ditto.
* webkit/webkitwebsettings.h: Ditto.
* webkit/webkitwebview.cpp: Ditto.
(webkit_web_view_class_init): Ditto.
* webkit/webkitwebview.h: Ditto.

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

9 years agoRenderTableCell m_row and m_column should not be signed values
jchaffraix@webkit.org [Fri, 28 Oct 2011 01:28:58 +0000 (01:28 +0000)]
RenderTableCell m_row and m_column should not be signed values
https://bugs.webkit.org/show_bug.cgi?id=70369

Reviewed by Darin Adler.

No new tests, refactoring only.

The gist of the change is to update row / column handling in the table's
rendering code to use unsigned values. Not all the code is switched over
to unsigned but this is a good start.

Using unsigned makes a lot more sense that allowing some negative indexes
to creep in the algorithms. Also it enables us to "free" the unused signed
bit on the 2 RenderTableCell fields that can be used to pack 2 bits in a
follow-up patch.

* accessibility/AccessibilityTable.cpp:
(WebCore::AccessibilityTable::cellForColumnAndRow):
Removed 2 casts to int as the left side now computes to an unsigned too.
Added some ASSERT to make sure we don't get negative values (colSpan / rowSpan
are always >= 1 by definition but better to be safe).

* accessibility/AccessibilityTableColumn.cpp:
(WebCore::AccessibilityTableColumn::headerObjectForSection):
* accessibility/AccessibilityTableColumn.h:
Switched m_columnIndex to unsigned to remove any signed / unsigned comparisons.

* rendering/RenderTable.cpp:
(WebCore::RenderTable::splitColumn):
(WebCore::RenderTable::calcBorderEnd):
(WebCore::RenderTable::cellAbove):
(WebCore::RenderTable::cellBelow):
(WebCore::RenderTable::cellBefore):
(WebCore::RenderTable::cellAfter):
Mostly mechanical changes to avoid signed / unsigned comparisons or casts.

* rendering/RenderTable.h:
(WebCore::RenderTable::numEffCols):
(WebCore::RenderTable::colToEffCol):
Updated a couple of functions to use an unsigned.

* rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::RenderTableCell):
* rendering/RenderTableCell.h:
(WebCore::RenderTableCell::col):
(WebCore::RenderTableCell::setCol):
(WebCore::RenderTableCell::row):
(WebCore::RenderTableCell::setRow):
Updated after switching the fields to unsigned. Also added 2 constants
to cover the not-initialized-yet value for row and column indexes.
Note: we don't enforce that you can't reach those indexes but neither
did the previous code!

* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::RenderTableSection):
(WebCore::RenderTableSection::addChild):
(WebCore::RenderTableSection::ensureRows):
(WebCore::RenderTableSection::setCellLogicalWidths):
(WebCore::RenderTableSection::calcRowLogicalHeight):
(WebCore::RenderTableSection::layoutRows):
(WebCore::RenderTableSection::calcOuterBorderStart):
(WebCore::RenderTableSection::calcOuterBorderEnd):
(WebCore::RenderTableSection::recalcCells):
(WebCore::RenderTableSection::clearGrid):
(WebCore::RenderTableSection::numColumns):
(WebCore::RenderTableSection::appendColumn):
(WebCore::RenderTableSection::splitColumn):
Lots of mechanical: signed -> unsigned changes. However we had
to change the logic a bit as it assumed that m_cRow started at
-1 and increased from there. The new meaning of m_cRow is the
number of rows seen and m_cRow - 1 is where to insert your new
cells.

(WebCore::RenderTableSection::addCell):
Checked the callers and all increase m_cRow before calling the function.
Added an ASSERT to catch up wrong usage in the future.

* rendering/RenderTableSection.h:
(WebCore::RenderTableSection::numRows): Switched to unsigned.

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

9 years agoAssertion failure (m_text) in RenderText::RenderText() at icanhascheezburger.com
mitz@apple.com [Fri, 28 Oct 2011 01:11:49 +0000 (01:11 +0000)]
Assertion failure (m_text) in RenderText::RenderText() at icanhascheezburger.com
https://bugs.webkit.org/show_bug.cgi?id=71085

Reviewed by Jon Honeycutt.

Source/WebCore:

Test: fast/css-generated-content/attr-missing.html

* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::applyProperty): If the element does not have the attribute specified
in the attr() function in the content property, set the content to the empty string, per
<http://www.w3.org/TR/CSS21/generate.html#content>.

LayoutTests:

* fast/css-generated-content/attr-missing-expected.txt: Added.
* fast/css-generated-content/attr-missing.html: Added.

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

9 years agoENH: Add 8 bit string support to JSC JIT
msaboff@apple.com [Fri, 28 Oct 2011 01:09:53 +0000 (01:09 +0000)]
ENH: Add 8 bit string support to JSC JIT
https://bugs.webkit.org/show_bug.cgi?id=71073

Changed the JIT String character access generation to create code
to check the character size and load8() or load16() as approriate.

Reviewed by Gavin Barraclough.

* assembler/MacroAssemblerX86Common.h:
(JSC::MacroAssemblerX86Common::load8):
* assembler/X86Assembler.h:
(JSC::X86Assembler::movzbl_mr):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileGetCharCodeAt):
(JSC::DFG::SpeculativeJIT::compileGetByValOnString):
* jit/JITInlineMethods.h:
(JSC::JIT::emitLoadCharacterString):
* jit/JITPropertyAccess.cpp:
(JSC::JIT::stringGetByValStubGenerator):
* jit/JITPropertyAccess32_64.cpp:
(JSC::JIT::stringGetByValStubGenerator):
* jit/JSInterfaceJIT.h:
(JSC::ThunkHelpers::stringImplFlagsOffset):
(JSC::ThunkHelpers::stringImpl8BitFlag):
* jit/ThunkGenerators.cpp:
(JSC::stringCharLoad):

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

9 years agoTest that :visited style can be overridden by child element style
mikelawther@chromium.org [Fri, 28 Oct 2011 01:01:45 +0000 (01:01 +0000)]
Test that :visited style can be overridden by child element style
Added as requested on https://bugs.webkit.org/show_bug.cgi?id=70470

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

Reviewed by Antti Koivisto.

* fast/css/child-style-can-override-visited-style-expected.txt: Added.
* fast/css/child-style-can-override-visited-style.html: Added.

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

9 years agoExpose Settings::setAcceleratedCompositingForFixedPositionEnabled to WebSettingsImpl.
vangelis@chromium.org [Fri, 28 Oct 2011 00:57:21 +0000 (00:57 +0000)]
Expose Settings::setAcceleratedCompositingForFixedPositionEnabled to WebSettingsImpl.
https://bugs.webkit.org/show_bug.cgi?id=71077

Reviewed by James Robinson.

* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setAcceleratedCompositingForFixedPositionEnabled):
* src/WebSettingsImpl.h:

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

9 years ago[Qt] Failure to build when QT_NO_CURSOR defined
commit-queue@webkit.org [Fri, 28 Oct 2011 00:50:31 +0000 (00:50 +0000)]
[Qt] Failure to build when QT_NO_CURSOR defined
https://bugs.webkit.org/show_bug.cgi?id=71060

Patch by Helder Correia <helder.correia@palm.com> on 2011-10-27
Reviewed by Noam Rosenthal.

PlatformVideoWindowQt needs to wrap some code around #ifndef
QT_NO_CURSOR in order to build QtWebKit when QT_NO_CURSOR is defined.

Build fix, no new tests.

* platform/graphics/gstreamer/PlatformVideoWindowQt.cpp:
(FullScreenVideoWindow::FullScreenVideoWindow):
(FullScreenVideoWindow::closeEvent):
(FullScreenVideoWindow::hideCursor):
(FullScreenVideoWindow::showCursor):

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

9 years agoadd snow leopard results for flexbox repaint tests
tony@chromium.org [Fri, 28 Oct 2011 00:44:49 +0000 (00:44 +0000)]
add snow leopard results for flexbox repaint tests
https://bugs.webkit.org/show_bug.cgi?id=71069

Reviewed by Ojan Vafai.

* css3/flexbox/repaint-rtl-column.html:
* css3/flexbox/repaint.html:
* platform/mac-snowleopard/css3/flexbox/repaint-expected.png: Added.
* platform/mac-snowleopard/css3/flexbox/repaint-rtl-column-expected.png: Added.

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

9 years ago[chromium] Remove some APIs which are not used anymore.
commit-queue@webkit.org [Fri, 28 Oct 2011 00:40:22 +0000 (00:40 +0000)]
[chromium] Remove some APIs which are not used anymore.
https://bugs.webkit.org/show_bug.cgi?id=71068

Patch by Peng Huang <penghuang@chromium.org> on 2011-10-27
Reviewed by Darin Fisher.

* public/WebWidget.h:
* src/WebPopupMenuImpl.cpp:
* src/WebPopupMenuImpl.h:
* src/WebViewImpl.cpp:
* src/WebViewImpl.h:

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

9 years agoUnreviewed, more gardening.
johnnyg@google.com [Fri, 28 Oct 2011 00:39:16 +0000 (00:39 +0000)]
Unreviewed, more gardening.

* platform/chromium-cg-mac-leopard/fast/writing-mode/fallback-orientation-expected.png:
* platform/chromium/test_expectations.txt:

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

9 years ago[chromium] Track when CCLayerImpl properties have changed.
commit-queue@webkit.org [Fri, 28 Oct 2011 00:37:02 +0000 (00:37 +0000)]
[chromium] Track when CCLayerImpl properties have changed.
https://bugs.webkit.org/show_bug.cgi?id=70442

Patch by Shawn Singh <shawnsingh@chromium.org> on 2011-10-27
Reviewed by James Robinson.

Source/WebCore:

To determine a good scissor rect, we must determine what
will change on the screen on the next redraw.  This patch
tracks the necessary information on CCLayerImpl and marks
a flag indicating whether this layer will "damage" the screen.
The other portion of "change", the updateRect, was already
landed in https://bugs.webkit.org/show_bug.cgi?id=69441.

New unit test added to CCLayerImplTest to test this patch.

* platform/graphics/chromium/cc/CCLayerImpl.cpp:
(WebCore::CCLayerImpl::CCLayerImpl):
(WebCore::CCLayerImpl::scrollBy):
(WebCore::CCLayerImpl::noteLayerPropertyChangedForSubtree):
(WebCore::CCLayerImpl::noteLayerPropertyChangedForDescendants):
(WebCore::CCLayerImpl::setBounds):
(WebCore::CCLayerImpl::setMaskLayer):
(WebCore::CCLayerImpl::setReplicaLayer):
(WebCore::CCLayerImpl::setDrawsContent):
(WebCore::CCLayerImpl::setAnchorPoint):
(WebCore::CCLayerImpl::setAnchorPointZ):
(WebCore::CCLayerImpl::setMasksToBounds):
(WebCore::CCLayerImpl::setOpaque):
(WebCore::CCLayerImpl::setOpacity):
(WebCore::CCLayerImpl::setPosition):
(WebCore::CCLayerImpl::setPreserves3D):
(WebCore::CCLayerImpl::setSublayerTransform):
(WebCore::CCLayerImpl::setTransform):
(WebCore::CCLayerImpl::setDebugBorderColor):
(WebCore::CCLayerImpl::setDebugBorderWidth):
(WebCore::CCLayerImpl::setContentBounds):
(WebCore::CCLayerImpl::setScrollPosition):
(WebCore::CCLayerImpl::setScrollDelta):
(WebCore::CCLayerImpl::setDoubleSided):
* platform/graphics/chromium/cc/CCLayerImpl.h:
(WebCore::CCLayerImpl::layerPropertyChanged):
(WebCore::CCLayerImpl::resetLayerPropertyChanged):

Source/WebKit/chromium:

* WebKit.gypi:
* tests/CCLayerImplTest.cpp: Added.
(WebCore::TEST):

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

9 years agoTest expectation errors should include the file name and platform in both the log...
levin@chromium.org [Fri, 28 Oct 2011 00:29:39 +0000 (00:29 +0000)]
Test expectation errors should include the file name and platform in both the log and exception info.
https://bugs.webkit.org/show_bug.cgi?id=71067

Reviewed by Ojan Vafai.

* Scripts/webkitpy/layout_tests/models/test_expectations.py:
* Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py:

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

9 years agonew-run-webkit-tests doesn't understand --qt or --gtk
eric@webkit.org [Fri, 28 Oct 2011 00:21:08 +0000 (00:21 +0000)]
new-run-webkit-tests doesn't understand --qt or --gtk
https://bugs.webkit.org/show_bug.cgi?id=63970

Reviewed by Ojan Vafai.

Add support for --qt and --gtk to NRWT.
I also removed some incorrect comments in the option parsing
code (options which we already implement, but said we didn't)
as well as moved --platform parsing out of the "results_options"
section into the top configuration section.

Now run-webkit-tests no longer needs NRWT-specific code for passing
--platform=qt, etc.

* Scripts/run-webkit-tests:
* Scripts/webkitpy/layout_tests/run_webkit_tests.py:

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

9 years agoAdd a Plugin::geometryDidChange that will work with transforms
andersca@apple.com [Fri, 28 Oct 2011 00:18:55 +0000 (00:18 +0000)]
Add a Plugin::geometryDidChange that will work with transforms
https://bugs.webkit.org/show_bug.cgi?id=71072

Reviewed by Simon Fraser.

Source/WebCore:

Export symbols needed by WebKit2.

* WebCore.exp.in:

Source/WebKit2:

Add a new Plugin::geometryDidChange pure virtual member function, that takes
the size of the plug-in, the clip rect (in plug-in coordinates), and a matrix that makes
it possible to convert between root view coordinates and plug-in coordinates.

PluginView only calls this new geometryDidChange member function if
Plugin::wantsWindowRelativeCoordinates returns false, which is only true for BuiltInPDFView right now.

* WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
(WebKit::NetscapePlugin::geometryDidChange):
* WebProcess/Plugins/Netscape/NetscapePlugin.h:
Add stub.

* WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
(WebKit::BuiltInPDFView::updateScrollbars):
(WebKit::BuiltInPDFView::pdfDocumentDidLoad):
(WebKit::BuiltInPDFView::paintContent):
(WebKit::BuiltInPDFView::deprecatedGeometryDidChange):
(WebKit::BuiltInPDFView::geometryDidChange):
(WebKit::BuiltInPDFView::setScrollOffset):
(WebKit::BuiltInPDFView::maximumScrollPosition):
(WebKit::BuiltInPDFView::visibleHeight):
(WebKit::BuiltInPDFView::visibleWidth):
* WebProcess/Plugins/PDF/BuiltInPDFView.h:
There's no need to keep track of the plug-in rect anymore.

* WebProcess/Plugins/Plugin.h:
Add and document geometryDidChange.

* WebProcess/Plugins/PluginProxy.cpp:
(WebKit::PluginProxy::geometryDidChange):
* WebProcess/Plugins/PluginProxy.h:
Add stub.

* WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::viewGeometryDidChange):
Call geometryDidChange.

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

9 years agoUnreviewed, gardening chromium.
johnnyg@google.com [Fri, 28 Oct 2011 00:01:45 +0000 (00:01 +0000)]
Unreviewed, gardening chromium.

* platform/chromium-cg-mac-snowleopard/fullscreen/full-screen-render-inline-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/table: Added.
* platform/chromium-mac-snowleopard/fast/table/border-collapsing: Added.
* platform/chromium-mac-snowleopard/fullscreen/full-screen-render-inline-expected.png: Added.
* platform/chromium-win-vista/fast/css/getComputedStyle: Removed.
* platform/chromium-win-vista/fast/css/getComputedStyle/computed-style-expected.txt: Removed.
* platform/chromium-win-xp/fast/css/getComputedStyle: Removed.
* platform/chromium-win-xp/fast/css/getComputedStyle/computed-style-expected.txt: Removed.
* platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt:
* platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt:
* platform/chromium/fast/css/getComputedStyle: Removed.
* platform/chromium/fast/css/getComputedStyle/computed-style-expected.txt: Removed.
* platform/chromium/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: Removed.
* platform/chromium/svg/css: Removed.
* platform/chromium/svg/css/getComputedStyle-basic-expected.txt: Removed.
* platform/chromium/test_expectations.txt:

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

9 years agoException subtypes have incorrect namespace indentation
abarth@webkit.org [Thu, 27 Oct 2011 23:58:36 +0000 (23:58 +0000)]
Exception subtypes have incorrect namespace indentation
https://bugs.webkit.org/show_bug.cgi?id=71075

Reviewed by Eric Seidel.

This patch is in preparation for editing these headers.  We decided to
not indent namespaces in headers and update the headers as we edited
them.

* dom/DOMCoreException.h:
(WebCore::DOMCoreException::create):
(WebCore::DOMCoreException::DOMCoreException):
* dom/EventException.h:
(WebCore::EventException::create):
(WebCore::EventException::EventException):
* dom/RangeException.h:
(WebCore::RangeException::create):
(WebCore::RangeException::RangeException):
* xml/XMLHttpRequestException.h:
(WebCore::XMLHttpRequestException::create):
(WebCore::XMLHttpRequestException::XMLHttpRequestException):
* xml/XPathException.h:
(WebCore::XPathException::create):
(WebCore::XPathException::XPathException):

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

9 years agoImplement new restrictions on uniform and attribute location lengths
kbr@google.com [Thu, 27 Oct 2011 23:55:11 +0000 (23:55 +0000)]
Implement new restrictions on uniform and attribute location lengths
https://bugs.webkit.org/show_bug.cgi?id=70981

Reviewed by Chris Marrin.

Source/WebCore:

Tests: fast/canvas/webgl/attrib-location-length-limits.html
       fast/canvas/webgl/uniform-location-length-limits.html

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::bindAttribLocation):
(WebCore::WebGLRenderingContext::getAttribLocation):
(WebCore::WebGLRenderingContext::getUniformLocation):
(WebCore::WebGLRenderingContext::validateLocationLength):
* html/canvas/WebGLRenderingContext.h:

LayoutTests:

* fast/canvas/webgl/attrib-location-length-limits-expected.txt: Added.
* fast/canvas/webgl/attrib-location-length-limits.html: Added (imported from WebGL conformance suite).
* fast/canvas/webgl/resources/webgl-test-utils.js:
(WebGLTestUtils):
(WebGLTestUtils.): Updated to latest version in WebGL conformance suite.
* fast/canvas/webgl/uniform-location-length-limits-expected.txt: Added.
* fast/canvas/webgl/uniform-location-length-limits.html: Added (imported from WebGL conformance suite).
* platform/mac/Skipped: Temporarily skip new tests on Mac until WebKit's copy of ANGLE is upgraded.

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

9 years ago[MutationObservers] Implement subtree observation of transiently disconnected nodes
commit-queue@webkit.org [Thu, 27 Oct 2011 23:38:09 +0000 (23:38 +0000)]
[MutationObservers] Implement subtree observation of transiently disconnected nodes
https://bugs.webkit.org/show_bug.cgi?id=70788

Patch by Rafael Weinstein <rafaelw@chromium.org> on 2011-10-27
Reviewed by Ryosuke Niwa.

Source/WebCore:

This patch adds support for observing all descendant nodes reachable from a subtree
observation until delivery of mutations -- even if they become detached. We do this by
introducing a "transient registration" which can exist for a short time along side
normal registrations on Node. Transient registrations have a reference to the node
which "owns" the subtree observation registration (the "registrationNode"). Transient
registrations are cleared immediately before mutations are delivered to an observer,
or when the observer re-observes at the registrationNode, in-effect resetting the
observation.

New tests added to fast/mutation/observe-subtree.html.

* dom/CharacterData.cpp:
(WebCore::CharacterData::dispatchModifiedEvent):
* dom/ChildListMutationScope.cpp:
(WebCore::MutationAccumulationRouter::ChildListMutationAccumulator::ChildListMutationAccumulator):
(WebCore::MutationAccumulationRouter::ChildListMutationAccumulator::enqueueMutationRecord):
(WebCore::MutationAccumulationRouter::MutationAccumulationRouter::incrementScopingLevel):
* dom/ContainerNode.cpp:
(WebCore::dispatchChildRemovalEvents):
* dom/Element.cpp:
(WebCore::enqueueAttributesMutationRecord):
* dom/Node.cpp:
(WebCore::addMatchingObservers):
(WebCore::Node::getRegisteredMutationObserversOfType):
(WebCore::Node::registerMutationObserver):
(WebCore::Node::unregisterMutationObserver):
(WebCore::Node::notifySubtreeObserversOfDisconnection):
* dom/Node.h:
* dom/NodeRareData.h:
(WebCore::MutationObserverEntry::MutationObserverEntry):
(WebCore::MutationObserverEntry::operator==):
* dom/WebKitMutationObserver.cpp:
(WebCore::WebKitMutationObserver::observe):
(WebCore::unregisterTransientEntries):
(WebCore::WebKitMutationObserver::disconnect):
(WebCore::WebKitMutationObserver::observedNodeDestructed):
(WebCore::WebKitMutationObserver::observedSubtreeWillDisconnect):
(WebCore::WebKitMutationObserver::clearTransientEntries):
(WebCore::WebKitMutationObserver::deliver):
* dom/WebKitMutationObserver.h:

LayoutTests:

Added tests which assert that nodes can be detached from a subtree where observation is registered
and still be observed -- until the end of the current "microtask".

* fast/mutation/observe-subtree-expected.txt:
* fast/mutation/observe-subtree.html:

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

9 years agoIf the bytecode generator emits code after the return in the first basic block,
fpizlo@apple.com [Thu, 27 Oct 2011 23:35:43 +0000 (23:35 +0000)]
If the bytecode generator emits code after the return in the first basic block,
DFG's inliner crashes
https://bugs.webkit.org/show_bug.cgi?id=71071

Source/JavaScriptCore:

Reviewed by Gavin Barraclough.

Removed some cruft dealing with parsing failures due to unsupported functionality
(that's never reached anymore due to it being caught in DFGCapabilities). This
allowed me to repurpose the bool return from parseBlock() to mean: true if we
should continue to parse, or false if we've already parsed all live code.

* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::ByteCodeParser):
(JSC::DFG::ByteCodeParser::parseBlock):
(JSC::DFG::ByteCodeParser::parseCodeBlock):

LayoutTests:

Reviewed by Gavin Barraclough.

* fast/js/dfg-inline-early-return-expected.txt: Added.
* fast/js/dfg-inline-early-return.html: Added.
* fast/js/script-tests/dfg-inline-early-return.js: Added.
(foo):
(bar):

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

9 years agoAsk CG to not parse image metadata
psolanki@apple.com [Thu, 27 Oct 2011 23:24:59 +0000 (23:24 +0000)]
Ask CG to not parse image metadata
https://bugs.webkit.org/show_bug.cgi?id=71029

Reviewed by Simon Fraser.

We don't need CG to parse the image metadata since WebCore never uses it. Passing this
option shaves off time spent under CGImageSourceCopyPropertiesAtIndex. Under Instruments I
saw the time drop from ~75ms to ~25ms when loading http://boston.com/bigpicture and the
first link on that page.

No new tests because no change in functionality.

* platform/graphics/ImageSource.h:
* platform/graphics/cg/ImageSourceCG.cpp:
(WebCore::imageSourceOptions):
(WebCore::ImageSource::isSizeAvailable):
(WebCore::ImageSource::frameSizeAtIndex):
(WebCore::ImageSource::getHotSpot):
(WebCore::ImageSource::repetitionCount):
(WebCore::ImageSource::createFrameAtIndex):
(WebCore::ImageSource::frameDurationAtIndex):

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

9 years agoMove eventqueue from Document to ScriptExecutionContext so that it can be accessed...
dgrogan@chromium.org [Thu, 27 Oct 2011 23:15:04 +0000 (23:15 +0000)]
Move eventqueue from Document to ScriptExecutionContext so that it can be accessed from workers
https://bugs.webkit.org/show_bug.cgi?id=57789

Extract interface from EventQueue and create two new subclasses:
DocumentEventQueue and WorkerEventQueue.  DocumentEventQueue is the
old EventQueue implementation that uses DOMTimer(0) to post async
events.  WorkerEventQueue posts events to its thread's message loop.

Reviewed by David Levin.

No new tests - IndexedDB will use this but isn't ready yet.  I don't
know of any other API available in workers that I can test this with.

* GNUmakefile.list.am:
* WebCore.gypi:
* WebCore.pro:
* WebCore.xcodeproj/project.pbxproj:
* dom/DOMAllInOne.cpp:
* dom/Document.cpp:
(WebCore::Document::Document):
* dom/Document.h:
(WebCore::Document::eventQueue):
* dom/DocumentEventQueue.cpp: Renamed from Source/WebCore/dom/EventQueue.cpp.
(WebCore::shouldDispatchScrollEventSynchronously):
(WebCore::DocumentEventQueueTimer::DocumentEventQueueTimer):
(WebCore::DocumentEventQueueTimer::fired):
(WebCore::DocumentEventQueue::create):
(WebCore::DocumentEventQueue::DocumentEventQueue):
(WebCore::DocumentEventQueue::~DocumentEventQueue):
(WebCore::DocumentEventQueue::enqueueEvent):
(WebCore::DocumentEventQueue::enqueueOrDispatchScrollEvent):
(WebCore::DocumentEventQueue::cancelEvent):
(WebCore::DocumentEventQueue::close):
(WebCore::DocumentEventQueue::pendingEventTimerFired):
(WebCore::DocumentEventQueue::dispatchEvent):
* dom/DocumentEventQueue.h: Copied from Source/WebCore/dom/EventQueue.h.
* dom/EventQueue.h:
* dom/ScriptExecutionContext.h:
* page/EventHandler.cpp: Change EventQueue to DocumentEventQueue.
(WebCore::EventHandler::sendScrollEvent): Change EventQueue to DocumentEventQueue.
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::scrollTo): Change EventQueue to DocumentEventQueue.
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::scrollTo): Change EventQueue to DocumentEventQueue.
* storage/IDBDatabase.cpp:
* storage/IDBRequest.cpp:
* storage/IDBTransaction.cpp:
* workers/WorkerContext.cpp:
(WebCore::WorkerContext::eventQueue):
* workers/WorkerContext.h:
* workers/WorkerEventQueue.cpp: Added.
(WebCore::WorkerEventQueue::create):
(WebCore::WorkerEventQueue::WorkerEventQueue):
(WebCore::WorkerEventQueue::~WorkerEventQueue):
(WebCore::WorkerEventQueue::EventDispatcherTask::create):
(WebCore::WorkerEventQueue::EventDispatcherTask::dispatchEvent):
(WebCore::WorkerEventQueue::EventDispatcherTask::performTask):
(WebCore::WorkerEventQueue::EventDispatcherTask::cancel):
(WebCore::WorkerEventQueue::EventDispatcherTask::EventDispatcherTask):
(WebCore::WorkerEventQueue::removeEvent):
(WebCore::WorkerEventQueue::enqueueEvent):
(WebCore::WorkerEventQueue::cancelEvent):
(WebCore::WorkerEventQueue::close):
* workers/WorkerEventQueue.h: Copied from Source/WebCore/dom/EventQueue.h.

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

9 years agoUnreviewed, new chromium expectations for shading/anti-aliasing changes.
johnnyg@google.com [Thu, 27 Oct 2011 23:14:18 +0000 (23:14 +0000)]
Unreviewed, new chromium expectations for shading/anti-aliasing changes.

* fast/borders/borderRadiusDashed06-expected.txt: Added.
* platform/chromium-cg-mac-leopard/fast/table/028-vertical-expected.png: Added.
* platform/chromium-cg-mac-leopard/fullscreen/parent-flow-inline-with-block-child-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/backgrounds/background-leakage-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/backgrounds/size: Added.
* platform/chromium-cg-mac-snowleopard/fast/backgrounds/size/contain-and-cover-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/borders/borderRadiusDashed06-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/css/shadow-multiple-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/menulist-clip-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/menulist-option-wrap-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/menulist-restrict-line-height-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/menulist-separator-painting-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/menulist-style-color-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/select-baseline-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/select-empty-option-height-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/media/audio-repaint-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/media/video-zoom-controls-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/svg/clip-path: Added.
* platform/chromium-cg-mac-snowleopard/svg/clip-path/clip-path-childs-clipped-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/svg/custom: Added.
* platform/chromium-cg-mac-snowleopard/svg/custom/focus-ring-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/svg/filters: Added.
* platform/chromium-cg-mac-snowleopard/svg/filters/filter-clip-expected.png: Added.
* platform/chromium-cg-mac/fast/backgrounds/background-leakage-expected.png: Removed.
* platform/chromium-cg-mac/fast/backgrounds/size/contain-and-cover-expected.png: Removed.
* platform/chromium-cg-mac/fast/borders/borderRadiusDashed06-expected.png: Removed.
* platform/chromium-cg-mac/fast/css/shadow-multiple-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/menulist-clip-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/menulist-option-wrap-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/menulist-restrict-line-height-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/menulist-separator-painting-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/menulist-style-color-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/select-baseline-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/select-empty-option-height-expected.png: Removed.
* platform/chromium-cg-mac/media/audio-repaint-expected.png: Removed.
* platform/chromium-cg-mac/media/video-zoom-controls-expected.png: Removed.
* platform/chromium-cg-mac/media/video-zoom-controls-expected.txt: Removed.
* platform/chromium-cg-mac/svg/clip-path/clip-path-childs-clipped-expected.png: Removed.
* platform/chromium-cg-mac/svg/custom/focus-ring-expected.png: Removed.
* platform/chromium-cg-mac/svg/filters/filter-clip-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/backgrounds/background-leakage-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/backgrounds/background-leakage-transforms-expected.png:
* platform/chromium-mac-snowleopard/fast/borders/borderRadiusDashed06-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/box-shadow: Added.
* platform/chromium-mac-snowleopard/fast/box-shadow/box-shadow-clipped-slices-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/css/shadow-multiple-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/menulist-clip-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/menulist-narrow-width-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/menulist-option-wrap-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/menulist-restrict-line-height-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/menulist-separator-painting-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/menulist-style-color-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/select-baseline-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/select-empty-option-height-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/text: Added.
* platform/chromium-mac-snowleopard/fast/text/emphasis-overlap-expected.png: Added.
* platform/chromium-mac-snowleopard/fullscreen/parent-flow-inline-with-block-child-expected.png: Added.
* platform/chromium-mac-snowleopard/media/audio-repaint-expected.png: Added.
* platform/chromium-mac-snowleopard/media/video-zoom-controls-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1: Added.
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/masking-path-02-b-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/clip-path: Added.
* platform/chromium-mac-snowleopard/svg/clip-path/clip-path-childs-clipped-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/custom: Added.
* platform/chromium-mac-snowleopard/svg/custom/focus-ring-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/filters/filter-clip-expected.png: Added.
* platform/chromium-mac/fast/backgrounds/background-leakage-expected.png: Removed.
* platform/chromium-mac/fast/borders/borderRadiusDashed06-expected.png: Removed.
* platform/chromium-mac/fast/box-shadow/box-shadow-clipped-slices-expected.png: Removed.
* platform/chromium-mac/fast/css/shadow-multiple-expected.png: Removed.
* platform/chromium-mac/fast/forms/menulist-clip-expected.png: Removed.
* platform/chromium-mac/fast/forms/menulist-narrow-width-expected.png: Removed.
* platform/chromium-mac/fast/forms/menulist-option-wrap-expected.png: Removed.
* platform/chromium-mac/fast/forms/menulist-restrict-line-height-expected.png: Removed.
* platform/chromium-mac/fast/forms/menulist-separator-painting-expected.png: Removed.
* platform/chromium-mac/fast/forms/menulist-style-color-expected.png: Removed.
* platform/chromium-mac/fast/forms/select-baseline-expected.png: Removed.
* platform/chromium-mac/fast/forms/select-empty-option-height-expected.png: Removed.
* platform/chromium-mac/fast/text/emphasis-overlap-expected.png: Removed.
* platform/chromium-mac/media/audio-repaint-expected.png: Removed.
* platform/chromium-mac/media/video-zoom-controls-expected.png: Removed.
* platform/chromium-mac/media/video-zoom-controls-expected.txt: Removed.
* platform/chromium-mac/svg/W3C-SVG-1.1/masking-path-02-b-expected.png: Removed.
* platform/chromium-mac/svg/clip-path/clip-path-childs-clipped-expected.png: Removed.
* platform/chromium-mac/svg/custom/focus-ring-expected.png: Removed.
* platform/chromium-mac/svg/filters/filter-clip-expected.png: Removed.
* platform/chromium-win-xp/media: Added.
* platform/chromium-win-xp/media/video-zoom-controls-expected.png: Added.
* platform/chromium-win-xp/media/video-zoom-controls-expected.txt: Added.
* platform/chromium/media/video-zoom-controls-expected.txt: Added.
* platform/gtk/fast/borders/borderRadiusDashed06-expected.txt: Removed.
* platform/gtk/svg/clip-path/clip-path-childs-clipped-expected.txt: Removed.
* platform/mac/fast/borders/borderRadiusDashed06-expected.txt: Removed.
* platform/mac/svg/clip-path/clip-path-childs-clipped-expected.txt: Removed.
* platform/qt/fast/borders/borderRadiusDashed06-expected.txt: Removed.
* platform/qt/svg/clip-path/clip-path-childs-clipped-expected.txt: Removed.
* platform/win-xp/media/audio-repaint-expected.txt: Removed.
* svg/clip-path/clip-path-childs-clipped-expected.txt: Added.

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

9 years ago[GStreamer] Prevent memory leak when fullscreening a video
commit-queue@webkit.org [Thu, 27 Oct 2011 23:06:26 +0000 (23:06 +0000)]
[GStreamer] Prevent memory leak when fullscreening a video
https://bugs.webkit.org/show_bug.cgi?id=71043

Patch by Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> on 2011-10-27
Reviewed by Gustavo Noronha Silva.

* platform/graphics/gstreamer/GStreamerGWorld.cpp:
(WebCore::GStreamerGWorld::GStreamerGWorld):
(WebCore::GStreamerGWorld::enterFullscreen):
(WebCore::GStreamerGWorld::exitFullscreen):
* platform/graphics/gstreamer/GStreamerGWorld.h:

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

9 years agoPatch by Joseph Pecoraro <pecoraro@apple.com> on 2011-10-27
commit-queue@webkit.org [Thu, 27 Oct 2011 22:51:40 +0000 (22:51 +0000)]
Patch by Joseph Pecoraro <pecoraro@apple.com> on 2011-10-27
Reviewed by David Kilzer.

Make FeatureDefines Identical Across OS X Projects
https://bugs.webkit.org/show_bug.cgi?id=71051

Source/JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit/mac:

* Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

* Configurations/FeatureDefines.xcconfig:

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

9 years agoWeb Inspector: HTTP headers merged incorrect in Chrome
vsevik@chromium.org [Thu, 27 Oct 2011 22:38:31 +0000 (22:38 +0000)]
Web Inspector: HTTP headers merged incorrect in Chrome
https://bugs.webkit.org/show_bug.cgi?id=69674

Reviewed by Pavel Feldman.

* src/WebHTTPLoadInfo.cpp:
(WebKit::addHeader):

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

9 years agoCorrectly Guard Exported REQUEST_ANIMATION_FRAME Symbols
commit-queue@webkit.org [Thu, 27 Oct 2011 22:34:59 +0000 (22:34 +0000)]
Correctly Guard Exported REQUEST_ANIMATION_FRAME Symbols
https://bugs.webkit.org/show_bug.cgi?id=71047

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2011-10-27
Reviewed by David Kilzer.

* WebCore.exp.in:

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

9 years agoCrash in JSC::Structure::materializePropertyMap when viewing Garden-O-Matic
fpizlo@apple.com [Thu, 27 Oct 2011 22:19:14 +0000 (22:19 +0000)]
Crash in JSC::Structure::materializePropertyMap when viewing Garden-O-Matic
https://bugs.webkit.org/show_bug.cgi?id=71045

Reviewed by Geoff Garen.

Make sure that if a structure is pinned, it also has a property map.

* runtime/Structure.cpp:
(JSC::Structure::changePrototypeTransition):
(JSC::Structure::despecifyFunctionTransition):
(JSC::Structure::getterSetterTransition):
(JSC::Structure::toDictionaryTransition):
(JSC::Structure::preventExtensionsTransition):
(JSC::Structure::addPropertyWithoutTransition):
(JSC::Structure::removePropertyWithoutTransition):
(JSC::Structure::pin):
(JSC::Structure::copyPropertyTableForPinning):
* runtime/Structure.h:
(JSC::Structure::materializePropertyMapIfNecessaryForPinning):

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

9 years agoRename Plugin::geometryDidChange to Plugin::deprecatedGeometryDidChange
andersca@apple.com [Thu, 27 Oct 2011 22:07:32 +0000 (22:07 +0000)]
Rename Plugin::geometryDidChange to Plugin::deprecatedGeometryDidChange
https://bugs.webkit.org/show_bug.cgi?id=71065

Reviewed by Simon Fraser.

In preparation for adding a version of geometryDidChange that doesn't take window coordinates.

* PluginProcess/PluginControllerProxy.cpp:
(WebKit::PluginControllerProxy::geometryDidChange):
* WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
(WebKit::NetscapePlugin::deprecatedGeometryDidChange):
* WebProcess/Plugins/Netscape/NetscapePlugin.h:
* WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
(WebKit::BuiltInPDFView::deprecatedGeometryDidChange):
* WebProcess/Plugins/PDF/BuiltInPDFView.h:
* WebProcess/Plugins/Plugin.h:
* WebProcess/Plugins/PluginProxy.cpp:
(WebKit::PluginProxy::deprecatedGeometryDidChange):
* WebProcess/Plugins/PluginProxy.h:
* WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::viewGeometryDidChange):

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

9 years agoUnreviewed, rolling out r98626.
commit-queue@webkit.org [Thu, 27 Oct 2011 22:05:17 +0000 (22:05 +0000)]
Unreviewed, rolling out r98626.
http://trac.webkit.org/changeset/98626
https://bugs.webkit.org/show_bug.cgi?id=71066

Does not compile on cr-win (Requested by jamesr_ on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-10-27

* platform/graphics/chromium/FontChromiumWin.cpp:
(WebCore::Font::drawGlyphs):
* platform/graphics/skia/SkiaFontWin.cpp:
(WebCore::paintSkiaText):

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

9 years agoFix a compiler warning caught by gcc 4.6.1. Need to return something.
tony@chromium.org [Thu, 27 Oct 2011 21:56:57 +0000 (21:56 +0000)]
Fix a compiler warning caught by gcc 4.6.1. Need to return something.

* platform/graphics/chromium/cc/CCSchedulerStateMachine.cpp:
(WebCore::CCSchedulerStateMachine::nextAction):

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

9 years ago32bit build failure after r98624
msaboff@apple.com [Thu, 27 Oct 2011 21:54:11 +0000 (21:54 +0000)]
32bit build failure after r98624
https://bugs.webkit.org/show_bug.cgi?id=71064

Disambiguated operator overload with unsigned index (0u).

Reviewed by Sam Weinig.

* runtime/UString.h:
(JSC::operator==):

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