WebKit-https.git
9 years ago3 tests fail on apple-macpro-6 (due to different JS MIME type) but not any other...
jberlin@webkit.org [Tue, 5 Apr 2011 22:10:09 +0000 (22:10 +0000)]
3 tests fail on apple-macpro-6 (due to different JS MIME type) but not any other Leopard
slaves.
https://bugs.webkit.org/show_bug.cgi?id=56564

Skip fast/preloader/scan-body-from-head-script.html on Leopard to get the bots green.

* platform/mac-leopard/Skipped:

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

9 years agoAdded wjmaclean@chromium.org to WebKit committers.
wjmaclean@chromium.org [Tue, 5 Apr 2011 22:07:47 +0000 (22:07 +0000)]
Added wjmaclean@chromium.org to WebKit committers.

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

9 years ago2011-04-05 Balazs Kelemen <kbalazs@webkit.org>
kbalazs@webkit.org [Tue, 5 Apr 2011 22:04:43 +0000 (22:04 +0000)]
2011-04-05  Balazs Kelemen  <kbalazs@webkit.org>

        Reviewed by Darin Adler.

        Build fix for YarrParser.h
        https://bugs.webkit.org/show_bug.cgi?id=57822

        * yarr/YarrParser.h:
        (JSC::Yarr::Parser::CharacterClassParserDelegate::CharacterClassParserDelegate):

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

9 years agoFollow-up Windows build fix.
sfalken@apple.com [Tue, 5 Apr 2011 22:03:51 +0000 (22:03 +0000)]
Follow-up Windows build fix.
Don't skip react-to-vsprops-changes.py for all production builds,
only those initiated via JavaScriptCore.make.

* JavaScriptCore.vcproj/JavaScriptCore.make:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGenerated.make:

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

9 years ago2011-04-05 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Tue, 5 Apr 2011 22:01:29 +0000 (22:01 +0000)]
2011-04-05  Oliver Hunt  <oliver@apple.com>

        Reviewed by Darin Adler.

        REGRESSION (r82849): 85,000+ JSC-related leaks seen on SnowLeopard Intel Leaks
        https://bugs.webkit.org/show_bug.cgi?id=57857

        Whoops, accidentally removed a deref().

        * bytecode/StructureStubInfo.cpp:
        (JSC::StructureStubInfo::deref):

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

9 years ago2011-04-05 Vsevolod Vlasov <vsevik@chromium.org>
commit-queue@webkit.org [Tue, 5 Apr 2011 21:59:09 +0000 (21:59 +0000)]
2011-04-05  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: fix data url's status and timing the network panel.
        https://bugs.webkit.org/show_bug.cgi?id=53066

        Added data url support for status of network resources.

        * English.lproj/localizedStrings.js:
        * inspector/front-end/NetworkPanel.js:
        (WebInspector.NetworkDataGridNode.prototype._refreshStatusCell):
        * inspector/front-end/Resource.js:
        (WebInspector.Resource.prototype.isDataURL):

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

9 years agoWindows build fix.
sfalken@apple.com [Tue, 5 Apr 2011 21:53:54 +0000 (21:53 +0000)]
Windows build fix.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGenerated.vcproj: Add per-configuration vsprops files.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGeneratedCommon.vsprops: Removed inheritance from common.vsprops.
Set production environment variable before calling make.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGeneratedDebug.vsprops: Added.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGeneratedDebugAll.vsprops: Added.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGeneratedDebugCairoCFLite.vsprops: Added.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGeneratedProduction.vsprops: Added.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGeneratedRelease.vsprops: Added.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGeneratedReleaseCairoCFLite.vsprops: Added.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGeneratedReleasePGO.vsprops: Added.

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

9 years ago2011-04-05 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 5 Apr 2011 21:25:40 +0000 (21:25 +0000)]
2011-04-05  Anders Carlsson  <andersca@apple.com>

        Reviewed by Darin Adler.

        Assertion failure when navigating quickly between file URLs
        https://bugs.webkit.org/show_bug.cgi?id=57884
        <rdar://problem/9080559>

        Remove bogus assertion. The pending provisional sandbox extension can be
        non-null if the current provisional load fails because we're about to load a new
        page that also has a sandbox extension.

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::SandboxExtensionTracker::didFailProvisionalLoad):

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

9 years ago2011-04-04 Vitaly Repeshko <vitalyr@chromium.org>
vitalyr@chromium.org [Tue, 5 Apr 2011 21:20:31 +0000 (21:20 +0000)]
2011-04-04  Vitaly Repeshko  <vitalyr@chromium.org>

        Reviewed by Adam Barth.

        [V8] Keep dirty primitive CSS values alive.
        https://bugs.webkit.org/show_bug.cgi?id=57810

        * bindings/v8/V8GCController.cpp:
        (WebCore::GrouperVisitor::visitDOMWrapper):

2011-04-04  Vitaly Repeshko  <vitalyr@chromium.org>

        Reviewed by Adam Barth.

        [V8] Keep dirty primitive CSS values alive.
        https://bugs.webkit.org/show_bug.cgi?id=57810

        * platform/chromium/test_expectations.txt: Mark
        fast/dom/StyleSheet/gc-inline-style-cssvalues.html as passing.

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

9 years ago2011-04-05 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 5 Apr 2011 21:11:49 +0000 (21:11 +0000)]
2011-04-05  Anders Carlsson  <andersca@apple.com>

        Reviewed by Adam Roben.

        Grant the web process access to ~/Library/Preferences/com.apple.universalaccess.plist
        https://bugs.webkit.org/show_bug.cgi?id=57879

        The web process needs access to the unviersal access preferences to determine if full keyboard
        access is enabled. I've filed <rdar://problem/9237619> which tracks reading this preference in the UI
        process and sending it over to the web process whenever it changes.

        * WebProcess/com.apple.WebProcess.sb:

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

9 years ago[Windows] fast/blockflow/Kusa-Makura-background-canvas.html failing since introducti...
bweinstein@apple.com [Tue, 5 Apr 2011 21:07:29 +0000 (21:07 +0000)]
[Windows]  fast/blockflow/Kusa-Makura-background-canvas.html failing since introduction in r82903
https://bugs.webkit.org/show_bug.cgi?id=57880

Update Windows expected results (with pixel tests) to greenify the bots.

* platform/win/fast/blockflow/Kusa-Makura-background-canvas-expected.checksum:
* platform/win/fast/blockflow/Kusa-Makura-background-canvas-expected.png:
* platform/win/fast/blockflow/Kusa-Makura-background-canvas-expected.txt:

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

9 years ago2011-04-05 MORITA Hajime <morrita@google.com>
morrita@google.com [Tue, 5 Apr 2011 21:04:16 +0000 (21:04 +0000)]
2011-04-05  MORITA Hajime  <morrita@google.com>

        Reviewed by Adam Barth.

        webkit-patch should print git's stderr when git svn dcommit fail
        http://webkit.org/b/57861

        * Scripts/webkitpy/common/checkout/scm.py:

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

9 years ago[Windows Tests] fast/dom/Window/window-property-descriptors.html failing since r82925.
jberlin@webkit.org [Tue, 5 Apr 2011 20:59:33 +0000 (20:59 +0000)]
[Windows Tests] fast/dom/Window/window-property-descriptors.html failing since r82925.
https://bugs.webkit.org/show_bug.cgi?id=57881

Update the Windows-specific results to get the bots green.

* platform/win/fast/dom/Window/window-property-descriptors-expected.txt:
onformchange and onforminput were removed in r82925.

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

9 years ago2011-04-05 Zelidrag Hornung <zelidrag@chromium.org>
commit-queue@webkit.org [Tue, 5 Apr 2011 20:44:21 +0000 (20:44 +0000)]
2011-04-05  Zelidrag Hornung  <zelidrag@chromium.org>

        Reviewed by David Levin.

        Added MediaTypeFile enum value to WebContextMenuData::MediaType.
        https://bugs.webkit.org/show_bug.cgi?id=57566

        * public/WebContextMenuData.h:

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

9 years ago2011-04-05 Tony Chang <tony@chromium.org>
tony@chromium.org [Tue, 5 Apr 2011 20:37:15 +0000 (20:37 +0000)]
2011-04-05  Tony Chang  <tony@chromium.org>

        Unreviewed, removing the chromium-win results causes this test to
        start passing on chromium win and linux.

        * platform/chromium-win/fast/images/svg-as-tiled-background-expected.checksum: Removed.
        * platform/chromium-win/fast/images/svg-as-tiled-background-expected.png: Removed.
        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-05 Dean Jackson <dino@apple.com>
dino@apple.com [Tue, 5 Apr 2011 20:34:03 +0000 (20:34 +0000)]
2011-04-05  Dean Jackson  <dino@apple.com>

        Reviewed by Simon Fraser.

        Add parentheses around && within || to avoid clang warning.

        * WebProcess/WebPage/DrawingAreaImpl.cpp:
        (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState):

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

9 years ago2011-04-05 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 5 Apr 2011 20:26:38 +0000 (20:26 +0000)]
2011-04-05  Anders Carlsson  <andersca@apple.com>

        Reviewed by Adam Roben.

        Add two more entries to the sandbox profile
        https://bugs.webkit.org/show_bug.cgi?id=57875

        Allow read-access to /Library/Dictionaries since WebCore::nextBreakablePosition
        ends up calling into ICU which accesses the dictionary.

        Allow Mach access to com.apple.networkd since it's used by CFNetwork.

        * WebProcess/com.apple.WebProcess.sb:

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

9 years ago2011-04-05 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Tue, 5 Apr 2011 20:03:18 +0000 (20:03 +0000)]
2011-04-05  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Tony Chang.

        Add --baseline-search-path to NRWT
        https://bugs.webkit.org/show_bug.cgi?id=56233

        Add NRWT option to specify additional directories to look for baselines
        (will be used by hardware GPU bots which will have local per-bot
        expectations for some tests)

        * Scripts/webkitpy/common/system/filesystem_mock.py:
        * Scripts/webkitpy/layout_tests/port/base.py:
        * Scripts/webkitpy/layout_tests/port/base_unittest.py:
        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:

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

9 years ago2011-04-05 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Tue, 5 Apr 2011 20:03:08 +0000 (20:03 +0000)]
2011-04-05  Oliver Hunt  <oliver@apple.com>

        Reviewed by Gavin Barraclough.

        Make caches window show more info about non-jsobject GC values
        https://bugs.webkit.org/show_bug.cgi?id=57874

        Add ClassInfo to the various internal JS types that currently
        don't have any, and make the text for caches window show the
        classname for non-JSObject instances.

        * runtime/Executable.cpp:
        * runtime/Executable.h:
        (JSC::ExecutableBase::createStructure):
        (JSC::NativeExecutable::createStructure):
        (JSC::NativeExecutable::NativeExecutable):
        (JSC::EvalExecutable::createStructure):
        (JSC::ProgramExecutable::createStructure):
        (JSC::FunctionExecutable::createStructure):
        * runtime/Heap.cpp:
        (JSC::TypeCounter::typeName):
        * runtime/JSGlobalData.cpp:
        (JSC::JSGlobalData::JSGlobalData):
        * runtime/JSGlobalData.h:
        * runtime/ScopeChain.cpp:
        * runtime/ScopeChain.h:
        (JSC::ScopeChainNode::createStructure):
        * runtime/StructureChain.cpp:
        * runtime/StructureChain.h:
        (JSC::StructureChain::createStructure):

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

9 years ago2011-04-05 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 5 Apr 2011 20:02:42 +0000 (20:02 +0000)]
2011-04-05  Anders Carlsson  <andersca@apple.com>

        Reviewed by Oliver Hunt.

        Invalidate callbacks if the WebPageProxy is no longer valid
        https://bugs.webkit.org/show_bug.cgi?id=57873
        <rdar://problem/9059717>

        Audit all function calls that take callbacks and make sure to invalidate the callbacks
        if the web page is no longer valid.

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::runJavaScriptInMainFrame):
        (WebKit::WebPageProxy::getRenderTreeExternalRepresentation):
        (WebKit::WebPageProxy::getSourceForFrame):
        (WebKit::WebPageProxy::getContentsAsString):
        (WebKit::WebPageProxy::getSelectionOrContentsAsString):
        (WebKit::WebPageProxy::getMainResourceDataOfFrame):
        (WebKit::WebPageProxy::getResourceDataFromFrame):
        (WebKit::WebPageProxy::getWebArchiveOfFrame):
        (WebKit::WebPageProxy::forceRepaint):
        (WebKit::WebPageProxy::computePagesForPrinting):
        (WebKit::WebPageProxy::drawRectToPDF):
        (WebKit::WebPageProxy::drawPagesToPDF):

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

9 years ago2011-04-04 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Tue, 5 Apr 2011 20:01:56 +0000 (20:01 +0000)]
2011-04-04  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Adele Peterson.

        Add a fast path for simple color backgrounds
        https://bugs.webkit.org/show_bug.cgi?id=57773

        Add a fast path for drawing simple color backgrounds. It's
        faster to fill a path or rect than it is to set up a clip,
        and then paint the rect.

        No visible behavior change so no new tests.

        * rendering/RenderBoxModelObject.cpp:
        (WebCore::RenderBoxModelObject::paintFillLayerExtended):

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

9 years ago2011-04-05 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Tue, 5 Apr 2011 19:59:28 +0000 (19:59 +0000)]
2011-04-05  Patrick Gansterer  <paroga@webkit.org>

        Unreviewed EFL build fix for r82962.

        * CMakeListsEfl.txt:

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

9 years agoStrip off /results.html from results URLs before trying to load leaks files from...
aroben@apple.com [Tue, 5 Apr 2011 19:39:42 +0000 (19:39 +0000)]
Strip off /results.html from results URLs before trying to load leaks files from them

r82734 changed build.webkit.org's "view results" URLs to point straight to the results.html
files, rather than pointing to the directory that contains them. This is more convenient for
people browsing build.webkit.org, but confused Leaks Viewer.

Fixes <http://webkit.org/b/57869> REGRESSION (r82734): Links in Leaks Viewer's Recent Builds
list don't work

Reviewed by Joseph Pecoraro.

* BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/RecentBuildsLoader.js:
(RecentBuildsLoader.prototype.start): Strip off "/results.html" from the results URL.

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

9 years agoDisable accelerated compositing on Windows machines that don't support it
aroben@apple.com [Tue, 5 Apr 2011 19:33:44 +0000 (19:33 +0000)]
Disable accelerated compositing on Windows machines that don't support it

This includes machines without the necessary graphics hardware, and machines without
WebKitQuartzCoreAdditions (like the Windows 7 Release (WebKit2 Tests) bots).

Fixes <http://webkit.org/b/57870> REGRESSION (r82960): Lots of tests crashing in
DrawingAreaImpl::enterAcceleratedCompositingMode on Windows 7 Release (WebKit2 Tests)

Reviewed by Anders Carlsson.

* WebProcess/WebPage/LayerTreeHost.h:
(WebKit::LayerTreeHost::supportsAcceleratedCompositing): Added. On platforms other than
Windows, this always returns true.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences): Only enable accelerated compositing-related
preferences if the machine supports accelerated compositing.

* WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
(WebKit::LayerTreeHostCAWin::supportsAcceleratedCompositing): Added. Creates a view, asks it
if it can draw, and returns the result.

* WebProcess/WebPage/ca/win/LayerTreeHostCAWin.h: Added supportsAcceleratedCompositing.

* WebProcess/WebPage/win/LayerTreeHostWin.cpp: Added.
(WebKit::LayerTreeHost::supportsAcceleratedCompositing): Added. Calls through to
LayerTreeHostCAWin in configurations that support that class. Otherwise just returns false.

* win/WebKit2.vcproj: Added LayerTreeHostWin.cpp. Let VS reorder some other files.

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

9 years ago2011-04-05 David Levin <levin@chromium.org>
levin@chromium.org [Tue, 5 Apr 2011 19:18:51 +0000 (19:18 +0000)]
2011-04-05  David Levin  <levin@chromium.org>

        Reviewed by Jian Li.

        [chromium] send-sliced-dragged-file.html started to crash on chromium bots
        https://bugs.webkit.org/show_bug.cgi?id=57539

        * platform/chromium/test_expectations.txt: Removed passing test
          as it has been fixed in the chromium network stack as of chromium r80114
          and it was introduced in r79905 so no need to change the chromium deps
          since it is before the regression.

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

9 years ago2011-04-05 Adrienne Walker <enne@google.com>
enne@google.com [Tue, 5 Apr 2011 19:17:08 +0000 (19:17 +0000)]
2011-04-05  Adrienne Walker  <enne@google.com>

       Unreviewed, mark unexpectedly passing Linux Chromium tests as such.

        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-05 Chris Rogers <crogers@google.com>
crogers@google.com [Tue, 5 Apr 2011 18:59:53 +0000 (18:59 +0000)]
2011-04-05  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Add support for offline audio rendering to AudioContext API
        https://bugs.webkit.org/show_bug.cgi?id=57676

        No new tests since audio API is not yet implemented.

        * DerivedSources.make:
        * WebCore.gypi:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSAudioContextCustom.cpp:
        (WebCore::JSAudioContextConstructor::constructJSAudioContext):
        * bindings/js/JSEventCustom.cpp:
        (WebCore::toJS):
        * bindings/js/JSEventTarget.cpp:
        (WebCore::toJS):
        * bindings/v8/V8DOMWrapper.cpp:
        (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
        * bindings/v8/custom/V8AudioContextCustom.cpp:
        (WebCore::V8AudioContext::constructorCallback):
        * bindings/v8/custom/V8EventCustom.cpp:
        (WebCore::toV8):
        * dom/Event.cpp:
        (WebCore::Event::isOfflineAudioCompletionEvent):
        * dom/Event.h:
        * dom/EventTarget.cpp:
        (WebCore::EventTarget::toAudioContext):
        * dom/EventTarget.h:
        * platform/audio/HRTFDatabaseLoader.cpp:
        (WebCore::HRTFDatabaseLoader::waitForLoaderThreadCompletion):
        * platform/audio/HRTFDatabaseLoader.h:
        (WebCore::HRTFDatabaseLoader::loader):
        * webaudio/AudioContext.cpp:
        (WebCore::AudioContext::createOfflineContext):
        (WebCore::AudioContext::AudioContext):
        (WebCore::AudioContext::constructCommon):
        (WebCore::AudioContext::document):
        (WebCore::AudioContext::scriptExecutionContext):
        (WebCore::AudioContext::toAudioContext):
        (WebCore::AudioContext::startRendering):
        (WebCore::AudioContext::fireCompletionEvent):
        * webaudio/AudioContext.h:
        (WebCore::AudioContext::isOfflineContext):
        (WebCore::AudioContext::eventTargetData):
        (WebCore::AudioContext::ensureEventTargetData):
        (WebCore::AudioContext::refEventTarget):
        (WebCore::AudioContext::derefEventTarget):
        * webaudio/AudioContext.idl:
        * webaudio/AudioDestinationNode.cpp:
        (WebCore::AudioDestinationNode::AudioDestinationNode):
        * webaudio/AudioDestinationNode.h:
        (WebCore::AudioDestinationNode::reset):
        (WebCore::AudioDestinationNode::numberOfChannels):
        * webaudio/ConvolverNode.cpp:
        (WebCore::ConvolverNode::setBuffer):
        * webaudio/DefaultAudioDestinationNode.cpp: Added.
        (WebCore::DefaultAudioDestinationNode::DefaultAudioDestinationNode):
        (WebCore::DefaultAudioDestinationNode::~DefaultAudioDestinationNode):
        (WebCore::DefaultAudioDestinationNode::initialize):
        (WebCore::DefaultAudioDestinationNode::uninitialize):
        (WebCore::DefaultAudioDestinationNode::startRendering):
        * webaudio/DefaultAudioDestinationNode.h: Added.
        (WebCore::DefaultAudioDestinationNode::create):
        (WebCore::DefaultAudioDestinationNode::sampleRate):
        * webaudio/OfflineAudioCompletionEvent.cpp: Added.
        (WebCore::OfflineAudioCompletionEvent::create):
        (WebCore::OfflineAudioCompletionEvent::OfflineAudioCompletionEvent):
        (WebCore::OfflineAudioCompletionEvent::~OfflineAudioCompletionEvent):
        (WebCore::OfflineAudioCompletionEvent::isOfflineAudioCompletionEvent):
        * webaudio/OfflineAudioCompletionEvent.h: Added.
        (WebCore::OfflineAudioCompletionEvent::renderedBuffer):
        * webaudio/OfflineAudioCompletionEvent.idl: Added.
        * webaudio/OfflineAudioDestinationNode.cpp: Added.
        (WebCore::OfflineAudioDestinationNode::OfflineAudioDestinationNode):
        (WebCore::OfflineAudioDestinationNode::~OfflineAudioDestinationNode):
        (WebCore::OfflineAudioDestinationNode::initialize):
        (WebCore::OfflineAudioDestinationNode::uninitialize):
        (WebCore::OfflineAudioDestinationNode::startRendering):
        (WebCore::OfflineAudioDestinationNode::renderEntry):
        (WebCore::OfflineAudioDestinationNode::render):
        (WebCore::OfflineAudioDestinationNode::notifyCompleteDispatch):
        (WebCore::OfflineAudioDestinationNode::notifyComplete):
        * webaudio/OfflineAudioDestinationNode.h: Added.
        (WebCore::OfflineAudioDestinationNode::create):
        (WebCore::OfflineAudioDestinationNode::sampleRate):

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

9 years ago2011-04-05 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Tue, 5 Apr 2011 18:40:21 +0000 (18:40 +0000)]
2011-04-05  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Eric Seidel.

        [Cairo] Better separate the concerns of GraphicsContextCairo
        https://bugs.webkit.org/show_bug.cgi?id=55150

        Add a PlatformContextCairo which right now stores the cairo_t* for a
        GraphicsContextCairo. Later patches will move logic for tracking ContextShadow
        and image masking layers into this PlatformContextCairo class.

        No new tests. This patch is only a code cleanup.

        * GNUmakefile.am:
        * platform/graphics/GraphicsContext.h: The platform context is no longer a
        cairo_t, but our new class the PlatformContextCairo.
        * platform/graphics/cairo/ContextShadowCairo.cpp: Updated to reflect new class.j
        * platform/graphics/cairo/FontCairo.cpp: Ditto.
        * platform/graphics/cairo/GradientCairo.cpp: Ditto.
        * platform/graphics/cairo/GraphicsContextCairo.cpp: Mostly mechanical
        changes which now reference platformContext()->cr() to get the cairo_t.
        * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h: Now hold the
        PlatformContextCairo instead of the cairo_t.
        * platform/graphics/cairo/ImageBufferCairo.cpp: Update to reflect new class.
        * platform/graphics/cairo/ImageCairo.cpp: Ditto.
        * platform/graphics/cairo/PathCairo.cpp: Ditto.
        * platform/graphics/cairo/PlatformContextCairo.cpp: Added.
        * platform/graphics/cairo/PlatformContextCairo.h: Added.
        * platform/graphics/gtk/FontGtk.cpp: Update to reflect new class.
        * platform/graphics/gtk/IconGtk.cpp: Ditto.
        * platform/graphics/win/GraphicsContextCairoWin.cpp: Now fill out
        m_data with a private section containing the platform context instead of
        just a cairo_t.
        * platform/gtk/RenderThemeGtk.cpp: Update to reflect new class.
        * platform/gtk/WidgetRenderingContext.cpp: Ditto.
        (WebCore::WidgetRenderingContext::~WidgetRenderingContext): Ditto.
        * plugins/gtk/PluginViewGtk.cpp: Ditto.
2011-04-05  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Eric Seidel.

        [Cairo] Better separate the concerns of GraphicsContextCairo
        https://bugs.webkit.org/show_bug.cgi?id=55150

        Add a PlatformContextCairo which right now stores the cairo_t* for a
        GraphicsContextCairo. Later patches will move logic for tracking ContextShadow
        and image masking layers into this PlatformContextCairo class.

        * webkit/webkitwebframe.cpp:
        (draw_page_callback):
        * webkit/webkitwebview.cpp:
        (webkit_web_view_expose_event):
        (webkit_web_view_draw):
2011-04-05  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Eric Seidel.

        [Cairo] Better separate the concerns of GraphicsContextCairo
        https://bugs.webkit.org/show_bug.cgi?id=55150

        * WebFrame.cpp:
        (hdcFromContext): Modify this method to take PlatformContextCairo
        instead of a cairo_t.
        (WebFrame::spoolPage): Update to reflect new platform context.
        (WebFrame::spoolPages): Ditto.
        * WebFrame.h: Ditto.

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

9 years ago2011-04-05 Adrienne Walker <enne@google.com>
enne@google.com [Tue, 5 Apr 2011 18:36:53 +0000 (18:36 +0000)]
2011-04-05  Adrienne Walker  <enne@google.com>

       Unreviewed, mark some unexpectedly passing Chromium tests as such.

        * platform/chromium/test_expectations.txt:

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

9 years agoMake accelerated compositing work in WebKit2 on Windows
aroben@apple.com [Tue, 5 Apr 2011 18:01:52 +0000 (18:01 +0000)]
Make accelerated compositing work in WebKit2 on Windows

LayerTreeHostCAWin uses WKCACFView to render each frame to an image, then has
DrawingAreaImpl send that image over to the UI process (just like it does for
non-accelerated rendering). It's unfortunate that this requires reading every frame back
from the GPU into system memory. More efficient solutions can be explored in the future.

Fixes <http://webkit.org/b/45567>.

Reviewed by Anders Carlsson.

* DerivedSources.make: Added $(WebKit2) to the VPATH so that DerivedSources.make can be
found when used as a target dependency. Added rules to generate a HeaderDetection.h file on
Windows. If we can find WebKitQuartzCoreAdditions headers, we define HAVE_WKQCA in
HeaderDetection.h.

* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit::DrawingAreaImpl::setLayerHostNeedsDisplay):
* WebProcess/WebPage/DrawingAreaImpl.h:
Added setLayerHostNeedsDisplay. Lets the layer host tell the DrawingAreaImpl that it has a
new frame to render. This should only be called by layer hosts that participate in
DrawingAreaImpl's display mechanism.

* WebProcess/WebPage/LayerTreeHost.cpp:
(WebKit::LayerTreeHost::create): Only try to instantiate LayerTreeHostCAWin if we have
WebKitQuartzCoreAdditions, since it depends on that library.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences): Removed code that forced accelerated compositing to be
disabled on Windows.

* WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
(WebKit::registerDummyWindowClass): Registers the window class we use for the dummy window.
(WebKit::createDummyWindow): Creates the dummy window we pass to WKCACFView so that D3D can
determine the display mode, etc. (The window is never shown on screen.)
(WebKit::LayerTreeHostCAWin::LayerTreeHostCAWin): Initialize new members.
(WebKit::LayerTreeHostCAWin::platformInitialize): Create our dummy window and view and
associate the two. We set ourselves as the view's context's user data so that
PlatformCALayer can get our AbstractCACFLayerTreeHost pointer as needed.
(WebKit::LayerTreeHostCAWin::invalidate): Cancel any pending flushes, tear down our view,
and destroy the dummy window if no other layer host is using it.
(WebKit::LayerTreeHostCAWin::scheduleLayerFlush): Ask LayerChangesFlusher to call us back
soon to perform the flush.
(WebKit::LayerTreeHostCAWin::participatesInDisplay): Added. Returns true, since we render
each frame to an image.
(WebKit::LayerTreeHostCAWin::needsDisplay): Added. Returns true if it's now time to
displayReturns true if it's now time to display.
(WebKit::LayerTreeHostCAWin::timeUntilNextDisplay): Added. Returns how many seconds remain
before we need to display again.
(WebKit::size): Added. Helper function to get the size of a WKCACFImage.
(WebKit::toShareableBitmap): Added. Helper function to convert a WKCACFImage to a
ShareableBitmap.
(WebKit::LayerTreeHostCAWin::display): Added. Renders the next frame to an image and stuffs
the image into the UpdateInfo struct.
(WebKit::LayerTreeHostCAWin::sizeDidChange): Added. Tells the view about the new size.
(WebKit::LayerTreeHostCAWin::forceRepaint): Added. Flushes any pending changes to the view.
(WebKit::LayerTreeHostCAWin::contextDidChangeCallback): Added. WKCACFView calls this
whenever any changes made to the view or its layer tree have been flushed. Just calls
through to contextDidChange.
(WebKit::LayerTreeHostCAWin::contextDidChange): Added. Tells layers that they've started
animating, and tells the DrawingAreaImpl that we need to display again.
(WebKit::LayerTreeHostCAWin::rootLayer): Added. Gets the root layer's PlatformCALayer.
(WebKit::LayerTreeHostCAWin::addPendingAnimatedLayer): Added. Stores the layer so that we
can tell it animations have started the next time we get a contextDidChange callback.
(WebKit::LayerTreeHostCAWin::layerTreeDidChange): Added. Schedules a flush, unless we're
already in the process of flushing. This code came from WebCore::WKCACFViewLayerTreeHost.
(WebKit::LayerTreeHostCAWin::flushPendingLayerChangesNow): Added. Performs the flush. This
code was adapted from WebCore::WKCACFViewLayerTreeHost.

* WebProcess/WebPage/ca/win/LayerTreeHostCAWin.h: Wrapped this whole header in HAVE(WKQCA),
since this class only works when WebKitQuartzCoreAdditions is available. Added a bunch of
new members.

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

9 years agoAdd a way for LayerTreeHost to participate in DrawingAreaImpl's normal display mechanism
aroben@apple.com [Tue, 5 Apr 2011 18:01:12 +0000 (18:01 +0000)]
Add a way for LayerTreeHost to participate in DrawingAreaImpl's normal display mechanism

When LayerTreeHost participates in display, it renders each frame into a bitmap.
DrawingAreaImpl sends the bitmap to the UI process in an Update message, just like in
non-accelerated compositing mode. The UI process never knows that accelerated compositing is
going on. (When LayerTreeHost does not participate in display, as on Mac, it is responsible
for getting bits from the web process to the UI process.)

No LayerTreeHost uses this mechanism (yet). This patch should cause no change in behavior.

Fixes <http://webkit.org/b/57792> LayerTreeHost needs a way to render frames to a bitmap

Reviewed by Anders Carlsson.

* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit::DrawingAreaImpl::forceRepaint): If the layer tree host participates in display,
perform a display (like in the non-accelerated case).
(WebKit::DrawingAreaImpl::layerHostDidFlushLayers): Don't send an
EnterAcceleratedCompositing message to the UI process if the layer tree host participates in
display. In that case, the UI process doesn't even need to know we're using accelerated
compositing in the web process.
(WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState): Go through the normal display
mechanism if we have a layer tree host that participates in display.
(WebKit::DrawingAreaImpl::didUpdate): Don't ignore DidUpdate messages when we have a layer
tree host that participates in display.
(WebKit::DrawingAreaImpl::enterAcceleratedCompositingMode): If the new layer tree host
participates in display, let the display timer continue to run and continue to expect
DidUpdate messages so that we don't interrupt the normal display mechanism. We still clear
out m_dirtyRegion, m_scrollRect, and m_scrollOffset, though, because the layer tree host is
still responsible for keeping track of those things even when it participates in display.
(WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode): If the outgoing layer tree host
was participating in display, just send another Update message instead of an
ExitAcceleratedCompositing message, since the UI process never even knew we were using
accelerated compositing.
(WebKit::DrawingAreaImpl::displayTimerFired): If we have a layer tree host that's
participating in display, ask it when it next needs to display when scheduling our timer.

(WebKit::DrawingAreaImpl::scheduleDisplay):
(WebKit::DrawingAreaImpl::display):
If we have a layer tree host that's participating in display, it will keep track of its own
dirty region, so ask it if it needs display rather than checking our own dirty region.

(WebKit::DrawingAreaImpl::display): If we have a layer tree host that's participating in
display, don't bail out. Instead, tell it to display rather than asking the page to paint.
Moved the setting of updateInfo.viewSize earlier so that it will be set even when the layer
tree host is displaying. Other changes are just due to indentation.

* WebProcess/WebPage/LayerTreeHost.h:
(WebKit::LayerTreeHost::participatesInDisplay):
(WebKit::LayerTreeHost::needsDisplay):
(WebKit::LayerTreeHost::timeUntilNextDisplay):
(WebKit::LayerTreeHost::display):
Stubbed out these functions. Derived classes can override them to participate in display.

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

9 years ago Unreviewed.
carol@webkit.org [Tue, 5 Apr 2011 17:49:24 +0000 (17:49 +0000)]
    Unreviewed.

        Updated my info in committers.py

        Scripts\webkitpy\common\config\committers.py

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

9 years ago Unreviewed.
carol@webkit.org [Tue, 5 Apr 2011 17:47:41 +0000 (17:47 +0000)]
    Unreviewed.

        Updated my info in committers.py

        Scripts\webkitpy\common\config\committers.py

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

9 years ago2011-04-05 David Dorwin <ddorwin@chromium.org>
commit-queue@webkit.org [Tue, 5 Apr 2011 17:40:30 +0000 (17:40 +0000)]
2011-04-05  David Dorwin  <ddorwin@chromium.org>

        Reviewed by David Levin.

        Fullscreen code assumes all layers use GPU compositing when USE(ACCELERATED_COMPOSITING)
        https://bugs.webkit.org/show_bug.cgi?id=57400

        Check whether the full screen renderer layer is being composited by the GPU before assuming that the backing is valid.
        Accelerated compositing may be compiled in but disabled at runtime or for some elements.

        Tests: Fullscreen layout tests on Chromium.

        * dom/Document.cpp:
        (WebCore::Document::webkitWillEnterFullScreenForElement):
        (WebCore::Document::webkitDidEnterFullScreenForElement):
        (WebCore::Document::webkitWillExitFullScreenForElement):

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

9 years ago2011-04-05 Adrienne Walker <enne@google.com>
enne@google.com [Tue, 5 Apr 2011 17:34:49 +0000 (17:34 +0000)]
2011-04-05  Adrienne Walker  <enne@google.com>

       Unreviewed, temporarily suppress Chromium failures for tests in r82947.

        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-05 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Tue, 5 Apr 2011 17:32:01 +0000 (17:32 +0000)]
2011-04-05  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Add Web Inspector stack trace, pause on exception and window.onerror
        screenshots.

        * blog-files/inspector/stack-traces-img/1.png: Added.
        * blog-files/inspector/stack-traces-img/2.png: Added.
        * blog-files/inspector/stack-traces-img/3.png: Added.
        * blog-files/inspector/stack-traces-img/4.png: Added.
        * blog-files/inspector/stack-traces-img/5.png: Added.
        * blog-files/inspector/stack-traces-img/6.png: Added.
        * blog-files/inspector/stack-traces-img/button.png: Added.

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

9 years ago2011-04-05 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Tue, 5 Apr 2011 17:28:28 +0000 (17:28 +0000)]
2011-04-05  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        Regression: Invalid write in SVGTextLayoutEngine
        https://bugs.webkit.org/show_bug.cgi?id=57721

        * svg/text/font-size-null-assertion-expected.txt: Added.
        * svg/text/font-size-null-assertion.svg: Added.

2011-04-05  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        Regression: Invalid write in SVGTextLayoutEngine
        https://bugs.webkit.org/show_bug.cgi?id=57721

        Properly stop layout if all metrics object refer to zero-width/height characters,
        which can happen for instance when using <text font-size="0">.

        Test: svg/text/font-size-null-assertion.svg

        * rendering/svg/SVGTextLayoutEngine.cpp:
        (WebCore::SVGTextLayoutEngine::currentLogicalCharacterAttributes):
        (WebCore::SVGTextLayoutEngine::currentLogicalCharacterMetrics):

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

9 years ago2011-04-04 MORITA Hajime <morrita@google.com>
morrita@google.com [Tue, 5 Apr 2011 17:23:34 +0000 (17:23 +0000)]
2011-04-04 MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
        https://bugs.webkit.org/show_bug.cgi?id=56085

        Removed WebCore::SpellCheckingResult and replaced it with TextCheckingResult.
        This change also added TextCheckerClient::requestCheckingOfString() should have
        TextCheckingTypeMask as a parameter to control text checking type.

        * WebCore.exp.in:
        * editing/Editor.cpp:
        (WebCore::Editor::replaceSelectionWithFragment):
        (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
        (WebCore::Editor::textCheckingTypeMaskFor): Extracted from markAllMisspellingsAndBadGrammarInRanges()
        * editing/SpellChecker.cpp:
        (WebCore::SpellChecker::requestCheckingFor): Added a parameter.
        (WebCore::SpellChecker::markAt): Extracted from didCheck(), Added a check for the GrammarDetail object.
        (WebCore::SpellChecker::didCheck):
        * editing/SpellChecker.h:
        * loader/EmptyClients.h:
        (WebCore::EmptyTextCheckerClient::checkTextOfParagraph):
        (WebCore::EmptyTextCheckerClient::requestCheckingOfString):
        * platform/text/TextCheckerClient.h:
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
        https://bugs.webkit.org/show_bug.cgi?id=56085

        Followed the signature change.

        * src/EditorClientImpl.h:
        * src/EditorClientImpl.cpp:
        * src/WebTextCheckingCompletionImpl.cpp
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
        https://bugs.webkit.org/show_bug.cgi?id=56085

        * WebCoreSupport/EditorClientEfl.h:
        (WebCore::EditorClientEfl::requestCheckingOfString):
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
        https://bugs.webkit.org/show_bug.cgi?id=56085

        * WebCoreSupport/TextCheckerClientEnchant.h:
        (WebKit::TextCheckerClientEnchant::requestCheckingOfString):
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
        https://bugs.webkit.org/show_bug.cgi?id=56085

        * WebCoreSupport/EditorClientHaiku.h:
        (WebCore::EditorClientHaiku::requestCheckingOfString):
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
        https://bugs.webkit.org/show_bug.cgi?id=56085

        Removed NSTextCheckingResult to SpellCheckingResult convertion, and extracted
        NSTextCheckingResult to TextCheckingResult convertio from checkTextOfParagraph method.
        for requestCheckingOfString method.

        * WebCoreSupport/WebEditorClient.h:
        * WebCoreSupport/WebEditorClient.mm:
        (toCoreTextCheckingResults):
        (WebEditorClient::checkTextOfParagraph):
        (-[WebEditorSpellCheckResponder initWithSender:WebCore::sequence:types:WebCore::results:]):
        (-[WebEditorSpellCheckResponder perform]):
        (WebEditorClient::requestCheckingOfString):
        * WebView/WebFrame.mm:
        (-[WebFrame markersForSelectionStartAsText]):
        * WebView/WebFramePrivate.h:
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
        https://bugs.webkit.org/show_bug.cgi?id=56085

        * WebCoreSupport/EditorClientQt.h:
        (WebCore::EditorClientQt::requestCheckingOfString):
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
        https://bugs.webkit.org/show_bug.cgi?id=56085

        * WebCoreSupport/WebEditorClient.h:
        (WebEditorClient::requestCheckingOfString):
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
        https://bugs.webkit.org/show_bug.cgi?id=56085

        * WebCoreSupport/EditorClientWinCE.h:
        (WebKit::EditorClientWinCE::requestCheckingOfString):
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
        https://bugs.webkit.org/show_bug.cgi?id=56085

        * WebKitSupport/EditorClientWx.h:
        (WebCore::EditorClientWx::requestCheckingOfString):
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Ryosuke Niwa.

        [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
        https://bugs.webkit.org/show_bug.cgi?id=56085

        * WebProcess/WebCoreSupport/WebEditorClient.cpp:
        (WebKit::WebEditorClient::requestCheckingOfString):
        * WebProcess/WebCoreSupport/WebEditorClient.h:
        * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
        (WebKit::WebEditorClient::checkTextOfParagraph):

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

9 years agoPrint stylesheet on nytimes.com loads too early
antti@apple.com [Tue, 5 Apr 2011 17:20:00 +0000 (17:20 +0000)]
Print stylesheet on nytimes.com loads too early
https://bugs.webkit.org/show_bug.cgi?id=57814

Reviewed by Sam Weinig.

Don't load resources with Very Low priority until there are no other resources to
load for the host (or until document is complete enough that we stop limiting requests).

No tests, this is  difficult to observe reliably with our current testing infrastructure.
Verified working with Wireshark.

* loader/ResourceLoadScheduler.cpp:
(WebCore::ResourceLoadScheduler::servePendingRequests):
(WebCore::ResourceLoadScheduler::HostInformation::limitRequests):
* loader/ResourceLoadScheduler.h:

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

9 years ago2011-04-04 Steve Block <steveblock@google.com>
steveblock@google.com [Tue, 5 Apr 2011 17:11:39 +0000 (17:11 +0000)]
2011-04-04  Steve Block  <steveblock@google.com>

        Reviewed by Dimitri Glazkov.

        JavaInstance should be a pure interface
        https://bugs.webkit.org/show_bug.cgi?id=55383

        This patch fixes JavaInstance for V8 only.

        It factors out a JavaInstance interface which does not use JNI
        types. This will allow the Java bridge to be used with objects
        that don't use JNI directly. The existing jobject-backed
        implementation is moved to a new JavaInstanceJobject class which
        implements the interface.

        No new tests, refactoring only.

        * Android.v8bindings.mk:
        * WebCore.gypi:
        * bridge/jni/JobjectWrapper.h:
        * bridge/jni/v8/JNIUtilityPrivate.cpp:
        (JSC::Bindings::jvalueToJavaValue):
        (JSC::Bindings::javaValueToJvalue):
        * bridge/jni/v8/JavaInstanceJobjectV8.cpp:
        (JavaInstanceJobject::JavaInstanceJobject):
        (JavaInstanceJobject::~JavaInstanceJobject):
        (JavaInstanceJobject::begin):
        (JavaInstanceJobject::end):
        (JavaInstanceJobject::getClass):
        (JavaInstanceJobject::invokeMethod):
        (JavaInstanceJobject::getField):
        * bridge/jni/v8/JavaInstanceJobjectV8.h: Copied from Source/WebCore/bridge/jni/v8/JavaInstanceV8.h.
        (JSC::Bindings::JavaInstanceJobject::javaInstance):
        * bridge/jni/v8/JavaInstanceV8.h:
        (JSC::Bindings::JavaInstance::~JavaInstance):

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

9 years ago2011-04-05 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Tue, 5 Apr 2011 17:01:57 +0000 (17:01 +0000)]
2011-04-05  Dimitri Glazkov  <dglazkov@chromium.org>

       Reviewed by Darin Adler.

        Move MouseEvent-dispatching logic into MouseEventDispatchMediator.
        https://bugs.webkit.org/show_bug.cgi?id=57639

        Refactoring, covered by existing tests.

        * dom/EventDispatcher.cpp:
        (WebCore::EventDispatcher::dispatchEvent): Moved useful assertion here
            from dispatchMouseEvent.
        (WebCore::EventDispatcher::adjustRelatedTarget): Converted into a method.
        * dom/EventDispatcher.h: Adjusted decls.
        (WebCore::EventDispatcher::node): Added.
        * dom/MouseEvent.cpp:
        (WebCore::MouseEvent::create): Moved useful assertion here from
            dispatchMouseEvent.
        (WebCore::MouseEventDispatchMediator::MouseEventDispatchMediator): Added.
        (WebCore::MouseEventDispatchMediator::event): Added.
        (WebCore::MouseEventDispatchMediator::dispatchEvent): Added.
        * dom/MouseEvent.h:
        (WebCore::MouseEvent::setRelatedTarget): Added.
        * dom/Node.cpp:
        (WebCore::Node::dispatchMouseEvent): Changed to use MouseEventDispatchMediator.

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

9 years ago2011-04-05 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Tue, 5 Apr 2011 16:38:10 +0000 (16:38 +0000)]
2011-04-05  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Adam Roben & Dirk Schulze.

        text-tspan-02-b.svg from SVG 1.1 2nd edition fails
        https://bugs.webkit.org/show_bug.cgi?id=57831

        Add text-tspan-02-b.svg from SVG 1.1 2nd edition, which was buggy.
        Add reduced testcase, which exposes a bug with midpoint splitting, which is now fixed.

        * platform/mac/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.checksum: Added.
        * platform/mac/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.png: Added.
        * platform/mac/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt: Added.
        * platform/mac/svg/text/text-midpoint-split-bug-expected.checksum: Added.
        * platform/mac/svg/text/text-midpoint-split-bug-expected.png: Added.
        * platform/mac/svg/text/text-midpoint-split-bug-expected.txt: Added.
        * svg/W3C-SVG-1.1-SE/text-tspan-02-b.svg: Added.
        * svg/text/text-midpoint-split-bug.svg: Added.

2011-04-05  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Adam Roben & Dirk Schulze.

        text-tspan-02-b.svg from SVG 1.1 2nd edition fails
        https://bugs.webkit.org/show_bug.cgi?id=57831

        We were not spanning rotation values correcty accross text children, which resulted in text-span-02-b.svg misrendering.
        While rewriting the rotation specific code, it came apparent that the LayoutScope concept is flawed in general and
        should be replaced by a global list of x/y/dx/dy/rotate values for the whole text subtree. This makes it much simpler
        to implement the demand that the last rotation value spans the whole scope. A follow-up patch will optimize the
        required memory.

        Example:
        <text rotate="10,20,999,50">AB<tspan rotate="30">CDE</>FGH</text>

        text:   A  B  C  D  E  F  G  H
        rotate="10 20 30 30 30 50 50 50"

        Tests: svg/W3C-SVG-1.1-SE/text-tspan-02-b.svg
               svg/text/text-midpoint-split-bug.svg

        * rendering/RenderBlockLineLayout.cpp:     Move SVG specific midpoint creation after the non-SVG specific code that may mutate the midpoints. otherwhise we end up in an
        (WebCore::RenderBlock::findNextLineBreak): inconsistent state. We were intereferring with the ignoreSpaces code resulting in wrong truncations - covered by new testcase.
        * rendering/svg/SVGTextLayoutAttributes.cpp:
        (WebCore::SVGTextLayoutAttributes::reserveCapacity): Also reserveCapacity for the text metrics list (minor optimization).
        (WebCore::SVGTextLayoutAttributes::fillWithEmptyValue): Added helper function for use from SVGTextLayoutAttributesBuilder.
        (WebCore::SVGTextLayoutAttributes::appendEmptyValue): Ditto.
        (WebCore::safeValueAtPosition): Ditto. (Inline helper)
        (WebCore::SVGTextLayoutAttributes::appendSingleValueFromAttribute): Ditto.
        * rendering/svg/SVGTextLayoutAttributes.h: Ditto.
        * rendering/svg/SVGTextLayoutAttributesBuilder.cpp: Rewrite code, see explaination above.
        (WebCore::SVGTextLayoutAttributesBuilder::buildLayoutAttributesForTextSubtree):
        (WebCore::processRenderSVGInlineText):
        (WebCore::SVGTextLayoutAttributesBuilder::collectTextPositioningElements):
        (WebCore::SVGTextLayoutAttributesBuilder::buildLayoutAttributesForAllCharacters):
        (WebCore::SVGTextLayoutAttributesBuilder::propagateLayoutAttributes):
        (WebCore::fillListAtPosition):
        (WebCore::SVGTextLayoutAttributesBuilder::fillAttributesAtPosition):
        * rendering/svg/SVGTextLayoutAttributesBuilder.h:
        (WebCore::SVGTextLayoutAttributesBuilder::TextPosition::TextPosition):

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

9 years ago2011-04-05 Levi Weintraub <leviw@chromium.org>
leviw@chromium.org [Tue, 5 Apr 2011 16:34:45 +0000 (16:34 +0000)]
2011-04-05  Levi Weintraub  <leviw@chromium.org>

        Reviewed by Ryosuke Niwa.

        DeleteButtonController is given invalid style
        https://bugs.webkit.org/show_bug.cgi?id=57853

        DeleteButtonController was assigned an invalid style that can lead to assertions
        in debug builds. This matches up the code with its intent.

        No new tests as this changes nothing on release builds.

        * editing/DeleteButtonController.cpp:
        (WebCore::DeleteButtonController::createDeletionUI):

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

9 years agoDidn't mean to land this.
andersca@apple.com [Tue, 5 Apr 2011 16:22:28 +0000 (16:22 +0000)]
Didn't mean to land this.

* Plugins/WebNetscapePluginView.mm:
(-[WebNetscapePluginView getVariable:value:]):

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

9 years ago2011-04-05 Anders Bakken <agbakken@gmail.com>
commit-queue@webkit.org [Tue, 5 Apr 2011 16:18:43 +0000 (16:18 +0000)]
2011-04-05  Anders Bakken  <agbakken@gmail.com>

        Reviewed by Laszlo Gombos.

        [Qt] EditorQt.cpp has coding-style errors
        https://bugs.webkit.org/show_bug.cgi?id=40260

        This patch does not require new test cases.

        * editing/qt/EditorQt.cpp:

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

9 years ago2011-04-05 Pavel Podivilov <podivilov@chromium.org>
podivilov@chromium.org [Tue, 5 Apr 2011 15:55:10 +0000 (15:55 +0000)]
2011-04-05  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: go to line dialog highlights wrong line.
        https://bugs.webkit.org/show_bug.cgi?id=57845

        * inspector/front-end/GoToLineDialog.js:
        (WebInspector.GoToLineDialog.prototype._highlightSelectedLine):

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

9 years ago2011-04-05 Luke Macpherson <macpherson@chromium.org>
commit-queue@webkit.org [Tue, 5 Apr 2011 15:36:16 +0000 (15:36 +0000)]
2011-04-05  Luke Macpherson   <macpherson@chromium.org>

        Reviewed by Dimitri Glazkov.

        Implement CSSPropertyDirection in CSSStyleApplyProperty
        https://bugs.webkit.org/show_bug.cgi?id=57608

        No new tests required as no new functionality introduced.

        * css/CSSStyleApplyProperty.cpp:
        Add implementation class for CSSPropertyDirection
        * css/CSSStyleSelector.cpp:
        Remove existing implementation for CSSPropertyDirection
        * css/CSSStyleSelector.h:
        Add getter for element

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

9 years agoRemove onformchange and onforminput events/event handlers
ossy@webkit.org [Tue, 5 Apr 2011 15:21:08 +0000 (15:21 +0000)]
Remove onformchange and onforminput events/event handlers
https://bugs.webkit.org/show_bug.cgi?id=55755
<rdar://problem/9087969>

Unreviewed. Update Qt specific expected results after r82925.

* platform/qt/fast/dom/Window/window-properties-expected.txt:
* platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:

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

9 years ago2011-04-05 Leandro Gracia Gil <leandrogracia@chromium.org>
commit-queue@webkit.org [Tue, 5 Apr 2011 15:10:18 +0000 (15:10 +0000)]
2011-04-05  Leandro Gracia Gil  <leandrogracia@chromium.org>

        Reviewed by Steve Block.

        Factoring the creation of 'FunctionOnly' callbacks in V8.
        https://bugs.webkit.org/show_bug.cgi?id=57760

        This method creates a template from an existing functionality in V8GeolocationCustom.cpp
        to V8Utilities to be used by the custom bindings of both Geolocation and the Media Stream API.

        No new tests. LayoutTests/fast/dom/Geolocation/argument-types.html

        * bindings/v8/V8Utilities.cpp:
        (WebCore::throwTypeMismatchException):
        * bindings/v8/V8Utilities.h:
        (WebCore::createFunctionOnlyCallback):
        * bindings/v8/custom/V8GeolocationCustom.cpp:
        (WebCore::V8Geolocation::getCurrentPositionCallback):
        (WebCore::V8Geolocation::watchPositionCallback):

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

9 years ago2011-04-05 Csaba Osztrogon√°c <ossy@webkit.org>
ossy@webkit.org [Tue, 5 Apr 2011 15:07:22 +0000 (15:07 +0000)]
2011-04-05  Csaba Osztrogon√°c  <ossy@webkit.org>

        Reviewed by Laszlo Gombos.

        [Qt] Make WebKitLibraries optional for building QtWebKit
        https://bugs.webkit.org/show_bug.cgi?id=57542

        * Scripts/build-webkit:

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

9 years ago2011-04-05 Chang Shu <cshu@webkit.org>
commit-queue@webkit.org [Tue, 5 Apr 2011 14:48:14 +0000 (14:48 +0000)]
2011-04-05  Chang Shu  <cshu@webkit.org>

        Reviewed by Laszlo Gombos.

        [Qt] MiniBrowser defaultUrl does not work
        https://bugs.webkit.org/show_bug.cgi?id=57021

        Match the behavior and coding of MiniBrowser to QtTestBrowser.
        * MiniBrowser/qt/main.cpp:
        (main):

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

9 years ago2011-04-05 Chang Shu <cshu@webkit.org>
chang.shu@nokia.com [Tue, 5 Apr 2011 14:23:47 +0000 (14:23 +0000)]
2011-04-05  Chang Shu  <cshu@webkit.org>

        Unreviewed.

        Unskip passed tests after bugs 57572, 57568, 42540, 42692 have been resolved.

        * platform/qt-wk2/Skipped:

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

9 years ago2011-04-05 Alejandro G. Castro <alex@igalia.com>
alex@webkit.org [Tue, 5 Apr 2011 13:40:06 +0000 (13:40 +0000)]
2011-04-05  Alejandro G. Castro  <alex@igalia.com>

        Another compilation fix after r82929 horrible patch merge.

        * UIProcess/WebPageProxy.messages.in:

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

9 years ago2011-04-05 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Tue, 5 Apr 2011 13:39:52 +0000 (13:39 +0000)]
2011-04-05  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Andreas Kling.

        Switch from Vector<UChar> to StringBuilder in bindings/
        https://bugs.webkit.org/show_bug.cgi?id=57838

        * bindings/js/JSCSSStyleDeclarationCustom.cpp:
        (WebCore::cssPropertyName):
        * bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp:
        (WebCore::cssPropertyInfo):

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

9 years ago2011-04-05 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Tue, 5 Apr 2011 13:38:17 +0000 (13:38 +0000)]
2011-04-05  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Andreas Kling.

        Switch from Vector<UChar> to StringBuilder in accessibility/
        https://bugs.webkit.org/show_bug.cgi?id=57837

        * accessibility/AccessibilityObject.cpp:
        (WebCore::AccessibilityObject::listMarkerTextForNodeAndPosition):
        (WebCore::AccessibilityObject::stringForVisiblePositionRange):
        * accessibility/AccessibilityRenderObject.cpp:
        (WebCore::AccessibilityRenderObject::accessibilityDescriptionForElements):

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

9 years ago2011-04-05 Alejandro G. Castro <alex@igalia.com>
alex@webkit.org [Tue, 5 Apr 2011 13:26:46 +0000 (13:26 +0000)]
2011-04-05  Alejandro G. Castro  <alex@igalia.com>

        Fix compilation error after r82929.

        * WebProcess/WebPage/WebPage.h:

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

9 years ago2011-04-05 Andrey Adaikin <aandrey@google.com>
podivilov@chromium.org [Tue, 5 Apr 2011 13:24:16 +0000 (13:24 +0000)]
2011-04-05  Andrey Adaikin  <aandrey@google.com>

        Reviewed by Pavel Feldman.

        Web Inspector: Scripts with syntax errors are cropped in the UI
        https://bugs.webkit.org/show_bug.cgi?id=57828

        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame.prototype.addMessageToSource):

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

9 years ago2011-04-05 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Tue, 5 Apr 2011 13:08:16 +0000 (13:08 +0000)]
2011-04-05  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Andreas Kling.

        Cleanup StringConcatenate
        https://bugs.webkit.org/show_bug.cgi?id=57836

        Don't use PassRefPtr in local variables, properly store in RefPtrs and release on return.
        Add a makeString() variant taking 9 arguments, needed by a follow-up patch.

        * wtf/text/StringConcatenate.h:
        (WTF::tryMakeString):
        (WTF::makeString):

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

9 years ago2011-04-05 Jade Han <jade.han@nokia.com>
laszlo.1.gombos@nokia.com [Tue, 5 Apr 2011 13:07:30 +0000 (13:07 +0000)]
2011-04-05  Jade Han  <jade.han@nokia.com>

        Reviewed by Laszlo Gombos.

        [Qt] [Symbian] Disable WebKitTestRunner for Symbian
        https://bugs.webkit.org/show_bug.cgi?id=54977

        This change is a preparation to enable building webkit2 for Symbian.
        Bug 57834 is filed to fix and enable WebKitTestRunner for Symbian.

        * Tools.pro:

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

9 years ago2011-04-05 Amruth Raj <amruthraj@motorola.com>, Ravi Phaneendra Kasibhatla <ravi...
alex@webkit.org [Tue, 5 Apr 2011 12:54:19 +0000 (12:54 +0000)]
2011-04-05  Amruth Raj  <amruthraj@motorola.com>, Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com> and Alejandro G. Castro  <alex@igalia.com>

        Reviewed by Martin Robinson.

        [GTK] Implement WebPage class for WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=54230

        Added functions to handle the generation of commands from the
        keycodes.

        * GNUmakefile.am:
        * Scripts/webkit2/messages.py:
        * UIProcess/PageClient.h:
        * UIProcess/WebPageProxy.h:
        * UIProcess/WebPageProxy.messages.in:
        * UIProcess/gtk/WebPageProxyGtk.cpp:
        (WebKit::WebPageProxy::getEditorCommandsForKeyEvent):
        * UIProcess/gtk/WebView.cpp:
        (WebKit::backspaceCallback):
        (WebKit::selectAllCallback):
        (WebKit::cutClipboardCallback):
        (WebKit::copyClipboardCallback):
        (WebKit::pasteClipboardCallback):
        (WebKit::toggleOverwriteCallback):
        (WebKit::popupMenuCallback):
        (WebKit::showHelpCallback):
        (WebKit::deleteFromCursorCallback):
        (WebKit::moveCursorCallback):
        (WebKit::WebView::WebView):
        (WebKit::WebView::getEditorCommandsForKeyEvent):
        * UIProcess/gtk/WebView.h:
        (WebKit::WebView::addPendingEditorCommand):
        * WebProcess/WebCoreSupport/WebEditorClient.cpp:
        * WebProcess/WebCoreSupport/WebEditorClient.h:
        * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp: Added.
        (WebKit::WebEditorClient::getEditorCommandsForKeyEvent):
        (WebKit::WebEditorClient::executePendingEditorCommands):
        (WebKit::WebEditorClient::handleKeyboardEvent):
        (WebKit::WebEditorClient::handleInputMethodKeydown):
        * WebProcess/WebPage/WebPage.cpp:
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/gtk/WebPageGtk.cpp: Added.
        (WebKit::WebPage::platformInitialize):
        (WebKit::WebPage::platformPreferencesDidChange):
        (WebKit::scroll):
        (WebKit::WebPage::performDefaultBehaviorForKeyEvent):
        (WebKit::WebPage::platformHasLocalDataForURL):
        (WebKit::WebPage::cachedResponseMIMETypeForURL):
        (WebKit::WebPage::platformCanHandleRequest):

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

9 years ago2011-04-05 Pavel Podivilov <podivilov@chromium.org>
podivilov@chromium.org [Tue, 5 Apr 2011 12:52:05 +0000 (12:52 +0000)]
2011-04-05  Pavel Podivilov  <podivilov@chromium.org>

        Unreviewed, add chromium-linux expectation for fast/ruby/overhang-vertical.html (the test changed in r82903).

        * platform/chromium-linux/fast/ruby/overhang-vertical-expected.png: Added.

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

9 years ago[Qt] Fix timeoutTimer of MiniBrowser's UrlLoader
zoltan@webkit.org [Tue, 5 Apr 2011 12:43:40 +0000 (12:43 +0000)]
[Qt] Fix timeoutTimer of MiniBrowser's UrlLoader
https://bugs.webkit.org/show_bug.cgi?id=57832

Reviewed by Andreas Kling.

Only QWKPage has loadFinished signal so connect to it instead of BrowserWindow.

* MiniBrowser/qt/UrlLoader.cpp:
(UrlLoader::UrlLoader):

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

9 years ago2011-04-05 Pavel Podivilov <podivilov@chromium.org>
podivilov@chromium.org [Tue, 5 Apr 2011 12:04:47 +0000 (12:04 +0000)]
2011-04-05  Pavel Podivilov  <podivilov@chromium.org>

        Unreviewed, revert bad rebaseline of english-lr-text-expected.html in r82918.

        * platform/chromium-linux/fast/blockflow/english-lr-text-expected.checksum: Added.
        * platform/chromium-win/fast/blockflow/english-lr-text-expected.checksum: Added.
        * platform/chromium-win/fast/blockflow/english-lr-text-expected.png:

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

9 years ago2011-04-05 Alexey Proskuryakov <ap@apple.com>
ap@apple.com [Tue, 5 Apr 2011 11:45:29 +0000 (11:45 +0000)]
2011-04-05  Alexey Proskuryakov  <ap@apple.com>

        Reviewed by Darin Adler.

        Remove onformchange and onforminput events/event handlers
        https://bugs.webkit.org/show_bug.cgi?id=55755
        <rdar://problem/9087969>

        * fast/dom/Window/window-properties-expected.txt:
        * fast/dom/Window/window-property-descriptors-expected.txt:
        * fast/forms/formchange-event-expected.txt: Removed.
        * fast/forms/formchange-event.html: Removed.
        * fast/forms/forminput-event-expected.txt: Removed.
        * fast/forms/forminput-event.html: Removed.
        * fast/forms/script-tests/formchange-event.js: Removed.
        * fast/forms/script-tests/forminput-event.js: Removed.
2011-04-05  Alexey Proskuryakov  <ap@apple.com>

        Reviewed by Darin Adler.

        Remove onformchange and onforminput events/event handlers
        https://bugs.webkit.org/show_bug.cgi?id=55755
        <rdar://problem/9087969>

        Covered by existing tests.

        * dom/Document.h:
        * dom/Document.idl:
        * dom/Element.h:
        * dom/Element.idl:
        * dom/Event.cpp:
        (WebCore::Event::fromUserGesture):
        * dom/EventNames.h:
        * html/FormAssociatedElement.h:
        * html/HTMLAttributeNames.in:
        * html/HTMLElement.cpp:
        (WebCore::HTMLElement::parseMappedAttribute):
        * html/HTMLElement.h:
        * html/HTMLFormControlElement.h:
        (WebCore::HTMLFormControlElement::isEnumeratable):
        * html/HTMLFormElement.cpp:
        * html/HTMLFormElement.h:
        * html/HTMLFormElement.idl:
        * html/HTMLInputElement.h:
        * html/HTMLKeygenElement.h:
        * html/HTMLObjectElement.h:
        (WebCore::HTMLObjectElement::isEnumeratable):
        * html/HTMLOutputElement.h:
        (WebCore::HTMLOutputElement::isEnumeratable):
        * html/HTMLSelectElement.h:
        (WebCore::HTMLSelectElement::isEnumeratable):
        * html/HTMLTextAreaElement.h:
        (WebCore::HTMLTextAreaElement::isEnumeratable):
        * page/DOMWindow.h:
        * page/DOMWindow.idl:

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

9 years ago2011-04-05 Pavel Podivilov <podivilov@chromium.org>
podivilov@chromium.org [Tue, 5 Apr 2011 11:28:13 +0000 (11:28 +0000)]
2011-04-05  Pavel Podivilov  <podivilov@chromium.org>

        Unreviewed, rebaseline Kusa-Makura-background-canvas.html on chromium-mac after r82903.

        * platform/chromium-mac-leopard/fast/blockflow/Kusa-Makura-background-canvas-expected.checksum: Removed.
        * platform/chromium-mac-leopard/fast/blockflow/Kusa-Makura-background-canvas-expected.png:
        * platform/chromium-mac/fast/blockflow/Kusa-Makura-background-canvas-expected.checksum: Removed.
        * platform/chromium-mac/fast/blockflow/Kusa-Makura-background-canvas-expected.png:

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

9 years ago2011-04-05 Sheriff Bot <webkit.review.bot@gmail.com>
podivilov@chromium.org [Tue, 5 Apr 2011 11:08:45 +0000 (11:08 +0000)]
2011-04-05  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r82915.
        http://trac.webkit.org/changeset/82915
        https://bugs.webkit.org/show_bug.cgi?id=57825

        Broke 270 chromium tests on win and linux (Requested by
        podivilov on #webkit).

        * rendering/RenderThemeChromiumSkia.cpp:
        (WebCore::RenderThemeChromiumSkia::defaultGUIFont):

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

9 years ago2011-04-05 Zoltan Horvath <zoltan@webkit.org>
zoltan@webkit.org [Tue, 5 Apr 2011 11:07:20 +0000 (11:07 +0000)]
2011-04-05  Zoltan Horvath  <zoltan@webkit.org>

        [Qt] Linux Release minimal build fix after r82919.

        * MiniBrowser/qt/BrowserWindow.cpp:
        (BrowserWindow::loadURLListFromFile):
        * QtTestBrowser/launcherwindow.cpp:
        (LauncherWindow::loadURLListFromFile):

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

9 years ago2011-04-05 Pavel Podivilov <podivilov@chromium.org>
podivilov@chromium.org [Tue, 5 Apr 2011 10:58:52 +0000 (10:58 +0000)]
2011-04-05  Pavel Podivilov  <podivilov@chromium.org>

        Unreviewed, remove unnecessary checksum files for fast/ruby tests.

        * platform/chromium-linux/fast/blockflow/english-lr-text-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/ruby-beforeafter-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/ruby-length-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/ruby-run-break-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/ruby-runs-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/ruby-runs-spans-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/ruby-trailing-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/rubyDOM-insert-rt-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/rubyDOM-insert-text1-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/rubyDOM-insert-text2-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/rubyDOM-insert-text3-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/rubyDOM-remove-rt1-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/rubyDOM-remove-rt2-expected.checksum: Removed.
        * platform/chromium-linux/fast/ruby/rubyDOM-remove-text1-expected.checksum: Removed.
        * platform/chromium/test_expectations.txt:

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

9 years ago [Qt] fast/ruby/overhang* tests fail
ossy@webkit.org [Tue, 5 Apr 2011 10:35:36 +0000 (10:35 +0000)]
   [Qt] fast/ruby/overhang* tests fail
       https://bugs.webkit.org/show_bug.cgi?id=57824

* platform/qt/Skipped:Add fast/ruby/overhang-horizontal.html and fast/ruby/overhang-vertical.html.

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

9 years ago2011-04-05 Zoltan Horvath <zoltan@webkit.org>
zoltan@webkit.org [Tue, 5 Apr 2011 10:35:20 +0000 (10:35 +0000)]
2011-04-05  Zoltan Horvath  <zoltan@webkit.org>

        Reviewed by Andreas Kling.

        [Qt] Make URL loader accessible from testbrowser's menus
        https://bugs.webkit.org/show_bug.cgi?id=57823

        Add "Load URLs from file" to QtTestBrowser's and to MiniBrowser's menu.

        * MiniBrowser/qt/BrowserWindow.cpp:
        (BrowserWindow::BrowserWindow):
        (BrowserWindow::loadURLListFromFile):
        (BrowserWindow::~BrowserWindow):
        * MiniBrowser/qt/BrowserWindow.h:
        * QtTestBrowser/launcherwindow.cpp:
        (LauncherWindow::LauncherWindow):
        (LauncherWindow::~LauncherWindow):
        (LauncherWindow::createChrome):
        (LauncherWindow::loadURLListFromFile):
        * QtTestBrowser/launcherwindow.h:

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

9 years ago2011-04-05 Pavel Podivilov <podivilov@chromium.org>
podivilov@chromium.org [Tue, 5 Apr 2011 10:26:12 +0000 (10:26 +0000)]
2011-04-05  Pavel Podivilov  <podivilov@chromium.org>

        Unreviewed, update fast/ruby/* chromium expectations after r82903.

        * platform/chromium-linux/fast/ruby/ruby-beforeafter-expected.png:
        * platform/chromium-linux/fast/ruby/ruby-length-expected.png:
        * platform/chromium-linux/fast/ruby/ruby-run-break-expected.png:
        * platform/chromium-linux/fast/ruby/ruby-runs-expected.png:
        * platform/chromium-linux/fast/ruby/ruby-runs-spans-expected.png:
        * platform/chromium-linux/fast/ruby/ruby-trailing-expected.png:
        * platform/chromium-linux/fast/ruby/rubyDOM-insert-rt-expected.png:
        * platform/chromium-linux/fast/ruby/rubyDOM-insert-text1-expected.png:
        * platform/chromium-linux/fast/ruby/rubyDOM-insert-text2-expected.png:
        * platform/chromium-linux/fast/ruby/rubyDOM-insert-text3-expected.png:
        * platform/chromium-linux/fast/ruby/rubyDOM-remove-rt1-expected.png:
        * platform/chromium-linux/fast/ruby/rubyDOM-remove-rt2-expected.png:
        * platform/chromium-linux/fast/ruby/rubyDOM-remove-text1-expected.png:
        * platform/chromium-mac/fast/ruby/ruby-beforeafter-expected.png: Added.
        * platform/chromium-mac/fast/ruby/ruby-length-expected.png: Added.
        * platform/chromium-mac/fast/ruby/ruby-run-break-expected.png: Added.
        * platform/chromium-mac/fast/ruby/ruby-runs-expected.png: Added.
        * platform/chromium-mac/fast/ruby/ruby-runs-spans-expected.png: Added.
        * platform/chromium-mac/fast/ruby/ruby-trailing-expected.png: Added.
        * platform/chromium-mac/fast/ruby/rubyDOM-insert-rt-expected.png: Added.
        * platform/chromium-mac/fast/ruby/rubyDOM-insert-text1-expected.png: Added.
        * platform/chromium-mac/fast/ruby/rubyDOM-insert-text2-expected.png: Added.
        * platform/chromium-mac/fast/ruby/rubyDOM-insert-text3-expected.png: Added.
        * platform/chromium-mac/fast/ruby/rubyDOM-remove-rt1-expected.png: Added.
        * platform/chromium-mac/fast/ruby/rubyDOM-remove-rt2-expected.png: Added.
        * platform/chromium-mac/fast/ruby/rubyDOM-remove-text1-expected.png: Added.
        * platform/chromium-win/fast/blockflow/english-lr-text-expected.checksum: Removed.
        * platform/chromium-win/fast/blockflow/english-lr-text-expected.png:
        * platform/chromium-win/fast/ruby/overhang-horizontal-expected.png: Added.
        * platform/chromium-win/fast/ruby/overhang-vertical-expected.png: Added.
        * platform/chromium-win/fast/ruby/ruby-beforeafter-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/ruby-beforeafter-expected.png:
        * platform/chromium-win/fast/ruby/ruby-beforeafter-expected.txt:
        * platform/chromium-win/fast/ruby/ruby-length-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/ruby-length-expected.png:
        * platform/chromium-win/fast/ruby/ruby-length-expected.txt:
        * platform/chromium-win/fast/ruby/ruby-run-break-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/ruby-run-break-expected.png:
        * platform/chromium-win/fast/ruby/ruby-run-break-expected.txt:
        * platform/chromium-win/fast/ruby/ruby-runs-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/ruby-runs-expected.png:
        * platform/chromium-win/fast/ruby/ruby-runs-expected.txt:
        * platform/chromium-win/fast/ruby/ruby-runs-spans-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/ruby-runs-spans-expected.png:
        * platform/chromium-win/fast/ruby/ruby-runs-spans-expected.txt:
        * platform/chromium-win/fast/ruby/ruby-trailing-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/ruby-trailing-expected.png:
        * platform/chromium-win/fast/ruby/ruby-trailing-expected.txt:
        * platform/chromium-win/fast/ruby/rubyDOM-insert-rt-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/rubyDOM-insert-rt-expected.png:
        * platform/chromium-win/fast/ruby/rubyDOM-insert-rt-expected.txt:
        * platform/chromium-win/fast/ruby/rubyDOM-insert-text1-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/rubyDOM-insert-text1-expected.png:
        * platform/chromium-win/fast/ruby/rubyDOM-insert-text1-expected.txt:
        * platform/chromium-win/fast/ruby/rubyDOM-insert-text2-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/rubyDOM-insert-text2-expected.png:
        * platform/chromium-win/fast/ruby/rubyDOM-insert-text2-expected.txt:
        * platform/chromium-win/fast/ruby/rubyDOM-insert-text3-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/rubyDOM-insert-text3-expected.png:
        * platform/chromium-win/fast/ruby/rubyDOM-insert-text3-expected.txt:
        * platform/chromium-win/fast/ruby/rubyDOM-remove-rt1-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/rubyDOM-remove-rt1-expected.png:
        * platform/chromium-win/fast/ruby/rubyDOM-remove-rt1-expected.txt:
        * platform/chromium-win/fast/ruby/rubyDOM-remove-rt2-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/rubyDOM-remove-rt2-expected.png:
        * platform/chromium-win/fast/ruby/rubyDOM-remove-rt2-expected.txt:
        * platform/chromium-win/fast/ruby/rubyDOM-remove-text1-expected.checksum: Removed.
        * platform/chromium-win/fast/ruby/rubyDOM-remove-text1-expected.png:
        * platform/chromium-win/fast/ruby/rubyDOM-remove-text1-expected.txt:

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

9 years ago2011-04-05 Hans Wennborg <hans@chromium.org>
hans@chromium.org [Tue, 5 Apr 2011 09:38:09 +0000 (09:38 +0000)]
2011-04-05  Hans Wennborg  <hans@chromium.org>

        Reviewed by Adam Barth

        Clean up IndexedDB WebKit API
        https://bugs.webkit.org/show_bug.cgi?id=57507

        Rename the backend proxy files that didn't have Backend in their name.
        Everything in WebKit should be in the WebKit namespace.
        Put everything behind the feature flag so we're consistient.
        Put the feature flag #if above includes.

        * WebKit.gyp:
        * src/IDBCallbacksProxy.cpp:
        (WebKit::IDBCallbacksProxy::create):
        (WebKit::IDBCallbacksProxy::IDBCallbacksProxy):
        (WebKit::IDBCallbacksProxy::onError):
        (WebKit::IDBCallbacksProxy::onSuccess):
        * src/IDBCallbacksProxy.h:
        * src/IDBCursorBackendProxy.cpp:
        (WebKit::IDBCursorBackendProxy::create):
        (WebKit::IDBCursorBackendProxy::IDBCursorBackendProxy):
        * src/IDBCursorBackendProxy.h:
        * src/IDBDatabaseBackendProxy.cpp:
        (WebKit::IDBDatabaseBackendProxy::create):
        (WebKit::IDBDatabaseBackendProxy::IDBDatabaseBackendProxy):
        (WebKit::IDBDatabaseBackendProxy::~IDBDatabaseBackendProxy):
        (WebKit::IDBDatabaseBackendProxy::name):
        (WebKit::IDBDatabaseBackendProxy::version):
        (WebKit::IDBDatabaseBackendProxy::objectStoreNames):
        (WebKit::IDBDatabaseBackendProxy::createObjectStore):
        (WebKit::IDBDatabaseBackendProxy::deleteObjectStore):
        (WebKit::IDBDatabaseBackendProxy::setVersion):
        (WebKit::IDBDatabaseBackendProxy::transaction):
        (WebKit::IDBDatabaseBackendProxy::close):
        (WebKit::IDBDatabaseBackendProxy::open):
        * src/IDBDatabaseCallbacksProxy.cpp:
        (WebKit::IDBDatabaseCallbacksProxy::create):
        (WebKit::IDBDatabaseCallbacksProxy::IDBDatabaseCallbacksProxy):
        * src/IDBDatabaseCallbacksProxy.h:
        * src/IDBFactoryBackendProxy.cpp:
        (WebKit::IDBFactoryBackendProxy::IDBFactoryBackendProxy):
        (WebKit::IDBFactoryBackendProxy::open):
        * src/IDBFactoryBackendProxy.h:
        * src/IDBIndexBackendProxy.cpp:
        (WebKit::IDBIndexBackendProxy::create):
        (WebKit::IDBIndexBackendProxy::IDBIndexBackendProxy):
        * src/IDBIndexBackendProxy.h:
        * src/IDBObjectStoreBackendProxy.cpp:
        (WebKit::IDBObjectStoreBackendProxy::create):
        (WebKit::IDBObjectStoreBackendProxy::IDBObjectStoreBackendProxy):
        (WebKit::IDBObjectStoreBackendProxy::~IDBObjectStoreBackendProxy):
        (WebKit::IDBObjectStoreBackendProxy::name):
        (WebKit::IDBObjectStoreBackendProxy::keyPath):
        (WebKit::IDBObjectStoreBackendProxy::indexNames):
        (WebKit::IDBObjectStoreBackendProxy::get):
        (WebKit::IDBObjectStoreBackendProxy::put):
        (WebKit::IDBObjectStoreBackendProxy::deleteFunction):
        (WebKit::IDBObjectStoreBackendProxy::clear):
        (WebKit::IDBObjectStoreBackendProxy::createIndex):
        (WebKit::IDBObjectStoreBackendProxy::index):
        (WebKit::IDBObjectStoreBackendProxy::deleteIndex):
        (WebKit::IDBObjectStoreBackendProxy::openCursor):
        * src/IDBObjectStoreBackendProxy.h: Added.
        * src/IDBObjectStoreProxy.h: Removed.
        * src/IDBTransactionBackendProxy.cpp:
        (WebKit::IDBTransactionBackendProxy::create):
        (WebKit::IDBTransactionBackendProxy::IDBTransactionBackendProxy):
        (WebKit::IDBTransactionBackendProxy::objectStore):
        * src/IDBTransactionBackendProxy.h:
        (WebKit::IDBTransactionBackendProxy::getWebIDBTransaction):
        * src/IDBTransactionCallbacksProxy.cpp:
        (WebKit::IDBTransactionCallbacksProxy::create):
        (WebKit::IDBTransactionCallbacksProxy::IDBTransactionCallbacksProxy):
        * src/IDBTransactionCallbacksProxy.h:
        * src/WebIDBCallbacksImpl.cpp:
        (WebKit::WebIDBCallbacksImpl::onError):
        (WebKit::WebIDBCallbacksImpl::onSuccess):
        * src/WebIDBCallbacksImpl.h:
        * src/WebIDBCursorImpl.cpp:
        * src/WebIDBCursorImpl.h:
        * src/WebIDBDatabaseCallbacksImpl.cpp:
        (WebKit::WebIDBDatabaseCallbacksImpl::onVersionChange):
        * src/WebIDBDatabaseCallbacksImpl.h:
        * src/WebIDBDatabaseError.cpp:
        * src/WebIDBDatabaseImpl.cpp:
        * src/WebIDBDatabaseImpl.h:
        * src/WebIDBFactoryImpl.cpp:
        (WebKit::WebIDBFactoryImpl::WebIDBFactoryImpl):
        * src/WebIDBFactoryImpl.h:
        * src/WebIDBIndexImpl.cpp:
        * src/WebIDBIndexImpl.h:
        * src/WebIDBKey.cpp:
        (WebKit::WebIDBKey::createFromValueAndKeyPath):
        (WebKit::WebIDBKey::injectIDBKeyIntoSerializedValue):
        * src/WebIDBKeyPath.cpp:
        (WebKit::WebIDBKeyPath::operator const WTF::Vector<IDBKeyPathElement, 0>&):
        * src/WebIDBKeyRange.cpp:
        * src/WebIDBObjectStoreImpl.cpp:
        * src/WebIDBObjectStoreImpl.h:
        * src/WebIDBTransactionCallbacksImpl.cpp:
        * src/WebIDBTransactionCallbacksImpl.h:
        * src/WebIDBTransactionImpl.cpp:
        * src/WebIDBTransactionImpl.h:

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

9 years ago2011-04-05 James Simonsen <simonjam@chromium.org>
simonjam@chromium.org [Tue, 5 Apr 2011 09:27:58 +0000 (09:27 +0000)]
2011-04-05  James Simonsen  <simonjam@chromium.org>

        Reviewed by Adam Barth.

        Stop preload scanning CSS when it&apos;s impossible to have another @import.
        https://bugs.webkit.org/show_bug.cgi?id=57664

        * fast/preloader/style-expected.txt:
        * fast/preloader/style.html: Updated to test invalid @import statements.
2011-04-05  James Simonsen  <simonjam@chromium.org>

        Reviewed by Adam Barth.

        Stop preload scanning CSS when it&apos;s impossible to have another @import.
        https://bugs.webkit.org/show_bug.cgi?id=57664

        @import statements are only allowed at the beginning of a CSS file.
        Only comments or @charset can precede them. After seeing anything else,
        abort early so that we:
        - don't have to parse the rest of the CSS.
        - don't preload something that the regular parser won't load.

        * html/parser/CSSPreloadScanner.cpp:
        (WebCore::CSSPreloadScanner::scan): Terminate early if we're done with @imports.
        (WebCore::CSSPreloadScanner::tokenize): Terminate early if we see a {} or any style rule.
        (WebCore::CSSPreloadScanner::emitRule): Only @charset or @import are allowed to precede @import.
        * html/parser/CSSPreloadScanner.h: Add DoneParsingImportRules state.

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

9 years ago2011-04-05 Takayoshi Kochi <kochi@chromium.org>
commit-queue@webkit.org [Tue, 5 Apr 2011 09:17:53 +0000 (09:17 +0000)]
2011-04-05  Takayoshi Kochi <kochi@chromium.org>

        Reviewed by Tony Chang.

        [chromium] Specify 'sans-serif' as a fallback to the default UI font
        'Arial' for non-latin UI scripts (e.g. CJK).
        https://bugs.webkit.org/show_bug.cgi?id=55035

        No new tests, because it may still fail if the system is not configured
        properly to resolve 'sans-serif' to existing real font file, thus even
        manual test is hard to systematically tell it is working properly.

        * rendering/RenderThemeChromiumSkia.cpp

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

9 years ago2011-04-05 Sailesh Agrawal <sail@chromium.org>
commit-queue@webkit.org [Tue, 5 Apr 2011 09:06:45 +0000 (09:06 +0000)]
2011-04-05  Sailesh Agrawal  <sail@chromium.org>

        Reviewed by Darin Fisher.

        Don't clear existing files if the user cancels the file chooser dialog.
        https://bugs.webkit.org/show_bug.cgi?id=55200

        * src/WebFileChooserCompletionImpl.cpp:
        (WebKit::WebFileChooserCompletionImpl::didChooseFile):

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

9 years ago2011-04-05 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Tue, 5 Apr 2011 08:41:29 +0000 (08:41 +0000)]
2011-04-05  Kent Tamura  <tkent@chromium.org>

        Update a test affected by the behavior change of r82908.
        https://bugs.webkit.org/show_bug.cgi?id=57636

        * fast/forms/ValidityState-tooLong-textarea-expected.txt:
        * fast/forms/script-tests/ValidityState-tooLong-textarea.js:

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

9 years ago2011-04-05 John Mellor <johnme@chromium.org>
commit-queue@webkit.org [Tue, 5 Apr 2011 08:12:11 +0000 (08:12 +0000)]
2011-04-05  John Mellor  <johnme@chromium.org>

        Reviewed by Darin Fisher.

        [chromium] Minor cleanup: simplify WebFrameImpl by using contentsToWindow instead of convertToContainingWindow.
        https://bugs.webkit.org/show_bug.cgi?id=55681

        * src/WebFrameImpl.cpp:
        (WebKit::WebFrameImpl::find):
        (WebKit::WebFrameImpl::scopeStringMatches):

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

9 years ago2011-04-05 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Tue, 5 Apr 2011 08:07:30 +0000 (08:07 +0000)]
2011-04-05  Philippe Normand  <pnormand@igalia.com>

        Unreviewed, GTK rebaseline after r82903.

        * platform/gtk/fast/blockflow/Kusa-Makura-background-canvas-expected.txt:
        * platform/gtk/fast/ruby/ruby-beforeafter-expected.txt:
        * platform/gtk/fast/ruby/ruby-length-expected.txt:
        * platform/gtk/fast/ruby/ruby-run-break-expected.txt:
        * platform/gtk/fast/ruby/ruby-runs-expected.txt:
        * platform/gtk/fast/ruby/ruby-runs-spans-expected.txt:
        * platform/gtk/fast/ruby/ruby-trailing-expected.txt:
        * platform/gtk/fast/ruby/rubyDOM-insert-rt-expected.txt:
        * platform/gtk/fast/ruby/rubyDOM-insert-text1-expected.txt:
        * platform/gtk/fast/ruby/rubyDOM-insert-text2-expected.txt:
        * platform/gtk/fast/ruby/rubyDOM-insert-text3-expected.txt:
        * platform/gtk/fast/ruby/rubyDOM-remove-rt1-expected.txt:
        * platform/gtk/fast/ruby/rubyDOM-remove-rt2-expected.txt:
        * platform/gtk/fast/ruby/rubyDOM-remove-text1-expected.txt:

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

9 years ago2011-04-05 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 5 Apr 2011 07:53:47 +0000 (07:53 +0000)]
2011-04-05  Adam Barth  <abarth@webkit.org>

        Roll Chromium DEPS.

        * DEPS: Rolled!

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

9 years ago2011-04-05 Nancy Piedra <nancy.piedra@nokia.com>
commit-queue@webkit.org [Tue, 5 Apr 2011 07:30:47 +0000 (07:30 +0000)]
2011-04-05  Nancy Piedra  <nancy.piedra@nokia.com>

        Reviewed by Alexey Proskuryakov.

        Improper use of &quot in video-can-play-type layout test
        https://bugs.webkit.org/show_bug.cgi?id=57728

        * media/video-can-play-type.html:

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

9 years ago2011-04-05 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Tue, 5 Apr 2011 07:27:40 +0000 (07:27 +0000)]
2011-04-05  Kent Tamura  <tkent@chromium.org>

        Reviewed by Dimitri Glazkov.

        Setting defaultValue on a textarea with a modified value still clobbers the value
        https://bugs.webkit.org/show_bug.cgi?id=57636

        * fast/forms/textarea-set-defaultvalue-after-value-expected.txt: Added.
        * fast/forms/textarea-set-defaultvalue-after-value.html: Added.
2011-04-05  Kent Tamura  <tkent@chromium.org>

        Reviewed by Dimitri Glazkov.

        Setting defaultValue on a textarea with a modified value still clobbers the value
        https://bugs.webkit.org/show_bug.cgi?id=57636

        If the dirty flag is true, we shouldn't update the value when the
        defaultValue is updated

        Test: fast/forms/textarea-set-defaultvalue-after-value.html

        * html/HTMLTextAreaElement.cpp:
        (WebCore::HTMLTextAreaElement::childrenChanged):
        (WebCore::HTMLTextAreaElement::setDefaultValue):

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

9 years agoRemove duplicate API from WKContext
ossy@webkit.org [Tue, 5 Apr 2011 07:25:57 +0000 (07:25 +0000)]
Remove duplicate API from WKContext
<rdar://problem/8727879>
https://bugs.webkit.org/show_bug.cgi?id=57815

Unreviewed buildfix after r82906.

Add UNUSED_PARAM to resourceCachesToClear, because
it is only used within #if USE(CFURLCACHE) guard.

* WebProcess/ResourceCache/WebResourceCacheManager.cpp:
(WebKit::WebResourceCacheManager::clearCacheForOrigin):

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

9 years agoRemove duplicate API from WKContext
weinig@apple.com [Tue, 5 Apr 2011 05:38:43 +0000 (05:38 +0000)]
Remove duplicate API from WKContext
<rdar://problem/8727879>
https://bugs.webkit.org/show_bug.cgi?id=57815

Reviewed by Brian Weinstein.

Source/WebKit2:

- Remove WKContextClearResourceCaches and WKContextClearApplicationCache in favor
  of their more modern counterparts WKResourceCacheManagerClearCacheForAllOrigins
  and WKApplicationCacheManagerDeleteAllEntries.

- Expand clearing functionality of WKResourceCacheManager by adding type of resources
  to clear.

* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
(WebKit::WebProcessCreationParameters::encode):
(WebKit::WebProcessCreationParameters::decode):
* Shared/WebProcessCreationParameters.h:
Remove clearing bools.

* UIProcess/API/C/WKAPICast.h:
(WebKit::toResourceCachesToClear):
Update for new name of enum.

* UIProcess/API/C/WKContext.cpp:
* UIProcess/API/C/WKContext.h:
Remove WKContextClearResourceCaches and WKContextClearApplicationCache.

* UIProcess/API/C/WKResourceCacheManager.cpp:
(WKResourceCacheManagerClearCacheForOrigin):
(WKResourceCacheManagerClearCacheForAllOrigins):
* UIProcess/API/C/WKResourceCacheManager.h:
Add WKResourceCachesToClear enum and use it in the clearing functions.

* UIProcess/WebContext.cpp:
(WebKit::WebContext::WebContext):
(WebKit::WebContext::ensureWebProcess):
* UIProcess/WebContext.h:
* WebProcess/WebProcess.messages.in:
Remove clearing functions and setting of bools for clear on launch.

* UIProcess/WebFullScreenManagerProxy.cpp:
Remove unnecessary #include.

* UIProcess/WebResourceCacheManagerProxy.cpp:
(WebKit::WebResourceCacheManagerProxy::clearCacheForOrigin):
(WebKit::WebResourceCacheManagerProxy::clearCacheForAllOrigins):
* UIProcess/WebResourceCacheManagerProxy.h:
* WebProcess/ResourceCache/WebResourceCacheManager.cpp:
(WebKit::WebResourceCacheManager::clearCacheForOrigin):
(WebKit::WebResourceCacheManager::clearCacheForAllOrigins):
* WebProcess/ResourceCache/WebResourceCacheManager.h:
* WebProcess/ResourceCache/WebResourceCacheManager.messages.in:
Add enum parameter describing what type of caches to clear.

* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeWebProcess):
(WebKit::WebProcess::clearResourceCaches):
* WebProcess/WebProcess.h:
No longer need to use opaque type now that it is not a message receiver.

Tools:

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/WebKit2/SendingMessagesToTheWebProcessBeforeItIsValid.cpp: Removed.
* TestWebKitAPI/win/TestWebKitAPI.vcproj:
Remove SendingMessagesToTheWebProcessBeforeItIsValid since the API it was testing is now removed.

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

9 years ago2011-04-04 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Tue, 5 Apr 2011 05:33:40 +0000 (05:33 +0000)]
2011-04-04  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r82876.
        http://trac.webkit.org/changeset/82876
        https://bugs.webkit.org/show_bug.cgi?id=57816

        Caused a lot of test crashes (Requested by tkent on #webkit).

        * JavaScriptCore.exp:
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
        * wtf/FastMalloc.cpp:
        (WTF::tryFastMalloc):
        (WTF::fastMalloc):
        (WTF::tryFastCalloc):
        (WTF::fastCalloc):
        (WTF::fastFree):
        (WTF::tryFastRealloc):
        (WTF::fastRealloc):
        (WTF::fastMallocSize):
        (WTF::TCMalloc_PageHeap::isScavengerSuspended):
        (WTF::TCMalloc_PageHeap::scheduleScavenger):
        (WTF::TCMalloc_PageHeap::suspendScavenger):
        (WTF::TCMalloc_PageHeap::signalScavenger):
        (WTF::TCMallocStats::malloc):
        (WTF::TCMallocStats::free):
        (WTF::TCMallocStats::fastCalloc):
        (WTF::TCMallocStats::tryFastCalloc):
        (WTF::TCMallocStats::calloc):
        (WTF::TCMallocStats::fastRealloc):
        (WTF::TCMallocStats::tryFastRealloc):
        (WTF::TCMallocStats::realloc):
        (WTF::TCMallocStats::fastMallocSize):
        * wtf/FastMalloc.h:
        (WTF::Internal::fastMallocMatchValidationType):
        (WTF::Internal::fastMallocMatchValidationValue):
        (WTF::Internal::setFastMallocMatchValidationType):
        (WTF::fastMallocMatchValidateFree):
        * wtf/Platform.h:

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

9 years ago2011-04-04 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Tue, 5 Apr 2011 05:26:51 +0000 (05:26 +0000)]
2011-04-04  Kent Tamura  <tkent@chromium.org>

        Add a case label which was unexpectedly removed in r82899.
        https://bugs.webkit.org/show_bug.cgi?id=50661

        * css/CSSSelector.cpp:
        (WebCore::CSSSelector::extractPseudoType):

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

9 years ago<rdar://problem/7709452> Implement Default Ruby Overhang Behavior
mitz@apple.com [Tue, 5 Apr 2011 05:21:16 +0000 (05:21 +0000)]
<rdar://problem/7709452> Implement Default Ruby Overhang Behavior
https://bugs.webkit.org/show_bug.cgi?id=49334

Reviewed by Simon Fraser.

Source/WebCore:

Tests: fast/ruby/overhang-horizontal.html
       fast/ruby/overhang-vertical.html

This is a first cut at ruby overhang. It allows ruby text to hang over other
text of equal or smaller size. Two notable omissions are that max preferred
width computation was not patched, so it will overshoot, and that overhang
ignores the width of the adjoining text runs.

* rendering/RenderBlock.h:
* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlock::computeInlineDirectionPositionsForLine): Adjust margins
of ruby runs for overhang.
(WebCore::RenderBlock::fitBelowFloats): Maintain the increase in line width to
compensate for overhang.
(WebCore::RenderBlock::findNextLineBreak): When encountering
a ruby run, increase the line width to account for the fact that overhang will be
collapsed.
* rendering/RenderRubyRun.cpp:
(WebCore::RenderRubyRun::getOverhang): Added. Allows ruby to overhang if
the adjoining renderer is text with equal or smaller font size.
* rendering/RenderRubyRun.h:
(WebCore::toRenderRubyRun):

LayoutTests:

* fast/ruby/overhang-horizontal-expected.checksum: Added.
* fast/ruby/overhang-horizontal-expected.png: Added.
* fast/ruby/overhang-horizontal-expected.txt: Added.
* fast/ruby/overhang-horizontal.html: Added.
* fast/ruby/overhang-vertical-expected.checksum: Added.
* fast/ruby/overhang-vertical-expected.png: Added.
* fast/ruby/overhang-vertical-expected.txt: Added.
* fast/ruby/overhang-vertical.html: Added.
* platform/mac/fast/blockflow/Kusa-Makura-background-canvas-expected.checksum:
* platform/mac/fast/blockflow/Kusa-Makura-background-canvas-expected.png:
* platform/mac/fast/blockflow/Kusa-Makura-background-canvas-expected.txt:
* platform/mac/fast/blockflow/english-lr-text-expected.checksum:
* platform/mac/fast/blockflow/english-lr-text-expected.png:
* platform/mac/fast/ruby/ruby-beforeafter-expected.checksum:
* platform/mac/fast/ruby/ruby-beforeafter-expected.png:
* platform/mac/fast/ruby/ruby-beforeafter-expected.txt:
* platform/mac/fast/ruby/ruby-length-expected.checksum:
* platform/mac/fast/ruby/ruby-length-expected.png:
* platform/mac/fast/ruby/ruby-length-expected.txt:
* platform/mac/fast/ruby/ruby-run-break-expected.checksum:
* platform/mac/fast/ruby/ruby-run-break-expected.png:
* platform/mac/fast/ruby/ruby-run-break-expected.txt:
* platform/mac/fast/ruby/ruby-runs-expected.checksum:
* platform/mac/fast/ruby/ruby-runs-expected.png:
* platform/mac/fast/ruby/ruby-runs-expected.txt:
* platform/mac/fast/ruby/ruby-runs-spans-expected.checksum:
* platform/mac/fast/ruby/ruby-runs-spans-expected.png:
* platform/mac/fast/ruby/ruby-runs-spans-expected.txt:
* platform/mac/fast/ruby/ruby-trailing-expected.checksum:
* platform/mac/fast/ruby/ruby-trailing-expected.png:
* platform/mac/fast/ruby/ruby-trailing-expected.txt:
* platform/mac/fast/ruby/rubyDOM-insert-rt-expected.checksum:
* platform/mac/fast/ruby/rubyDOM-insert-rt-expected.png:
* platform/mac/fast/ruby/rubyDOM-insert-rt-expected.txt:
* platform/mac/fast/ruby/rubyDOM-insert-text1-expected.checksum:
* platform/mac/fast/ruby/rubyDOM-insert-text1-expected.png:
* platform/mac/fast/ruby/rubyDOM-insert-text1-expected.txt:
* platform/mac/fast/ruby/rubyDOM-insert-text2-expected.checksum:
* platform/mac/fast/ruby/rubyDOM-insert-text2-expected.png:
* platform/mac/fast/ruby/rubyDOM-insert-text2-expected.txt:
* platform/mac/fast/ruby/rubyDOM-insert-text3-expected.checksum:
* platform/mac/fast/ruby/rubyDOM-insert-text3-expected.png:
* platform/mac/fast/ruby/rubyDOM-insert-text3-expected.txt:
* platform/mac/fast/ruby/rubyDOM-remove-rt1-expected.checksum:
* platform/mac/fast/ruby/rubyDOM-remove-rt1-expected.png:
* platform/mac/fast/ruby/rubyDOM-remove-rt1-expected.txt:
* platform/mac/fast/ruby/rubyDOM-remove-rt2-expected.checksum:
* platform/mac/fast/ruby/rubyDOM-remove-rt2-expected.png:
* platform/mac/fast/ruby/rubyDOM-remove-rt2-expected.txt:
* platform/mac/fast/ruby/rubyDOM-remove-text1-expected.checksum:
* platform/mac/fast/ruby/rubyDOM-remove-text1-expected.png:
* platform/mac/fast/ruby/rubyDOM-remove-text1-expected.txt:

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

9 years ago2011-04-04 Adrienne Walker <enne@google.com>
enne@google.com [Tue, 5 Apr 2011 04:58:21 +0000 (04:58 +0000)]
2011-04-04  Adrienne Walker  <enne@google.com>

        Unreviewed, Chromium expectations update for tests broken after r82899.

        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-04 MORITA Hajime <morrita@google.com>
morrita@google.com [Tue, 5 Apr 2011 04:41:22 +0000 (04:41 +0000)]
2011-04-04 MORITA Hajime  <morrita@google.com>

        Unreviewed expectations update following r82899.

        * platform/gtk/fast/dom/HTMLMeterElement/meter-appearances-capacity-expected.txt:
        * platform/gtk/fast/dom/HTMLMeterElement/meter-appearances-rating-relevancy-expected.txt:
        * platform/gtk/fast/dom/HTMLMeterElement/meter-boundary-values-expected.txt:
        * platform/gtk/fast/dom/HTMLMeterElement/meter-element-expected.txt:
        * platform/gtk/fast/dom/HTMLMeterElement/meter-optimums-expected.txt:
        * platform/gtk/fast/dom/HTMLMeterElement/meter-styles-changing-pseudo-expected.txt:
        * platform/gtk/fast/dom/HTMLMeterElement/meter-styles-expected.txt:

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

9 years ago<http://webkit.org/b/57384> CFNetwork and WebCore load priorities should match
ddkilzer@apple.com [Tue, 5 Apr 2011 04:37:05 +0000 (04:37 +0000)]
<webkit.org/b/57384> CFNetwork and WebCore load priorities should match

Reviewed by Alexey Proskuryakov.

Source/WebCore:

* WebCore.exp.in: Export wkSetHTTPPipeliningMaximumPriority().
* platform/mac/WebCoreSystemInterface.h:
(wkSetHTTPPipeliningMaximumPriority): Added function pointer
declaration.
* platform/mac/WebCoreSystemInterface.mm:
(wkSetHTTPPipeliningMaximumPriority): Added function pointer.
* platform/network/cf/ResourceRequestCFNet.cpp:
(WebCore::initializeMaximumHTTPConnectionCountPerHost): Call
wkSetHTTPPipeliningMaximumPriority() to set the maximum HTTP
pipelining priority.
* platform/network/cf/ResourceRequestCFNet.h:
(WebCore::toResourceLoadPriority): Renamed from
mapHTTPPipeliningPriorityToResourceLoadPriority().  Updated to
to handle Unresolved case.
(WebCore::toHTTPPipeliningPriority): Renamed from
mapResourceLoadPriorityToHTTPPipeliningPriority().  Updated to
handle Unresolved case.
* platform/network/mac/ResourceRequestMac.mm:
(WebCore::ResourceRequest::doUpdateResourceRequest): Switched to
use toResourceLoadPriority().
(WebCore::ResourceRequest::doUpdatePlatformRequest): Switched to
use toHTTPPipeliningPriority().  Moved
shouldForceHTTPPipeliningPriorityHigh() check into the argument
of toHTTPPipeliningPriority() instead of hard-coding a
now-incorrect value.

Source/WebKit/mac:

* WebCoreSupport/WebSystemInterface.mm:
(InitWebCoreSystemInterface): Added initialization for
wkSetHTTPPipeliningMaximumPriority().

Source/WebKit2:

* WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
(InitWebCoreSystemInterface): Added initialization for
wkSetHTTPPipeliningMaximumPriority().

WebKitLibraries:

* WebKitSystemInterface.h:
(WKSetHTTPPipeliningMaximumPriority): Added declaration.
(WKExtractWordDefinitionTokenRangeFromContextualString): Added
missing declaration from r81890.
(WKShowWordDefinitionWindow): Ditto.
(WKHideWordDefinitionWindow): Ditto.
* libWebKitSystemInterfaceLeopard.a: Updated.
* libWebKitSystemInterfaceSnowLeopard.a: Updated.

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

9 years ago2011-04-04 MORITA Hajime <morrita@google.com>
morrita@google.com [Tue, 5 Apr 2011 02:01:56 +0000 (02:01 +0000)]
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Kent Tamura.

        Convert <meter> shadow DOM to a DOM-based shadow.
        https://bugs.webkit.org/show_bug.cgi?id=50661

        Updated expectations due to shadow structure chagne.
        Also updated meter-styles.html pixel result because the render tree is now laid out
        as normal flexboxes and its layout result is actually different,
        especially if there are non-zero borders on shadow elements.

        * fast/dom/HTMLMeterElement/meter-styles.html:
        * platform/mac/fast/dom/HTMLMeterElement/meter-styles-changing-pseudo-expected.txt:
        * platform/mac/fast/dom/HTMLMeterElement/meter-styles-expected.checksum:
        * platform/mac/fast/dom/HTMLMeterElement/meter-styles-expected.png:
        * platform/mac/fast/dom/HTMLMeterElement/meter-styles-expected.txt:
2011-04-04  MORITA Hajime  <morrita@google.com>

        Reviewed by Kent Tamura.

        Convert <meter> shadow DOM to a DOM-based shadow.
        https://bugs.webkit.org/show_bug.cgi?id=50661

        Eliminated a large part of <meter> custom layout code,
        which is replaced by a shadow tree.
        Note that the shadow tree is created on construction time and
        will remain during the host HTMLMeterElement lifecycle.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * css/CSSMutableStyleDeclaration.cpp:
        (WebCore::CSSMutableStyleDeclaration::setProperty):
        * css/CSSMutableStyleDeclaration.h:
        * css/CSSSelector.cpp:
        (WebCore::CSSSelector::pseudoId):
        (WebCore::nameToPseudoTypeMap):
        (WebCore::CSSSelector::extractPseudoType):
        * css/CSSSelector.h:
        * css/html.css:
        (meter):
        (meter::-webkit-meter-bar):
        (meter::-webkit-meter-optimum-value):
        (meter::-webkit-meter-suboptimum-value):
        (meter::-webkit-meter-even-less-good-value):
        * html/HTMLMeterElement.cpp:
        (WebCore::HTMLMeterElement::~HTMLMeterElement):
        (WebCore::HTMLMeterElement::parseMappedAttribute):
        (WebCore::HTMLMeterElement::attach):
        (WebCore::HTMLMeterElement::valueRatio):
        (WebCore::HTMLMeterElement::didElementStateChange):
        (WebCore::HTMLMeterElement::createShadowSubtree):
        * html/HTMLMeterElement.h:
        * html/shadow/MeterShadowElement.cpp: Added.
        (WebCore::MeterShadowElement::MeterShadowElement):
        (WebCore::MeterShadowElement::meterElement):
        (WebCore::MeterShadowElement::rendererIsNeeded):
        (WebCore::MeterBarElement::shadowPseudoId):
        (WebCore::MeterValueElement::shadowPseudoId):
        (WebCore::MeterValueElement::setWidthPercentage):
        * html/shadow/MeterShadowElement.h: Added.
        (WebCore::MeterBarElement::MeterBarElement):
        (WebCore::MeterBarElement::create):
        (WebCore::MeterValueElement::MeterValueElement):
        (WebCore::MeterValueElement::create):
        * rendering/RenderMeter.cpp:
        (WebCore::RenderMeter::RenderMeter):
        (WebCore::RenderMeter::~RenderMeter):
        (WebCore::RenderMeter::valueRatio):
        * rendering/RenderMeter.h:
        (WebCore::RenderMeter::renderName):
        (WebCore::RenderMeter::isMeter):
        (WebCore::RenderMeter::requiresForcedStyleRecalcPropagation):
        (WebCore::RenderMeter::canHaveChildren):

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

9 years ago2011-04-04 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Tue, 5 Apr 2011 01:33:58 +0000 (01:33 +0000)]
2011-04-04  Oliver Hunt  <oliver@apple.com>

        Reviewed by Antti Koivisto.

        Stop JSCell.h from including Structure.h
        https://bugs.webkit.org/show_bug.cgi?id=57809

        * runtime/GetterSetter.h:
        * runtime/JSAPIValueWrapper.h:
        * runtime/JSCell.h:
        (JSC::JSCell::JSValue::toThisObject):
        * runtime/JSString.h:
        * runtime/ScopeChain.h:
        * runtime/Structure.h:
        (JSC::JSCell::isObject):
        (JSC::JSCell::isString):
        (JSC::JSCell::classInfo):
        (JSC::JSCell::createDummyStructure):
        (JSC::JSValue::needsThisConversion):
        (JSC::MarkStack::internalAppend):
        * runtime/StructureChain.h:

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

9 years agoReviewed by Kevin Ollivier.
kevino@webkit.org [Tue, 5 Apr 2011 01:01:25 +0000 (01:01 +0000)]
Reviewed by Kevin Ollivier.

Move to using FrameView::resize to handle changes in view size.

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

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

9 years ago2011-04-04 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 5 Apr 2011 00:58:47 +0000 (00:58 +0000)]
2011-04-04  Anders Carlsson  <andersca@apple.com>

        Reviewed by Darin Adler.

        Send NPCocoaEventFlagsChanged events
        https://bugs.webkit.org/show_bug.cgi?id=57811
        <rdar://problem/9215600>

        * Shared/WebEvent.h:
        (WebKit::WebEvent::capsLockKey):
        Add CapsLock modifier and getter.

        * Shared/mac/WebEventFactory.mm:
        (WebKit::modifiersForEvent):
        Check for NSAlphaShiftKeyMask and set the CapsLockKey modifier.

        * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
        (WebKit::modifierFlags):
        Check for CapsLockKey and set NSAlphaShiftKeyMask.

        (WebKit::isFlagsChangedEvent):
        Return whether a given event is a Cocoa flags changed event.

        (WebKit::initializeKeyboardEvent):
        If this is a flags changed event, set the event type to NPCocoaEventFlagsChanged.

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

9 years ago2011-04-04 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Tue, 5 Apr 2011 00:09:59 +0000 (00:09 +0000)]
2011-04-04  Martin Robinson  <mrobinson@igalia.com>

        Build fix for GTK+ after r82876.

        * Source/autotools/symbols.filter: Update the symbol filter to include new symbols
        from WTF that DRT uses.

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

9 years ago2011-04-04 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 5 Apr 2011 00:09:16 +0000 (00:09 +0000)]
2011-04-04  Anders Carlsson  <andersca@apple.com>

        Reviewed by Darin Adler.

        Don't discard the backing stores of WKViews in the key window
        https://bugs.webkit.org/show_bug.cgi?id=57808
        <rdar://problem/9110793>
        <rdar://problem/9194284>
        <rdar://problem/9222216>

        * UIProcess/DrawingAreaProxy.h:
        (WebKit::DrawingAreaProxy::setBackingStoreIsDiscardable):
        Add empty stub.

        * UIProcess/DrawingAreaProxyImpl.cpp:
        (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl):
        Initialize m_isBackingStoreDiscardable to true.

        (WebKit::DrawingAreaProxyImpl::setBackingStoreIsDiscardable):
        Set m_isBackingStoreDiscardable and schedule or stop the discard backing store timer.

        (WebKit::DrawingAreaProxyImpl::discardBackingStoreSoon):
        Don't start the timer if m_isBackingStoreDiscardable is false.

        * UIProcess/DrawingAreaProxyImpl.h:
        Add m_isBackingStoreDiscardable.

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::viewStateDidChange):
        Mark the backing store as discardable if the view is hidden or if the containing window
        is not active.

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

9 years ago2011-04-04 Adrienne Walker <enne@google.com>
enne@google.com [Mon, 4 Apr 2011 23:40:00 +0000 (23:40 +0000)]
2011-04-04  Adrienne Walker  <enne@google.com>

        Unreviewed, rolling out r82879.
        http://trac.webkit.org/changeset/82879

        Trying to fix 10.6 layout test expectations broke 10.5

        * platform/chromium-mac/fast/box-shadow/spread-multiple-inset-expected.checksum: Added.
        * platform/chromium-mac/fast/box-shadow/spread-multiple-inset-expected.png: Added.
        * platform/chromium-mac/fast/dom/HTMLMeterElement/meter-boundary-values-expected.png: Removed.
        * platform/chromium-mac/fast/html/details-add-summary-1-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-1-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-10-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-10-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-2-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-2-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-3-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-3-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-4-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-4-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-5-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-5-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-6-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-6-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-7-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-7-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-8-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-8-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-9-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-add-summary-9-expected.png: Added.
        * platform/chromium-mac/fast/html/details-no-summary1-expected.png: Added.
        * platform/chromium-mac/fast/html/details-no-summary2-expected.png: Added.
        * platform/chromium-mac/fast/html/details-no-summary3-expected.png: Added.
        * platform/chromium-mac/fast/html/details-no-summary4-expected.png: Added.
        * platform/chromium-mac/fast/html/details-open-javascript-expected.png: Added.
        * platform/chromium-mac/fast/html/details-open1-expected.png: Added.
        * platform/chromium-mac/fast/html/details-open2-expected.png: Added.
        * platform/chromium-mac/fast/html/details-open3-expected.png: Added.
        * platform/chromium-mac/fast/html/details-open4-expected.png: Added.
        * platform/chromium-mac/fast/html/details-open5-expected.png: Added.
        * platform/chromium-mac/fast/html/details-open6-expected.png: Added.
        * platform/chromium-mac/fast/html/details-position-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-1-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-1-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-2-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-2-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-3-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-3-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-4-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-4-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-5-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-5-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-6-and-click-expected.png: Added.
        * platform/chromium-mac/fast/html/details-remove-summary-6-expected.png: Added.
        * platform/chromium-mac/fast/html/details-writing-mode-expected.png: Added.
        * platform/chromium-mac/fast/inline-block/inline-block-vertical-align-expected.checksum: Added.
        * platform/chromium-mac/fast/inline-block/inline-block-vertical-align-expected.png: Added.
        * platform/chromium-mac/fast/multicol/layers-in-multicol-expected.checksum: Added.
        * platform/chromium-mac/fast/multicol/layers-in-multicol-expected.png: Added.
        * platform/chromium-mac/fast/multicol/nested-columns-expected.checksum: Added.
        * platform/chromium-mac/fast/multicol/nested-columns-expected.png:
        * platform/chromium-mac/fast/repaint/list-marker-expected.checksum: Added.
        * platform/chromium-mac/fast/repaint/list-marker-expected.png:

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

9 years ago2011-04-04 Tony Chang <tony@chromium.org>
tony@chromium.org [Mon, 4 Apr 2011 23:31:00 +0000 (23:31 +0000)]
2011-04-04  Tony Chang  <tony@chromium.org>

        Reviewed by Ojan Vafai.

        [chromium] don't write .checksum files if a fallback platform has an embedded checksum
        https://bugs.webkit.org/show_bug.cgi?id=57783

        * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py:
        * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests_unittest.py:

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

9 years ago2011-04-04 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Mon, 4 Apr 2011 23:23:06 +0000 (23:23 +0000)]
2011-04-04  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Adam Barth.

        Introduce EventDispatchMediator abstraction, which encapsulate all
        non-trivial logic around firing a specific type of an event.
        https://bugs.webkit.org/show_bug.cgi?id=57562

        Refactoring, covered by existing tests.

        * dom/Event.cpp:
        (WebCore::EventDispatchMediator::EventDispatchMediator): Added.
        (WebCore::EventDispatchMediator::~EventDispatchMediator): Added.
        (WebCore::EventDispatchMediator::dispatchEvent): Added.
        (WebCore::EventDispatchMediator::event): Added.
        * dom/Event.h: Added decl.
        * dom/EventDispatcher.cpp:
        (WebCore::EventDispatcher::dispatchEvent): Changed to use EventDispatchMediator.
        * dom/EventDispatcher.h: Updated decls.
        * dom/KeyboardEvent.cpp:
        (WebCore::KeyboardEventDispatchMediator::KeyboardEventDispatchMediator): Added.
        (WebCore::KeyboardEventDispatchMediator::dispatchEvent): Added.
        * dom/KeyboardEvent.h: Updated decls
        * dom/Node.cpp:
        (WebCore::Node::dispatchEvent): Changed to use EventDispatchMediator.
        (WebCore::Node::dispatchKeyEvent): Changed to use KeyboardEventDispatchMediator.

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

9 years ago2011-04-04 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Mon, 4 Apr 2011 23:19:05 +0000 (23:19 +0000)]
2011-04-04  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [Cairo] Memory leak in RefPtrCairo
        https://bugs.webkit.org/show_bug.cgi?id=57758

        No new tests. This just fixes a memory leak.

        * platform/graphics/cairo/RefPtrCairo.cpp:
        (WTF::derefIfNotNull): Deref should unref the cairo_font_fact_t, not reference it.

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

9 years ago2011-04-04 Adrienne Walker <enne@google.com>
enne@google.com [Mon, 4 Apr 2011 23:17:49 +0000 (23:17 +0000)]
2011-04-04  Adrienne Walker  <enne@google.com>

        Unreviewed, rolling out r82880.
        http://trac.webkit.org/changeset/82880
        https://bugs.webkit.org/show_bug.cgi?id=50661

        Meter elements not rendered in Chromium Linux layout tests.

        * fast/dom/HTMLMeterElement/meter-styles.html:
        * platform/mac/fast/dom/HTMLMeterElement/meter-styles-changing-pseudo-expected.txt:
        * platform/mac/fast/dom/HTMLMeterElement/meter-styles-expected.checksum:
        * platform/mac/fast/dom/HTMLMeterElement/meter-styles-expected.png:
        * platform/mac/fast/dom/HTMLMeterElement/meter-styles-expected.txt:
2011-04-04  Adrienne Walker  <enne@google.com>

        Unreviewed, rolling out r82880.
        http://trac.webkit.org/changeset/82880
        https://bugs.webkit.org/show_bug.cgi?id=50661

        Meter elements not rendered in Chromium Linux layout tests

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * css/CSSMutableStyleDeclaration.cpp:
        * css/CSSMutableStyleDeclaration.h:
        * css/CSSSelector.cpp:
        (WebCore::CSSSelector::pseudoId):
        (WebCore::nameToPseudoTypeMap):
        (WebCore::CSSSelector::extractPseudoType):
        * css/CSSSelector.h:
        * css/html.css:
        (meter):
        (meter::-webkit-meter):
        (meter::-webkit-meter-bar):
        (meter::-webkit-meter-optimum-value):
        (meter::-webkit-meter-suboptimal-value):
        (meter::-webkit-meter-even-less-good-value):
        * html/HTMLMeterElement.cpp:
        (WebCore::HTMLMeterElement::create):
        (WebCore::HTMLMeterElement::parseMappedAttribute):
        (WebCore::HTMLMeterElement::attach):
        * html/HTMLMeterElement.h:
        * html/shadow/MeterShadowElement.cpp: Removed.
        * html/shadow/MeterShadowElement.h: Removed.
        * rendering/RenderMeter.cpp:
        (WebCore::RenderMeter::RenderMeter):
        (WebCore::RenderMeter::~RenderMeter):
        (WebCore::RenderMeter::createPart):
        (WebCore::RenderMeter::updateFromElement):
        (WebCore::RenderMeter::layoutParts):
        (WebCore::RenderMeter::styleDidChange):
        (WebCore::RenderMeter::shouldHaveParts):
        (WebCore::RenderMeter::valueRatio):
        (WebCore::RenderMeter::barPartRect):
        (WebCore::RenderMeter::valuePartRect):
        (WebCore::RenderMeter::valuePseudoId):
        (WebCore::RenderMeter::barPseudoId):
        (WebCore::RenderMeter::detachShadows):
        (WebCore::RenderMeter::updateShadows):
        * rendering/RenderMeter.h:
        (WebCore::RenderMeter::renderName):
        (WebCore::RenderMeter::isMeter):
        (WebCore::RenderMeter::shadowAttached):

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