WebKit-https.git
12 years ago2010-06-25 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 19:57:02 +0000 (19:57 +0000)]
2010-06-25  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>

        Reviewed by Simon Hausmann.

        Introduce to QtScript benchmarks.

        The QtScript performance should be tested regularly. The patch introduces
        micro benchmarks for existing API.

        [Qt] Performance of the QtScript API is not tested.
        https://bugs.webkit.org/show_bug.cgi?id=40911

        * WebKit.pro:
2010-06-25  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>

        Reviewed by Simon Hausmann.

        Introduce QtScript benchmarks.

        The QtScript performance should be tested regularly. The patch introduces
        micro benchmarks for existing API.

        [Qt] Performance of the QtScript API is not tested.
        https://bugs.webkit.org/show_bug.cgi?id=40911

        * qt/benchmarks/benchmarks.pri: Copied from JavaScriptCore/qt/tests/tests.pri.
        * qt/benchmarks/benchmarks.pro: Added.
        * qt/benchmarks/qscriptengine/qscriptengine.pro: Added.
        * qt/benchmarks/qscriptengine/tst_qscriptengine.cpp: Added.
        (tst_QScriptEngine::checkSyntax_data):
        (tst_QScriptEngine::checkSyntax):
        (tst_QScriptEngine::constructor):
        (tst_QScriptEngine::evaluateString_data):
        (tst_QScriptEngine::evaluateString):
        (tst_QScriptEngine::evaluateProgram_data):
        (tst_QScriptEngine::evaluateProgram):
        (tst_QScriptEngine::newObject):
        (tst_QScriptEngine::nullValue):
        (tst_QScriptEngine::undefinedValue):
        (tst_QScriptEngine::globalObject):
        (tst_QScriptEngine::toStringHandle):
        * qt/benchmarks/qscriptvalue/qscriptvalue.pro: Added.
        * qt/benchmarks/qscriptvalue/tst_qscriptvalue.cpp: Added.
        (tst_QScriptValue::tst_QScriptValue):
        (tst_QScriptValue::~tst_QScriptValue):
        (tst_QScriptValue::values_data):
        (tst_QScriptValue::ctorBool):
        (tst_QScriptValue::ctorReal):
        (tst_QScriptValue::ctorNumber):
        (tst_QScriptValue::ctorQString):
        (tst_QScriptValue::ctorCString):
        (tst_QScriptValue::ctorSpecial):
        (tst_QScriptValue::ctorQScriptValue):
        (tst_QScriptValue::isValid_data):
        (tst_QScriptValue::isValid):
        (tst_QScriptValue::isBool_data):
        (tst_QScriptValue::isBool):
        (tst_QScriptValue::isNumber_data):
        (tst_QScriptValue::isNumber):
        (tst_QScriptValue::isFunction_data):
        (tst_QScriptValue::isFunction):
        (tst_QScriptValue::isNull_data):
        (tst_QScriptValue::isNull):
        (tst_QScriptValue::isString_data):
        (tst_QScriptValue::isString):
        (tst_QScriptValue::isUndefined_data):
        (tst_QScriptValue::isUndefined):
        (tst_QScriptValue::isObject_data):
        (tst_QScriptValue::isObject):
        (tst_QScriptValue::isError_data):
        (tst_QScriptValue::isError):
        (tst_QScriptValue::toString_data):
        (tst_QScriptValue::toString):
        (tst_QScriptValue::toNumber_data):
        (tst_QScriptValue::toNumber):
        (tst_QScriptValue::toBool_data):
        (tst_QScriptValue::toBool):
        (tst_QScriptValue::toInteger_data):
        (tst_QScriptValue::toInteger):
        (tst_QScriptValue::toInt32_data):
        (tst_QScriptValue::toInt32):
        (tst_QScriptValue::toUInt32_data):
        (tst_QScriptValue::toUInt32):
        (tst_QScriptValue::toUInt16_data):
        (tst_QScriptValue::toUInt16):
        (tst_QScriptValue::toObject_data):
        (tst_QScriptValue::toObject):
        (tst_QScriptValue::equals_data):
        (tst_QScriptValue::equals):
        (tst_QScriptValue::strictlyEquals_data):
        (tst_QScriptValue::strictlyEquals):
        (tst_QScriptValue::instanceOf_data):
        (tst_QScriptValue::instanceOf):

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

12 years ago2010-06-25 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Fri, 25 Jun 2010 19:50:04 +0000 (19:50 +0000)]
2010-06-25  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Pasteboard code does not take into account the nil character when getting and setting markup/netscape-url data
        https://bugs.webkit.org/show_bug.cgi?id=41221

        Take into account null-terminator when getting and setting markup and
        Netscape URL pasteboard types. This means that if the selection data
        contains the null terminator, it won't be included in the final String.
        When setting the pasteboard data the null terminator is now included to
        match the behavior of other applications.

        * platform/gtk/PasteboardHelper.cpp:
        (WebCore::PasteboardHelper::getClipboardContents):
        Create the markup string after using g_strndup to protect against non-null-terminated
        strings. Use String::fromUTF8 here to ensure that the string is not longer than the
        first null-terminator. Also fix a small indentation issue.
        (WebCore::PasteboardHelper::fillSelectionData):
        Always include the null-terminator when setting pasteboard data manually. This matches
        the behavior of other browser applications.
2010-06-25  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Pasteboard code does not take into account the nil character when getting and setting markup/netscape-url data
        https://bugs.webkit.org/show_bug.cgi?id=41221

        Add a test for this issue which simulates a paste keyboard event into an editable
        body. The pasteboard should contain a markup portion containing a null terminator.

        * tests/testcopyandpaste.c:
        (test_info_new):
        (test_info_destroy):
        (load_status_cb):
        (runPasteTestCallback):
        (window_object_cleared_callback):
        (pasting_test_get_data_callback):
        (pasting_test_clear_data_callback):
        (test_pasting_markup):
        (main):

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

12 years ago2010-06-25 Sam Magnuson <smagnuson@netflix.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 19:31:08 +0000 (19:31 +0000)]
2010-06-25  Sam Magnuson  <smagnuson@netflix.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] When any geometry change happens to a node it will resize the
        backing cache
        https://bugs.webkit.org/show_bug.cgi?id=40378

        Continue to grow the cache, but never toss it. When the pixmap
        cache gets too big it will be lost and created at the right size
        next time.

        No new tests: this is an optimization.

        * platform/graphics/qt/GraphicsLayerQt.cpp:
        (WebCore::GraphicsLayerQtImpl::recache):
        (WebCore::GraphicsLayerQtImpl::paint):
        (WebCore::GraphicsLayerQtImpl::flushChanges):

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

12 years ago2010-06-25 Robert Hogan <robert@webkit.org>
robert@webkit.org [Fri, 25 Jun 2010 19:29:22 +0000 (19:29 +0000)]
2010-06-25  Robert Hogan  <robert@webkit.org>

        Reviewed by Simon Hausmann.

        [Qt] Support evaluateScriptInIsolatedWorld()

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

        Remove evaluateScriptInIsolatedWorld() from QtWebKit API.
        Remove QWebScriptWorld from exported headers.
        Confine support to DumpRenderTreeSupportQt so that the tests can pass.

        * Api/headers.pri:
        * Api/qwebframe.cpp:
        * Api/qwebframe.h:
        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
        (DumpRenderTreeSupportQt::clearScriptWorlds):
        (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
        * WebCoreSupport/DumpRenderTreeSupportQt.h:
2010-06-25  Robert Hogan  <robert@webkit.org>

        Reviewed by Simon Hausmann.

        [Qt] Support evaluateScriptInIsolatedWorld()

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

        Remove evaluateScriptInIsolatedWorld() from QtWebKit API.
        Remove QWebScriptWorld from exported headers.
        Confine support to DumpRenderTreeSupportQt so that the tests can pass.

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

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

12 years ago2010-06-25 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Fri, 25 Jun 2010 19:17:24 +0000 (19:17 +0000)]
2010-06-25  Oliver Hunt  <oliver@apple.com>

        Reviewed by Geoffrey Garen.

        Remove old js parser
        https://bugs.webkit.org/show_bug.cgi?id=41222

        Remove the old yacc parser, this also solves the tiger problem.  Which
        was a conflict between yacc generated token values and those in the
        custom parser

        * Android.mk:
        * CMakeLists.txt:
        * DerivedSources.make:
        * DerivedSources.pro:
        * GNUmakefile.am:
        * JavaScriptCore.pro:
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
        * JavaScriptCore.xcodeproj/project.pbxproj:
        * parser/Grammar.y: Removed.
        * parser/JSParser.cpp:
        * parser/JSParser.h:
        * parser/Lexer.cpp:
        * parser/NodeConstructors.h:
        (JSC::Node::Node):
        * parser/Parser.cpp:
        (JSC::Parser::parse):
        * wtf/Platform.h:

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

12 years ago2010-06-25 Andreas Kling <andreas.kling@nokia.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 19:15:06 +0000 (19:15 +0000)]
2010-06-25  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=41019
        Canvas: Remember verified clean origins for drawImage()

        Made CanvasRenderingContext2D cache the KURLs of clean origins
        for fast repeated lookup.

        * html/canvas/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::checkOrigin):
        * html/canvas/CanvasRenderingContext2D.h:

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

12 years agoWKBundlePageRenderTreeExternalRepresentation really needs to be
weinig@apple.com [Fri, 25 Jun 2010 18:25:31 +0000 (18:25 +0000)]
WKBundlePageRenderTreeExternalRepresentation really needs to be
WKBundlePageCopyRenderTreeExternalRepresentation so we don't have dangling
pointers and adhere to naming conventions.

Reviewed by Anders Carlsson.

* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageCopyRenderTreeExternalRepresentation):
* WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
* mac/WebKit2.exp:

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

12 years ago2010-06-25 Robert Hogan <robert@webkit.org>
robert@webkit.org [Fri, 25 Jun 2010 18:10:59 +0000 (18:10 +0000)]
2010-06-25  Robert Hogan  <robert@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] HTTP 307 after a 303 after a POST re-sends POST data from the original request

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

        Qt needs to use ResourceRequest::request()->httpMethod()) in order to determine
        the appropriate method for a 307 redirect request.

        When deciding if it needs to override a POST method with a GET method during a
        redirect chain, QNetworkReplyHandler needs to check the HTTP method stored
        in ResourceRequest::request()->httpMethod(). This will always contain the
        original request method in a redirect chain and, more importantly, is the
        method that will be used for the request created from the redirect
        if it is not overridden.

        Unskip http/tests/loading/307-after-303-after-post.html

        * platform/qt/Skipped:
2010-06-25  Robert Hogan  <robert@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] HTTP 307 after a 303 after a POST re-sends POST data from the original request

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

        Qt needs to use ResourceRequest::request()->httpMethod()) in order to determine
        the appropriate method for a 307 redirect request.

        When deciding if it needs to override a POST method with a GET method during a
        redirect chain, QNetworkReplyHandler needs to check the HTTP method stored
        in ResourceRequest::request()->httpMethod(). This will always contain the
        original request method in a redirect chain and, more importantly, is the
        method that will be used for the request created from the redirect
        if it is not overridden.

        * platform/network/qt/QNetworkReplyHandler.cpp:
        (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):

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

12 years agoCorrected change log entry
mitz@apple.com [Fri, 25 Jun 2010 18:08:05 +0000 (18:08 +0000)]
Corrected change log entry

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

12 years agoRevert accidental part and add a newline.
andersca@apple.com [Fri, 25 Jun 2010 18:07:18 +0000 (18:07 +0000)]
Revert accidental part and add a newline.

* MiniBrowser/mac/AppDelegate.m:
* MiniBrowser/mac/MiniBrowser_Prefix.pch:

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

12 years agoRemoved a one-line method that only had one internal caller.
mitz@apple.com [Fri, 25 Jun 2010 18:07:01 +0000 (18:07 +0000)]
Removed a one-line method that only had one internal caller.

Reviewed by Anders Carlsson.

* rendering/RenderBlock.h: Removed bidiReorderLine()
* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlock::layoutInlineChildren): Moved the implementation of
bidiReorderLine() inline here.

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

12 years agoUnreviewed. Build fix.
hclam@chromium.org [Fri, 25 Jun 2010 18:06:24 +0000 (18:06 +0000)]
Unreviewed. Build fix.

Fixed test expectations for Chromium.

* platform/chromium/test_expectations.txt:

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

12 years agoAdd a LOG macro that expands to a no-op by default.
andersca@apple.com [Fri, 25 Jun 2010 18:03:55 +0000 (18:03 +0000)]
Add a LOG macro that expands to a no-op by default.

Reviewed by Dan Bernstein.

* MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj:
* MiniBrowser/mac/AppDelegate.m:
(_didRecieveMessageFromInjectedBundle):
* MiniBrowser/mac/BrowserWindowController.m:
(-[BrowserWindowController windowShouldClose:]):
(_didStartProvisionalLoadForFrame):
(_didReceiveServerRedirectForProvisionalLoadForFrame):
(_didFailProvisionalLoadWithErrorForFrame):
(_didCommitLoadForFrame):
(_didFinishLoadForFrame):
(_didFailLoadWithErrorForFrame):
(_didReceiveTitleForFrame):
(_didFirstLayoutForFrame):
(_didFirstVisuallyNonEmptyLayoutForFrame):
(_didBecomeUnresponsive):
(_didBecomeResponsive):
(_decidePolicyForNavigationAction):
(_decidePolicyForNewWindowAction):
(_createNewPage):
(_showPage):
(_closePage):
(_didNavigateWithNavigationData):
(_didPerformClientRedirect):
(_didPerformServerRedirect):
(_didUpdateHistoryTitle):
* MiniBrowser/mac/MiniBrowser_Prefix.pch:
* MiniBrowser/mac/WebBundle/WebBundleMain.m:
(_didClearWindowForFrame):
(_didCreatePage):
(_willDestroyPage):
(_didRecieveMessage):

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

12 years agoUnreviewed. Build fix.
hclam@chromium.org [Fri, 25 Jun 2010 17:32:35 +0000 (17:32 +0000)]
Unreviewed. Build fix.

Fixed test expectations for Chromium.

* platform/chromium/test_expectations.txt:

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

12 years ago2010-06-25 Nate Chapin <japhet@chromium.org>
japhet@chromium.org [Fri, 25 Jun 2010 17:17:45 +0000 (17:17 +0000)]
2010-06-25  Nate Chapin  <japhet@chromium.org>

        Reviewed by Adam Barth.

        Take a KURL parameter in Document's constructor.
        This will remove the one case where Document::url()
        and FrameLoader::url() are not equal, allowing us to
        remove FrameLoader::url().

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

        Refactor only, no new tests.

        * dom/DOMImplementation.cpp:
        (WebCore::DOMImplementation::createDocument): Take a KURL and pass it through to Document.
        (WebCore::DOMImplementation::createHTMLDocument):
        * dom/DOMImplementation.h:
        * dom/Document.cpp:
        (WebCore::Document::Document): Call setURL() if a frame or a non-empty KURL is specified.
        (WebCore::Document::initSecurityContext): m_url is now initialized, so use it instead
            of m_frame->loader()->url() for initializing the SecurityOrigin.
        * dom/Document.h:
        (WebCore::Document::create):
        (WebCore::Document::createXHTML):
        * html/HTMLDocument.cpp:
        * html/HTMLDocument.h: Add KURL parameter to create() and constructor.
        * html/HTMLViewSourceDocument.cpp:
        * html/HTMLViewSourceDocument.h: Add KURL parameter to create() and constructor.
        * loader/CachedFont.cpp:
        (WebCore::CachedFont::ensureSVGFontData):
        * loader/DocumentWriter.cpp:
        (WebCore::DocumentWriter::createDocument): Take a KURL and pass it through to Document.
        (WebCore::DocumentWriter::begin): Pass existing url parameter to constructors, and remove
            redundant Document::setURL() call.
        * loader/DocumentWriter.h:
        * loader/FTPDirectoryDocument.cpp:
        * loader/FTPDirectoryDocument.h: Add KURL parameter to create() and constructor.
        * loader/ImageDocument.cpp:
        * loader/ImageDocument.h: Add KURL parameter to create() and constructor.
        * loader/MediaDocument.cpp:
        * loader/MediaDocument.h: Add KURL parameter to create() and constructor.
        * loader/PlaceholderDocument.h: Add KURL parameter to create() and constructor.
        * loader/PluginDocument.cpp:
        * loader/PluginDocument.h: Add KURL parameter to create() and constructor.
        * loader/SinkDocument.cpp:
        * loader/SinkDocument.h: Add KURL parameter to create() and constructor.
        * loader/TextDocument.cpp:
        * loader/TextDocument.h: Add KURL parameter to create() and constructor.
        * svg/SVGDocument.cpp:
        * svg/SVGDocument.h: Add KURL parameter to create() and constructor.
        * xml/DOMParser.cpp:
        (WebCore::DOMParser::parseFromString):
        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::responseXML):
        * xml/XSLTProcessor.cpp:
        (WebCore::XSLTProcessor::createDocumentFromSource):

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

12 years ago2010-06-25 Lucas De Marchi <lucas.demarchi@profusion.mobi>
commit-queue@webkit.org [Fri, 25 Jun 2010 16:20:09 +0000 (16:20 +0000)]
2010-06-25  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Kenneth Rohde Christiansen.

        [EFL] Stop frame loaders when deleting view.
        Frame loaders were still alive after view is deleted, causing
        segmentation fault when libsoup had something to deliver yet.
        https://bugs.webkit.org/show_bug.cgi?id=41007

        * efl/ewk/ewk_view.cpp:
        (_ewk_view_smart_del): stop loaders.

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

12 years ago2010-06-25 Sheriff Bot <webkit.review.bot@gmail.com>
mnaganov@chromium.org [Fri, 25 Jun 2010 16:12:08 +0000 (16:12 +0000)]
2010-06-25  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r61812.
        http://trac.webkit.org/changeset/61812
        https://bugs.webkit.org/show_bug.cgi?id=41216

        breaks Chromium workers tests (Requested by mnaganov on
        #webkit).

        * fast/workers/storage/open-database-sync-inputs-expected.txt:
        * fast/workers/storage/resources/open-database-sync-inputs.js:
2010-06-25  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r61812.
        http://trac.webkit.org/changeset/61812
        https://bugs.webkit.org/show_bug.cgi?id=41216

        breaks Chromium workers tests (Requested by mnaganov on
        #webkit).

        * storage/AbstractDatabase.cpp:
        * storage/AbstractDatabase.h:
        * storage/Database.cpp:
        (WebCore::Database::databaseInfoTableName):
        (WebCore::guidMutex):
        (WebCore::guidToVersionMap):
        (WebCore::updateGuidVersionMap):
        (WebCore::guidToDatabaseMap):
        (WebCore::databaseVersionKey):
        (WebCore::DatabaseCreationCallbackTask::create):
        (WebCore::DatabaseCreationCallbackTask::performTask):
        (WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask):
        (WebCore::Database::openDatabase):
        (WebCore::Database::Database):
        (WebCore::Database::openAndVerifyVersion):
        (WebCore::retrieveTextResultFromDatabase):
        (WebCore::Database::getVersionFromDatabase):
        (WebCore::setTextValueInDatabase):
        (WebCore::Database::setVersionInDatabase):
        (WebCore::Database::versionMatchesExpected):
        (WebCore::Database::close):
        (WebCore::Database::disableAuthorizer):
        (WebCore::Database::enableAuthorizer):
        (WebCore::Database::setAuthorizerReadOnly):
        (WebCore::Database::lastActionChangedDatabase):
        (WebCore::Database::lastActionWasInsert):
        (WebCore::Database::resetDeletes):
        (WebCore::Database::hadDeletes):
        (WebCore::guidForOriginAndName):
        (WebCore::Database::resetAuthorizer):
        (WebCore::Database::performOpenAndVerify):
        (WebCore::Database::performCreationCallback):
        (WebCore::Database::version):
        (WebCore::Database::setExpectedVersion):
        (WebCore::Database::stringIdentifier):
        (WebCore::Database::displayName):
        (WebCore::Database::estimatedSize):
        (WebCore::Database::fileName):
        * storage/Database.h:
        (WebCore::Database::scriptExecutionContext):
        (WebCore::Database::opened):
        (WebCore::Database::isNew):
        (WebCore::Database::databaseDebugName):
        * storage/DatabaseAuthorizer.cpp:
        (WebCore::DatabaseAuthorizer::DatabaseAuthorizer):
        (WebCore::DatabaseAuthorizer::denyBasedOnTableName):
        * storage/DatabaseAuthorizer.h:
        (WebCore::DatabaseAuthorizer::create):
        * storage/DatabaseSync.cpp:
        (WebCore::DatabaseSync::databaseInfoTableName):
        (WebCore::DatabaseSync::openDatabaseSync):
        (WebCore::DatabaseSync::DatabaseSync):
        (WebCore::DatabaseSync::~DatabaseSync):
        (WebCore::DatabaseSync::version):
        (WebCore::DatabaseSync::changeVersion):
        (WebCore::DatabaseSync::transaction):
        (WebCore::DatabaseSync::scriptExecutionContext):
        * storage/DatabaseSync.h:
        (WebCore::DatabaseSync::databaseDebugName):
        * storage/DatabaseTask.cpp:
        (WebCore::DatabaseOpenTask::DatabaseOpenTask):
        (WebCore::DatabaseOpenTask::doPerformTask):
        * storage/DatabaseTask.h:
        (WebCore::DatabaseOpenTask::create):

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

12 years ago2010-06-25 Lei Zheng <lzheng@chromium.org>
commit-queue@webkit.org [Fri, 25 Jun 2010 15:45:41 +0000 (15:45 +0000)]
2010-06-25  Lei Zheng  <lzheng@chromium.org>

        Reviewed by Dimitri Glazkov.

        Add a flag to the ResourceResponse for tracking if a request was fetched when
        Alternate-protocol is available.
        https://bugs.webkit.org/show_bug.cgi?id=41001

        No new tests. (This is just a setter and getter.)

        * platform/network/chromium/ResourceResponse.h:
        (WebCore::ResourceResponse::ResourceResponse):
        (WebCore::ResourceResponse::wasAlternateProtocolAvailable):
        (WebCore::ResourceResponse::setWasAlternateProtocolAvailable):
2010-06-25  Lei Zheng  <lzheng@chromium.org>

        Reviewed by Dimitri Glazkov.

        [Chromium] Add a flag to the ResourceResponse for tracking if a request was fetched
        when Alternate-Protocol is available.

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

        * public/WebURLResponse.h:
        * src/WebURLResponse.cpp:
        (WebKit::WebURLResponse::wasAlternateProtocolAvailable):
        (WebKit::WebURLResponse::setWasAlternateProtocolAvailable):

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

12 years ago2010-06-25 Lyon Chen <liachen@rim.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 15:29:39 +0000 (15:29 +0000)]
2010-06-25  Lyon Chen  <liachen@rim.com>

        Reviewed by Darin Adler.

        InspectorCSSStore.cpp is not surrounded with ENABLE(INSPECTOR)
        https://bugs.webkit.org/show_bug.cgi?id=41004

        Surround InspectorCSSStore.cpp code with ENABLE(INSPECTOR) so it will not
        break the build when INSPECTOR is disabled.

        * inspector/InspectorCSSStore.cpp:

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

12 years ago2010-06-25 No'am Rosenthal <noam.rosenthal@nokia.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 15:00:25 +0000 (15:00 +0000)]
2010-06-25  No'am Rosenthal  <noam.rosenthal@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] WebGL: missing file
        https://bugs.webkit.org/show_bug.cgi?id=40998

        Added a missing file to WebCore.pro

        No new tests; build fix

        * WebCore.pro:

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

12 years agoWindows build fix
aroben@apple.com [Fri, 25 Jun 2010 14:16:46 +0000 (14:16 +0000)]
Windows build fix

* WebCore.vcproj/WebCore.vcproj: Added a missing </File> tag.

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

12 years ago2010-06-25 Alex Milowski <alex@milowski.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 13:55:06 +0000 (13:55 +0000)]
2010-06-25  Alex Milowski  <alex@milowski.com>

        Reviewed by Kenneth Rohde Christiansen.

        Added a test for row alignment, adjusted tests to better demonstrate their
        respective area of MathML, and updated the output for all the tests due to
        the change in vertical alignment of all MathML constructs.

        * mathml/presentation/mo.xhtml:
        * mathml/presentation/row-alignment.xhtml: Added.
        * mathml/presentation/row.xhtml:
        * mathml/presentation/sub.xhtml:
        * platform/mac/mathml/presentation/fractions-expected.checksum:
        * platform/mac/mathml/presentation/fractions-expected.png:
        * platform/mac/mathml/presentation/fractions-expected.txt:
        * platform/mac/mathml/presentation/fractions-vertical-alignment-expected.checksum:
        * platform/mac/mathml/presentation/fractions-vertical-alignment-expected.png:
        * platform/mac/mathml/presentation/fractions-vertical-alignment-expected.txt:
        * platform/mac/mathml/presentation/mo-expected.checksum:
        * platform/mac/mathml/presentation/mo-expected.png:
        * platform/mac/mathml/presentation/mo-expected.txt:
        * platform/mac/mathml/presentation/over-expected.checksum:
        * platform/mac/mathml/presentation/over-expected.png:
        * platform/mac/mathml/presentation/over-expected.txt:
        * platform/mac/mathml/presentation/roots-expected.checksum:
        * platform/mac/mathml/presentation/roots-expected.png:
        * platform/mac/mathml/presentation/roots-expected.txt:
        * platform/mac/mathml/presentation/row-alignment-expected.checksum: Added.
        * platform/mac/mathml/presentation/row-alignment-expected.png: Added.
        * platform/mac/mathml/presentation/row-alignment-expected.txt: Added.
        * platform/mac/mathml/presentation/row-expected.checksum:
        * platform/mac/mathml/presentation/row-expected.png:
        * platform/mac/mathml/presentation/row-expected.txt:
        * platform/mac/mathml/presentation/sub-expected.checksum:
        * platform/mac/mathml/presentation/sub-expected.png:
        * platform/mac/mathml/presentation/sub-expected.txt:
        * platform/mac/mathml/presentation/subsup-expected.checksum:
        * platform/mac/mathml/presentation/subsup-expected.png:
        * platform/mac/mathml/presentation/subsup-expected.txt:
        * platform/mac/mathml/presentation/sup-expected.checksum:
        * platform/mac/mathml/presentation/sup-expected.png:
        * platform/mac/mathml/presentation/sup-expected.txt:
        * platform/mac/mathml/presentation/tables-expected.checksum:
        * platform/mac/mathml/presentation/tables-expected.png:
        * platform/mac/mathml/presentation/tables-expected.txt:
        * platform/mac/mathml/presentation/under-expected.checksum:
        * platform/mac/mathml/presentation/under-expected.png:
        * platform/mac/mathml/presentation/under-expected.txt:
        * platform/mac/mathml/presentation/underover-expected.checksum:
        * platform/mac/mathml/presentation/underover-expected.png:
        * platform/mac/mathml/presentation/underover-expected.txt:
2010-06-25  Alex Milowski  <alex@milowski.com>

        Reviewed by Kenneth Rohde Christiansen.

        This patch changes the vertical alignment to rely upon baseline
        alignment for all MathML rendering.  This fixes a number of layout
        issues and the implementation is much more clean.

        Also, this patch adds a horizontal green line in the debug layout
        so you can see the top padding of any RenderMathMLBlock instance.

        Test: mathml/presentation/row-alignment.xhtml

        * css/mathml.css:
        * mathml/RenderMathMLBlock.cpp:
        * mathml/RenderMathMLFraction.cpp:
        * mathml/RenderMathMLFraction.h:
        * mathml/RenderMathMLOperator.cpp:
        * mathml/RenderMathMLOperator.h:
        * mathml/RenderMathMLRoot.cpp:
        * mathml/RenderMathMLRow.cpp:
        * mathml/RenderMathMLRow.h:
        * mathml/RenderMathMLSquareRoot.cpp:
        * mathml/RenderMathMLSubSup.cpp:
        * mathml/RenderMathMLUnderOver.cpp:

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

12 years ago2010-06-25 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 13:39:17 +0000 (13:39 +0000)]
2010-06-25  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>

        Reviewed by Simon Hausmann.

        New QtScript API; setPrototype() and prototype().

        This patch implements QScriptValue's prototype accessors.

        [Qt] QScriptValue should have accessors to a prototype.
        https://bugs.webkit.org/show_bug.cgi?id=39356

        * qt/api/qscriptvalue.cpp:
        (QScriptValue::prototype):
        (QScriptValue::setPrototype):
        * qt/api/qscriptvalue.h:
        * qt/api/qscriptvalue_p.h:
        (QScriptValuePrivate::prototype):
        (QScriptValuePrivate::setPrototype):
        * qt/tests/qscriptvalue/tst_qscriptvalue.cpp:
        (tst_QScriptValue::getSetPrototype):
        * qt/tests/qscriptvalue/tst_qscriptvalue.h:

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

12 years ago2010-06-25 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Fri, 25 Jun 2010 13:32:18 +0000 (13:32 +0000)]
2010-06-25  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Can't see source when hitting debugger statement in evaled source
        https://bugs.webkit.org/show_bug.cgi?id=41058

        Test: inspector/debugger-pause-in-eval-script.html

        * bindings/js/ScriptDebugServer.cpp:
        (WebCore::ScriptDebugServer::sourceParsed): use lexical global object to figure out
        where the script is compiled. Otherwise scripts typed in Web Inspector console will
        be treated as ones evaluated in the context of Web Inspector and won't appear in the
        scripts list.
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::didParseSource): cache script sources for eval's too.

2010-06-25  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Can't see source when hitting debugger statement in evaled source
        https://bugs.webkit.org/show_bug.cgi?id=41058

        Test that debugger will stop at a debugger statement in code evaluated
        in Web Inspector console.

        * inspector/debugger-pause-in-eval-script-expected.txt: Added.
        * inspector/debugger-pause-in-eval-script.html: Added.

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

12 years ago2010-06-25 Lucas De Marchi <lucas.demarchi@profusion.mobi>
commit-queue@webkit.org [Fri, 25 Jun 2010 13:25:46 +0000 (13:25 +0000)]
2010-06-25  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Kenneth Rohde Christiansen.

        [EFL] Fix warnings about printf format
        When printing uint64_t the macro PRIu64 is needed in order to be
        portable across 32 and 64 bits. It was previously showing warning
        messages on 32-bits systems.
        https://bugs.webkit.org/show_bug.cgi?id=40965

        * efl/ewk/ewk_view.cpp:
        (ewk_view_exceeded_database_quota):

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

12 years ago2010-06-25 Lucas De Marchi <lucas.demarchi@profusion.mobi>
commit-queue@webkit.org [Fri, 25 Jun 2010 13:13:04 +0000 (13:13 +0000)]
2010-06-25  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Kenneth Rohde Christiansen.

        [EFL] Do not load error message for download and cancellation.
        When a download is made or a request is cancelled an error page should
        not be shown.
        https://bugs.webkit.org/show_bug.cgi?id=40956

        * efl/WebCoreSupport/FrameLoaderClientEfl.cpp:
        (WebCore::FrameLoaderClientEfl::dispatchDidFailLoading): return if it
        should not fallback.
        (WebCore::FrameLoaderClientEfl::dispatchDidFailLoad): return if it
        should not fallback.
        (WebCore::FrameLoaderClientEfl::interruptForPolicyChangeError): fix
        typo in related error message.
        (WebCore::FrameLoaderClientEfl::shouldFallBack): if user cancelled the
        request or the policy changed (for example, because the request is a
        download) then it should not fallback.

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

12 years ago2010-06-25 Michael Nordman <michaeln@google.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 12:59:43 +0000 (12:59 +0000)]
2010-06-25  Michael Nordman  <michaeln@google.com>

        Reviewed by Dumitru Daniliuc.

        Additional API to pass additional info needed for AppCache progress events.
        https://bugs.webkit.org/show_bug.cgi?id=37602

        Also, delete an obsolete method from the worker API.

        * public/WebApplicationCacheHostClient.h: define a new method
        * public/WebSharedWorker.h: remove an obsolte method
        * src/ApplicationCacheHostInternal.h: implement the new method
        (WebCore::ApplicationCacheHostInternal::notifyProgressEventListener):

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

12 years ago2010-06-25 Mikhail Naganov <mnaganov@chromium.org>
mnaganov@chromium.org [Fri, 25 Jun 2010 12:48:29 +0000 (12:48 +0000)]
2010-06-25  Mikhail Naganov  <mnaganov@chromium.org>

        Unreviewed, test expectation update.

        * platform/chromium-linux/svg/text/text-intro-05-t-expected.checksum:
        * platform/chromium-linux/svg/text/text-intro-05-t-expected.png:

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

12 years ago2010-06-25 Lucas De Marchi <lucas.demarchi@profusion.mobi>
commit-queue@webkit.org [Fri, 25 Jun 2010 12:41:45 +0000 (12:41 +0000)]
2010-06-25  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Kenneth Rohde Christiansen.

        [EFL] Use a descriptive string in FileChooser when multiple files can
        be selected.
        https://bugs.webkit.org/show_bug.cgi?id=40943

        EFL port has no tests yet, so no new tests.

        * platform/efl/FileChooserEfl.cpp:
        (WebCore::FileChooser::basenameForWidth):

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

12 years ago2010-06-25 Lucas De Marchi <lucas.demarchi@profusion.mobi>
commit-queue@webkit.org [Fri, 25 Jun 2010 12:28:44 +0000 (12:28 +0000)]
2010-06-25  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Kenneth Rohde Christiansen.

        [CMake] Add option to enable JIT.
        JIT is disabled by default, but now it's possible to enable it through
        an option to CMake: -DENABLE_JIT will enable it.
        https://bugs.webkit.org/show_bug.cgi?id=40936

        * cmake/OptionsEfl.cmake: add new -DENABLE_JIT option.
        * cmakeconfig.h.cmake: use new -DENABLE_JIT option.
2010-06-25  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Kenneth Rohde Christiansen.

        [CMake] Add option to enable JIT.
        JIT is disabled by default, but now it's possible to enable it through
        an option to CMake: -DENABLE_JIT will enable it.
        https://bugs.webkit.org/show_bug.cgi?id=40936

        * CMakeLists.txt: Add missing files and re-sort.

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

12 years ago2010-06-25 Lucas De Marchi <lucas.demarchi@profusion.mobi>
commit-queue@webkit.org [Fri, 25 Jun 2010 12:13:25 +0000 (12:13 +0000)]
2010-06-25  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Gustavo Noronha Silva.

        [CMake] Remove unused variable in EFL build system. It was previously
        being used to set the flags of each port but it was superseded by
        other flags.
        https://bugs.webkit.org/show_bug.cgi?id=40931

        * jsc/CMakeLists.txt:

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

12 years ago2010-06-25 Nathan Lawrence <nlawrence@apple.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 11:58:24 +0000 (11:58 +0000)]
2010-06-25  Nathan Lawrence  <nlawrence@apple.com>

        Reviewed by Geoffrey Garen.

        Aligning AssemblerBuffer to 128 bytes gives a 0.4% speedup on
        sunspider.

        * assembler/AssemblerBuffer.h:
        (JSC::AssemblerBuffer::AssemblerBuffer):

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

12 years ago2010-06-25 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Fri, 25 Jun 2010 11:54:14 +0000 (11:54 +0000)]
2010-06-25  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        SVG Text Highlighting not yet supported (in Safari)
        https://bugs.webkit.org/show_bug.cgi?id=41200

        Add text match marker highlighting support for SVG text - searching for SVG text in Safari now paints the nice yellow highlighting rect, and the
        white rectangles for all text matches. Behaves exactly like HTML text, but respecting SVGs per-character/per-chunk transformations,
        allowing to highlight textPaths, tspans with absolute per-character positions etc..

        Only manually testable, thus no new tests.

        * rendering/InlineBox.h: Expose calculateBoundaries() in non-SVG builds as well, now used by InlineTextBox too.
        * rendering/InlineTextBox.h: Add calculateBoundaries(), which will be used to refactor some code in RenderText, see below.
        (WebCore::InlineTextBox::calculateBoundaries): Just return a IntRect(x(), y(), width(), height()) here.
        (WebCore::RenderObject::isSVGInlineText):
        * rendering/RenderSVGInlineText.h:
        (WebCore::RenderSVGInlineText::isSVGInlineText): Return true for isSVGInlineText(), return false for isSVGText() (default in RenderObject.h)
        * rendering/RenderSVGRoot.cpp:
        (WebCore::RenderSVGRoot::paint): Only paint box decorations in PaintPhase(Child)BlockBackground, exit afterwards just like RenderBlock does.
                                         Otherwise the white text match marker rectangle gets drawn over the yellow highlight that Safari draws.
        * rendering/RenderSVGText.cpp:
        (WebCore::RenderSVGText::paint): Accept a new painting phase: PaintPhaseSelection, used by Safari when drawing the yellow highlight rect.
        * rendering/RenderText.cpp:
        (WebCore::RenderText::absoluteQuads): Use calculateBoundaries() instead of IntRect(x(), y(), width(), height()). SVG provides different boundaries here.
        (WebCore::RenderText::absoluteQuadsForRange): Ditto. This is the main change, leading to correct text highlight placement.
        * rendering/SVGInlineFlowBox.cpp: Add assertion that painting is not disabled, for consistency. Change paint phase assertion to include PaintPhaseSelection.
        (WebCore::SVGInlineFlowBox::paint):
        * rendering/SVGInlineTextBox.cpp:
        (WebCore::SVGInlineTextBox::selectionRectForTextChunkPart): Refactored from selectionRect(), to share code between selectionRect/computeTextMatchMarkerRect.
        (WebCore::SVGInlineTextBox::selectionRect): Use new helper function selectionRectForTextChunkPart().
        (WebCore::SVGInlineTextBox::paint): Ditto. Call new computeTextMatchMarkerRect() function.
        (WebCore::SVGInlineTextBox::computeTextMatchMarkerRect): Implemented similar to HTML, but respecting SVGs concept of text chunk parts.
        (WebCore::SVGInlineTextBox::paintText): In PaintPhaseSelection, only paint selected text, not anything before/after the selection start/end.
        (WebCore::SVGInlineTextBox::calculateBoundaries): Early exit, if m_chunkTransformation is identity.
        * rendering/SVGInlineTextBox.h: Added "bool paintSelectedTextOnly" to paintText() and add new computeTextMatchMarkerRect(RenderStyle*) function.
        * rendering/SVGRootInlineBox.cpp:
        (WebCore::SVGRootInlineBox::paint): Change paint phase assertion to include PaintPhaseSelection.

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

12 years ago2010-06-25 John Gregg <johnnyg@google.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 11:43:05 +0000 (11:43 +0000)]
2010-06-25  John Gregg  <johnnyg@google.com>

        Reviewed by Darin Fisher.

        Notification should expose ltr/rtl as TextDirection, not String
        https://bugs.webkit.org/show_bug.cgi?id=40871

        No new tests; existing test covers this, just renaming a method.

        * notifications/Notification.h:
        (WebCore::Notification::direction):
2010-06-25  John Gregg  <johnnyg@google.com>

        Reviewed by Darin Fisher.

        Notification should expose ltr/rtl as TextDirection, not String
        https://bugs.webkit.org/show_bug.cgi?id=40871

        * public/WebNotification.h:
        * src/WebNotification.cpp:
        (WebKit::WebNotification::direction):

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

12 years ago2010-06-25 Lucas De Marchi <lucas.demarchi@profusion.mobi>
commit-queue@webkit.org [Fri, 25 Jun 2010 11:28:03 +0000 (11:28 +0000)]
2010-06-25  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Kenneth Rohde Christiansen.

        [EFL] Implement runOpenPanel method. The interface with browser was
        already implemented. Now we are actually calling it.
        https://bugs.webkit.org/show_bug.cgi?id=40923

        * efl/WebCoreSupport/ChromeClientEfl.cpp:
        (WebCore::ChromeClientEfl::runOpenPanel): implement method.
        * efl/ewk/ewk_private.h: export to WebCoreSupport the needed method

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

12 years ago2010-06-25 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 11:07:10 +0000 (11:07 +0000)]
2010-06-25  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r61842.
        http://trac.webkit.org/changeset/61842
        https://bugs.webkit.org/show_bug.cgi?id=41208

        It broke Windows build (Requested by Ossy_ on #webkit).

        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops:
        * JavaScriptCore.vcproj/WTF/WTF.vcproj:
        * wtf/OwnPtrCommon.h:
        * wtf/brew/OwnPtrBrew.h: Removed.
        * wtf/win/OwnPtrWin.h: Removed.
2010-06-25  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r61842.
        http://trac.webkit.org/changeset/61842
        https://bugs.webkit.org/show_bug.cgi?id=41208

        It broke Windows build (Requested by Ossy_ on #webkit).

        * ForwardingHeaders/wtf/win/OwnPtrWin.h: Removed.

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

12 years ago2010-06-25 Patrick Gansterer <paroga@paroga.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 10:54:08 +0000 (10:54 +0000)]
2010-06-25  Patrick Gansterer  <paroga@paroga.com>

        Reviewed by Darin Adler.

        Remove unneeded whitespace from svgtags.in.
        https://bugs.webkit.org/show_bug.cgi?id=40912

        make_names.pl throws an error at non-empty lines
        when using cl.exe as preprocessor.

        * svg/svgtags.in:

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

12 years ago2010-06-25 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 10:16:55 +0000 (10:16 +0000)]
2010-06-25  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r61833.
        http://trac.webkit.org/changeset/61833
        https://bugs.webkit.org/show_bug.cgi?id=41205

        It broke Leopard and GTK (Requested by Ossy_ on #webkit).

        * runtime/RegExp.cpp:
        (JSC::RegExp::RegExp):
        (JSC::RegExp::create):
        * runtime/RegExp.h:
        * runtime/RegExpCache.cpp:
        (JSC::RegExpCache::lookupOrCreate):
        (JSC::RegExpCache::create):
        * runtime/RegExpCache.h:

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

12 years ago2010-06-25 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Fri, 25 Jun 2010 10:03:33 +0000 (10:03 +0000)]
2010-06-25  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Rob Buis.

        Split up isSVGText() in isSVGText() / isSVGInlineText()
        https://bugs.webkit.org/show_bug.cgi?id=41204

        Introduce isSVGInlineText(), to provide a safe mechanism to differentiate between RenderSVGText / RenderSVGInlineText.
        No change in functionality, thus no new tests.

        * rendering/RenderBlockLineLayout.cpp:
        (WebCore::shouldPreserveNewline): s/isSVGText/isSVGInlineText/
        (WebCore::RenderBlock::findNextLineBreak): Ditto.
        * rendering/RenderObject.h:
        (WebCore::RenderObject::isSVGInlineText): Return false, by default.
        * rendering/RenderSVGInlineText.h:
        (WebCore::RenderSVGInlineText::isSVGInlineText): Return true here, don't return true anymore for isSVGText().
        * rendering/RenderText.cpp:
        (WebCore::RenderText::setTextInternal): s/isSVGText/isSVGInlineText/
        * rendering/RenderTreeAsText.cpp: Remove hack, now that we can properly differentiate between RenderSVGText / RenderSVGInlineText.
        (WebCore::write):

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

12 years ago2010-06-25 Rob Buis <rwlbuis@gmail.com>
rwlbuis@webkit.org [Fri, 25 Jun 2010 10:00:46 +0000 (10:00 +0000)]
2010-06-25  Rob Buis  <rwlbuis@gmail.com>

        Reviewed by Nikolas Zimmermann.

        Remove rgb part of test and update expected result.

        * platform/mac/svg/css/rect-system-color-expected.txt: Removed.
        * svg/css/rect-system-color-expected.txt: Added.
        * svg/css/rect-system-color.xhtml:

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

12 years ago2010-06-25 Kwang Yul Seo <skyul@company100.net>
commit-queue@webkit.org [Fri, 25 Jun 2010 09:48:38 +0000 (09:48 +0000)]
2010-06-25  Kwang Yul Seo  <skyul@company100.net>

        Reviewed by Adam Barth.

        Change OwnPtrCommon to include platform-specific headers
        https://bugs.webkit.org/show_bug.cgi?id=40279

        Adding new type to OwnPtrCommon needlessly causes all ports to do full rebuilds.
        Change OwnPtrCommon to include platform-specific headers to avoid all ports rebuilds.

        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops:
        * JavaScriptCore.vcproj/WTF/WTF.vcproj:
        * wtf/OwnPtrCommon.h:
        * wtf/brew/OwnPtrBrew.h: Added.
        * wtf/win/OwnPtrWin.h: Added.
2010-06-25  Kwang Yul Seo  <skyul@company100.net>

        Reviewed by Adam Barth.

        Change OwnPtrCommon to include platform-specific headers
        https://bugs.webkit.org/show_bug.cgi?id=40279

        Adding new type to OwnPtrCommon needlessly causes all ports to do full rebuilds.
        Change OwnPtrCommon to include platform-specific headers to avoid all ports rebuilds.

        * ForwardingHeaders/wtf/win: Added.
        * ForwardingHeaders/wtf/win/OwnPtrWin.h: Added.

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

12 years ago2010-06-25 Fran Diéguez <fran.dieguez@mabishu.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 09:24:25 +0000 (09:24 +0000)]
2010-06-25  Fran Diéguez  <fran.dieguez@mabishu.com>

        Reviewed by Darin Adler.

        Add Galician translation to webkitgtk
        https://bugs.webkit.org/show_bug.cgi?id=39547

        * gl.po: Added.

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

12 years ago2010-06-25 Rob Buis <rwlbuis@gmail.com>
rwlbuis@webkit.org [Fri, 25 Jun 2010 08:32:43 +0000 (08:32 +0000)]
2010-06-25  Rob Buis  <rwlbuis@gmail.com>

        Reviewed by Nikolas Zimmermann.

        Make test result mac specific.

        * platform/mac/svg/css/rect-system-color-expected.txt: Renamed from LayoutTests/svg/css/rect-system-color-expected.txt.

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

12 years ago2010-06-25 Patrick Gansterer <paroga@paroga.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 08:30:06 +0000 (08:30 +0000)]
2010-06-25  Patrick Gansterer  <paroga@paroga.com>

        Reviewed by Adam Barth.

        Implement TextCodecs for WinCE port.
        https://bugs.webkit.org/show_bug.cgi?id=32169
        Originally written by Yong Li <yong.li@torchmobile.com>

        * platform/graphics/FontCache.h:
        * platform/graphics/wince/FontCacheWince.cpp:
        (WebCore::FontCache::getMultiLanguageInterface):
        * platform/text/wince/TextCodecWinCE.cpp: Added.
        (WebCore::codePageCharsets):
        (WebCore::knownCharsets):
        (WebCore::supportedCharsets):
        (WebCore::languageManager):
        (WebCore::addCharset):
        (WebCore::LanguageManager::LanguageManager):
        (WebCore::getCodePage):
        (WebCore::newTextCodecWinCE):
        (WebCore::TextCodecWinCE::TextCodecWinCE):
        (WebCore::TextCodecWinCE::~TextCodecWinCE):
        (WebCore::TextCodecWinCE::registerBaseEncodingNames):
        (WebCore::TextCodecWinCE::registerBaseCodecs):
        (WebCore::TextCodecWinCE::registerExtendedEncodingNames):
        (WebCore::TextCodecWinCE::registerExtendedCodecs):
        (WebCore::getCodePageFlags):
        (WebCore::findFirstNonAsciiCharacter):
        (WebCore::decode):
        (WebCore::TextCodecWinCE::decode):
        (WebCore::TextCodecWinCE::encode):
        (WebCore::TextCodecWinCE::enumerateSupportedEncodings):
        * platform/text/wince/TextCodecWinCE.h: Added.

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

12 years ago2010-06-25 Patrick Gansterer <paroga@paroga.com>
commit-queue@webkit.org [Fri, 25 Jun 2010 07:30:12 +0000 (07:30 +0000)]
2010-06-25  Patrick Gansterer  <paroga@paroga.com>

        Reviewed by Darin Adler.

        Add the possibility for a head and footer section to create_jit_stubs.
        https://bugs.webkit.org/show_bug.cgi?id=36050

        * create_jit_stubs:

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

12 years ago2010-06-24 Rob Buis <rwlbuis@gmail.com>
rwlbuis@webkit.org [Fri, 25 Jun 2010 07:27:02 +0000 (07:27 +0000)]
2010-06-24  Rob Buis  <rwlbuis@gmail.com>

        Reviewed by Dirk Schulze.

        Bug 40880 - SVG properties fill and stroke do not accept system colors
        https://bugs.webkit.org/show_bug.cgi?id=40880

        Handle css system colors in fill and stroke properties.

        Test: svg/css/rect-system-color.xhtml

        * css/CSSParser.cpp: Remove comment and unneeded if condition
        (WebCore::CSSParser::parseValue):
        * css/SVGCSSParser.cpp: Allow css system colors
        (WebCore::CSSParser::parseSVGValue):

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

12 years ago2010-06-25 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Fri, 25 Jun 2010 07:21:52 +0000 (07:21 +0000)]
2010-06-25  Kent Tamura  <tkent@chromium.org>

        Unreviewed, test expectation update.

        * platform/chromium/test_expectations.txt: Add <meter> expectations

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

12 years ago2010-06-24 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 25 Jun 2010 07:09:36 +0000 (07:09 +0000)]
2010-06-24  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Make DocumentParser API private on subclasses to catch misuse bugs
        https://bugs.webkit.org/show_bug.cgi?id=41186

        This already found one bug:
        https://bugs.webkit.org/show_bug.cgi?id=41187

        Added a new HTMLDocumentParaser::parseDocumentFragment so that
        DocumentFragment.cpp does not need to use private methods.

        * dom/DocumentFragment.cpp:
        (WebCore::DocumentFragment::parseHTML):
        * dom/XMLDocumentParser.h:
        (WebCore::XMLDocumentParser::setIsXHTMLDocument):
        (WebCore::XMLDocumentParser::isXHTMLDocument):
        (WebCore::XMLDocumentParser::setIsXHTMLMPDocument):
        (WebCore::XMLDocumentParser::isXHTMLMPDocument):
        * html/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::parseDocumentFragment):
        * html/HTMLDocumentParser.h:
        * html/LegacyHTMLDocumentParser.cpp:
        (WebCore::LegacyHTMLDocumentParser::parseDocumentFragment):
        * html/LegacyHTMLDocumentParser.h:
        (WebCore::LegacyHTMLDocumentParser::forceSynchronous):
        (WebCore::LegacyHTMLDocumentParser::processingContentWrittenByScript):
        * html/LegacyHTMLTreeBuilder.cpp:
        (WebCore::LegacyHTMLTreeBuilder::reportErrorToConsole):
        * loader/DocumentWriter.cpp:
        (WebCore::DocumentWriter::replaceDocument):
        * loader/TextDocument.cpp:

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

12 years ago2010-05-28 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Fri, 25 Jun 2010 07:05:31 +0000 (07:05 +0000)]
2010-05-28  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Gustavo Noronha.

        [GStreamer] multiple video sink support
        https://bugs.webkit.org/show_bug.cgi?id=39472

        Playbin2 video-sink is now a bin containing a tee element capable
        of dispatching the buffers to multiple video sinks. By default
        only our webkit video sink is used. This will allow
        GStreamerGWorld to add support for autovideosink in the future.

        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
        (WebCore::MediaPlayerPrivateGStreamer::~MediaPlayerPrivateGStreamer):
        (WebCore::MediaPlayerPrivateGStreamer::naturalSize):
        (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:

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

12 years agoMerge RegExp constructor and RegExp::create methods into one.
zherczeg@webkit.org [Fri, 25 Jun 2010 06:33:48 +0000 (06:33 +0000)]
Merge RegExp constructor and RegExp::create methods into one.
Both of function are called with tree parameters and check whether
flags (the third param) is given or not.
Simplify hash lookups in RegExpCache::create with giving them an extra
iterator parameter.
https://bugs.webkit.org/show_bug.cgi?id=41055

Patch by Renata Hodovan <reni@inf.u-szeged.hu> on 2010-06-24
Reviewed by Geoffrey Garen.

* runtime/RegExp.cpp:
(JSC::RegExp::RegExp):
* runtime/RegExp.h:
* runtime/RegExpCache.cpp:
(JSC::RegExpCache::lookupOrCreate):
(JSC::RegExpCache::create):
* runtime/RegExpCache.h:

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

12 years agoUnreviewed. Build fix.
hclam@chromium.org [Fri, 25 Jun 2010 06:26:48 +0000 (06:26 +0000)]
Unreviewed. Build fix.

Update test expectations for chromium.

* platform/chromium-mac/fast/history/timed-refresh-in-cached-frame-expected.txt: Added.
* platform/chromium-win/fast/history/timed-refresh-in-cached-frame-expected.txt: Added.
* platform/chromium-win/fast/images/icon-decoding-expected.txt:

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

12 years ago2010-06-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 25 Jun 2010 06:22:08 +0000 (06:22 +0000)]
2010-06-24  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        commit-queue is taking too long to land patches because of red trees
        https://bugs.webkit.org/show_bug.cgi?id=41194

        Instead of checking for the tree to be green, we'll just spin hot
        trying to land patches.  This is probably too extreme in ignoring the
        tree, but I think we should try it for a while to see if we have
        trouble.  That will help us find the right balance.

        * Scripts/webkitpy/tool/commands/queues.py:
        * Scripts/webkitpy/tool/commands/queues_unittest.py:

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

12 years ago2010-06-24 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Fri, 25 Jun 2010 06:18:37 +0000 (06:18 +0000)]
2010-06-24  Oliver Hunt  <oliver@apple.com>

        Reviewed by Maciej Stachowiak.

        Incorrect use of '+ 4' and 0 instead of tag and payload offsets in JSValue32_64
        https://bugs.webkit.org/show_bug.cgi?id=41193

        I noticed a use of '+ 4' in some of the 32_64 code paths and realised there
        were a few places where endianness was being hardcoded.  This patch fixes
        the errors i could find through code inspection.

        * jit/JITOpcodes32_64.cpp:
        (JSC::JIT::emit_op_resolve_global):
        * jit/JITPropertyAccess32_64.cpp:
        (JSC::JIT::emit_op_get_by_val):
        (JSC::JIT::emit_op_put_by_val):
        (JSC::JIT::compileGetDirectOffset):
        (JSC::JIT::privateCompilePutByIdTransition):
        (JSC::JIT::patchGetByIdSelf):
        (JSC::JIT::patchPutByIdReplace):

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

12 years ago2010-06-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 25 Jun 2010 05:36:55 +0000 (05:36 +0000)]
2010-06-24  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Sketch out AfterHeadMode for tree builder
        https://bugs.webkit.org/show_bug.cgi?id=41191

        This mode is fairly similar to the others.  I needed to change some of
        the types around w.r.t. Nodes/Elements.

        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
        (WebCore::HTMLTreeBuilder::processToken):
        (WebCore::HTMLTreeBuilder::insertElement):
        * html/HTMLTreeBuilder.h:
        (WebCore::HTMLTreeBuilder::ElementStack::push):
        (WebCore::HTMLTreeBuilder::ElementStack::remove):

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

12 years ago2010-06-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 25 Jun 2010 05:35:14 +0000 (05:35 +0000)]
2010-06-24  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Sketch out InHeadNoscriptMode for tree builder
        https://bugs.webkit.org/show_bug.cgi?id=41189

        Lots of notImplemented() calls in this state.  I need to figure how to
        delegate handling of a token from one state to another.

        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::processToken):

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

12 years ago2010-06-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 25 Jun 2010 05:33:35 +0000 (05:33 +0000)]
2010-06-24  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Sketch out InHeadMode for tree builder
        https://bugs.webkit.org/show_bug.cgi?id=41184

        This state is relatively straightforward.  We introduce the stack of
        open elements to track that notion in the spec.  The old tree builder
        has a nice data structure for that, which we'll probably steal, but I'd
        like to see what the full API is first.

        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::processToken):
        (WebCore::HTMLTreeBuilder::insertCharacter):
        (WebCore::HTMLTreeBuilder::insertGenericRCDATAElement):
        (WebCore::HTMLTreeBuilder::insertGenericRawTextElement):
        (WebCore::HTMLTreeBuilder::insertScriptElement):
        * html/HTMLTreeBuilder.h:
        (WebCore::HTMLTreeBuilder::ElementStack::pop):
        (WebCore::HTMLTreeBuilder::ElementStack::top):

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

12 years ago2010-06-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 25 Jun 2010 05:31:48 +0000 (05:31 +0000)]
2010-06-24  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Sketch out BeforeHeadMode tree builder state
        https://bugs.webkit.org/show_bug.cgi?id=41183

        This makes procesToken recursive, which might not be the best idea.
        Also, we can now make fake AtomicHTMLTokens for use by the algorithm.

        * html/HTMLToken.h:
        (WebCore::AtomicHTMLToken::AtomicHTMLToken):
        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::processToken):
        (WebCore::HTMLTreeBuilder::insertElement):
        * html/HTMLTreeBuilder.h:

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

12 years ago2010-06-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 25 Jun 2010 05:24:43 +0000 (05:24 +0000)]
2010-06-24  Adam Barth  <abarth@webkit.org>

        Unreviewed.

        Update GTK expectations for fast/images/icon-decoding.html because
        Peter is lazy.  :)

        * platform/gtk/fast/images/icon-decoding-expected.txt:

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

12 years agoWindows build fix.
sfalken@apple.com [Fri, 25 Jun 2010 04:49:51 +0000 (04:49 +0000)]
Windows build fix.

* win/WebKit2.make: Added.
* win/WebKit2.submit.sln: Added.

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

12 years ago2010-06-24 Antonio Gomes <tonikitoo@webkit.org>
tonikitoo@webkit.org [Fri, 25 Jun 2010 04:45:09 +0000 (04:45 +0000)]
2010-06-24 Antonio Gomes <tonikitoo@webkit.org>

        Reviewed by Kenneth Christiansen.

        Spatial Navigation: refactor spatial-navigation-utils.js to support testing nested frames deeper than one level
        https://bugs.webkit.org/show_bug.cgi?id=41157

        As is today, we can not test focused nodes in inner frames nested more than one level
        deep, due to spatial-navigation-utils.js limitations. Patch addresses this problem:
        any time before any focus check, it retrieves the proper focused frame in any level deep.

        All spatial navigation test results changed output because the parameter passed in to
        shouldBeEqualToString (from js-pre-test.js) changed in spatial-navigation-utils.js.

        * fast/events/spatial-navigation/resources/spatial-navigation-utils.js:
        (initTest):
        (verifyAndAdvance):
        (findFocusedDocument):
        * fast/events/spatial-navigation/snav-clipped-overflowed-content-expected.txt:
        * fast/events/spatial-navigation/snav-div-scrollable-but-without-focusable-content-expected.txt:
        * fast/events/spatial-navigation/snav-fully-aligned-horizontally-expected.txt:
        * fast/events/spatial-navigation/snav-fully-aligned-vertically-expected.txt:
        * fast/events/spatial-navigation/snav-iframe-flattening-simple-expected.txt:
        * fast/events/spatial-navigation/snav-iframe-no-focusable-content-expected.txt:
        * fast/events/spatial-navigation/snav-iframe-no-scrollable-content-expected.txt:
        * fast/events/spatial-navigation/snav-iframe-recursive-offset-parent-expected.txt:
        * fast/events/spatial-navigation/snav-iframe-with-offscreen-focusable-element-expected.txt:
        * fast/events/spatial-navigation/snav-offscreen-content-expected.txt:
        * fast/events/spatial-navigation/snav-only-clipped-overflow-content-expected.txt:
        * fast/events/spatial-navigation/snav-simple-content-overflow-expected.txt:
        * fast/events/spatial-navigation/snav-table-traversal-expected.txt:
        * fast/events/spatial-navigation/snav-tiny-table-traversal-expected.txt:
        * fast/events/spatial-navigation/snav-unit-overflow-and-scroll-in-direction-expected.txt:

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

12 years ago2010-06-22 Antonio Gomes <tonikitoo@webkit.org>
tonikitoo@webkit.org [Fri, 25 Jun 2010 04:30:59 +0000 (04:30 +0000)]
2010-06-22 Antonio Gomes <tonikitoo@webkit.org>

        Reviewed by David Hyatt.

        Add a NodeList-derivated wrapper class for a ListHashSet.
        https://bugs.webkit.org/show_bug.cgi?id=41081

        StaticHashSetList will work as a wrapper to ListHashSet objects that are
        aimed to be exposed to the DOM.

        As a use case, the rect based HitTest (bug 40197) will store the retrieved nodes
        in a ListHashSet. It is going to be exposed to the DOM through are nodesFromRect
        of Document returning a NodeList (i.e. StatisHashSetList) wrapping a ListHashSet.

        No new tests.

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

12 years agoBuild fix
oliver@apple.com [Fri, 25 Jun 2010 03:18:45 +0000 (03:18 +0000)]
Build fix

Temporarily get the tiger bot working again by disabling the
new JS parser.  GCC on tiger is miscompiling the parser and
I don't have access to a tiger machine right now.

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

12 years ago2010-06-24 Cris Neckar <cdn@chromium.org>
jschuh@chromium.org [Fri, 25 Jun 2010 03:06:48 +0000 (03:06 +0000)]
2010-06-24  Cris Neckar  <cdn@chromium.org>

        Reviewed by Darin Fisher.

        [Chromium] Out of bounds write in WebCore::PNGImageDecoder::rowAvailable
        https://bugs.webkit.org/show_bug.cgi?id=40798

        Catches error in row callback for libPNG when extra rows are returned.

        Test: fast/images/png-extra-row-crash.html

        * platform/image-decoders/png/PNGImageDecoder.cpp:
        (WebCore::PNGImageDecoder::rowAvailable):
2010-06-24  Cris Neckar  <cdn@chromium.org>

        Reviewed by Darin Fisher.

        [Chromium] Out of bounds write in WebCore::PNGImageDecoder::rowAvailable
        https://bugs.webkit.org/show_bug.cgi?id=40798

        Tests a PNG with an extra row.

        * fast/images/png-extra-row-crash-expected.txt: Added.
        * fast/images/png-extra-row-crash.html: Added.
        * fast/images/resources/png-extra-row-crash.png: Added.

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

12 years ago2010-06-24 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 25 Jun 2010 01:34:35 +0000 (01:34 +0000)]
2010-06-24  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Clean up and document DocumentWriter::replaceDocument code path
        https://bugs.webkit.org/show_bug.cgi?id=41182

        No functional changes, thus no tests.

        * loader/DocumentWriter.cpp:
        (WebCore::DocumentWriter::replaceDocument):
         - Remove comment which could be misleading.
2010-06-24  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Clean up and document DocumentWriter::replaceDocument code path
        https://bugs.webkit.org/show_bug.cgi?id=41182

        * src/WebFrameImpl.cpp:
        (WebKit::WebFrameImpl::loadJavaScriptURL):
         - Make Chromium use DocumentWriter like it should.

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

12 years ago2010-06-24 James Robinson <jamesr@chromium.org>
jamesr@google.com [Fri, 25 Jun 2010 01:28:38 +0000 (01:28 +0000)]
2010-06-24  James Robinson  <jamesr@chromium.org>

        Unreviewed. Add mac pixel baselines for fast/images/icon-decoding and fix EOLs for text baseline.

        * platform/mac/fast/images/icon-decoding-expected.checksum:
        * platform/mac/fast/images/icon-decoding-expected.png:
        * platform/mac/fast/images/icon-decoding-expected.txt:

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

12 years agoNot reviewed, updating test baseline for changed test.
pkasting@chromium.org [Fri, 25 Jun 2010 01:08:54 +0000 (01:08 +0000)]
Not reviewed, updating test baseline for changed test.

Update mac text baseline.  Don't have a way to get an updated pixel diff
at the moment.
https://bugs.webkit.org/show_bug.cgi?id=41107

* platform/mac/fast/images/icon-decoding-expected.txt:

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

12 years agoWebCore: Implementing DatabaseSync::openDatabaseSync().
dumi@chromium.org [Fri, 25 Jun 2010 01:00:59 +0000 (01:00 +0000)]
WebCore: Implementing DatabaseSync::openDatabaseSync().
https://bugs.webkit.org/show_bug.cgi?id=40607

Reviewed by Adam Barth.

Moved some common code from Database to AbstractDatabase. Made
performOpenAndVerify() virtual, since DatabaseSync doesn't need to
interact with DatabaseThread. Removed the m_creationCallback
field, since it's only needed in the openDatabase{Sync} methods.

* storage/AbstractDatabase.cpp:
(WebCore::retrieveTextResultFromDatabase):
(WebCore::setTextValueInDatabase):
(WebCore::guidMutex):
(WebCore::guidToVersionMap):
(WebCore::updateGuidVersionMap):
(WebCore::guidToDatabaseMap):
(WebCore::guidForOriginAndName):
(WebCore::AbstractDatabase::databaseInfoTableName):
(WebCore::AbstractDatabase::AbstractDatabase):
(WebCore::AbstractDatabase::closeDatabase):
(WebCore::AbstractDatabase::version):
(WebCore::AbstractDatabase::performOpenAndVerify):
(WebCore::AbstractDatabase::scriptExecutionContext):
(WebCore::AbstractDatabase::securityOrigin):
(WebCore::AbstractDatabase::stringIdentifier):
(WebCore::AbstractDatabase::displayName):
(WebCore::AbstractDatabase::estimatedSize):
(WebCore::AbstractDatabase::fileName):
(WebCore::AbstractDatabase::databaseVersionKey):
(WebCore::AbstractDatabase::getVersionFromDatabase):
(WebCore::AbstractDatabase::setVersionInDatabase):
(WebCore::AbstractDatabase::versionMatchesExpected):
(WebCore::AbstractDatabase::setExpectedVersion):
(WebCore::AbstractDatabase::disableAuthorizer):
(WebCore::AbstractDatabase::enableAuthorizer):
(WebCore::AbstractDatabase::setAuthorizerReadOnly):
(WebCore::AbstractDatabase::lastActionChangedDatabase):
(WebCore::AbstractDatabase::lastActionWasInsert):
(WebCore::AbstractDatabase::resetDeletes):
(WebCore::AbstractDatabase::hadDeletes):
(WebCore::AbstractDatabase::resetAuthorizer):
* storage/AbstractDatabase.h:
(WebCore::AbstractDatabase::opened):
(WebCore::AbstractDatabase::isNew):
(WebCore::AbstractDatabase::databaseDebugName):
* storage/Database.cpp:
(WebCore::DatabaseCreationCallbackTask::create):
(WebCore::DatabaseCreationCallbackTask::performTask):
(WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask):
(WebCore::Database::openDatabase):
(WebCore::Database::Database):
(WebCore::Database::version):
(WebCore::Database::openAndVerifyVersion):
(WebCore::Database::close):
(WebCore::Database::stop):
(WebCore::Database::performOpenAndVerify):
* storage/Database.h:
(WebCore::Database::sqliteDatabase):
* storage/DatabaseAuthorizer.cpp:
(WebCore::DatabaseAuthorizer::create):
(WebCore::DatabaseAuthorizer::DatabaseAuthorizer):
(WebCore::DatabaseAuthorizer::denyBasedOnTableName):
* storage/DatabaseAuthorizer.h:
* storage/DatabaseSync.cpp:
(WebCore::DatabaseSync::openDatabaseSync):
(WebCore::DatabaseSync::DatabaseSync):
(WebCore::DatabaseSync::changeVersion):
(WebCore::DatabaseSync::transaction):
(WebCore::DatabaseSync::markAsDeletedAndClose):
(WebCore::CloseSyncDatabaseOnContextThreadTask::create):
(WebCore::CloseSyncDatabaseOnContextThreadTask::performTask):
(WebCore::CloseSyncDatabaseOnContextThreadTask::CloseSyncDatabaseOnContextThreadTask):
(WebCore::DatabaseSync::closeImmediately):
* storage/DatabaseSync.h:
* storage/DatabaseTask.cpp:
(WebCore::DatabaseOpenTask::DatabaseOpenTask):
(WebCore::DatabaseOpenTask::doPerformTask):
* storage/DatabaseTask.h:
(WebCore::DatabaseOpenTask::create):

LayoutTests: Uncomment all test cases in open-database-sync-inputs.
https://bugs.webkit.org/show_bug.cgi?id=40607

Reviewed by Adam Barth.

* fast/workers/storage/open-database-sync-inputs-expected.txt:
* fast/workers/storage/resources/open-database-sync-inputs.js:
(catch):

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

12 years ago2010-06-24 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Fri, 25 Jun 2010 00:50:15 +0000 (00:50 +0000)]
2010-06-24  Martin Robinson  <mrobinson@igalia.com>

        Unreviewed.

        Adding GTK+-specific results for these tests.

        * platform/gtk/Skipped: Unskipping tests that now have baselines.
        * platform/gtk/fast/block/positioning/relative-positioned-inline-container-expected.txt: Added.
        * platform/gtk/fast/repaint/inline-relative-positioned-expected.txt: Added.

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

12 years ago2010-06-24 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Fri, 25 Jun 2010 00:29:33 +0000 (00:29 +0000)]
2010-06-24  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Cannot change the selection via the keyboard
        https://bugs.webkit.org/show_bug.cgi?id=41162

        * platform/gtk/Skipped: Unskip a test which is now passing.
2010-06-24  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Cannot change the selection via the keyboard
        https://bugs.webkit.org/show_bug.cgi?id=41162

        Fix issue where the selection could not be extended via the keyboard by
        adjusting the logic guarding against inserting text in non-editable nodes.

        * WebCoreSupport/EditorClientGtk.cpp:
        (WebKit::EditorClient::handleKeyboardEvent):
        Allow editor commands that do not insert text in non-editable nodes. This
        fixes keyboard selection extension in non-editable nodes. Move the existing
        check to after the execution of any editor commands.

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

12 years agoWindows build fix.
sfalken@apple.com [Fri, 25 Jun 2010 00:24:07 +0000 (00:24 +0000)]
Windows build fix.

WebCore:

* platform/network/cf/AuthenticationCF.h:

WebKit2:

* win/WebKit2WebProcess.vcproj:

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

12 years ago2010-06-24 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Fri, 25 Jun 2010 00:22:58 +0000 (00:22 +0000)]
2010-06-24  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Clean up the use of gdk_window_get_root_coords in EventSender
        https://bugs.webkit.org/show_bug.cgi?id=40843

        Define the version for old GTK+s in a way that is forward-compatible
        and clean up the logic a bit.

        * DumpRenderTree/gtk/EventSender.cpp:
        (gdk_window_get_root_coords): Renamed and cleaned up.
        (prepareMouseButtonEvent): Remove #ifdefs.
        (mouseMoveToCallback): Remove #ifdefs.

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

12 years ago2010-06-24 Tony Chang <tony@chromium.org>
tony@chromium.org [Fri, 25 Jun 2010 00:22:55 +0000 (00:22 +0000)]
2010-06-24  Tony Chang  <tony@chromium.org>

        Not reviewed, just updating a comment.

        include a bug link in skipped mac test
        https://bugs.webkit.org/show_bug.cgi?id=41185

        * platform/mac/Skipped: Updating a comment to include a bug link.

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

12 years agoAdd WKBundlePageRenderTreeExternalRepresentation for WebKitTestRunner.
weinig@apple.com [Fri, 25 Jun 2010 00:11:38 +0000 (00:11 +0000)]
Add WKBundlePageRenderTreeExternalRepresentation for WebKitTestRunner.

Reviewed by Brady Eidson.

* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageRenderTreeExternalRepresentation):
* WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h: Added.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::renderTreeExternalRepresentation):
(WebKit::WebPage::getRenderTreeExternalRepresentation):
* WebProcess/WebPage/WebPage.h:
* mac/WebKit2.exp:
* win/WebKit2.vcproj:

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

12 years ago2010-06-24 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Fri, 25 Jun 2010 00:05:07 +0000 (00:05 +0000)]
2010-06-24  Martin Robinson  <mrobinson@igalia.com>

        Unreviewed. Build fix.

        Fix the build after r61798.

        * platform/gtk/PasteboardHelper.cpp:
        (WebCore::PasteboardHelper::getClipboardContents):

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

12 years ago Reviewed by Brady Eidson.
ap@apple.com [Thu, 24 Jun 2010 23:58:36 +0000 (23:58 +0000)]
    Reviewed by Brady Eidson.

        https://bugs.webkit.org/show_bug.cgi?id=41178
        Timed refresh in subframes isn't stopped when going into b/f cache

        Test: fast/history/timed-refresh-in-cached-frame.html

        * history/CachedFrame.cpp: (WebCore::CachedFrame::CachedFrame): Top frame's stopLoading()
        won't help cached subframes; stop loading from here.

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::stopLoading): Don't stop loading in child frames. This didn't work
        for cached frames due to frame tree having been already desonstructed, and it's not necessary
        in non-cached case because stopLoading() will be called for subframes via
        FrameLoader::detachFromParent() and closeURL().
        (WebCore::FrameLoader::pageHidden): This was a second code path that dispatched pagehide
        event - it's no longer needed, because everything goes through FrameLoader::stopLoading().
        (WebCore::FrameLoader::commitProvisionalLoad): Don't call pageHidden(), the code for adding
        frame to b/f cache will do everything.

        * loader/FrameLoader.h: Removed pageHidden().

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

12 years agoNot reviewed.
pkasting@chromium.org [Thu, 24 Jun 2010 23:57:46 +0000 (23:57 +0000)]
Not reviewed.

Fix earlier test change so it actually tests anything.
https://bugs.webkit.org/show_bug.cgi?id=41107

* fast/images/icon-decoding.html:

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

12 years ago2010-06-24 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 24 Jun 2010 23:41:25 +0000 (23:41 +0000)]
2010-06-24  Eric Seidel  <eric@webkit.org>

        Unreviewed. Fix the build.  I am a bad man.

        * loader/DocumentWriter.cpp:
        (WebCore::DocumentWriter::replaceDocument):

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

12 years ago2010-06-24 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 24 Jun 2010 23:34:32 +0000 (23:34 +0000)]
2010-06-24  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        Build fix for building against GTK+ 3.x.

        No new tests as functionality has not changed.

        * platform/gtk/GtkVersioning.h:
        * platform/gtk/PasteboardHelper.cpp:
        (WebCore::PasteboardHelper::getClipboardContents):
        (WebCore::PasteboardHelper::fillSelectionData):

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

12 years ago2010-06-24 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 24 Jun 2010 23:28:05 +0000 (23:28 +0000)]
2010-06-24  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Clean up and document DocumentWriter::replaceDocument code path
        https://bugs.webkit.org/show_bug.cgi?id=41182

        No functional change, thus no test.

        * loader/DocumentWriter.cpp:
        (WebCore::DocumentWriter::replaceDocument):
        * loader/DocumentWriter.h:

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

12 years ago2010-06-24 Jer Noble <jer.noble@apple.com>
jer.noble@apple.com [Thu, 24 Jun 2010 23:25:16 +0000 (23:25 +0000)]
2010-06-24  Jer Noble  <jer.noble@apple.com>

        Reviewed by Eric Carlson.

        Full-screened content doesn't keep the display on: Safari not grabbing a power assertion?
        https://bugs.webkit.org/show_bug.cgi?id=40939
        rdar://problem/7996172

        Add IOKit.framework to the list of linked frameworks.

        * WebKit.xcodeproj/project.pbxproj:
2010-06-24  Jer Noble  <jer.noble@apple.com>

        Reviewed by Eric Carlson.

        Full-screened content doesn't keep the display on: Safari not grabbing a power assertion?
        https://bugs.webkit.org/show_bug.cgi?id=40939
        rdar://problem/7996172

        Take a IOKit power assertion when playing video in fullscreen mode.  Release the
        assertion when paused in fullscreen mode, and when exiting fullscreen mode.

        * WebView/WebVideoFullscreenController.h:
        * WebView/WebVideoFullscreenController.mm:
        (-[WebVideoFullscreenController windowDidExitFullscreen]): Call updatePowerAssertions.
        (-[WebVideoFullscreenController windowDidEnterFullscreen]): Call updatePowerAssertions.
        (-[WebVideoFullscreenController _disableIdleDisplaySleep]):
        (-[WebVideoFullscreenController _enableIdleDisplaySleep]):
        (-[WebVideoFullscreenController _disableIdleSystemSleep]):
        (-[WebVideoFullscreenController _enableIdleSystemSleep]):
        (-[WebVideoFullscreenController updatePowerAssertions]): Call _(enable|disable)Idle(System|Display)sleep depending on current playback rate and fullscreen status.
        (-[WebVideoFullscreenController rateChanged:]): Call updatePowerAssertions.
2010-06-24  Jer Noble  <jer.noble@apple.com>

        Reviewed by Eric Carlson.

        Full-screened content doesn't keep the display on: Safari not grabbing a power assertion?
        https://bugs.webkit.org/show_bug.cgi?id=40939
        rdar://problem/7996172

        Export -[MediaElement playbackRate];

        * WebCore.Video.exp:

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

12 years ago2010-06-21 Evan Martin <evan@chromium.org>
evan@chromium.org [Thu, 24 Jun 2010 23:12:25 +0000 (23:12 +0000)]
2010-06-21  Evan Martin  <evan@chromium.org>

        Reviewed by Adam Barth.

        [chromium] overlapping characters in complex text
        https://bugs.webkit.org/show_bug.cgi?id=40966

        New baselines, now that bug is fixed (e.g. the /M at the end was previously overlapping).

        * platform/chromium-linux/fast/text/international/thai-baht-space-expected.checksum:
        * platform/chromium-linux/fast/text/international/thai-baht-space-expected.png:
        * platform/chromium-linux/fast/text/atsui-spacing-features-expected.checksum:
        * platform/chromium-linux/fast/text/atsui-spacing-features-expected.png:
2010-06-21  Evan Martin  <evan@chromium.org>

        Reviewed by Adam Barth.

        [chromium] overlapping characters in complex text
        https://bugs.webkit.org/show_bug.cgi?id=40966

        We need to clear all the buffers we hand to Harfbuzz before we use them.
        While I'm here, refactor the code slightly to make its behavior more
        clear and correct (previously, we would repeatedly double our buffer
        size when we could have just sized it correctly on the second try).

        * platform/graphics/chromium/FontLinux.cpp:
        (WebCore::TextRunWalker::TextRunWalker):
        (WebCore::TextRunWalker::nextScriptRun):
        (WebCore::TextRunWalker::createGlyphArrays):
        (WebCore::TextRunWalker::shapeGlyphs):

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

12 years agoUpdated fix for <rdar://problem/8093680> "Paste and Match Style" should fire paste...
adele@apple.com [Thu, 24 Jun 2010 22:49:41 +0000 (22:49 +0000)]
Updated fix for <rdar://problem/8093680> "Paste and Match Style" should fire paste events
https://bugs.webkit.org/show_bug.cgi?id=41085

Reviewed by Sam Weinig.

WebCore:

Covered by existing tests.

* editing/EditorCommand.cpp:
(WebCore::executePasteAsPlainText): Added.
(WebCore::createCommandMap): Added pasteAsPlainText command.

WebKit/mac:

* WebView/WebHTMLView.mm: Use the WebCore command system for the pasteAsPlainText selector.
Also remove internal methods that no one is using.

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

12 years ago2010-06-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 24 Jun 2010 22:39:59 +0000 (22:39 +0000)]
2010-06-24  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Sketch out BeforeHTMLMode state
        https://bugs.webkit.org/show_bug.cgi?id=41133

        In this patch, we switch the TreeBuidler over to using AtomicHTMLTokens
        and sketch out another state.  These states don't actually do anything
        yet, I'm still just getting the structure of the spec into the code so
        we can implement the details incrementally.

        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::constructTreeFromToken):
        (WebCore::HTMLTreeBuilder::processToken):
        (WebCore::HTMLTreeBuilder::insertDoctype):
        (WebCore::HTMLTreeBuilder::insertComment):
        * html/HTMLTreeBuilder.h:
        (WebCore::HTMLTreeBuilder::parseError):

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

12 years ago2010-06-24 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Thu, 24 Jun 2010 22:31:58 +0000 (22:31 +0000)]
2010-06-24  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Eric Seidel.

        Fix NewRunWebKitTests to work on Windows.
        https://bugs.webkit.org/show_bug.cgi?id=41180

        * BuildSlaveSupport/build.webkit.org-config/master.cfg: Added "perl" as first arguments,
            because Windows fails to understand what we're asking of it.

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

12 years ago2010-06-24 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 24 Jun 2010 22:07:46 +0000 (22:07 +0000)]
2010-06-24  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Add AtomicHTMLToken
        https://bugs.webkit.org/show_bug.cgi?id=41131

        We need an atomized version of the token for use in the tree builder.
        Eventually, we should make the existing HTMLToken an internal detail of
        the HTMLTokenizer.  This new AtomicHTMLToken should be also be more
        easily cached between the preload scanner and the tree builder.

        * html/HTMLToken.h:
        (WebCore::AtomicHTMLToken::AtomicHTMLToken):
        (WebCore::AtomicHTMLToken::type):
        (WebCore::AtomicHTMLToken::name):
        (WebCore::AtomicHTMLToken::selfClosing):
        (WebCore::AtomicHTMLToken::attributes):
        (WebCore::AtomicHTMLToken::characters):
        (WebCore::AtomicHTMLToken::comment):
        (WebCore::AtomicHTMLToken::publicIdentifier):
        (WebCore::AtomicHTMLToken::systemIdentifier):
        (WebCore::AtomicHTMLToken::forceQuirks):
        * html/HTMLTreeBuilder.cpp:
        (WebCore::convertToOldStyle):
        (WebCore::HTMLTreeBuilder::passTokenToLegacyParser):

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

12 years ago2010-06-24 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 24 Jun 2010 22:07:38 +0000 (22:07 +0000)]
2010-06-24  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] The url passed to the WebView during layout tests is invalid
        https://bugs.webkit.org/show_bug.cgi?id=40832

        Set the test URL to the full real file URL and do a small cleanup.
        Previously a URL like file://relative/path/to/test.html was passed
        to the WebView. This malformed file URL would be returned by
        webkit_web_view_get_url and webkit_web_frame_get_url.

        * DumpRenderTree/gtk/DumpRenderTree.cpp:
        (shouldLogFrameLoadDelegates): Change to take a const string& as the argument.
        (shouldOpenWebInspector): Change to take a const string& as the argument.
        (shouldEnableDeveloperExtras): Change to take a const string& as the argument.
        (runTest): Pass the full file:// URL to the view. Remove the superfluous url variable.

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

12 years ago2010-06-24 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 24 Jun 2010 22:03:28 +0000 (22:03 +0000)]
2010-06-24  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Add RawDataDocumentParser to get rid of a bunch of copy/paste code in DocumentParser subclasses
        https://bugs.webkit.org/show_bug.cgi?id=41136

        I think this is likely far from the final design,
        however this is almost entirely minus lines which is a
        good thing.

        The original authors of these DocumentParser subclasses
        seem to have just copied the files whole, as they all
        had the same includes, many of which were unnecessary for
        some of the files.

        I think eventually the FrameLoader will call a virtual
        DocumentParser::appendData which will in turn decode
        and call another write/appendData call.  In the case
        of these RawDataDocumentParsers, they will just override
        the low-level appendData call instead of needing
        DocumentWriter to have a special if based on
        DocumentParser::wantsRawData.

        No functional change, thus no tests.

        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.xcodeproj/project.pbxproj:
        * dom/DocumentParser.h:
        (WebCore::DocumentParser::writeRawData):
        * loader/ImageDocument.cpp:
        (WebCore::ImageDocumentParser::ImageDocumentParser):
        (WebCore::ImageDocumentParser::finish):
        * loader/MediaDocument.cpp:
        (WebCore::MediaDocumentParser::MediaDocumentParser):
        (WebCore::MediaDocumentParser::writeRawData):
        * loader/PluginDocument.cpp:
        (WebCore::PluginDocumentParser::PluginDocumentParser):
        * loader/SinkDocument.cpp:
        (WebCore::SinkDocument::createParser):

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

12 years agoWebCore: REGRESSION (r61619): Memory corruption in open-source ICO decoder
pkasting@chromium.org [Thu, 24 Jun 2010 22:01:32 +0000 (22:01 +0000)]
WebCore: REGRESSION (r61619): Memory corruption in open-source ICO decoder
https://bugs.webkit.org/show_bug.cgi?id=41107

Reviewed by Adam Barth.

* platform/image-decoders/bmp/BMPImageReader.cpp:
(WebCore::BMPImageReader::processInfoHeader): Fix memory corruption.
* platform/image-decoders/ico/ICOImageDecoder.cpp:
(WebCore::ICOImageDecoder::processDirectoryEntries): Handle sizing failure correctly (though failure should be impossible).

LayoutTests: REGRESSION (r61619): Memory corruption in open-source ICO decoder
https://bugs.webkit.org/show_bug.cgi?id=41107

Reviewed by Adam Barth.

This doesn't contain the updated test results -- I'll get that off the
bots after checkin.

* fast/images/icon-decoding.html: Add test for memory corruption while decoding broken .ico.
* fast/images/resources/bad.ico: Added.

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

12 years ago2010-06-24 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Thu, 24 Jun 2010 21:57:24 +0000 (21:57 +0000)]
2010-06-24  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r61783.
        http://trac.webkit.org/changeset/61783
        https://bugs.webkit.org/show_bug.cgi?id=41179

        Caused a couple of test failures (Requested by japhet on
        #webkit).

        * dom/DOMImplementation.cpp:
        (WebCore::DOMImplementation::createDocument):
        (WebCore::DOMImplementation::createHTMLDocument):
        * dom/DOMImplementation.h:
        * dom/Document.cpp:
        (WebCore::Document::Document):
        (WebCore::Document::initSecurityContext):
        * dom/Document.h:
        (WebCore::Document::create):
        (WebCore::Document::createXHTML):
        * html/HTMLDocument.cpp:
        (WebCore::HTMLDocument::HTMLDocument):
        * html/HTMLDocument.h:
        (WebCore::HTMLDocument::create):
        * html/HTMLViewSourceDocument.cpp:
        (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument):
        * html/HTMLViewSourceDocument.h:
        (WebCore::HTMLViewSourceDocument::create):
        * loader/CachedFont.cpp:
        (WebCore::CachedFont::ensureSVGFontData):
        * loader/DocumentWriter.cpp:
        (WebCore::DocumentWriter::createDocument):
        (WebCore::DocumentWriter::begin):
        * loader/DocumentWriter.h:
        * loader/FTPDirectoryDocument.cpp:
        (WebCore::FTPDirectoryDocument::FTPDirectoryDocument):
        * loader/FTPDirectoryDocument.h:
        (WebCore::FTPDirectoryDocument::create):
        * loader/ImageDocument.cpp:
        (WebCore::ImageDocument::ImageDocument):
        * loader/ImageDocument.h:
        (WebCore::ImageDocument::create):
        * loader/MediaDocument.cpp:
        (WebCore::MediaDocument::MediaDocument):
        * loader/MediaDocument.h:
        (WebCore::MediaDocument::create):
        * loader/PlaceholderDocument.h:
        (WebCore::PlaceholderDocument::create):
        (WebCore::PlaceholderDocument::PlaceholderDocument):
        * loader/PluginDocument.cpp:
        (WebCore::PluginDocument::PluginDocument):
        * loader/PluginDocument.h:
        (WebCore::PluginDocument::create):
        * loader/SinkDocument.cpp:
        (WebCore::SinkDocument::SinkDocument):
        * loader/SinkDocument.h:
        (WebCore::SinkDocument::create):
        * loader/TextDocument.cpp:
        (WebCore::TextDocument::TextDocument):
        * loader/TextDocument.h:
        (WebCore::TextDocument::create):
        * svg/SVGDocument.cpp:
        (WebCore::SVGDocument::SVGDocument):
        * svg/SVGDocument.h:
        (WebCore::SVGDocument::create):
        * xml/DOMParser.cpp:
        (WebCore::DOMParser::parseFromString):
        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::responseXML):
        * xml/XSLTProcessor.cpp:
        (WebCore::XSLTProcessor::createDocumentFromSource):

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

12 years ago* mac/WebKit2.exp:
sullivan@apple.com [Thu, 24 Jun 2010 21:50:35 +0000 (21:50 +0000)]
* mac/WebKit2.exp:
Added _WKNavigationDataRelease and _WKNavigationDataRetain.

Rubber-stamped by Ada Chan.

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

12 years ago2010-06-24 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 24 Jun 2010 21:29:35 +0000 (21:29 +0000)]
2010-06-24  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Small code cleanup in RenderThemeGtk
        https://bugs.webkit.org/show_bug.cgi?id=40989

        Reduce the amount of duplicated code slightly and prepare this section for
        future improvements, such as sharing the clipping rectangle calculation with
        the slow path.

        No new tests as functionality has not changed.

        * platform/gtk/RenderThemeGtk.cpp:
        (WebCore::paintMozillaGtkWidget): Small code cleanup.

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

12 years ago2010-06-24 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 24 Jun 2010 21:27:45 +0000 (21:27 +0000)]
2010-06-24  Martin Robinson  <mrobinson@igalia.com>

        Unreviewed.

        Updated expected results for a test that differs on the bots.

        * platform/gtk/scrollbars/overflow-scrollbar-combinations-expected.txt:

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

12 years ago2010-06-24 Nate Chapin <japhet@chromium.org>
japhet@chromium.org [Thu, 24 Jun 2010 20:13:55 +0000 (20:13 +0000)]
2010-06-24  Nate Chapin  <japhet@chromium.org>

        Reviewed by Adam Barth.

        Take a KURL parameter in Document's constructor.
        This will remove the one case where Document::url()
        and FrameLoader::url() are not equal, allowing us to
        remove FrameLoader::url().

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

        Refactor only, no new tests.

        * dom/DOMImplementation.cpp:
        (WebCore::DOMImplementation::createDocument): Take a KURL and pass it through to Document.
        (WebCore::DOMImplementation::createHTMLDocument):
        * dom/DOMImplementation.h:
        * dom/Document.cpp:
        (WebCore::Document::Document): Call setURL() for non-empty KURL input parameters.
        (WebCore::Document::initSecurityContext): m_url is now initialized, so use it instead
            of m_frame->loader()->url() for initializing the SecurityOrigin.
        * dom/Document.h:
        (WebCore::Document::create):
        (WebCore::Document::createXHTML):
        * html/HTMLDocument.cpp:
        * html/HTMLDocument.h: Add KURL parameter to create() and constructor.
        * html/HTMLViewSourceDocument.cpp:
        * html/HTMLViewSourceDocument.h: Add KURL parameter to create() and constructor.
        * loader/CachedFont.cpp:
        (WebCore::CachedFont::ensureSVGFontData):
        * loader/DocumentWriter.cpp:
        (WebCore::DocumentWriter::createDocument): Take a KURL and pass it through to Document.
        (WebCore::DocumentWriter::begin): Pass existing url parameter to constructors, and remove
            redundant Document::setURL() call.
        * loader/DocumentWriter.h:
        * loader/FTPDirectoryDocument.cpp:
        * loader/FTPDirectoryDocument.h: Add KURL parameter to create() and constructor.
        * loader/ImageDocument.cpp:
        * loader/ImageDocument.h: Add KURL parameter to create() and constructor.
        * loader/MediaDocument.cpp:
        * loader/MediaDocument.h: Add KURL parameter to create() and constructor.
        * loader/PlaceholderDocument.h: Add KURL parameter to create() and constructor.
        * loader/PluginDocument.cpp:
        * loader/PluginDocument.h: Add KURL parameter to create() and constructor.
        * loader/SinkDocument.cpp:
        * loader/SinkDocument.h: Add KURL parameter to create() and constructor.
        * loader/TextDocument.cpp:
        * loader/TextDocument.h: Add KURL parameter to create() and constructor.
        * svg/SVGDocument.cpp:
        * svg/SVGDocument.h: Add KURL parameter to create() and constructor.
        * xml/DOMParser.cpp:
        (WebCore::DOMParser::parseFromString):
        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::responseXML):
        * xml/XSLTProcessor.cpp:
        (WebCore::XSLTProcessor::createDocumentFromSource):

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

12 years ago2010-06-24 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 24 Jun 2010 20:04:44 +0000 (20:04 +0000)]
2010-06-24  Martin Robinson  <mrobinson@igalia.com>

        Unreviewed.

        Skip a failing test. Clean up skipped list stragglers. Conglomerate all tests which
        are timing out and don't have attached bugs. Add expected results for some tests and
        unskip them.

        * platform/gtk/Skipped: Clean up skipped list stragglers.
        * platform/gtk/animations/3d/change-transform-in-end-event-expected.txt: Added.
        * platform/gtk/animations/3d/state-at-end-event-transform-expected.txt: Added.
        * platform/gtk/animations/state-at-end-event-expected.txt: Added.
        * platform/gtk/fast/backgrounds/001-expected.txt: Added.
        * platform/gtk/fast/backgrounds/animated-gif-as-background-expected.txt: Added.
        * platform/gtk/fast/backgrounds/animated-svg-as-background-expected.txt: Copied from LayoutTests/platform/qt/fast/backgrounds/animated-svg-as-background-expected.txt.
        * platform/gtk/fast/backgrounds/background-inherit-color-bug-expected.txt: Added.
        * platform/gtk/fast/backgrounds/background-origin-root-element-expected.txt: Added.
        * platform/gtk/fast/backgrounds/background-position-1-expected.txt: Added.
        * platform/gtk/fast/backgrounds/background-position-rounding-expected.txt: Added.
        * platform/gtk/fast/backgrounds/bgCompositeCopy-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/backgrounds/bgCompositeCopy-expected.txt.
        * platform/gtk/fast/backgrounds/body-generated-image-propagated-to-root-expected.txt: Added.
        * platform/gtk/fast/backgrounds/mask-composite-expected.txt: Added.
        * platform/gtk/fast/backgrounds/opacity-on-document-element-expected.txt: Added.
        * platform/gtk/fast/backgrounds/repeat/mask-negative-offset-repeat-expected.txt: Added.
        * platform/gtk/fast/backgrounds/repeat/negative-offset-repeat-expected.txt: Added.
        * platform/gtk/fast/backgrounds/repeat/negative-offset-repeat-transformed-expected.txt: Added.
        * platform/gtk/fast/backgrounds/repeat/noRepeatCorrectClip-expected.txt: Copied from LayoutTests/platform/qt/fast/backgrounds/repeat/noRepeatCorrectClip-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize01-expected.txt: Copied from LayoutTests/platform/mac/fast/backgrounds/size/backgroundSize01-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize02-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/backgrounds/size/backgroundSize02-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize03-expected.txt: Copied from LayoutTests/platform/mac/fast/backgrounds/size/backgroundSize03-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize04-expected.txt: Copied from LayoutTests/platform/mac/fast/backgrounds/size/backgroundSize04-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize05-expected.txt: Copied from LayoutTests/platform/mac/fast/backgrounds/size/backgroundSize05-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize06-expected.txt: Copied from LayoutTests/platform/mac/fast/backgrounds/size/backgroundSize06-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize07-expected.txt: Copied from LayoutTests/platform/mac/fast/backgrounds/size/backgroundSize07-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize08-expected.txt: Copied from LayoutTests/platform/mac/fast/backgrounds/size/backgroundSize08-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize09-expected.txt: Copied from LayoutTests/platform/mac/fast/backgrounds/size/backgroundSize09-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize10-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/backgrounds/size/backgroundSize10-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize11-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/backgrounds/size/backgroundSize11-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize12-expected.txt: Copied from LayoutTests/platform/mac/fast/backgrounds/size/backgroundSize12-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize13-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/backgrounds/size/backgroundSize13-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize14-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/backgrounds/size/backgroundSize14-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize15-expected.txt: Added.
        * platform/gtk/fast/backgrounds/size/backgroundSize16-expected.txt: Added.
        * platform/gtk/fast/backgrounds/size/backgroundSize17-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/backgrounds/size/backgroundSize17-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize18-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/backgrounds/size/backgroundSize18-expected.txt.
        * platform/gtk/fast/backgrounds/size/backgroundSize19-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/backgrounds/size/backgroundSize19-expected.txt.
        * platform/gtk/fast/backgrounds/size/zero-expected.txt: Added.
        * platform/gtk/fast/backgrounds/solid-color-context-restore-expected.txt: Added.
        * platform/gtk/fast/backgrounds/svg-as-background-1-expected.txt: Copied from LayoutTests/platform/qt/fast/backgrounds/svg-as-background-1-expected.txt.
        * platform/gtk/fast/backgrounds/svg-as-background-2-expected.txt: Copied from LayoutTests/platform/qt/fast/backgrounds/svg-as-background-2-expected.txt.
        * platform/gtk/fast/backgrounds/svg-as-background-3-expected.txt: Copied from LayoutTests/platform/qt/fast/backgrounds/svg-as-background-3-expected.txt.
        * platform/gtk/fast/backgrounds/svg-as-background-4-expected.txt: Copied from LayoutTests/platform/qt/fast/backgrounds/svg-as-background-4-expected.txt.
        * platform/gtk/fast/backgrounds/svg-as-background-5-expected.txt: Copied from LayoutTests/platform/qt/fast/backgrounds/svg-as-background-5-expected.txt.
        * platform/gtk/fast/backgrounds/svg-as-background-6-expected.txt: Copied from LayoutTests/platform/qt/fast/backgrounds/svg-as-background-6-expected.txt.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/001-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/002-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/003-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/004-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/005-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/006-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/010-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/011-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/012-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/015-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/016-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/017-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/018-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/019-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/020-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/021-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/022-expected.txt: Added.
        * platform/gtk/fast/block/margin-collapse/block-inside-inline/025-expected.txt: Added.
        * platform/gtk/fast/css/getComputedStyle/marginComputedStyle-expected.txt: Added.
        * platform/gtk/printing/compositing-layer-printing-expected.txt: Added.
        * platform/gtk/printing/media-queries-print-expected.txt: Added.
        * platform/gtk/printing/return-from-printing-mode-expected.txt: Added.
        * platform/gtk/scrollbars/disabled-scrollbar-expected.txt: Added.
        * platform/gtk/scrollbars/listbox-scrollbar-combinations-expected.txt: Added.
        * platform/gtk/scrollbars/overflow-scrollbar-combinations-expected.txt: Added.
        * platform/gtk/scrollbars/scrollbar-buttons-expected.txt: Added.
        * platform/gtk/scrollbars/scrollbar-orientation-expected.txt: Added.
        * platform/gtk/transforms/2d/transform-fixed-container-expected.txt: Added.
        * platform/gtk/transforms/2d/zoom-menulist-expected.txt: Added.
        * platform/gtk/transitions/move-after-transition-expected.txt: Added.
        * platform/gtk/transitions/transition-end-event-rendering-expected.txt: Copied from LayoutTests/platform/mac/transitions/transition-end-event-rendering-expected.txt.

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

12 years ago<rdar://problem/8044645> and https://bugs.webkit.org/show_bug.cgi?id=41082
beidson@apple.com [Thu, 24 Jun 2010 18:38:59 +0000 (18:38 +0000)]
<rdar://problem/8044645> and https://bugs.webkit.org/show_bug.cgi?id=41082

Reviewed by Sam Weinig.

Webarchives will null main resource cause a repro crash.

WebCore:

Test: webarchive/loading/mainresource-null-mimetype-crash.html

* loader/archive/cf/LegacyWebArchive.cpp:
(WebCore::LegacyWebArchive::createResource): Fail to create the archive resource if the main resource's
  mime type is null.

LayoutTests:

* webarchive/loading/mainresource-null-mimetype-crash-expected.txt: Added.
* webarchive/loading/mainresource-null-mimetype-crash.html: Added.
* webarchive/loading/resources/mainresource-null-mimetype.webarchive: Added.

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

12 years agoFix WebKitTestRunner Makefile typos.
weinig@apple.com [Thu, 24 Jun 2010 18:29:47 +0000 (18:29 +0000)]
Fix WebKitTestRunner Makefile typos.

Reviewed by Anders Carlsson.

* WebKitTestRunner/Makefile:

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

12 years ago* mac/WebKit2.exp:
sullivan@apple.com [Thu, 24 Jun 2010 18:29:22 +0000 (18:29 +0000)]
* mac/WebKit2.exp:
Added _WKPageReloadFromOrigin.

Rubber-stamped by Anders Carlsson.

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

12 years ago 2010-06-21 Nathan Lawrence <nlawrence@apple.com>
sfalken@apple.com [Thu, 24 Jun 2010 18:28:06 +0000 (18:28 +0000)]
 2010-06-21  Nathan Lawrence  <nlawrence@apple.com>

 Reviewed by Geoff Garen.

 https://bugs.webkit.org/show_bug.cgi?id=40128
 Fixed broken debug functionality.

 * interpreter/Interpreter.cpp:
 (JSC::Interpreter::dumpRegisters):
     Fixed to work with updated call frame.
 * runtime/JSImmediate.h:
 (JSC::JSValue::isCell):
     Added assert for aligned cell.
 * runtime/JSValue.cpp:
 (JSC::JSValue::description):
     Fixed to work with current JSValue implementation.
 * runtime/JSZombie.cpp:
 (JSC::JSZombie::leakedZombieStructure):
     JSombies compile again.

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

12 years ago2010-06-24 Damian Kaleta <dkaleta@apple.com>
kdecker@apple.com [Thu, 24 Jun 2010 18:14:55 +0000 (18:14 +0000)]
2010-06-24  Damian Kaleta  <dkaleta@apple.com>

        Reviewed by Sam Weinig.

        Provide a way to obtain the rendered rectangle for box elements.

        * WebCore.base.exp: Export the symbol so we can see it in WebKit.
        * dom/Node.cpp:
        (WebCore::Node::renderRect): Added new ethod that will return a rendered rectangle for box elements.
        * dom/Node.h: Ditto.
2010-06-24  Damian Kaleta  <dkaleta@apple.com>

        Reviewed by Sam Weinig.

        Added an ObjC wrapper to Node::renderRect(bool&).

        * DOM/WebDOMOperations.mm:
        (-[DOMNode _renderRect:]):
        * DOM/WebDOMOperationsPrivate.h:

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

12 years agoFix for https://bugs.webkit.org/show_bug.cgi?id=41168
weinig@apple.com [Thu, 24 Jun 2010 18:11:25 +0000 (18:11 +0000)]
Fix for https://bugs.webkit.org/show_bug.cgi?id=41168
<rdar://problem/8124605>
Webkit2: Add WKPageReloadFromOrigin() to match old-WebKit functionality

Reviewed by Anders Carlsson.

* UIProcess/API/C/WKPage.cpp:
(WKPageReload):
(WKPageReloadFromOrigin):
* UIProcess/API/C/WKPage.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::reload):
* UIProcess/WebPageProxy.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::reload):
(WebKit::WebPage::didReceiveMessage):
* WebProcess/WebPage/WebPage.h:

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