WebKit-https.git
9 years agoTry to fix the Chromium build.
ggaren@apple.com [Thu, 2 Dec 2010 03:50:59 +0000 (03:50 +0000)]
Try to fix the Chromium build.

* JavaScriptCore.gypi: This is a Windows build file, so use OSAllocatorWin.cpp.

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

9 years agoTry to fix the GTK build.
ggaren@apple.com [Thu, 2 Dec 2010 03:39:01 +0000 (03:39 +0000)]
Try to fix the GTK build.

* GNUmakefile.am: Added OSAllocator to another project.

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

9 years ago2010-12-01 Victor Wang <victorw@chromium.org>
victorw@chromium.org [Thu, 2 Dec 2010 03:31:25 +0000 (03:31 +0000)]
2010-12-01  Victor Wang  <victorw@chromium.org>

        Unreviewed.

        [Chromium] update chromium image test expectations.

        * platform/chromium-mac/platform/mac/editing: Added.
        * platform/chromium-mac/platform/mac/editing/spelling: Added.
        * platform/chromium-mac/platform/mac/editing/spelling/delete-autocorrected-word-1-expected.checksum: Added.
        * platform/chromium-mac/platform/mac/editing/spelling/delete-autocorrected-word-1-expected.png: Added.
        * platform/chromium-win/platform/mac/editing/spelling: Added.
        * platform/chromium-win/platform/mac/editing/spelling/delete-autocorrected-word-1-expected.checksum: Added.
        * platform/chromium-win/platform/mac/editing/spelling/delete-autocorrected-word-1-expected.png: Added.

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

9 years agoTry to fix the GTK Linux build.
ggaren@apple.com [Thu, 2 Dec 2010 03:23:29 +0000 (03:23 +0000)]
Try to fix the GTK Linux build.

* JavaScriptCore.gypi: Added OSAllocator to the project.

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

9 years agoTry to fix the Qt Linux build.
ggaren@apple.com [Thu, 2 Dec 2010 03:18:20 +0000 (03:18 +0000)]
Try to fix the Qt Linux build.

* wtf/OSAllocatorPosix.cpp: Use the right errno.h.

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

9 years agoUnreviewed. Removing out of date expectation.
jparent@chromium.org [Thu, 2 Dec 2010 03:04:18 +0000 (03:04 +0000)]
Unreviewed.  Removing out of date expectation.

* platform/chromium/test_expectations.txt:

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

9 years agoTry to fix Windows build: export some more symbols.
ggaren@apple.com [Thu, 2 Dec 2010 03:01:03 +0000 (03:01 +0000)]
Try to fix Windows build: export some more symbols.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:

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

9 years agoFix 64-bit build.
weinig@apple.com [Thu, 2 Dec 2010 02:56:24 +0000 (02:56 +0000)]
Fix 64-bit build.

* WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
(WebKit::NetscapePlugin::windowAndViewFramesChanged):

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

9 years agoTry to fix the Qt Linux build.
ggaren@apple.com [Thu, 2 Dec 2010 02:52:33 +0000 (02:52 +0000)]
Try to fix the Qt Linux build.

* wtf/wtf.pri: Use the POSIX OSAllocator for Qt Linux.

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

9 years agoWindows build fix: commit doesn't have a return value.
ggaren@apple.com [Thu, 2 Dec 2010 02:42:23 +0000 (02:42 +0000)]
Windows build fix: commit doesn't have a return value.

* wtf/OSAllocatorWin.cpp:
(WTF::OSAllocator::commit):

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

9 years agoBuild fix: Export some symbols.
ggaren@apple.com [Thu, 2 Dec 2010 02:36:31 +0000 (02:36 +0000)]
Build fix: Export some symbols.

* JavaScriptCore.exp:

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

9 years agoBuild fix: Added a forwarding header.
ggaren@apple.com [Thu, 2 Dec 2010 02:34:37 +0000 (02:34 +0000)]
Build fix: Added a forwarding header.

JavaScriptGlue:

* ForwardingHeaders/wtf/OSAllocator.h: Added.

WebCore:

* ForwardingHeaders/wtf/OSAllocator.h: Added.

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

9 years agoUnreviewed. Moving test expecation upstream.
jparent@chromium.org [Thu, 2 Dec 2010 02:27:27 +0000 (02:27 +0000)]
Unreviewed. Moving test expecation upstream.

* platform/chromium/test_expectations.txt:

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

9 years agoBuild fix.
ggaren@apple.com [Thu, 2 Dec 2010 02:22:18 +0000 (02:22 +0000)]
Build fix.

* JavaScriptCore.xcodeproj/project.pbxproj: Export OSAllocator.h as private
so other projects can see it.

* wtf/OSAllocatorPosix.cpp: #include UnusedParam.h for UNUSED_PARAM.

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

9 years agoBaby step toward a cross-platform virtual memory abstraction: created
ggaren@apple.com [Thu, 2 Dec 2010 02:13:59 +0000 (02:13 +0000)]
Baby step toward a cross-platform virtual memory abstraction: created
an all-static OSAllocator class and changed MarkStack to use it.

Reviewed by Sam Weinig.

* JavaScriptCore.exp: These functions are inlined now.

* JavaScriptCore.vcproj/WTF/WTF.vcproj: Added OSAllocatorWin.cpp.

* JavaScriptCore.xcodeproj/project.pbxproj: Added OSAllocatorPosix.cpp.

* runtime/MarkStack.h:
(JSC::MarkStack::allocateStack):
(JSC::MarkStack::releaseStack): Use OSAllocator instead of rolling our
own platform-specific code.

* runtime/MarkStackNone.cpp: Removed. Nothing used this.

* runtime/MarkStackPosix.cpp:
* runtime/MarkStackSymbian.cpp:
* runtime/MarkStackWin.cpp: Removed custom platform-specific code, since
we use the OSAllocator abstraction now.

* wtf/OSAllocator.h: Added.
* wtf/OSAllocatorPosix.cpp: Added.
(WTF::OSAllocator::reserve):
(WTF::OSAllocator::reserveAndCommit):
(WTF::OSAllocator::commit):
(WTF::OSAllocator::decommit):
(WTF::OSAllocator::release):
* wtf/OSAllocatorSymbian.cpp: Added.
(WTF::OSAllocator::reserve):
(WTF::OSAllocator::reserveAndCommit):
(WTF::OSAllocator::commit):
(WTF::OSAllocator::decommit):
(WTF::OSAllocator::release):
* wtf/OSAllocatorWin.cpp: Added.
(WTF::OSAllocator::reserve):
(WTF::OSAllocator::reserveAndCommit):
(WTF::OSAllocator::commit):
(WTF::OSAllocator::decommit):
(WTF::OSAllocator::release): The new OSAllocator abstraction.

* wtf/wtf.pri: Added OSAllocatorSymbian.cpp.

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

9 years agoGive the fake Carbon window the right bounds
andersca@apple.com [Thu, 2 Dec 2010 01:55:38 +0000 (01:55 +0000)]
Give the fake Carbon window the right bounds
https://bugs.webkit.org/show_bug.cgi?id=50361

Reviewed by Sam Weinig.

* PluginProcess/PluginControllerProxy.cpp:
(WebKit::PluginControllerProxy::windowAndViewFramesChanged):
* PluginProcess/PluginControllerProxy.h:
* PluginProcess/PluginControllerProxy.messages.in:
* UIProcess/API/mac/WKView.mm:
(-[WKView _updateWindowAndViewFrames]):
Pass both the window frame and view frame along.

(-[WKView renewGState]):
Call _updateWindowAndViewFrames.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::windowAndViewFramesChanged):
Pass both the window frame and view frame along.

* UIProcess/WebPageProxy.h:
* WebProcess/Plugins/Netscape/NetscapePlugin.h:
* WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
(WebKit::NetscapePlugin::platformPostInitialize):
We don't want a title bar in our fake window.

(WebKit::computeFakeWindowBoundsRect):
Compute the fake window bounds.

(WebKit::NetscapePlugin::windowAndViewFramesChanged):
Update the fake window bounds.

* WebProcess/Plugins/Plugin.h:
* WebProcess/Plugins/PluginProxy.cpp:
(WebKit::PluginProxy::windowAndViewFramesChanged):
* WebProcess/Plugins/PluginProxy.h:
* WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::windowAndViewFramesChanged):
(WebKit::PluginView::initializePlugin):
* WebProcess/Plugins/PluginView.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::windowAndViewFramesChanged):
* WebProcess/WebPage/WebPage.h:
(WebKit::WebPage::windowFrameInScreenCoordinates):
(WebKit::WebPage::viewFrameInWindowCoordinates):
* WebProcess/WebPage/WebPage.messages.in:
Pass both the window frame and view frame along.

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

9 years ago2010-12-01 Nico Weber <thakis@chromium.org>
thakis@chromium.org [Thu, 2 Dec 2010 01:50:40 +0000 (01:50 +0000)]
2010-12-01  Nico Weber  <thakis@chromium.org>

        More baselines after http://trac.webkit.org/changeset/72689
        https://bugs.webkit.org/show_bug.cgi?id=50040

        The rebaseline script didn't find these, because they're only wrong
        in platform/mac-leopard. I use Snow Leopard, so the script didn't look
        there. The bots on the other hand use Leopard, so they complain. I
        manually copied the expectations from platfrom/mac to
        platform/chromium-mac. Explanation by jamesr.

        * platform/chromium-mac/svg/W3C-SVG-1.1/struct-image-10-t-expected.checksum: Added.
        * platform/chromium-mac/svg/W3C-SVG-1.1/struct-image-10-t-expected.png: Added.
        * platform/chromium-mac/tables/mozilla/bugs/bug14929-expected.checksum: Added.

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

9 years ago2010-12-01 Jia Pu <jpu@apple.com>
darin@apple.com [Thu, 2 Dec 2010 01:19:05 +0000 (01:19 +0000)]
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        Adopted new function signature defined in base class.

        * src/EditorClientImpl.cpp:
        (WebKit::EditorClientImpl::getGuessesForWord):
        * src/EditorClientImpl.h:
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        Adopted new function signature defined in base class.

        * WebCoreSupport/EditorClientQt.cpp:
        (WebCore::EditorClientQt::getGuessesForWord):
        * WebCoreSupport/EditorClientQt.h:
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        Adopted new function signature defined in base class.

        * WebCoreSupport/EditorClientGtk.cpp:
        (WebKit::EditorClient::getGuessesForWord):
        * WebCoreSupport/EditorClientGtk.h:
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        Adopted new function signature defined in base class.

        * WebCoreSupport/WebEditorClient.cpp:
        (WebEditorClient::getGuessesForWord):
        * WebCoreSupport/WebEditorClient.h:
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        Adopted new function signature defined in base class.

        * WebKitSupport/EditorClientWx.cpp:
        (WebCore::EditorClientWx::getGuessesForWord):
        * WebKitSupport/EditorClientWx.h:
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        This patch is for supporting multiple correction suggestion panel on Mac OS X.
        The behavior and implementation is similar to that of reversion candiate panel.

        * WebCoreSupport/WebEditorClient.h: Adopted new signatures defined in base class.

        * WebCoreSupport/WebEditorClient.mm:  Adopted new signatures defined in base class.
          Added code to handle new multiple suggestion canidate panel type.
        (WebEditorClient::showCorrectionPanel):
        (WebEditorClient::getGuessesForWord):
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        Adopted new function signature defined in base class.

        * WebCoreSupport/EditorClientHaiku.cpp:
        (WebCore::EditorClientHaiku::getGuessesForWord):
        * WebCoreSupport/EditorClientHaiku.h:
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        Adopted new function signature defined in base class.

        * WebCoreSupport/EditorClientWinCE.cpp:
        (WebKit::EditorClientWinCE::getGuessesForWord):
        * WebCoreSupport/EditorClientWinCE.h:
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        Adopted new function signature defined in base class.

        * WebCoreSupport/EditorClientEfl.cpp:
        (WebCore::EditorClientEfl::getGuessesForWord):
        * WebCoreSupport/EditorClientEfl.h:
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        Test: platform/mac/editing/spelling/delete-autocorrected-word-1.html
        Manual test: WebCore/manual-tests/autocorrection/dismiss-multiple-guesses.html
                     WebCore/manual-tests/autocorrection/select-from-multiple-guesses.html

        This patch is for supporting multiple correction suggestion panel on Mac OS X.
        The behavior and implementation is similar to that of reversion candiate panel.

        * WebCore.exp.in: Added and removed symbols.

        * editing/CorrectionPanelInfo.h: Added new correction panel type, PanelTypeSpellingSuggestions.

        * editing/Editor.cpp:
        (WebCore::markerTypesForAutocorrection): Convenient function for getting marker types to
          be added to autocorrected word.
        (WebCore::boundingBoxForRange): Convenient function for calculating the bounding box of a range.
        (WebCore::markerTypesForReplacement): Convenient function for getting marker types to
          be added to word that has been replaced by various correction panel.
        (WebCore::Editor::respondToChangedSelection): Added code to trigger timer for multiple
          suggestion panel.
        (WebCore::Editor::guessesForMisspelledSelection): Adopted new signature of EditorClient::getGuessesForWord().
        (WebCore::Editor::markMisspellingsAfterTypingToWord): Adopted new signature of applyCorrectionPanelInfo().
        (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): Ditto.
        (WebCore::Editor::correctionPanelTimerFired): Added code to handle new multiple suggestion panel.
        (WebCore::Editor::handleCorrectionPanelResult): Replaced handleRejectedCorrection(), since
          with new AppKit correction panel API, not only rejection, but also confirmation can be
          handled in callback.
        (WebCore::Editor::stopCorrectionPanelTimer): Moved the code that clears correction panel info
          from dismissCorrectionPanel() to this function to fix a bug that would occur when deleting
          autocorrected word.
        (WebCore::Editor::dismissCorrectionPanel): Ditto.
        (WebCore::Editor::applyCorrectionPanelInfo): Added code to handle new multiple suggestion panel.

        * editing/Editor.h: Replaced handleRejectedCorrection() with handleCorrectionPanelResult().
          Changed the signature of applyCorrectionPanelInfo() to hanlde new correction panel type.

        * editing/TextCheckingHelper.cpp:
        (WebCore::TextCheckingHelper::guessesForMisspelledOrUngrammaticalRange): Adopted new EditorClient::getGuessesForWord().

        * editing/TextCheckingHelper.h: Made paragraphRange() public.

        * loader/EmptyClients.h:
        (WebCore::EmptyEditorClient::showCorrectionPanel): Adopted new signature defined in base class.
        (WebCore::EmptyEditorClient::getGuessesForWord): Ditto.

        * manual-tests/autocorrection/dismiss-multiple-guesses.html: Added.

        * manual-tests/autocorrection/select-from-multiple-guesses.html: Added.

        * page/EditorClient.h:  Changed showCorrectionPanel() to allow passing multiple correction
          candidates. Changed getGuessesForWord() to allow passing in contextual text for better
          correction suggestions (for those spellcheckers that utilizes such contextual information).
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        * platform/mac-leopard/Skipped:
        * platform/mac-snowleopard/Skipped:
        * platform/mac-tiger/Skipped:
        * platform/mac-wk2/Skipped:
        * platform/mac/editing/spelling/delete-autocorrected-word-1-expected.txt: Added.
        * platform/mac/editing/spelling/delete-autocorrected-word-1.html: Added.
2010-12-01  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Support multiple correction candidates panel for misspelled word on Mac OS X.
        https://bugs.webkit.org/show_bug.cgi?id=50137
        <rdar://problem/8568059>

        Adopted new function signatures defined in base class.

        * WebProcess/WebCoreSupport/WebEditorClient.cpp:
        (WebKit::WebEditorClient::getGuessesForWord):
        * WebProcess/WebCoreSupport/WebEditorClient.h:
        * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
        (WebKit::WebEditorClient::showCorrectionPanel):

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=50360
hyatt@apple.com [Thu, 2 Dec 2010 00:56:25 +0000 (00:56 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=50360

Reviewed by James Robinson.

Make sure to include the origin adjustment code that I added on Mac to keep truncation-rtl.html passing.

* platform/ScrollView.cpp:
(WebCore::ScrollView::updateScrollbars):

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

9 years agoLand Windows specific results for /vertical-scrollbar-in-rtl.html
bweinstein@apple.com [Thu, 2 Dec 2010 00:23:11 +0000 (00:23 +0000)]
Land Windows specific results for /vertical-scrollbar-in-rtl.html
after r73063.

* platform/win/fast/dom/vertical-scrollbar-in-rtl-expected.txt: Added.

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

9 years ago2010-12-01 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Thu, 2 Dec 2010 00:14:49 +0000 (00:14 +0000)]
2010-12-01  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by John Sullivan.

        Hit testing broken on sibling views of the WKView
        <rdar://problem/8718397>

        Make sure that hitView is not null when comparing with the
        _layerHostingView.

        * UIProcess/API/mac/WKView.mm:
        (-[WKView hitTest:]):

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

9 years agoImplement the remaining PluginController/Plugin member functions
andersca@apple.com [Thu, 2 Dec 2010 00:06:51 +0000 (00:06 +0000)]
Implement the remaining PluginController/Plugin member functions
https://bugs.webkit.org/show_bug.cgi?id=50356

Reviewed by Sam Weinig.

* PluginProcess/PluginControllerProxy.cpp:
(WebKit::PluginControllerProxy::cancelStreamLoad):
(WebKit::PluginControllerProxy::cancelManualStreamLoad):
(WebKit::PluginControllerProxy::setStatusbarText):
(WebKit::PluginControllerProxy::pluginProcessCrashed):
(WebKit::PluginControllerProxy::frameDidFinishLoading):
(WebKit::PluginControllerProxy::frameDidFail):
(WebKit::PluginControllerProxy::manualStreamDidReceiveResponse):
(WebKit::PluginControllerProxy::manualStreamDidReceiveData):
(WebKit::PluginControllerProxy::manualStreamDidFinishLoading):
(WebKit::PluginControllerProxy::manualStreamDidFail):
* PluginProcess/PluginControllerProxy.h:
* PluginProcess/PluginControllerProxy.messages.in:
* WebProcess/Plugins/PluginProxy.cpp:
(WebKit::PluginProxy::frameDidFinishLoading):
(WebKit::PluginProxy::frameDidFail):
(WebKit::PluginProxy::manualStreamDidReceiveResponse):
(WebKit::PluginProxy::manualStreamDidReceiveData):
(WebKit::PluginProxy::manualStreamDidFinishLoading):
(WebKit::PluginProxy::manualStreamDidFail):
(WebKit::PluginProxy::windowFrameChanged):
(WebKit::PluginProxy::cancelStreamLoad):
(WebKit::PluginProxy::cancelManualStreamLoad):
(WebKit::PluginProxy::setStatusbarText):
* WebProcess/Plugins/PluginProxy.h:
* WebProcess/Plugins/PluginProxy.messages.in:

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

9 years ago2010-12-01 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Thu, 2 Dec 2010 00:03:55 +0000 (00:03 +0000)]
2010-12-01  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Adam Barth.

        build-webkit --chromium always updates DEPS and re-generates project files
        https://bugs.webkit.org/show_bug.cgi?id=50340

        Make build-webkit --chromium invoke update-webkit-chromium only when
        --update-chromium is passed in, so that we don't add 20 seconds to all
        builds.

        Making all invocations update was added with r61883, with the goal of
        making EWS bots always update. The bots will switch to using this flag
        (as will all other webkit-patch build steps) so nothing should change
        for them.

        * Scripts/webkitdirs.pm:
        * Scripts/webkitpy/common/config/ports.py:
        * Scripts/webkitpy/common/config/ports_unittest.py:

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=46645
hyatt@apple.com [Thu, 2 Dec 2010 00:02:24 +0000 (00:02 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=46645

Reviewed by Dan Bernstein.

Generalize overflow section scrollOriginX code to be a point and to work in both horizontal
and vertical modes.

Not testable yet, since the rightmost/leftmost/topmost/lowestPosition functions are returning
horrendously wrong values in the vertical text case for overflow:auto objects.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::RenderLayer):
(WebCore::RenderLayer::scrollToOffset):
(WebCore::RenderLayer::computeScrollDimensions):
(WebCore::RenderLayer::updateOverflowStatus):
* rendering/RenderLayer.h:
(WebCore::RenderLayer::scrolledContentOffset):
(WebCore::RenderLayer::scrollXOffset):
(WebCore::RenderLayer::scrollYOffset):
(WebCore::RenderLayer::scrollToXOffset):
(WebCore::RenderLayer::scrollToYOffset):

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

9 years ago2010-12-01 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Wed, 1 Dec 2010 23:59:15 +0000 (23:59 +0000)]
2010-12-01  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by Tony Chang.

        new-run-webkit-tests: add a --dry-run / -n flag
        https://bugs.webkit.org/show_bug.cgi?id=50045

        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
        * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:

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

9 years ago2010-12-01 Alexey Marinichev <amarinichev@chromium.org>
kbr@google.com [Wed, 1 Dec 2010 23:58:16 +0000 (23:58 +0000)]
2010-12-01  Alexey Marinichev  <amarinichev@chromium.org>

        Reviewed by James Robinson.

        [chromium] renderer does not realize hardware compositing is disabled and crashes
        https://bugs.webkit.org/show_bug.cgi?id=50264

        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::setRootGraphicsLayer): repaint always
        (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): null check
        (WebKit::WebViewImpl::reallocateRenderer):

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

9 years agoWinCairo build should not use link-time code generation (LTCG)
sfalken@apple.com [Wed, 1 Dec 2010 23:55:29 +0000 (23:55 +0000)]
WinCairo build should not use link-time code generation (LTCG)
https://bugs.webkit.org/show_bug.cgi?id=50353

Reviewed by Adam Roben.

JavaScriptCore:

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCore.vcproj/WTF/WTF.vcproj:
* JavaScriptCore.vcproj/jsc/jsc.vcproj:
* JavaScriptCore.vcproj/testapi/testapi.vcproj:

WebCore:

* WebCore.vcproj/QTMovieWin.vcproj:
* WebCore.vcproj/WebCore.vcproj:

WebKit/win:

* WebKit.vcproj/Interfaces.vcproj:
* WebKit.vcproj/WebKit.vcproj:
* WebKit.vcproj/WebKitGUID.vcproj:

WebKit2:

* win/WebKit2.vcproj:
* win/WebKit2WebProcess.vcproj:

WebKitTools:

* DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj:
* DumpRenderTree/win/DumpRenderTree.vcproj:
* DumpRenderTree/win/ImageDiff.vcproj:
* FindSafari/FindSafari.vcproj:
* MiniBrowser/MiniBrowser.vcproj:
* TestWebKitAPI/win/TestWebKitAPI.vcproj:
* WebKitAPITest/WebKitAPITest.vcproj:
* WebKitLauncherWin/WebKitLauncherWin.vcproj:
* WebKitTestRunner/win/InjectedBundle.vcproj:
* WebKitTestRunner/win/WebKitTestRunner.vcproj:
* WinLauncher/WinLauncher.vcproj:
* record-memory-win/record-memory-win.vcproj:

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

9 years ago2010-12-01 Victor Wang <victorw@chromium.org>
victorw@chromium.org [Wed, 1 Dec 2010 23:32:13 +0000 (23:32 +0000)]
2010-12-01  Victor Wang  <victorw@chromium.org>

        Unreviewed.

        [Chromium] Update chromium test expectations.

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-12-01 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Wed, 1 Dec 2010 23:23:01 +0000 (23:23 +0000)]
2010-12-01  Martin Robinson  <mrobinson@igalia.com>

        Touch GetUserAgentWithNullNPPFromNPPNew.cpp in an effort to force
        a rebuild of TestNetscapePlugin.la on GTK+. It seems that simply
        adding the file to the sources list was not enough to force the rebuild.

        * DumpRenderTree/TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp:
        Remove an empty line at the end of this file to force a rebuild.

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

9 years agoDon't let harmless errorlevels from the "set" utility leak into project-specific...
aroben@apple.com [Wed, 1 Dec 2010 23:09:38 +0000 (23:09 +0000)]
Don't let harmless errorlevels from the "set" utility leak into project-specific build scripts

When using set to unset an environment variable that didn't previously
exist, set raises the errorlevel to 1. This was leaking into
project-specific scripts, causing them to think the build has failed.
We now clear the errorlevel after we finish setting environment
variables.

Fixes <http://webkit.org/b/50350> Windows builds mysteriously fail in
some configurations

Reviewed by Steve Falkenburg.

* win/tools/vsprops/common.vsprops: Call "cmd /c" after setting
environment variables to get rid of any errorlevel that "set" set.

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

9 years agoTeach git to ignore files installed by WebKitSupportLibrary and WebKitAuxiliaryLibrary
aroben@apple.com [Wed, 1 Dec 2010 23:08:52 +0000 (23:08 +0000)]
Teach git to ignore files installed by WebKitSupportLibrary and WebKitAuxiliaryLibrary

Fixes <http://webkit.org/b/50348> Git complains about lots of
untracked files in WebKitLibraries/win

Reviewed by Steve Falkenburg.

* .gitignore: Added files from these libraries.

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

9 years ago2010-12-01 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Wed, 1 Dec 2010 23:04:01 +0000 (23:04 +0000)]
2010-12-01  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Anders Carlsson.

        Size changes on layer-backed drawing areas don't always end up with the correct value
        https://bugs.webkit.org/show_bug.cgi?id=50351
        <rdar://problem/8692966>

        When the UI process does not receive didSetSize messages promptly,
        LayerBackedDrawingAreaProxy::setSize() bails early based on the
        m_isWaitingForDidSetFrameNotification flag.

        In this situation, the final size may be incorrect. didSetSize()
        needs to compare the size that the web process has to the expected size,
        and send a final setSize if they differ.

        * UIProcess/LayerBackedDrawingAreaProxy.cpp:
        (WebKit::LayerBackedDrawingAreaProxy::didSetSize):
        (WebKit::LayerBackedDrawingAreaProxy::didReceiveMessage):
        * UIProcess/LayerBackedDrawingAreaProxy.h:
        * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
        (WebKit::LayerBackedDrawingArea::setSize):

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

9 years ago2010-12-01 Tony Chang <tony@chromium.org>
tony@chromium.org [Wed, 1 Dec 2010 22:44:07 +0000 (22:44 +0000)]
2010-12-01  Tony Chang  <tony@chromium.org>

        Unreviewed, one more try to get chromium drt bots green.

        * platform/chromium/test_expectations.txt:

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

9 years agoFix <rdar://problem/8717674>.
andersca@apple.com [Wed, 1 Dec 2010 22:27:16 +0000 (22:27 +0000)]
Fix <rdar://problem/8717674>.

Reviewed by Sam Weinig..

* WebProcess/com.apple.WebProcess.sb:
Allow the UI process to issue file-write extensions.

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

9 years agoFix windows build.
weinig@apple.com [Wed, 1 Dec 2010 22:24:31 +0000 (22:24 +0000)]
Fix windows build.

* MiniBrowser/win/BrowserView.cpp:
(BrowserView::create):

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

9 years ago2010-12-01 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Wed, 1 Dec 2010 22:16:34 +0000 (22:16 +0000)]
2010-12-01  Martin Robinson  <mrobinson@igalia.com>

        Add missing file to the TestNetscapePlugin sources list after r73057.

        * GNUmakefile.am: Add missing file.

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

9 years agoAnother windows build fix.
weinig@apple.com [Wed, 1 Dec 2010 22:15:37 +0000 (22:15 +0000)]
Another windows build fix.

* UIProcess/API/C/win/WKView.cpp:
(WKViewCreate):

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

9 years agoAttempt to fix Windows build.
weinig@apple.com [Wed, 1 Dec 2010 22:08:49 +0000 (22:08 +0000)]
Attempt to fix Windows build.

* UIProcess/API/C/win/WKViewPrivate.cpp:
* UIProcess/API/C/win/WKViewPrivate.h:

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

9 years agoAdd PageGrouping to WebKit2 API
weinig@apple.com [Wed, 1 Dec 2010 22:00:01 +0000 (22:00 +0000)]
Add PageGrouping to WebKit2 API
https://bugs.webkit.org/show_bug.cgi?id=50332

Reviewed by Anders Carlsson.

WebKit2:

- Adds WKPageGroupRef and WKBundlePageGroupRef API objects
  (backed by WebPageGroup and WebPageGroupProxy respectively).
- Moves visibleToInjectedBundle from page to PageGroup.
- Make userScript/userStyleSheet functions take a page group parameter.

* Shared/API/c/WKBase.h:
* Shared/APIObject.h:
* Shared/WebPageCreationParameters.cpp:
(WebKit::WebPageCreationParameters::encode):
(WebKit::WebPageCreationParameters::decode):
* Shared/WebPageCreationParameters.h:
* Shared/WebPageGroupData.cpp: Added.
(WebKit::WebPageGroupData::encode):
(WebKit::WebPageGroupData::decode):
* Shared/WebPageGroupData.h: Added.
* UIProcess/API/C/WKAPICast.h:
* UIProcess/API/C/WKPage.cpp:
(WKPageGetPageGroup):
* UIProcess/API/C/WKPage.h:
* UIProcess/API/C/WKPageGroup.cpp: Added.
(WKPageGroupGetTypeID):
(WKPageGroupCreateWithIdentifier):
(WKPageGroupCopyIdentifier):
* UIProcess/API/C/WKPageGroup.h: Added.
* UIProcess/API/C/WebKit2.h:
* UIProcess/API/C/win/WKView.cpp:
(WKViewCreate):
* UIProcess/API/C/win/WKView.h:
* UIProcess/API/mac/WKView.h:
* UIProcess/API/mac/WKView.mm:
(-[WKView initWithFrame:pageNamespaceRef:pageGroupRef:]):
(-[WKView initWithFrame:pageNamespaceRef:]):
* UIProcess/API/mac/WKViewInternal.h:
* UIProcess/API/qt/qwkpage.cpp:
(QWKPagePrivate::QWKPagePrivate):
* UIProcess/WebContext.cpp:
(WebKit::WebContext::WebContext):
(WebKit::WebContext::createWebPage):
* UIProcess/WebContext.h:
* UIProcess/WebContextUserMessageCoders.h:
(WebKit::WebContextUserMessageEncoder::encode):
(WebKit::WebContextUserMessageDecoder::decode):
* UIProcess/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::inspectorPageGroup):
* UIProcess/WebInspectorProxy.h:
* UIProcess/WebPageGroup.cpp: Added.
(WebKit::generatePageGroupID):
(WebKit::webPageGroupMap):
(WebKit::WebPageGroup::create):
(WebKit::WebPageGroup::get):
(WebKit::WebPageGroup::WebPageGroup):
(WebKit::WebPageGroup::~WebPageGroup):
* UIProcess/WebPageGroup.h: Added.
(WebKit::WebPageGroup::identifier):
(WebKit::WebPageGroup::pageGroupID):
(WebKit::WebPageGroup::data):
(WebKit::WebPageGroup::type):
* UIProcess/WebPageNamespace.cpp:
(WebKit::WebPageNamespace::createWebPage):
* UIProcess/WebPageNamespace.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::create):
(WebKit::WebPageProxy::WebPageProxy):
(WebKit::WebPageProxy::creationParameters):
* UIProcess/WebPageProxy.h:
(WebKit::WebPageProxy::pageGroup):
* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::createWebPage):
* UIProcess/WebProcessProxy.h:
* UIProcess/mac/WebInspectorProxyMac.mm:
(WebKit::WebInspectorProxy::platformCreateInspectorPage):
* UIProcess/win/WebView.cpp:
(WebKit::WebView::WebView):
* UIProcess/win/WebView.h:
(WebKit::WebView::create):
* WebKit2.pro:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/API/c/WKBundle.cpp:
(WKBundleAddUserScript):
(WKBundleAddUserStyleSheet):
(WKBundleRemoveUserScript):
(WKBundleRemoveUserStyleSheet):
(WKBundleRemoveUserScripts):
(WKBundleRemoveUserStyleSheets):
(WKBundleRemoveAllUserContent):
(WKBundleOverrideXSSAuditorEnabledForTestRunner):
* WebProcess/InjectedBundle/API/c/WKBundle.h:
* WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageGetPageGroup):
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/InjectedBundle/API/c/WKBundlePageGroup.cpp: Added.
(WKBundlePageGroupGetTypeID):
(WKBundlePageGroupCopyIdentifier):
* WebProcess/InjectedBundle/API/c/WKBundlePageGroup.h: Added.
* WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::overrideXSSAuditorEnabledForTestRunner):
(WebKit::InjectedBundle::addUserScript):
(WebKit::InjectedBundle::addUserStyleSheet):
(WebKit::InjectedBundle::removeUserScript):
(WebKit::InjectedBundle::removeUserStyleSheet):
(WebKit::InjectedBundle::removeUserScripts):
(WebKit::InjectedBundle::removeUserStyleSheets):
(WebKit::InjectedBundle::removeAllUserContent):
(WebKit::InjectedBundle::didInitializePageGroup):
* WebProcess/InjectedBundle/InjectedBundle.h:
* WebProcess/InjectedBundle/InjectedBundleClient.cpp:
(WebKit::InjectedBundleClient::didInitializePageGroup):
* WebProcess/InjectedBundle/InjectedBundleClient.h:
* WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
(WebKit::InjectedBundleUserMessageEncoder::encode):
(WebKit::InjectedBundleUserMessageDecoder::decode):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::create):
(WebKit::WebPage::WebPage):
(WebKit::WebPage::close):
* WebProcess/WebPage/WebPage.h:
(WebKit::WebPage::pageGroup):
* WebProcess/WebPage/WebPageGroupProxy.cpp: Added.
(WebKit::WebPageGroupProxy::create):
(WebKit::WebPageGroupProxy::~WebPageGroupProxy):
* WebProcess/WebPage/WebPageGroupProxy.h: Added.
(WebKit::WebPageGroupProxy::identifier):
(WebKit::WebPageGroupProxy::pageGroupID):
(WebKit::WebPageGroupProxy::isVisibleToInjectedBundle):
(WebKit::WebPageGroupProxy::WebPageGroupProxy):
(WebKit::WebPageGroupProxy::type):
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::webPageGroup):
* WebProcess/WebProcess.h:
* win/WebKit2.vcproj:
* win/WebKit2Generated.make:

WebKitTools:

- Update testing harnesses to deal with new PageGroup API.

* MiniBrowser/mac/WebBundle/WebBundleMain.m:
(WKBundleInitialize):
* TestWebKitAPI/InjectedBundleController.cpp:
(TestWebKitAPI::InjectedBundleController::initialize):
(TestWebKitAPI::InjectedBundleController::didInitializePageGroup):
(TestWebKitAPI::InjectedBundleController::initializeTestNamed):
* TestWebKitAPI/InjectedBundleController.h:
* TestWebKitAPI/InjectedBundleTest.h:
(TestWebKitAPI::InjectedBundleTest::initialize):
(TestWebKitAPI::InjectedBundleTest::didInitializePageGroup):
* TestWebKitAPI/PlatformUtilities.cpp:
(TestWebKitAPI::Util::createContextForInjectedBundleTest):
* TestWebKitAPI/PlatformUtilities.h:
* TestWebKitAPI/PlatformWebView.h:
* TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash_Bundle.cpp:
(TestWebKitAPI::DocumentStartUserScriptAlertCrashTest::initialize):
* TestWebKitAPI/mac/PlatformWebViewMac.mm:
(TestWebKitAPI::PlatformWebView::PlatformWebView):
* TestWebKitAPI/win/PlatformWebViewWin.cpp:
(TestWebKitAPI::PlatformWebView::PlatformWebView):
* WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
(WTR::InjectedBundle::didInitializePageGroup):
(WTR::InjectedBundle::initialize):
(WTR::InjectedBundle::beginTesting):
* WebKitTestRunner/InjectedBundle/InjectedBundle.h:
(WTR::InjectedBundle::pageGroup):
* WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
(WTR::LayoutTestController::addUserScript):
(WTR::LayoutTestController::addUserStyleSheet):
(WTR::LayoutTestController::setXSSAuditorEnabled):
* WebKitTestRunner/TestController.cpp:
* WebKitTestRunner/win/PlatformWebViewWin.cpp:
(WTR::PlatformWebView::PlatformWebView):

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

9 years agoJavaScriptCore: 010-12-01 Steve Falkenburg <sfalken@apple.com>
barraclough@apple.com [Wed, 1 Dec 2010 21:53:59 +0000 (21:53 +0000)]
JavaScriptCore: 010-12-01  Steve Falkenburg  <sfalken@apple.com>

Reviewed by Adam Roben.

vcproj changes can't be applied cleanly by the Windows EWS bot
https://bugs.webkit.org/show_bug.cgi?id=50328

* JavaScriptCore.vcproj/JavaScriptCore.sln: Modified property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Modified property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCF.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCFLite.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGenerated.vcproj: Modified property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGeneratedCommon.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCoreSubmit.sln: Modified property svn:eol-style.
* JavaScriptCore.vcproj/WTF/WTF.vcproj: Modified property svn:eol-style.
* JavaScriptCore.vcproj/WTF/WTFCommon.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/jsc/jsc.vcproj: Modified property svn:eol-style.
* JavaScriptCore.vcproj/jsc/jscCommon.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/testapi/testapi.vcproj: Modified property svn:eol-style.
* JavaScriptCore.vcproj/testapi/testapiCommon.vsprops: Added property svn:eol-style.

LayoutTests: Bug 50298 - /()()()()()()()()()(?:(\10a|b)(X|Y))+/.exec("bXXaYYaY") ASSERTs

Reviewed by Sam Weinig.

* fast/regex/script-tests/pcre-test-1.js:
    Enable regex643, this now works.

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

9 years ago2010-12-01 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Wed, 1 Dec 2010 21:49:22 +0000 (21:49 +0000)]
2010-12-01  Ojan Vafai  <ojan@chromium.org>

        [chromium] Green tree.
        -http://trac.webkit.org/changeset/73057 caused plugins/get-user-agent-with-null-npp-from-npp-new.html
        -Clean up a couple mistakes from http://trac.webkit.org/changeset/73059
        -add a bug ID for fast/regex/pcre-test-1.html
        * platform/chromium/test_expectations.txt:

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=46645
hyatt@apple.com [Wed, 1 Dec 2010 21:31:50 +0000 (21:31 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=46645

Reviewed by Darin Adler.

Part 1 of making scrolling work with vertical text. This patch generalizes the scrollOriginX concept
recently added for horizontal RTL documents and applies it to writing modes as well.  Now the
scrollOrigin is a point, since you can start off locked to the bottom or locked to the right.

This patch also fixes numerous bugs with the scrollOrigin code using native Mac NSScrollViews and
makes them behave the same as the cross-platform code (allowing for cross-platform results to be
landed).

WebCore:

* page/FrameView.cpp:
(WebCore::FrameView::adjustViewSize):
* page/mac/WebCoreFrameView.h:
* platform/ScrollView.cpp:
(WebCore::ScrollView::ScrollView):
(WebCore::ScrollView::maximumScrollPosition):
(WebCore::ScrollView::minimumScrollPosition):
(WebCore::ScrollView::valueChanged):
(WebCore::ScrollView::updateScrollbars):
(WebCore::ScrollView::wheelEvent):
* platform/ScrollView.h:
(WebCore::ScrollView::scrollOrigin):
* platform/mac/ScrollViewMac.mm:
(WebCore::ScrollView::platformSetScrollPosition):
(WebCore::ScrollView::platformSetScrollOrigin):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::paintRootBoxDecorations):
* rendering/RenderView.cpp:
(WebCore::RenderView::layout):
(WebCore::RenderView::docTop):
(WebCore::RenderView::docHeight):
(WebCore::RenderView::docLeft):
(WebCore::RenderView::docWidth):
* rendering/RenderView.h:

WebKit/mac:

* WebView/WebDynamicScrollBarsView.mm:
(-[WebDynamicScrollBarsView adjustForScrollOriginChange]):
(-[WebDynamicScrollBarsView updateScrollers]):
(-[WebDynamicScrollBarsView reflectScrolledClipView:]):
(-[WebDynamicScrollBarsView setScrollOrigin:updatePosition:]):
(-[WebDynamicScrollBarsView scrollOrigin]):
* WebView/WebFrameView.mm:
(-[WebFrameView _scrollToBeginningOfDocument]):
(-[WebFrameView _scrollToEndOfDocument]):

LayoutTests:

* fast/dom/vertical-scrollbar-in-rtl-doesnt-fire-onscroll-expected.txt: Added.
* fast/dom/vertical-scrollbar-in-rtl-doesnt-fire-onscroll.html: Added.
* fast/dom/vertical-scrollbar-in-rtl-expected.txt: Added.
* fast/dom/vertical-scrollbar-in-rtl.html: Added.
* fast/dom/vertical-scrollbar-when-dir-change-expected.txt: Added.
* fast/dom/vertical-scrollbar-when-dir-change.html: Added.
* platform/mac/fast/dom/horizontal-scrollbar-in-rtl-expected.txt: Removed.
* platform/mac/fast/dom/horizontal-scrollbar-when-dir-change-expected.txt: Removed.

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

9 years ago2010-11-30 Steve Block <steveblock@google.com>
steveblock@google.com [Wed, 1 Dec 2010 21:21:18 +0000 (21:21 +0000)]
2010-11-30  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Upstream recent changes to WebCore/platform/network/android
        https://bugs.webkit.org/show_bug.cgi?id=50224

        Android implementation changes only, no new tests.

        * platform/network/NetworkingContext.h:
        * platform/network/android/CookieJarAndroid.cpp:
        (WebCore::setCookies):
        (WebCore::cookies):
        (WebCore::cookieRequestHeaderFieldValue):
        (WebCore::cookiesEnabled):
        * platform/network/android/ProxyServerAndroid.cpp: Added.
        (WebCore::proxyServersForURL):
        * platform/network/android/ResourceHandleAndroid.cpp:
        (WebCore::ResourceHandle::start):
        (WebCore::ResourceHandle::loadResourceSynchronously):
        * platform/network/android/ResourceRequestAndroid.cpp:
        (WebCore::initializeMaximumHTTPConnectionCountPerHost):

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

9 years ago2010-12-01 Victor Wang <victorw@chromium.org>
victorw@chromium.org [Wed, 1 Dec 2010 21:10:25 +0000 (21:10 +0000)]
2010-12-01  Victor Wang  <victorw@chromium.org>

        Unreviewed.

        [Chromium] update chromium test expectations.

        * platform/chromium/fast/xmlhttprequest: Added.
        * platform/chromium/fast/xmlhttprequest/xmlhttprequest-responsetype-abort-expected.txt: Added.
        * platform/chromium/fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer-expected.txt: Added.
        * platform/chromium/http/tests/xmlhttprequest/send-array-buffer-expected.txt: Added.

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

9 years ago.: vcproj changes can't be applied cleanly by the Windows EWS bot
sfalken@apple.com [Wed, 1 Dec 2010 21:01:27 +0000 (21:01 +0000)]
.: vcproj changes can't be applied cleanly by the Windows EWS bot
https://bugs.webkit.org/show_bug.cgi?id=50328

Reviewed by Adam Roben.

* .gitattributes:

ANGLE: vcproj changes can't be applied cleanly by the Windows EWS bot
https://bugs.webkit.org/show_bug.cgi?id=50328

Reviewed by Adam Roben.

* src/libEGL/libEGL.vcproj: Added property svn:eol-style.
* src/libGLESv2/libGLESv2.vcproj: Added property svn:eol-style.

JavaScriptCore: 010-12-01  Steve Falkenburg  <sfalken@apple.com>

Reviewed by Adam Roben.

vcproj changes can't be applied cleanly by the Windows EWS bot
https://bugs.webkit.org/show_bug.cgi?id=50328

* JavaScriptCore.vcproj/JavaScriptCore.sln: Modified property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Modified property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCF.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCFLite.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGenerated.vcproj: Modified property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGeneratedCommon.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/JavaScriptCoreSubmit.sln: Modified property svn:eol-style.
* JavaScriptCore.vcproj/WTF/WTF.vcproj: Modified property svn:eol-style.
* JavaScriptCore.vcproj/WTF/WTFCommon.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/jsc/jsc.vcproj: Modified property svn:eol-style.
* JavaScriptCore.vcproj/jsc/jscCommon.vsprops: Added property svn:eol-style.
* JavaScriptCore.vcproj/testapi/testapi.vcproj: Modified property svn:eol-style.
* JavaScriptCore.vcproj/testapi/testapiCommon.vsprops: Added property svn:eol-style.

WebCore: vcproj changes can't be applied cleanly by the Windows EWS bot
https://bugs.webkit.org/show_bug.cgi?id=50328

Reviewed by Adam Roben.

* WebCore.vcproj/QTMovieWin.vcproj: Modified property svn:eol-style.
* WebCore.vcproj/QTMovieWinCommon.vsprops: Added property svn:eol-style.
* WebCore.vcproj/WebCore.sln: Modified property svn:eol-style.
* WebCore.vcproj/WebCore.submit.sln: Modified property svn:eol-style.
* WebCore.vcproj/WebCore.vcproj: Modified property svn:eol-style.
* WebCore.vcproj/WebCoreCFNetwork.vsprops: Added property svn:eol-style.
* WebCore.vcproj/WebCoreCG.vsprops: Added property svn:eol-style.
* WebCore.vcproj/WebCoreCURL.vsprops: Added property svn:eol-style.
* WebCore.vcproj/WebCoreCairo.vsprops: Added property svn:eol-style.
* WebCore.vcproj/WebCoreCommon.vsprops: Added property svn:eol-style.
* WebCore.vcproj/WebCoreGenerated.vcproj: Modified property svn:eol-style.
* WebCore.vcproj/WebCoreGeneratedCairo.vsprops: Added property svn:eol-style.
* WebCore.vcproj/WebCoreGeneratedCommon.vsprops: Added property svn:eol-style.
* WebCore.vcproj/WebCoreMediaQT.vsprops: Added property svn:eol-style.
* WebCore.vcproj/WebCorePthreads.vsprops: Added property svn:eol-style.
* WebCore.vcproj/WebCoreQuartzCore.vsprops: Added property svn:eol-style.

WebKit/win: vcproj changes can't be applied cleanly by the Windows EWS bot
https://bugs.webkit.org/show_bug.cgi?id=50328

Reviewed by Adam Roben.

* WebKit.vcproj/Interfaces.vcproj: Modified property svn:eol-style.
* WebKit.vcproj/InterfacesCommon.vsprops: Added property svn:eol-style.
* WebKit.vcproj/WebKit.sln: Modified property svn:eol-style.
* WebKit.vcproj/WebKit.submit.sln: Modified property svn:eol-style.
* WebKit.vcproj/WebKit.vcproj: Modified property svn:eol-style.
* WebKit.vcproj/WebKitGUID.vcproj: Modified property svn:eol-style.
* WebKit.vcproj/WebKitGUIDCommon.vsprops: Added property svn:eol-style.
* WebKit.vcproj/WebKitLibCommon.vsprops: Added property svn:eol-style.

WebKit2: vcproj changes can't be applied cleanly by the Windows EWS bot
https://bugs.webkit.org/show_bug.cgi?id=50328

Reviewed by Adam Roben.

* win/WebKit2.submit.sln: Added property svn:eol-style.
* win/WebKit2.vcproj: Added property svn:eol-style.
* win/WebKit2Apple.vsprops: Added property svn:eol-style.
* win/WebKit2CFLite.vsprops: Added property svn:eol-style.
* win/WebKit2Common.vsprops: Added property svn:eol-style.
* win/WebKit2DirectX.vsprops: Added property svn:eol-style.
* win/WebKit2Generated.vcproj: Added property svn:eol-style.
* win/WebKit2GeneratedCommon.vsprops: Added property svn:eol-style.
* win/WebKit2WebProcess.vcproj: Added property svn:eol-style.
* win/WebKit2WebProcessCommon.vsprops: Added property svn:eol-style.

WebKitLibraries: vcproj changes can't be applied cleanly by the Windows EWS bot
https://bugs.webkit.org/show_bug.cgi?id=50328

Reviewed by Adam Roben.

* win/tools/vsprops/WinCairo.vsprops: Added property svn:eol-style.
* win/tools/vsprops/cURL.vsprops: Added property svn:eol-style.
* win/tools/vsprops/debug_wincairo.vsprops: Added property svn:eol-style.

WebKitTools: vcproj changes can't be applied cleanly by the Windows EWS bot
https://bugs.webkit.org/show_bug.cgi?id=50328

Reviewed by Adam Roben.

* CLWrapper/CLWrapper.sln: Modified property svn:eol-style.
* CLWrapper/CLWrapper.vcproj: Modified property svn:eol-style.
* DumpRenderTree/DumpRenderTree.sln: Modified property svn:eol-style.
* DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePluginCommon.vsprops: Added property svn:eol-style.
* DumpRenderTree/win/DumpRenderTree.vcproj: Modified property svn:eol-style.
* DumpRenderTree/win/DumpRenderTreeApple.vsprops: Added property svn:eol-style.
* DumpRenderTree/win/DumpRenderTreeCFLite.vsprops: Added property svn:eol-style.
* DumpRenderTree/win/DumpRenderTreeCairo.vsprops: Added property svn:eol-style.
* DumpRenderTree/win/DumpRenderTreeCommon.vsprops: Added property svn:eol-style.
* DumpRenderTree/win/ImageDiff.vcproj: Modified property svn:eol-style.
* DumpRenderTree/win/ImageDiffCommon.vsprops: Added property svn:eol-style.
* FindSafari/FindSafari.vcproj: Modified property svn:eol-style.
* FindSafari/FindSafariCommon.vsprops: Added property svn:eol-style.
* MIDLWrapper/MIDLWrapper.sln: Modified property svn:eol-style.
* MIDLWrapper/MIDLWrapper.vcproj: Modified property svn:eol-style.
* MiniBrowser/Configurations/MiniBrowserCFLite.vsprops: Added property svn:eol-style.
* MiniBrowser/Configurations/MiniBrowserCommon.vsprops: Added property svn:eol-style.
* MiniBrowser/Configurations/MiniBrowserCoreFoundation.vsprops: Added property svn:eol-style.
* MiniBrowser/MiniBrowser.vcproj: Added property svn:eol-style.
* TestWebKitAPI/Configurations/TestWebKitAPICFLite.vsprops: Added property svn:eol-style.
* TestWebKitAPI/Configurations/TestWebKitAPICommon.vsprops: Added property svn:eol-style.
* TestWebKitAPI/Configurations/TestWebKitAPICoreFoundation.vsprops: Added property svn:eol-style.
* TestWebKitAPI/win/TestWebKitAPI.sln: Added property svn:eol-style.
* TestWebKitAPI/win/TestWebKitAPI.vcproj: Added property svn:eol-style.
* TestWebKitAPI/win/TestWebKitAPIGenerated.vcproj: Added property svn:eol-style.
* TestWebKitAPI/win/TestWebKitAPIGeneratedCommon.vsprops: Added property svn:eol-style.
* WebKitAPITest/WebKitAPITest.vcproj: Added property svn:eol-style.
* WebKitAPITest/WebKitAPITestCommon.vsprops: Added property svn:eol-style.
* WebKitLauncherWin/WebKitLauncherWin.vcproj: Modified property svn:eol-style.
* WebKitLauncherWin/WebKitLauncherWinCommon.vsprops: Added property svn:eol-style.
* WebKitTestRunner/Configurations/InjectedBundleCFLite.vsprops: Added property svn:eol-style.
* WebKitTestRunner/Configurations/InjectedBundleCommon.vsprops: Added property svn:eol-style.
* WebKitTestRunner/Configurations/InjectedBundleCoreFoundation.vsprops: Added property svn:eol-style.
* WebKitTestRunner/Configurations/WebKitTestRunnerCFLite.vsprops: Added property svn:eol-style.
* WebKitTestRunner/Configurations/WebKitTestRunnerCommon.vsprops: Added property svn:eol-style.
* WebKitTestRunner/Configurations/WebKitTestRunnerCoreFoundation.vsprops: Added property svn:eol-style.
* WebKitTestRunner/WebKitTestRunner.sln: Added property svn:eol-style.
* WebKitTestRunner/win/InjectedBundle.vcproj: Added property svn:eol-style.
* WebKitTestRunner/win/InjectedBundleGenerated.vcproj: Added property svn:eol-style.
* WebKitTestRunner/win/InjectedBundleGeneratedCommon.vsprops: Added property svn:eol-style.
* WebKitTestRunner/win/WebKitTestRunner.vcproj: Added property svn:eol-style.
* WinLauncher/WinLauncher.vcproj: Modified property svn:eol-style.
* WinLauncher/WinLauncherCommon.vsprops: Added property svn:eol-style.
* record-memory-win/record-memory-win-common.vsprops: Added property svn:eol-style.
* record-memory-win/record-memory-win.vcproj: Modified property svn:eol-style.

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

9 years ago2010-12-01 Tony Chang <tony@chromium.org>
tony@chromium.org [Wed, 1 Dec 2010 20:47:26 +0000 (20:47 +0000)]
2010-12-01  Tony Chang  <tony@chromium.org>

        Unreviewed, merging drt_expectations into test_expectations in
        anticipation of the switch.

        * platform/chromium/drt_expectations.txt:
        * platform/chromium/test_expectations.txt:

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

9 years ago2010-12-01 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Wed, 1 Dec 2010 20:46:48 +0000 (20:46 +0000)]
2010-12-01  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Anders Carlsson.

        Crash when closing WebKit2 window with accelerated composting content
        https://bugs.webkit.org/show_bug.cgi?id=50307
        <rdar://problem/8640126>

        When the web page is closing, notify the drawing area, so that
        the layer-backed drawing area can kill the runloop obsever,
        then clear it. Clearing it is not sufficient, since the drawing
        area is ref-counted.

        * WebProcess/WebPage/DrawingArea.h:
        (WebKit::DrawingArea::onPageClose):
        * WebProcess/WebPage/LayerBackedDrawingArea.h:
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::close):
        * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm:
        (WebKit::LayerBackedDrawingArea::platformClear):
        (WebKit::LayerBackedDrawingArea::onPageClose):

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

9 years agoReturn a correct user agent if NPN_UserAgent is called with a null NPP from NPP_New.
andersca@apple.com [Wed, 1 Dec 2010 20:12:50 +0000 (20:12 +0000)]
Return a correct user agent if NPN_UserAgent is called with a null NPP from NPP_New.
https://bugs.webkit.org/show_bug.cgi?id=50336

Reviewed by Darin Adler.

WebKit2:

* WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
(WebKit::NPN_UserAgent):
Call the static NetscapePlugin::userAgent function instead.

* WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
(WebKit::NetscapePlugin::userAgent):
If the passed in NPP is null, get the NetscapePlugin currently executing NPP_New.

(WebKit::NetscapePlugin::initialize):
Keep track of the plug-in currently executing NPP_New.

* WebProcess/Plugins/Netscape/NetscapePlugin.h:

WebKitTools:

* DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
Add new test.

* DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp:
(PluginTest::NPP_New):
Add default implementation/

* DumpRenderTree/TestNetscapePlugIn/PluginTest.h:
* DumpRenderTree/TestNetscapePlugIn/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp: Added.
(GetUserAgentWithNullNPPFromNPPNew::GetUserAgentWithNullNPPFromNPPNew):
(GetUserAgentWithNullNPPFromNPPNew::NPP_New):
Get the user agent.

* DumpRenderTree/TestNetscapePlugIn/main.cpp:
(NPP_New):
Call PluginTest::NPP_New.

* DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj:
* DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro:
Add new files.

* DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp:
(webkit_test_plugin_new_instance):
Call PluginTest::NPP_New.

LayoutTests:

Add tests.

* plugins/get-user-agent-with-null-npp-from-npp-new-expected.txt: Added.
* plugins/get-user-agent-with-null-npp-from-npp-new.html: Added.

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

9 years agoBug 50297 - \s in YARR should match BOMs.
barraclough@apple.com [Wed, 1 Dec 2010 20:04:22 +0000 (20:04 +0000)]
Bug 50297 - \s in YARR should match BOMs.

Rubber stamped by Sam Weinig.

JavaScriptCore:

* create_regex_tables:

LayoutTests:

This exposes a Sputnik bug, tracked by:
http://code.google.com/p/sputniktests/issues/detail?id=34
Checking in expected failing results.

* fast/js/sputnik/Conformance/15_Native_Objects/15.10_RegExp/15.10.2/15.10.2.12_CharacterClassEscape/S15.10.2.12_A1_T1-expected.txt:
* fast/js/sputnik/Conformance/15_Native_Objects/15.10_RegExp/15.10.2/15.10.2.12_CharacterClassEscape/S15.10.2.12_A2_T1-expected.txt:
* fast/regex/script-tests/pcre-test-1.js:

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

9 years ago2010-11-30 Vangelis Kokkevis <vangelis@chromium.org>
vangelis@chromium.org [Wed, 1 Dec 2010 20:04:05 +0000 (20:04 +0000)]
2010-11-30  Vangelis Kokkevis  <vangelis@chromium.org>

        Reviewed by Darin Fisher.

        Get the value of the accelerated compositing triggers from the Settings
        class.  This allows setting the triggers via command line flags.
        https://bugs.webkit.org/show_bug.cgi?id=50301

        * public/WebSettings.h:
        * src/ChromeClientImpl.cpp:
        (WebKit::ChromeClientImpl::allowedCompositingTriggers):
        * src/WebSettingsImpl.cpp:
        (WebKit::WebSettingsImpl::setAcceleratedCompositingFor3DTransformsEnabled):
        (WebKit::WebSettingsImpl::setAcceleratedCompositingForVideoEnabled):
        (WebKit::WebSettingsImpl::setAcceleratedCompositingForPluginsEnabled):
        (WebKit::WebSettingsImpl::setAcceleratedCompositingForCanvasEnabled):
        (WebKit::WebSettingsImpl::setAcceleratedCompositingForAnimationEnabled):
        * src/WebSettingsImpl.h:
2010-11-30  Vangelis Kokkevis  <vangelis@chromium.org>

        Reviewed by Darin Fisher.

        Adds accelerated compositing trigger flags to Settings to allow
        ports to set them via command line flags, etc.
        https://bugs.webkit.org/show_bug.cgi?id=50301

        * page/Settings.cpp:
        (WebCore::Settings::Settings):
        (WebCore::Settings::setAcceleratedCompositingFor3DTransformsEnabled):
        (WebCore::Settings::setAcceleratedCompositingForVideoEnabled):
        (WebCore::Settings::setAcceleratedCompositingForPluginsEnabled):
        (WebCore::Settings::setAcceleratedCompositingForCanvasEnabled):
        (WebCore::Settings::setAcceleratedCompositingForAnimationEnabled):
        * page/Settings.h:
        (WebCore::Settings::acceleratedCompositingFor3DTransformsEnabled):
        (WebCore::Settings::acceleratedCompositingForVideoEnabled):
        (WebCore::Settings::acceleratedCompositingForPluginsEnabled):
        (WebCore::Settings::acceleratedCompositingForCanvasEnabled):
        (WebCore::Settings::acceleratedCompositingForAnimationEnabled):

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

9 years agoRe-added Leopard-specific results for editing/text-iterator/findString.html. In the...
mitz@apple.com [Wed, 1 Dec 2010 19:55:20 +0000 (19:55 +0000)]
Re-added Leopard-specific results for editing/text-iterator/findString.html. In the Leopard version
of ICU, the full stop character is a word separator, so an at-word-starts search for "org" in
"webkit.org" matches.

* platform/mac-leopard/editing/text-iterator: Added.
* platform/mac-leopard/editing/text-iterator/findString-expected.txt: Copied from LayoutTests/editing/text-iterator/findString-expected.txt.

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

9 years agoFixed warning seen on buildbot.
darin@apple.com [Wed, 1 Dec 2010 19:54:27 +0000 (19:54 +0000)]
Fixed warning seen on buildbot.

* platform/graphics/chromium/ContentLayerChromium.cpp:
(WebCore::ContentLayerChromium::SharedValues::SharedValues): Added #if.

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

9 years ago2010-12-01 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Wed, 1 Dec 2010 19:50:55 +0000 (19:50 +0000)]
2010-12-01  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Darin Adler, Tony Chang, and unofficially by Enrica Casucci.

        chrome.dll!WebCore::RangeBoundaryPoint::toPosition ReadAV@NULL (cf0d0f28bc56f2591cc74f71b46036ea)
        https://bugs.webkit.org/show_bug.cgi?id=47808

        The crash was caused by moveParagraphWithClones' not copying the entire paragraph
        when called by doApplyForSingleParagraph, which was induced by a bug in
        cloneParagraphUnderNewElement which ended the cloning process early when the start node
        and the end node didn't share the same parent node. Fixed the bug in cloneParagraphUnderNewElement
        by calling traverseNextSibling(outerNode) instead of nextSibling().

        Also added an early exit to InsertListCommand::doApply when lastSelectionRange is null.

        Tests: editing/execCommand/switch-multiple-list-items-crash.html
               editing/execCommand/switch-multiple-list-items.html

        * editing/CompositeEditCommand.cpp:
        (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
        * editing/InsertListCommand.cpp:
        (WebCore::InsertListCommand::doApply):
2010-12-01  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Darin Adler, Tony Chang, and unofficially by Enrica Casucci.

        chrome.dll!WebCore::RangeBoundaryPoint::toPosition ReadAV@NULL (cf0d0f28bc56f2591cc74f71b46036ea)
        https://bugs.webkit.org/show_bug.cgi?id=47808

        Added tests to ensure WebKit can switch the type of multiple list items without a crash.

        * editing/execCommand/switch-multiple-list-items-crash-expected.txt: Added.
        * editing/execCommand/switch-multiple-list-items-crash.html: Added.
        * editing/execCommand/switch-multiple-list-items-expected.txt: Added.
        * editing/execCommand/switch-multiple-list-items.html: Added.

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

9 years ago[wx] Build fixes after recent trunk changes.
kevino@webkit.org [Wed, 1 Dec 2010 19:46:19 +0000 (19:46 +0000)]
[wx] Build fixes after recent trunk changes.

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

9 years agoNot reviewed, upstreaming test suppression.
antonm@chromium.org [Wed, 1 Dec 2010 19:41:14 +0000 (19:41 +0000)]
Not reviewed, upstreaming test suppression.

* platform/chromium/test_expectations.txt:

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

9 years ago2010-12-01 Sheriff Bot <webkit.review.bot@gmail.com>
rniwa@webkit.org [Wed, 1 Dec 2010 19:39:04 +0000 (19:39 +0000)]
2010-12-01  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r73047.
        http://trac.webkit.org/changeset/73047
        https://bugs.webkit.org/show_bug.cgi?id=50339

        missing bug number (Requested by rniwa on #webkit).

        * editing/CompositeEditCommand.cpp:
        (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
        * editing/InsertListCommand.cpp:
        (WebCore::InsertListCommand::doApply):
2010-12-01  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r73047.
        http://trac.webkit.org/changeset/73047
        https://bugs.webkit.org/show_bug.cgi?id=50339

        missing bug number (Requested by rniwa on #webkit).

        * editing/execCommand/switch-multiple-list-items-crash-expected.txt: Removed.
        * editing/execCommand/switch-multiple-list-items-crash.html: Removed.
        * editing/execCommand/switch-multiple-list-items-expected.txt: Removed.
        * editing/execCommand/switch-multiple-list-items.html: Removed.

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

9 years agoAdd failing Windows expected results for tests that involve the xhr.arrayBuffer ...
bweinstein@apple.com [Wed, 1 Dec 2010 19:34:07 +0000 (19:34 +0000)]
Add failing Windows expected results for tests that involve the xhr.arrayBuffer = 'arraybuffer',
which works on Mac, but not on Windows.

Getting arrayBuffer working on Windows is being tracked by https://bugs.webkit.org/show_bug.cgi?id=50334.

* platform/win/fast/xmlhttprequest: Added.
* platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-abort-expected.txt: Added.
* platform/win/fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer-expected.txt: Added.
* platform/win/http/tests/xmlhttprequest: Added.
* platform/win/http/tests/xmlhttprequest/send-array-buffer-expected.txt: Added.

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

9 years ago2010-12-01 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Wed, 1 Dec 2010 19:28:42 +0000 (19:28 +0000)]
2010-12-01  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Darin Adler, Tony Chang, and unofficially by Enrica Casucci.

        The crash was caused by moveParagraphWithClones' not copying the entire paragraph
        when called by doApplyForSingleParagraph, which was induced by a bug in
        cloneParagraphUnderNewElement which ended the cloning process early when the start node
        and the end node didn't share the same parent node. Fixed the bug in cloneParagraphUnderNewElement
        by calling traverseNextSibling(outerNode) instead of nextSibling().

        Also added an early exit to InsertListCommand::doApply when lastSelectionRange is null.

        Tests: editing/execCommand/switch-multiple-list-items-crash.html
               editing/execCommand/switch-multiple-list-items.html

        * editing/CompositeEditCommand.cpp:
        (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
        * editing/InsertListCommand.cpp:
        (WebCore::InsertListCommand::doApply):
2010-12-01  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Darin Adler, Tony Chang, and unofficially by Enrica Casucci.

        Added tests to ensure WebKit can switch the type of multiple list items without a crash.

        * editing/execCommand/switch-multiple-list-items-crash-expected.txt: Added.
        * editing/execCommand/switch-multiple-list-items-crash.html: Added.
        * editing/execCommand/switch-multiple-list-items-expected.txt: Added.
        * editing/execCommand/switch-multiple-list-items.html: Added.

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

9 years ago2010-12-01 Grace Kloba <klobag@chromium.org>
kbr@google.com [Wed, 1 Dec 2010 19:13:41 +0000 (19:13 +0000)]
2010-12-01  Grace Kloba  <klobag@chromium.org>

        Reviewed by Kenneth Russell.

        [chromium] ContentLayerChromium shader should honor the platform Sk_x_SHIFT value instead of assuming BGRA color
        https://bugs.webkit.org/show_bug.cgi?id=50189

        * platform/graphics/chromium/ContentLayerChromium.cpp:
        (WebCore::ContentLayerChromium::SharedValues::SharedValues):Use SK_B32_SHIFT to decide whether to use RGBA or BGRA shader for Skia port.

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

9 years agoOne last Windows build fix.
bweinstein@apple.com [Wed, 1 Dec 2010 19:08:23 +0000 (19:08 +0000)]
One last Windows build fix.

* UIProcess/win/WebView.cpp:
(WebKit::WebView::switchToDrawingAreaTypeIfNecessary):

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

9 years agoFix Windows build.
andersca@apple.com [Wed, 1 Dec 2010 18:59:57 +0000 (18:59 +0000)]
Fix Windows build.

* UIProcess/win/WebView.cpp:
(WebKit::WebView::pageDidEnterAcceleratedCompositing):
(WebKit::WebView::pageDidLeaveAcceleratedCompositing):
(WebKit::WebView::switchToDrawingAreaTypeIfNecessary):

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

9 years agoSkip another HTMLProgressElement test on Windows, because it's not turned on for...
bweinstein@apple.com [Wed, 1 Dec 2010 18:51:16 +0000 (18:51 +0000)]
Skip another HTMLProgressElement test on Windows, because it's not turned on for Windows yet. Adding
progress element support on Windows is being tracked by https://bugs.webkit.org/show_bug.cgi?id=49769.

* platform/win/Skipped:

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

9 years agoFix build.
andersca@apple.com [Wed, 1 Dec 2010 18:43:33 +0000 (18:43 +0000)]
Fix build.

* UIProcess/win/WebView.h:

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

9 years ago2010-12-01 Vitaly Repeshko <vitalyr@chromium.org>
vitalyr@chromium.org [Wed, 1 Dec 2010 18:40:27 +0000 (18:40 +0000)]
2010-12-01  Vitaly Repeshko  <vitalyr@chromium.org>

        Unreviewed.

        [chromium] Updating test expectations and rebaselining.

        * platform/chromium-linux/svg/dynamic-updates/SVGLineElement-dom-requiredFeatures-expected.checksum:
        * platform/chromium-linux/svg/dynamic-updates/SVGLineElement-dom-requiredFeatures-expected.png:
        * platform/chromium-linux/svg/dynamic-updates/SVGLineElement-svgdom-requiredFeatures-expected.checksum:
        * platform/chromium-linux/svg/dynamic-updates/SVGLineElement-svgdom-requiredFeatures-expected.png:
        * platform/chromium-win/svg/dynamic-updates/SVGLineElement-dom-requiredFeatures-expected.checksum:
        * platform/chromium-win/svg/dynamic-updates/SVGLineElement-dom-requiredFeatures-expected.png:
        * platform/chromium-win/svg/dynamic-updates/SVGLineElement-dom-requiredFeatures-expected.txt:
        * platform/chromium-win/svg/dynamic-updates/SVGLineElement-svgdom-requiredFeatures-expected.checksum:
        * platform/chromium-win/svg/dynamic-updates/SVGLineElement-svgdom-requiredFeatures-expected.png:
        * platform/chromium-win/svg/dynamic-updates/SVGLineElement-svgdom-requiredFeatures-expected.txt:
        * platform/chromium/test_expectations.txt:

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

9 years agoWebKitTestRunner needs layoutTestController.findString
mitz@apple.com [Wed, 1 Dec 2010 18:36:44 +0000 (18:36 +0000)]
WebKitTestRunner needs layoutTestController.findString
https://bugs.webkit.org/show_bug.cgi?id=50238

Reviewed by Darin Adler.

* WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: Added findString().
* WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
(WTR::LayoutTestController::findString): Updated signature for autogenerated bindings.
* WebKitTestRunner/InjectedBundle/LayoutTestController.h: Ditto.

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

9 years ago2010-12-01 Tony Chang <tony@chromium.org>
tony@chromium.org [Wed, 1 Dec 2010 18:34:31 +0000 (18:34 +0000)]
2010-12-01  Tony Chang  <tony@chromium.org>

        Unreviewed, rolling chromium deps to r67811.

        * DEPS:

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

9 years agoGet rid of DrawingAreaBase
andersca@apple.com [Wed, 1 Dec 2010 18:23:13 +0000 (18:23 +0000)]
Get rid of DrawingAreaBase
https://bugs.webkit.org/show_bug.cgi?id=50329

Reviewed by Andreas Kling.

* Scripts/webkit2/messages.py:
* Shared/DrawingAreaInfo.h:
(WebKit::DrawingAreaInfo::DrawingAreaInfo):
* Shared/WebPageCreationParameters.h:
* UIProcess/API/mac/WKView.mm:
(-[WKView _switchToDrawingAreaTypeIfNecessary:DrawingAreaInfo::]):
(-[WKView _pageDidEnterAcceleratedCompositing]):
(-[WKView _pageDidLeaveAcceleratedCompositing]):
* UIProcess/API/qt/qgraphicswkview.cpp:
(QGraphicsWKView::takeSnapshot):
(QGraphicsWKViewPrivate::commitScale):
* UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
(WebKit::ChunkedUpdateDrawingAreaProxy::ChunkedUpdateDrawingAreaProxy):
(WebKit::ChunkedUpdateDrawingAreaProxy::setSize):
(WebKit::ChunkedUpdateDrawingAreaProxy::setPageIsVisible):
(WebKit::ChunkedUpdateDrawingAreaProxy::update):
* UIProcess/DrawingAreaProxy.cpp:
(WebKit::DrawingAreaProxy::DrawingAreaProxy):
(WebKit::DrawingAreaProxy::nextIdentifier):
* UIProcess/DrawingAreaProxy.h:
(WebKit::DrawingAreaProxy::info):
* UIProcess/LayerBackedDrawingAreaProxy.cpp:
(WebKit::LayerBackedDrawingAreaProxy::LayerBackedDrawingAreaProxy):
(WebKit::LayerBackedDrawingAreaProxy::setSize):
(WebKit::LayerBackedDrawingAreaProxy::setPageIsVisible):
(WebKit::LayerBackedDrawingAreaProxy::update):
* UIProcess/TiledDrawingAreaProxy.cpp:
(WebKit::TiledDrawingAreaProxy::TiledDrawingAreaProxy):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didChangeAcceleratedCompositing):
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
* UIProcess/win/WebView.cpp:
(WebKit::WebView::switchToDrawingAreaTypeIfNecessary):
* WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
(WebKit::ChunkedUpdateDrawingArea::ChunkedUpdateDrawingArea):
(WebKit::ChunkedUpdateDrawingArea::didReceiveMessage):
* WebProcess/WebPage/ChunkedUpdateDrawingArea.h:
* WebProcess/WebPage/DrawingArea.cpp:
(WebKit::DrawingArea::create):
(WebKit::DrawingArea::DrawingArea):
* WebProcess/WebPage/DrawingArea.h:
(WebKit::DrawingArea::info):
* WebProcess/WebPage/LayerBackedDrawingArea.cpp:
(WebKit::LayerBackedDrawingArea::LayerBackedDrawingArea):
(WebKit::LayerBackedDrawingArea::didReceiveMessage):
* WebProcess/WebPage/LayerBackedDrawingArea.h:
* WebProcess/WebPage/TiledDrawingArea.cpp:
(WebKit::TiledDrawingArea::TiledDrawingArea):
* WebProcess/WebPage/TiledDrawingArea.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):
(WebKit::WebPage::changeAcceleratedCompositingMode):

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

9 years ago2010-12-01 Vitaly Repeshko <vitalyr@chromium.org>
vitalyr@chromium.org [Wed, 1 Dec 2010 18:15:52 +0000 (18:15 +0000)]
2010-12-01  Vitaly Repeshko  <vitalyr@chromium.org>

        Unreviewed.

        [chromium] Cleaning up test expectations.

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-12-01 Tony Chang <tony@chromium.org>
tony@chromium.org [Wed, 1 Dec 2010 17:58:57 +0000 (17:58 +0000)]
2010-12-01  Tony Chang  <tony@chromium.org>

        Unreviewed, update drt expectations.

        * platform/chromium/drt_expectations.txt:

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

9 years ago2010-12-01 Nico Weber <thakis@chromium.org>
thakis@chromium.org [Wed, 1 Dec 2010 17:49:09 +0000 (17:49 +0000)]
2010-12-01  Nico Weber  <thakis@chromium.org>

        Reviewed by Dimitri Glazkov.

        Fix clang warnings caused by -Wlogical-op-parentheses
        https://bugs.webkit.org/show_bug.cgi?id=50324

        * platform/graphics/mac/ComplexTextController.cpp:
        (WebCore::ComplexTextController::adjustGlyphsAndAdvances):

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

9 years ago2010-12-01 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Wed, 1 Dec 2010 17:25:09 +0000 (17:25 +0000)]
2010-12-01  Martin Robinson  <mrobinson@igalia.com>

        Build fix for GTK+.

        * platform/gtk/PopupMenuGtk.cpp:
        (WebCore::PopupMenuGtk::typeAheadFind): Uncomment mistakenly commented line.

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

9 years ago2010-12-01 Vitaly Repeshko <vitalyr@chromium.org>
vitalyr@chromium.org [Wed, 1 Dec 2010 17:18:07 +0000 (17:18 +0000)]
2010-12-01  Vitaly Repeshko  <vitalyr@chromium.org>

        Unreviewed.

        [chromium] Updating test expectations.

        * platform/chromium/test_expectations.txt:

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

9 years agoTry using svn:eol-style native on a vcproj file.
sfalken@apple.com [Wed, 1 Dec 2010 17:07:16 +0000 (17:07 +0000)]
Try using svn:eol-style native on a vcproj file.

* DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: Modified property svn:eol-style.

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

9 years agoUnrreviewed.
ossy@webkit.org [Wed, 1 Dec 2010 17:04:29 +0000 (17:04 +0000)]
Unrreviewed.

[Qt] Add focus ring outline color support
https://bugs.webkit.org/show_bug.cgi?id=50325

Focus ring outline color is unsupported now.
Add failing tests to the Skipped list until fix.

* platform/qt/Skipped:
 - fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map.html added
 - fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map.html added
 - fast/images/imagemap-focus-ring-outline-color.html added

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

9 years ago2010-12-01 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Wed, 1 Dec 2010 16:49:35 +0000 (16:49 +0000)]
2010-12-01  Patrick Gansterer  <paroga@webkit.org>

        Reviewed by Adam Roben.

        [WINCE] Add WinCELauncher
        https://bugs.webkit.org/show_bug.cgi?id=50217

        * WinCELauncher/main.cpp: Added.

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

9 years ago2010-12-01 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Wed, 1 Dec 2010 16:46:39 +0000 (16:46 +0000)]
2010-12-01  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [Gtk] Open menulists should support typeahead find
        https://bugs.webkit.org/show_bug.cgi?id=27443

        Added a GTK+-specific layout test to track typeahead find state.

        * platform/gtk/fast/forms/menulist-typeahead-find-expected.txt: Added.
        * platform/gtk/fast/forms/menulist-typeahead-find.html: Added.
2010-12-01  Apelete Seketeli  <apelete@seketeli.org> and Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [Gtk] Open menulists should support typeahead find
        https://bugs.webkit.org/show_bug.cgi?id=27443

        Added typeahead find support for open GTK+ menulists.

        Test: platform/gtk/fast/forms/menulist-typeahead-find.html

        * platform/gtk/PopupMenuGtk.cpp:
        (WebCore::PopupMenuGtk::PopupMenuGtk): Initialize new members.
        (WebCore::PopupMenuGtk::show): Track currently selected menu item
        via a signal handler.
        (WebCore::PopupMenuGtk::typeAheadFind): Added.
        (WebCore::PopupMenuGtk::menuUnmapped): Reset typeahead find state
        when menu is unmapped.
        (WebCore::PopupMenuGtk::resetTypeAheadFindState): Added.
        (WebCore::PopupMenuGtk::selectItemCallback): Added.
        (WebCore::PopupMenuGtk::keyPressEventCallback): Added.
        * platform/gtk/PopupMenuGtk.h: Added new members to track typeahead
        find state.

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

9 years ago2010-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 1 Dec 2010 16:36:29 +0000 (16:36 +0000)]
2010-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Xan Lopez.

        Split DECLARE_ANIMATED_PROPERTY* in DECLARE/DEFINE parts for SVGAnimatedNumber
        https://bugs.webkit.org/show_bug.cgi?id=50323

        Continuing the work on bug 42025: Introduce DECLARE_ANIMATED_NUMBER / DEFINE_ANIMATED_NUMBER.
        The animated property declaration lives in the header, the definition in the cpp file, to avoid the dependency on SVGNames.h in all headers.

        No functional changes, thus no new tests.

        * svg/SVGAnimatedNumber.h:
        * svg/SVGComponentTransferFunctionElement.cpp:
        * svg/SVGComponentTransferFunctionElement.h:
        * svg/SVGFECompositeElement.cpp:
        * svg/SVGFECompositeElement.h:
        * svg/SVGFEConvolveMatrixElement.cpp:
        * svg/SVGFEConvolveMatrixElement.h:
        * svg/SVGFEDiffuseLightingElement.cpp:
        * svg/SVGFEDiffuseLightingElement.h:
        * svg/SVGFEDisplacementMapElement.cpp:
        * svg/SVGFEDisplacementMapElement.h:
        * svg/SVGFEGaussianBlurElement.cpp:
        * svg/SVGFEGaussianBlurElement.h:
        * svg/SVGFELightElement.cpp:
        * svg/SVGFELightElement.h:
        * svg/SVGFEMorphologyElement.cpp:
        * svg/SVGFEMorphologyElement.h:
        * svg/SVGFEOffsetElement.cpp:
        * svg/SVGFEOffsetElement.h:
        * svg/SVGFESpecularLightingElement.cpp:
        * svg/SVGFESpecularLightingElement.h:
        * svg/SVGFETurbulenceElement.cpp:
        * svg/SVGFETurbulenceElement.h:
        * svg/SVGPathElement.cpp:
        * svg/SVGPathElement.h:
        * svg/SVGStopElement.cpp:
        * svg/SVGStopElement.h:
        (WebCore::SVGStopElement::isGradientStop):

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

9 years ago2010-12-01 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Wed, 1 Dec 2010 16:15:17 +0000 (16:15 +0000)]
2010-12-01  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        Sliders are not transformed after r50188
        https://bugs.webkit.org/show_bug.cgi?id=50317

        Need to call updateLayerTransform during slider layout, as sliders
        may be transformed.

        No new tests. This patch should make fast/forms/slider-transformed.html
        pass on the GTK+ bots.

        * rendering/RenderSlider.cpp:
        (WebCore::RenderSlider::layout): Call updateLayerTransform here.

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

9 years ago2010-12-01 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Wed, 1 Dec 2010 16:13:28 +0000 (16:13 +0000)]
2010-12-01  Martin Robinson  <mrobinson@igalia.com>

        Skip failing tests for text height on GTK
        https://bugs.webkit.org/show_bug.cgi?id=50314

        * platform/gtk/Skipped: Skip failing tests.

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

9 years ago2010-11-30 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Wed, 1 Dec 2010 15:52:26 +0000 (15:52 +0000)]
2010-11-30  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: do not make helpScreen.css lazily loaded.
        https://bugs.webkit.org/show_bug.cgi?id=50304

        * inspector/front-end/HelpScreen.js:
        (WebInspector.HelpScreen):
        (WebInspector.HelpScreen.prototype._onBlur):
        * inspector/front-end/inspector.html:

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

9 years ago2010-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 1 Dec 2010 15:41:53 +0000 (15:41 +0000)]
2010-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Xan Lopez.

        Split DECLARE_ANIMATED_PROPERTY* in DECLARE/DEFINE parts for SVGLengthList/SVGNumberList/SVGTransformList
        https://bugs.webkit.org/show_bug.cgi?id=50322

        Continuing the work on bug 42025: Introduce DECLARE_ANIMATED_(LENGTH|NUMBER|TRANSFORM)_LIST / DEFINE_ANIMATED_(LENGTH|NUMBER|TRANSFORM).
        The animated property declaration lives in the header, the definition in the cpp file, to avoid the dependency on SVGNames.h in all headers.

        No functional changes, thus no new tests.

        * svg/SVGAnimatedLengthList.h:
        * svg/SVGAnimatedNumberList.h:
        * svg/SVGAnimatedTransformList.h:
        * svg/SVGComponentTransferFunctionElement.cpp:
        * svg/SVGComponentTransferFunctionElement.h:
        * svg/SVGFEColorMatrixElement.cpp:
        * svg/SVGFEColorMatrixElement.h:
        * svg/SVGFEConvolveMatrixElement.cpp:
        * svg/SVGFEConvolveMatrixElement.h:
        * svg/SVGGradientElement.cpp:
        * svg/SVGGradientElement.h:
        (WebCore::SVGGradientElement::needsPendingResourceHandling):
        * svg/SVGPatternElement.cpp:
        * svg/SVGPatternElement.h:
        * svg/SVGPolygonElement.cpp:
        * svg/SVGPolylineElement.cpp:
        * svg/SVGStyledTransformableElement.cpp:
        * svg/SVGStyledTransformableElement.h:
        * svg/SVGTextElement.cpp:
        (WebCore::SVGTextElement::SVGTextElement):
        * svg/SVGTextElement.h:
        (WebCore::SVGTextElement::localCoordinateSpaceTransform):
        * svg/SVGTextPositioningElement.cpp:
        * svg/SVGTextPositioningElement.h:
        * svg/properties/SVGAnimatedPropertyMacros.h:

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

9 years ago2010-12-01 Chang Shu <chang.shu@nokia.com>
chang.shu@nokia.com [Wed, 1 Dec 2010 15:32:13 +0000 (15:32 +0000)]
2010-12-01  Chang Shu  <chang.shu@nokia.com>

        Reviewed by Laszlo Gombos.

        Move orientation event test case to a better place.
        https://bugs.webkit.org/show_bug.cgi?id=32492

        * fast/dom/DeviceOrientation/create-event-orientationchange-expected.txt: Removed.
        * fast/dom/DeviceOrientation/create-event-orientationchange.html: Removed.
        * fast/dom/DeviceOrientation/script-tests/create-event-orientationchange.js: Removed.
        * fast/dom/Orientation: Added.
        * fast/dom/Orientation/create-event-orientationchange-expected.txt: Copied from LayoutTests/fast/dom/DeviceOrientation/create-event-orientationchange-expected.txt.
        * fast/dom/Orientation/create-event-orientationchange.html: Copied from LayoutTests/fast/dom/DeviceOrientation/create-event-orientationchange.html.
        * fast/dom/Orientation/script-tests: Added.
        * fast/dom/Orientation/script-tests/create-event-orientationchange.js: Copied from LayoutTests/fast/dom/DeviceOrientation/script-tests/create-event-orientationchange.js.

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

9 years ago2010-12-01 Alexander Pavlov <apavlov@chromium.org>
apavlov@chromium.org [Wed, 1 Dec 2010 14:14:19 +0000 (14:14 +0000)]
2010-12-01  Alexander Pavlov  <apavlov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: name-only property appears in style declaration but not in the Styles pane
        https://bugs.webkit.org/show_bug.cgi?id=49663

        Check that at least one property has been parsed from the user input.

        WebCore:
        * inspector/InspectorStyleSheet.cpp:
        (WebCore::InspectorStyle::setPropertyText):

        LayoutTests:
        * inspector/styles-new-API.html:

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

9 years ago2010-12-01 Andrey Kosyakov <caseq@chromium.org>
caseq@chromium.org [Wed, 1 Dec 2010 13:29:50 +0000 (13:29 +0000)]
2010-12-01  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: disable cookies tab in network resource view by default, enable for chromium
        https://bugs.webkit.org/show_bug.cgi?id=50249

        * inspector/front-end/NetworkItemView.js:
        (WebInspector.NetworkItemView):
        (WebInspector.NetworkItemView.prototype.resize):
        * inspector/front-end/Settings.js:
2010-12-01  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: disable cookies tab in network resource view by default, enable for chromium
        https://bugs.webkit.org/show_bug.cgi?id=50249

        * src/js/DevTools.js:

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

9 years ago2010-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 1 Dec 2010 12:17:12 +0000 (12:17 +0000)]
2010-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Xan Lopez.

        Split DECLARE_ANIMATED_PROPERTY* in DECLARE/DEFINE parts for SVGLength
        https://bugs.webkit.org/show_bug.cgi?id=50316

        Introduce DECLARE_ANIMATED_LENGTH / DEFINE_ANIMATED_LENGTH, splitting up the original DECLARE_ANIMATED_PROPERTY_NEW macro
        in a part that goes in the .cpp file and another that remains in the header. This avoids having to include SVGNames.h
        in all SVG*Element files.

        No functional changes, thus no new tests.

        * svg/SVGAnimatedLength.h:
        * svg/SVGCircleElement.cpp:
        * svg/SVGCircleElement.h:
        (WebCore::SVGCircleElement::isValid):
        * svg/SVGCursorElement.cpp:
        * svg/SVGCursorElement.h:
        (WebCore::SVGCursorElement::isValid):
        * svg/SVGEllipseElement.cpp:
        * svg/SVGEllipseElement.h:
        (WebCore::SVGEllipseElement::isValid):
        * svg/SVGFilterElement.cpp:
        * svg/SVGFilterElement.h:
        * svg/SVGFilterPrimitiveStandardAttributes.cpp:
        * svg/SVGFilterPrimitiveStandardAttributes.h:
        * svg/SVGForeignObjectElement.cpp:
        (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
        * svg/SVGForeignObjectElement.h:
        (WebCore::SVGForeignObjectElement::isValid):
        * svg/SVGImageElement.cpp:
        * svg/SVGImageElement.h:
        (WebCore::SVGImageElement::isValid):
        * svg/SVGLineElement.cpp:
        * svg/SVGLineElement.h:
        (WebCore::SVGLineElement::isValid):
        (WebCore::SVGLineElement::supportsMarkers):
        * svg/SVGLinearGradientElement.cpp:
        * svg/SVGLinearGradientElement.h:
        * svg/SVGMarkerElement.cpp:
        (WebCore::SVGMarkerElement::SVGMarkerElement):
        * svg/SVGMarkerElement.h:
        * svg/SVGMaskElement.cpp:
        * svg/SVGMaskElement.h:
        (WebCore::SVGMaskElement::isValid):
        (WebCore::SVGMaskElement::needsPendingResourceHandling):
        * svg/SVGPatternElement.cpp:
        * svg/SVGPatternElement.h:
        (WebCore::SVGPatternElement::isValid):
        (WebCore::SVGPatternElement::needsPendingResourceHandling):
        * svg/SVGRadialGradientElement.cpp:
        * svg/SVGRadialGradientElement.h:
        * svg/SVGRectElement.cpp:
        * svg/SVGRectElement.h:
        (WebCore::SVGRectElement::isValid):
        * svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::SVGSVGElement):
        * svg/SVGSVGElement.h:
        (WebCore::SVGSVGElement::isValid):
        (WebCore::SVGSVGElement::setContainerSize):
        (WebCore::SVGSVGElement::containerSize):
        (WebCore::SVGSVGElement::hasSetContainerSize):
        (WebCore::SVGSVGElement::currentTranslate):
        (WebCore::SVGSVGElement::timeContainer):
        (WebCore::SVGSVGElement::isSVG):
        (WebCore::SVGSVGElement::rendererIsNeeded):
        * svg/SVGTextContentElement.cpp:
        * svg/SVGTextContentElement.h:
        (WebCore::SVGTextContentElement::isValid):
        (WebCore::SVGTextContentElement::isTextContent):
        * svg/SVGTextPathElement.cpp:
        * svg/SVGTextPathElement.h:
        * svg/SVGTextPositioningElement.h:
        * svg/SVGUseElement.cpp:
        * svg/SVGUseElement.h:
        (WebCore::SVGUseElement::isValid):
        (WebCore::SVGUseElement::setUpdatesBlocked):
        (WebCore::SVGUseElement::isPendingResource):
        * svg/properties/SVGAnimatedPropertyMacros.h:

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

9 years ago2010-12-01 Anton D'Auria <adauria@apple.com>
commit-queue@webkit.org [Wed, 1 Dec 2010 12:03:53 +0000 (12:03 +0000)]
2010-12-01  Anton D'Auria  <adauria@apple.com>

        Reviewed by Kevin Decker.

        Private browsing denies read access to local and session storage,
        so updating expected test results.

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

        * storage/domstorage/localstorage/private-browsing-affects-storage-expected.txt:
        * storage/domstorage/sessionstorage/private-browsing-affects-storage-expected.txt:
2010-12-01  Anton D'Auria  <adauria@apple.com>

        Reviewed by Kevin Decker.

        Deny access to local and session storage in private browsing mode.
        https://bugs.webkit.org/show_bug.cgi?id=49329

        * storage/Storage.cpp:
        (WebCore::Storage::length):
        (WebCore::Storage::key):
        (WebCore::Storage::getItem):
        (WebCore::Storage::contains):

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

9 years ago2010-12-01 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Wed, 1 Dec 2010 11:41:04 +0000 (11:41 +0000)]
2010-12-01  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Martin Robinson.

        Volume control not correctly initialized
        https://bugs.webkit.org/show_bug.cgi?id=36299

        Replaced the mute/volume Timers with g_timeouts which are (for
        now, at least) more reliable than Timers for one-shot-fire-now
        actions.

        Test: media/video-volume.html

        * platform/graphics/MediaPlayer.cpp:
        (WebCore::MediaPlayer::~MediaPlayer): Reset the raw pointers to 0
        when destructing the player.
        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::mediaPlayerPrivateVolumeChangeTimeoutCallback):
        (WebCore::mediaPlayerPrivateMuteChangeTimeoutCallback):
        (WebCore::MediaPlayerPrivateGStreamer::~MediaPlayerPrivateGStreamer):
        (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfVolumeChange):
        (WebCore::MediaPlayerPrivateGStreamer::volumeChanged):
        (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfMute):
        (WebCore::MediaPlayerPrivateGStreamer::muteChanged):
        (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin): Set
        playbin2 volume/mute base on MediaPlayer related values.
        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:

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

9 years ago2010-12-01 Hayato Ito <hayato@chromium.org>
hayato@chromium.org [Wed, 1 Dec 2010 11:32:32 +0000 (11:32 +0000)]
2010-12-01  Hayato Ito  <hayato@chromium.org>

        Unreviewed trivial fix.

        Removed fast/regex/{test1,test4}.html because they were removed from tree by r72990

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

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

9 years ago2010-12-01 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Wed, 1 Dec 2010 10:47:20 +0000 (10:47 +0000)]
2010-12-01  Patrick Gansterer  <paroga@webkit.org>

        Reviewed by Andreas Kling.

        Cleanup main CMakeLists.txt after r72664, r72672 and r72667
        https://bugs.webkit.org/show_bug.cgi?id=50232

        * CMakeLists.txt: Removed obsolete dependencies.

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

9 years ago2010-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 1 Dec 2010 08:57:20 +0000 (08:57 +0000)]
2010-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        Cleanup SVGPropertyTraits
        https://bugs.webkit.org/show_bug.cgi?id=50229

        Move all template specializations for non-POD types (eg. SVGLength, SVGLengthList, etc.) from SVGPropertyTraits
        into the right SVG* classes, to avoid having to include a dozen SVG*.h files in SVGPropertyTraits.h, which is
        included by all DOM/JS/V8 binding files and SVGElement.h.

        No new functionality, thus no new tests.

        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/scripts/CodeGenerator.pm:
        * bindings/scripts/CodeGeneratorObjC.pm:
        * bindings/scripts/CodeGeneratorV8.pm:
        * svg/SVGAngle.h:
        * svg/SVGLength.h:
        * svg/SVGLengthList.h:
        * svg/SVGMarkerElement.h:
        * svg/SVGNumberList.h:
        * svg/SVGPatternElement.h:
        * svg/SVGPointList.h:
        * svg/SVGPreserveAspectRatio.h:
        * svg/SVGRect.h: Added.
        * svg/SVGSVGElement.h:
        * svg/SVGStringList.h:
        * svg/SVGSymbolElement.h:
        * svg/SVGTransformList.h:
        * svg/SVGViewElement.h:
        * svg/SVGViewSpec.h:
        * svg/properties/SVGListProperty.h:
        * svg/properties/SVGPropertyTraits.h:
        * svg/properties/SVGTransformListPropertyTearOff.h:

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

9 years agoUnreviewed trivial fix.
ossy@webkit.org [Wed, 1 Dec 2010 08:13:15 +0000 (08:13 +0000)]
Unreviewed trivial fix.

* platform/qt/Skipped:
 - editing/selection/5109817.html: removed, because it was removed from tree by r73009
 - fast/regex/test1.html: removed, because it was removed from tree by r72990
 - fast/regex/test4.html: removed, because it was removed from tree by r72990

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

9 years ago2010-11-30 Avi Drissman <avi@google.com>
commit-queue@webkit.org [Wed, 1 Dec 2010 05:37:32 +0000 (05:37 +0000)]
2010-11-30  Avi Drissman  <avi@google.com>

        Reviewed by Darin Adler.

        Add preference to not select when right-clicked
        https://bugs.webkit.org/show_bug.cgi?id=23351

        Removed 5109817 because it is entirely superseded by
        context-menu-text-selection; updated 5354455-1 to explicitly set the
        editing behavior and test all three platforms.

        * editing/selection/5109817.html: Removed.
        * editing/selection/5354455-1-expected.txt: Added.
        * editing/selection/5354455-1.html:
        * platform/chromium-win/editing/selection/5109817-expected.txt: Removed.
        * platform/chromium-win/editing/selection/5354455-1-expected.txt: Removed.
        * platform/gtk/editing/selection/5109817-expected.txt: Removed.
        * platform/gtk/editing/selection/5354455-1-expected.txt: Removed.
        * platform/mac-leopard/editing/selection/5109817-expected.checksum: Removed.
        * platform/mac-leopard/editing/selection/5109817-expected.png: Removed.
        * platform/mac/editing/selection/5109817-expected.checksum: Removed.
        * platform/mac/editing/selection/5109817-expected.png: Removed.
        * platform/mac/editing/selection/5109817-expected.txt: Removed.
        * platform/mac/editing/selection/5354455-1-expected.txt: Removed.
        * platform/win/editing/selection/5109817-expected.checksum: Removed.
        * platform/win/editing/selection/5109817-expected.png: Removed.
        * platform/win/editing/selection/5109817-expected.txt: Removed.
        * platform/win/editing/selection/5354455-1-expected.txt: Removed.

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

9 years agoRefactor HTMLInputElement: Move a part of HTMLInputElement::
tkent@chromium.org [Wed, 1 Dec 2010 04:36:46 +0000 (04:36 +0000)]
Refactor HTMLInputElement: Move a part of HTMLInputElement::
defaultEventHandler() to InputTypes
https://bugs.webkit.org/show_bug.cgi?id=50097

Reviewed by Darin Adler.

Move all of keyboard-related event handling to InputType.

No new tests because this should not change any behavior.

* html/BaseButtonInputType.cpp:
(WebCore::BaseButtonInputType::handleKeydownEvent):
(WebCore::BaseButtonInputType::handleKeypressEvent):
(WebCore::BaseButtonInputType::handleKeyupEvent):
* html/BaseButtonInputType.h:
* html/BaseCheckableInputType.cpp:
(WebCore::BaseCheckableInputType::handleKeydownEvent):
(WebCore::BaseCheckableInputType::handleKeypressEvent):
* html/BaseCheckableInputType.h:
* html/CheckboxInputType.cpp:
(WebCore::CheckboxInputType::handleKeyupEvent):
* html/CheckboxInputType.h:
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::defaultEventHandler):
 We remove !implicitSubmission check for callBaseClassEarly because
 implicitSubmission can not be true for keydown event and keypress
 event at this point.
* html/InputType.cpp:
(WebCore::InputType::shouldSubmitImplicitly):
 Returns true for a keypress event with "\r". Note that we don't overload
 this function for BUTTON, FILE, IMAGE, RESET, and SUBMIT because a
 keypress event with "\r" for these types returns from HTMLInputElement::defaultEventHandler()
 before implicit submission checking.
(WebCore::InputType::handleKeypressEvent):
(WebCore::InputType::handleKeyupEvent):
* html/InputType.h:
* html/RadioInputType.cpp:
(WebCore::RadioInputType::handleKeydownEvent):
(WebCore::RadioInputType::handleKeyupEvent):
* html/RadioInputType.h:
* html/TextFieldInputType.cpp:
(WebCore::TextFieldInputType::shouldSubmitImplicitly):
* html/TextFieldInputType.h:

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

9 years ago2010-11-30 Benjamin Poulain <benjamin.poulain@nokia.com>
benjamin.poulain@nokia.com [Wed, 1 Dec 2010 04:18:47 +0000 (04:18 +0000)]
2010-11-30  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Implement layoutTestController.findString
        https://bugs.webkit.org/show_bug.cgi?id=50236

        Add support for the new advanced findString().

        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
        (DumpRenderTreeSupportQt::findString):
        * WebCoreSupport/DumpRenderTreeSupportQt.h:
2010-11-30  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Implement layoutTestController.findString
        https://bugs.webkit.org/show_bug.cgi?id=50236

        Add the missing function to the LayoutTestController.

        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
        (LayoutTestController::findString):
        * DumpRenderTree/qt/LayoutTestControllerQt.h:

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

9 years ago2010-11-30 Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
commit-queue@webkit.org [Wed, 1 Dec 2010 03:59:53 +0000 (03:59 +0000)]
2010-11-30  Nicolas Dufresne  <nicolas.dufresne@collabora.co.uk>

        Reviewed by Martin Robinson.

        [GTK] Fix wrong type in assert return value
        https://bugs.webkit.org/show_bug.cgi?id=50208

        Use appropriate return type in different g_return_val_if_fail(). This
        removes some compiler warning.

        * webkit/webkitwebdatasource.cpp:
        (webkit_web_data_source_is_loading):
        * webkit/webkitwebframe.cpp:
        (webkit_web_frame_page_number_for_element_by_id):
        (webkit_web_frame_number_of_pages):

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

9 years ago2010-11-30 Rob Buis <rwlbuis@gmail.com>
commit-queue@webkit.org [Wed, 1 Dec 2010 03:38:33 +0000 (03:38 +0000)]
2010-11-30  Rob Buis  <rwlbuis@gmail.com>

        Reviewed by Xan Lopez.

        [gtk] SVGLineElement-dom-requiredFeatures.html and
        SVGLineElement-svgdom-requiredFeatures.html failing in the bots
        https://bugs.webkit.org/show_bug.cgi?id=49529

        Replaced fill with stroke and increased the line size. This fixes
        the problem clicking the element.

        * platform/gtk/Skipped:
        * svg/dynamic-updates/script-tests/SVGLineElement-dom-requiredFeatures.js:
        * svg/dynamic-updates/script-tests/SVGLineElement-svgdom-requiredFeatures.js:

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

9 years ago2010-11-30 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Wed, 1 Dec 2010 03:19:32 +0000 (03:19 +0000)]
2010-11-30  Ryosuke Niwa  <rniwa@webkit.org>

        Unreviewed speculative build fix for Windows.

        * UIProcess/win/WebView.cpp:
        (WebKit::WebView::pageDidEnterAcceleratedCompositing):
        (WebKit::WebView::pageDidLeaveAcceleratedCompositing):
        (WebKit::WebView::switchToDrawingAreaTypeIfNecessary):
        * UIProcess/win/WebView.h:

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

9 years ago2010-11-30 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Wed, 1 Dec 2010 03:19:14 +0000 (03:19 +0000)]
2010-11-30  Patrick Gansterer  <paroga@webkit.org>

        Reviewed by Andreas Kling.

        Move CSS generator logic into main CMakeLists.txt file
        https://bugs.webkit.org/show_bug.cgi?id=50230

        * CMakeLists.txt:

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

9 years ago2010-11-30 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Wed, 1 Dec 2010 03:12:25 +0000 (03:12 +0000)]
2010-11-30  Ojan Vafai  <ojan@chromium.org>

        Revert r72876. It caused a ~30% perf regression in chromium's bloat-http test
        https://bugs.webkit.org/show_bug.cgi?id=50288

        2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
        Reviewed by Darin Adler.
        Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
        https://bugs.webkit.org/show_bug.cgi?id=50182
        A display-isolated URL can only be displayed (e.g., put in an iframe,
        hyperlinked to) by documents from that scheme. In a sense, this is a
        generalization of some of the protections we give file URLs, but
        instead of lumping them all together into one "local" bucket, this
        patch creates a separate bucket for each scheme.
        For a while, I tried using a separate bucket for each origin. That
        would have played nicely with what Blob URLs are trying to do, but some
        "chrome" URL pages rely on being able to display other chrome URL
        pages, even in different origins. For example, the New Tab Page shows
        thumbnails from the "thumbnail" host.
        This patch also removes a bunch of unused code. I've also propagated
        the "deprecated" status of deprecatedCanDisplay to
        deprecatedShouldTreatURLAsLocal because that method has no other
        callers and is really asking for uppercase/lowercase bugs. I dream of
        someday removing these functions.
        page/SecurityOrigin.cpp:
        (WebCore::SecurityOrigin::canDisplay):
        (WebCore::SecurityOrigin::deprecatedCanDisplay):
        platform/SchemeRegistry.cpp:
        (WebCore::displayIsolatedURLSchemes):
        (WebCore::SchemeRegistry::registerURLSchemeAsLocal):
        (WebCore::SchemeRegistry::deprecatedShouldTreatURLAsLocal):
        (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
        (WebCore::SchemeRegistry::registerURLSchemeAsDisplayIsolated):
        (WebCore::SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated):
        platform/SchemeRegistry.h:
        2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
        Reviewed by Darin Adler.
        Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
         https://bugs.webkit.org/show_bug.cgi?id=50182
        This patch adds a Chromium API for registering schemes as
        display-isolated. In a subsequent patch, I'll change the "chrome"
        scheme in Chrome to be display isolated instead of local. That will
        prevent file URLs from linking to chrome URLs.
        public/WebSecurityPolicy.h:
        src/WebSecurityPolicy.cpp:
        (WebKit::WebSecurityPolicy::registerURLSchemeAsDisplayIsolated):

        * page/SecurityOrigin.cpp:
        (WebCore::SecurityOrigin::canDisplay):
        (WebCore::SecurityOrigin::deprecatedCanDisplay):
        * platform/SchemeRegistry.cpp:
        (WebCore::SchemeRegistry::registerURLSchemeAsLocal):
        (WebCore::SchemeRegistry::removeURLSchemeRegisteredAsLocal):
        (WebCore::SchemeRegistry::localURLSchemes):
        (WebCore::SchemeRegistry::shouldTreatURLAsLocal):
        (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
        * platform/SchemeRegistry.h:
2010-11-30  Ojan Vafai  <ojan@chromium.org>

        Revert r72876. It caused a ~30% perf regression in chromium's bloat-http test
        https://bugs.webkit.org/show_bug.cgi?id=50288

        2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
        Reviewed by Darin Adler.
        Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
        https://bugs.webkit.org/show_bug.cgi?id=50182
        A display-isolated URL can only be displayed (e.g., put in an iframe,
        hyperlinked to) by documents from that scheme. In a sense, this is a
        generalization of some of the protections we give file URLs, but
        instead of lumping them all together into one "local" bucket, this
        patch creates a separate bucket for each scheme.
        For a while, I tried using a separate bucket for each origin. That
        would have played nicely with what Blob URLs are trying to do, but some
        "chrome" URL pages rely on being able to display other chrome URL
        pages, even in different origins. For example, the New Tab Page shows
        thumbnails from the "thumbnail" host.
        This patch also removes a bunch of unused code. I've also propagated
        the "deprecated" status of deprecatedCanDisplay to
        deprecatedShouldTreatURLAsLocal because that method has no other
        callers and is really asking for uppercase/lowercase bugs. I dream of
        someday removing these functions.
        2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
        Reviewed by Darin Adler.
        Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
         https://bugs.webkit.org/show_bug.cgi?id=50182
        This patch adds a Chromium API for registering schemes as
        display-isolated. In a subsequent patch, I'll change the "chrome"
        scheme in Chrome to be display isolated instead of local. That will
        prevent file URLs from linking to chrome URLs.

        * public/WebSecurityPolicy.h:
        * src/WebSecurityPolicy.cpp:
2010-11-30  Ojan Vafai  <ojan@chromium.org>

        Revert r72876. It caused a ~30% perf regression in chromium's bloat-http test
        https://bugs.webkit.org/show_bug.cgi?id=50288

        2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
        Reviewed by Darin Adler.
        Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
        https://bugs.webkit.org/show_bug.cgi?id=50182
        A display-isolated URL can only be displayed (e.g., put in an iframe,
        hyperlinked to) by documents from that scheme. In a sense, this is a
        generalization of some of the protections we give file URLs, but
        instead of lumping them all together into one "local" bucket, this
        patch creates a separate bucket for each scheme.
        For a while, I tried using a separate bucket for each origin. That
        would have played nicely with what Blob URLs are trying to do, but some
        "chrome" URL pages rely on being able to display other chrome URL
        pages, even in different origins. For example, the New Tab Page shows
        thumbnails from the "thumbnail" host.
        This patch also removes a bunch of unused code. I've also propagated
        the "deprecated" status of deprecatedCanDisplay to
        deprecatedShouldTreatURLAsLocal because that method has no other
        callers and is really asking for uppercase/lowercase bugs. I dream of
        someday removing these functions.
        2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
        Reviewed by Darin Adler.
        Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
         https://bugs.webkit.org/show_bug.cgi?id=50182
        This patch adds a Chromium API for registering schemes as
        display-isolated. In a subsequent patch, I'll change the "chrome"
        scheme in Chrome to be display isolated instead of local. That will
        prevent file URLs from linking to chrome URLs.

        * Api/qwebsecurityorigin.cpp:
        (QWebSecurityOrigin::localSchemes):

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

9 years ago2010-11-30 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Wed, 1 Dec 2010 03:00:24 +0000 (03:00 +0000)]
2010-11-30  Ojan Vafai  <ojan@chromium.org>

        [chromium] Update inaccurate test expectation and mark fast/regex/pcre-test-1.html as
        timing out after http://trac.webkit.org/changeset/72990/.
        * platform/chromium/test_expectations.txt:

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