Fix Qt build.

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



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-10  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Tony Chang.

        editing/inserting/insert-3659587-fix.html and editing/style/style-3690704-fix.html should use runDumpAsTextEditingTest
        https://bugs.webkit.org/show_bug.cgi?id=45578

        Modified insert-3659587-fix.html and style-3690704-fix.html to use runDumpAsTextEditingTest().

        * editing/inserting/insert-3659587-fix-expected.txt: Added.
        * editing/inserting/insert-3659587-fix.html:
        * editing/style/style-3690704-fix-expected.txt: Added.
        * editing/style/style-3690704-fix.html:
        * platform/chromium-linux/editing/inserting/insert-3659587-fix-expected.checksum: Removed.
        * platform/chromium-linux/editing/inserting/insert-3659587-fix-expected.png: Removed.
        * platform/chromium-linux/editing/style/style-3690704-fix-expected.checksum: Removed.
        * platform/chromium-linux/editing/style/style-3690704-fix-expected.png: Removed.
        * platform/chromium-win/editing/inserting/insert-3659587-fix-expected.checksum: Removed.
        * platform/chromium-win/editing/inserting/insert-3659587-fix-expected.png: Removed.
        * platform/chromium-win/editing/inserting/insert-3659587-fix-expected.txt: Removed.
        * platform/chromium-win/editing/style/style-3690704-fix-expected.checksum: Removed.
        * platform/chromium-win/editing/style/style-3690704-fix-expected.png: Removed.
        * platform/chromium-win/editing/style/style-3690704-fix-expected.txt: Removed.
        * platform/gtk/editing/inserting/insert-3659587-fix-expected.txt: Removed.
        * platform/gtk/editing/style/style-3690704-fix-expected.txt: Removed.
        * platform/mac/editing/inserting/insert-3659587-fix-expected.checksum: Removed.
        * platform/mac/editing/inserting/insert-3659587-fix-expected.png: Removed.
        * platform/mac/editing/inserting/insert-3659587-fix-expected.txt: Removed.
        * platform/mac/editing/style/style-3690704-fix-expected.checksum: Removed.
        * platform/mac/editing/style/style-3690704-fix-expected.png: Removed.
        * platform/mac/editing/style/style-3690704-fix-expected.txt: Removed.
        * platform/qt/editing/inserting/insert-3659587-fix-expected.txt: Removed.
        * platform/qt/editing/style/style-3690704-fix-expected.txt: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-10  Balazs Kelemen  <kb@inf.u-szeged.hu>

        Reviewed by Andreas Kling.

        Application cache directory should be checked before sending to the web process
        https://bugs.webkit.org/show_bug.cgi?id=45462

        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::WebProcessProxy): Check the return value of
        m_context->applicationCacheDirectoy() to avoid sending a null string
        to the web process what makes it asserting.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-10  Ryosuke Niwa  <rniwa@webkit.org>

        Unreviewed.

        Added editing/style/style-3690704-fix.html to the gtk's skipped list
        since the test requires editing delegates, which hasn't been implemented in gtk.

        * platform/gtk/Skipped:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67279 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-10  Ryosuke Niwa  <rniwa@webkit.org>

        Unreviewed, speculative chromium build fix.

        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::setZoomLevel):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<rdar://problem/8414282> Can’t dynamically change first-letter to/from floating

Reviewed by Darin Adler.

WebCore: 

Test: fast/dynamic/first-letter-display-change.html

* rendering/RenderBlock.cpp:
(WebCore::styleForFirstLetter): Factored this helper function out.
(WebCore::RenderBlock::updateFirstLetter): Renamed variables so that the
“update style” and “create new” branches use the same terminology. In the
update case, if the style change requires a new renderer, handle it.
* rendering/RenderTextFragment.h:
(WebCore::toRenderTextFragment): Added.

LayoutTests: 

* fast/dynamic/first-letter-display-change-expected.checksum: Added.
* fast/dynamic/first-letter-display-change-expected.png: Added.
* fast/dynamic/first-letter-display-change-expected.txt: Added.
* fast/dynamic/first-letter-display-change.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-10  Robert Hogan  <robert@webkit.org>

        Reviewed by Andreas Kling.

        [Qt] Fix crash in DRT in standalone mode

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

        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
        (WebCore::DumpRenderTree::loadNextTestInStandAloneMode):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix chromium build.

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setZoomLevel):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67283 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-10  Alexey Proskuryakov  <ap@apple.com>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=45563
        Assertion failure: useTransforms when scrolling to an SVG element

        This has been indirectly fixed in r63633, just adding a test.

        * svg/custom/scroll-to-svg-element-assertion-expected.txt: Added.
        * svg/custom/scroll-to-svg-element-assertion.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-10  Jer Noble  <jer.noble@apple.com>

        Reviewed by Simon Fraser.

        Movies with track or movie matrices don't display in <video> elements (Safari 5/Windows)
        https://bugs.webkit.org/show_bug.cgi?id=45333
        
        The rootChild layer must be set as flipped, otherwise transformed movies will appear
        incorrectly rotated.

        * FullscreenVideoController.cpp:
        (FullscreenVideoController::enterFullscreen):
2010-09-10  Dan Bernstein  <mitz@apple.com>

        Reviewed by Darin Adler.

        <rdar://problem/8414282> Can’t dynamically change first-letter to/from floating

        Test: fast/dynamic/first-letter-display-change.html

        * rendering/RenderBlock.cpp:
        (WebCore::styleForFirstLetter): Factored this helper function out.
        (WebCore::RenderBlock::updateFirstLetter): Renamed variables so that the
        “update style” and “create new” branches use the same terminology. In the
        update case, if the style change requires a new renderer, handle it.
        * rendering/RenderTextFragment.h:
        (WebCore::toRenderTextFragment): Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67285 268f45cc-cd09-0410-ab3c-d52691b4dbfc
No review; build fix only.

<CoreGraphics/CGFloat.h> does not exist on the build bots.  Replace
instances of CGFAbs() with abs().

* platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
(WebCore::MediaPlayerPrivateQuickTimeVisualContext::naturalSize):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add zoom support to WebKit2 API
<rdar://problem/7660657>
https://bugs.webkit.org/show_bug.cgi?id=45585

Reviewed by Dan Bernstein.

WebKit2: 

- Add UIProcess API for setting zoom factors.
- Change bundle zoom API to be in terms of doubles
  for consistency.

* Shared/CoreIPCSupport/WebPageMessageKinds.h:
* UIProcess/API/C/WKPage.cpp:
(WKPageGetTextZoomFactor):
(WKPageSetTextZoomFactor):
(WKPageGetPageZoomFactor):
(WKPageSetPageZoomFactor):
(WKPageSetPageAndTextZoomFactors):
* UIProcess/API/C/WKPage.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::WebPageProxy):
(WebKit::WebPageProxy::setTextZoomFactor):
(WebKit::WebPageProxy::setPageZoomFactor):
(WebKit::WebPageProxy::setPageAndTextZoomFactors):
* UIProcess/WebPageProxy.h:
(WebKit::WebPageProxy::textZoomFactor):
(WebKit::WebPageProxy::pageZoomFactor):
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageGetTextZoomFactor):
(WKBundlePageSetTextZoomFactor):
(WKBundlePageGetPageZoomFactor):
(WKBundlePageSetPageZoomFactor):
* WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::textZoomFactor):
(WebKit::WebPage::setTextZoomFactor):
(WebKit::WebPage::pageZoomFactor):
(WebKit::WebPage::setPageZoomFactor):
(WebKit::WebPage::setPageAndTextZoomFactors):
(WebKit::WebPage::didReceiveMessage):
* WebProcess/WebPage/WebPage.h:

WebKitTools: 

- Add zoom options to MiniBrowser that mimic Safari's options using
  the new WebKit2 zoom APIs.
- Switch uses of float for the zoom APIs to use double.

* MiniBrowser/mac/BrowserWindowController.h:
* MiniBrowser/mac/BrowserWindowController.m:
(-[BrowserWindowController initWithPageNamespace:]):
(-[BrowserWindowController validateMenuItem:]):
(-[BrowserWindowController validateUserInterfaceItem:]):
(-[BrowserWindowController currentZoomFactor]):
(-[BrowserWindowController setCurrentZoomFactor:]):
(-[BrowserWindowController canZoomIn]):
(-[BrowserWindowController zoomIn:]):
(-[BrowserWindowController canZoomOut]):
(-[BrowserWindowController zoomOut:]):
(-[BrowserWindowController canResetZoom]):
(-[BrowserWindowController resetZoom:]):
(-[BrowserWindowController toggleZoomMode:]):
* MiniBrowser/mac/MainMenu.xib:
* WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
(WTR::EventSendingController::textZoomIn):
(WTR::EventSendingController::textZoomOut):
(WTR::EventSendingController::zoomPageIn):
(WTR::EventSendingController::zoomPageOut):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
No review; build fix only.

<CoreGraphics/CGAffineTransform.h> isn't on the build bots either.  Wrap
all references to m_movieTransform in #if USE(ACCELERATED_COMPOSITING) guards.
        
* platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
(WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
(WebCore::MediaPlayerPrivateQuickTimeVisualContext::naturalSize):
(WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveAndResetMovieTransform):
* platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-10  yi shen  <yi.4.shen@nokia.com>

        Reviewed by Antonio Gomes.

        [Qt] selected text gets deleted when qgraphicswebview losts focus
        https://bugs.webkit.org/show_bug.cgi?id=45539

        * Api/qwebpage.cpp:
        (QWebPagePrivate::inputMethodEvent):
        * tests/qwebpage/tst_qwebpage.cpp:
        (tst_QWebPage::inputMethods):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67289 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-11  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        queues.webkit.org should expose /remote_api for data upload/download
        https://bugs.webkit.org/show_bug.cgi?id=45559

        * QueueStatusServer/app.yaml:
         - /remote_api is a standard app-engine service which allows use of
           the bulk uploader for data upload/download.  Exposing this
           (for admin access only) allows us to use

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67290 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add NetworkingContext to avoid layer violations https://bugs.webkit.org/show_bug.cgi?id=42292

Patch by Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> on 2010-09-10
Reviewed by Darin Adler.

WebCore:

Activate NetworkingContext:

Since the ResourceHandle::create, ResourceHandle::start and
ResourceHandle::loadResourceSynchronously API's were modified,
having their Frame* parameter substituted by a NetworkingContext*,
all implementations of them were also modified.
This patch also modifies all functions that were calling the above
ones.

* loader/FrameLoader.cpp:
(WebCore::FrameLoader::loadResourceSynchronously):
* loader/FrameLoader.h:
* loader/MainResourceLoader.cpp:
(WebCore::MainResourceLoader::loadNow):
* loader/PingLoader.cpp:
(WebCore::PingLoader::PingLoader):
* loader/ResourceLoader.cpp:
(WebCore::ResourceLoader::load):
* loader/appcache/ApplicationCacheGroup.cpp:
(WebCore::ApplicationCacheGroup::createResourceHandle):
* loader/icon/IconFetcher.cpp:
(WebCore::IconFetcher::loadEntry):
* platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
(webKitWebSrcStart):
* platform/network/ResourceHandle.cpp:
(WebCore::ResourceHandle::create):
* platform/network/ResourceHandle.h:
* platform/network/ResourceHandleInternal.h:
(WebCore::ResourceHandleInternal::ResourceHandleInternal):
* platform/network/cf/ResourceHandleCFNet.cpp:
(WebCore::ResourceHandle::start):
(WebCore::ResourceHandle::loadResourceSynchronously):
* platform/network/curl/ResourceHandleCurl.cpp:
(WebCore::ResourceHandle::start):
(WebCore::ResourceHandle::loadResourceSynchronously):
* platform/network/mac/ResourceHandleMac.mm:
(WebCore::ResourceHandle::start):
(WebCore::ResourceHandle::loadResourceSynchronously):
* platform/network/qt/QNetworkReplyHandler.cpp:
(WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
(WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
(WebCore::QNetworkReplyHandler::start):
* platform/network/qt/ResourceHandleQt.cpp:
(WebCore::ResourceHandle::start):
(WebCore::ResourceHandle::willLoadFromCache):
(WebCore::ResourceHandle::loadResourceSynchronously):
* platform/network/soup/ResourceHandleSoup.cpp:
* platform/network/win/ResourceHandleWin.cpp:
(WebCore::ResourceHandle::start):

WebKit/chromium:

* src/ResourceHandle.cpp:
(WebCore::ResourceHandle::create):
(WebCore::ResourceHandle::start):
(WebCore::ResourceHandle::loadResourceSynchronously):

WebKit/gtk:

* webkit/webkitdownload.cpp:
(webkit_download_start):
* webkit/webkitprivate.cpp:
(currentToplevelCallback):

WebKit/win:

* WebCoreSupport/WebFrameNetworkingContext.cpp:
(WebFrameNetworkingContext::blockedError):
* WebCoreSupport/WebFrameNetworkingContext.h:

WebKit2:

* WebProcess/WebCoreSupport/win/WebFrameNetworkingContext.cpp:
* WebProcess/WebCoreSupport/win/WebFrameNetworkingContext.h:
(WebFrameNetworkingContext::create):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-11  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Adam Barth.

        URIs in styles created via innerHTML are not resolved against the document's base URI
        https://bugs.webkit.org/show_bug.cgi?id=45565

        Add test to read back the background image URL from an element that was
        created via innerHTML (reduction of http://crbug.com/55023).

        * fast/innerHTML/innerHTML-uri-resolution-expected.txt: Added.
        * fast/innerHTML/innerHTML-uri-resolution.html: Added.
2010-09-11  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Adam Barth.

        URIs in styles created via innerHTML are not resolved against the document's base URI
        https://bugs.webkit.org/show_bug.cgi?id=45565

        The dummy document used for fragment parsing created by
        FragmentParsingContext should use the base URI of the fragment's
        document. Since (HTML)Document doesn't expose a setter for the base URI
        (and shouldn't), we allow it to be set by the constructor/create
        function.

        Also remove some obsolete code that references the legacy tree builder
        from HTMLElement that I happened to notice.

        Test: fast/innerHTML/innerHTML-uri-resolution.html

        * dom/Document.cpp:
        (WebCore::Document::Document):
        * dom/Document.h:
        * html/HTMLDocument.cpp:
        (WebCore::HTMLDocument::HTMLDocument):
        * html/HTMLDocument.h:
        (WebCore::HTMLDocument::create):
        * html/HTMLElement.cpp:
        (WebCore::createFragmentFromSource):
        (WebCore::HTMLElement::setInnerHTML):
        * html/parser/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67292 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-11  Tony Chang  <tony@chromium.org>

        Reviewed by Kent Tamura.

        [chromium] remove passing test svg/custom/transform-ignore-after-invalid.svg
        https://bugs.webkit.org/show_bug.cgi?id=45579

        * platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-11  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Tony Chang.

        Implement layoutTestController.dumpResourceResponseMIMETypes in Chromium DRT
        https://bugs.webkit.org/show_bug.cgi?id=45479

        Remove tests from Chromium expectations that now pass. Add
        Chromium/Linux expectations for the script test, since it reports a
        different MIME type (application/javascript vs.
        application/x-javascript).

        * platform/chromium-linux/fast/dom/HTMLLinkElement/prefetch-expected.txt: Removed.
        * platform/chromium-linux/fast/preloader/script-expected.txt: Added.
        * platform/chromium-mac/fast/dom/HTMLLinkElement/prefetch-expected.txt: Removed.
        * platform/chromium/test_expectations.txt:
2010-09-11  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Tony Chang.

        Implement layoutTestController.dumpResourceResponseMIMETypes in Chromium DRT
        https://bugs.webkit.org/show_bug.cgi?id=45479

        Implement layoutTestController.dumpResourceResponseMIMETypes (modelled after
        implementation in ResourceLoadDelegate in the Mac port).

        * DumpRenderTree/chromium/LayoutTestController.cpp:
        (LayoutTestController::LayoutTestController):
        (LayoutTestController::dumpResourceResponseMIMETypes):
        (LayoutTestController::reset):
        * DumpRenderTree/chromium/LayoutTestController.h:
        (LayoutTestController::setShouldDumpResourceResponseMIMETypes):
        (LayoutTestController::shouldDumpResourceResponseMIMETypes):
        * DumpRenderTree/chromium/TestShell.h:
        (TestShell::shouldDumpResourceResponseMIMETypes):
        * DumpRenderTree/chromium/WebViewHost.cpp:
        (WebViewHost::didReceiveResponse):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67294 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-09-11  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Adam Barth.

        Group statuses in queue status by patch ID
        https://bugs.webkit.org/show_bug.cgi?id=45588

        Group statuses by patch ID so that the status page is easier
        to scan.

        * QueueStatusServer/handlers/queuestatus.py:
        * QueueStatusServer/stylesheets/dashboard.css:
        (.status-group):
        (.status-bug):
        (.status-group ul):
        (.status-group ul li):
        (.status-group ul li:hover):
        (.status-cell):
        (.status-cell:hover):
        (.status-cell.pass):
        (.status-cell.fail):
        (.status-cell.pending):
        (.status-cell.error):
        * QueueStatusServer/templates/dashboard.html:
        * QueueStatusServer/templates/queuestatus.html:

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