WebKit-https.git
9 years ago2010-06-23 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Wed, 23 Jun 2010 08:50:44 +0000 (08:50 +0000)]
2010-06-23  Kent Tamura  <tkent@chromium.org>

        Unreviewed, test expectation update.

        Add expectations for r61667 and r61669.

        * platform/chromium-linux/svg/custom/bug45331-expected.checksum: Added.
        * platform/chromium-linux/svg/foreignObject: Added.
        * platform/chromium-linux/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.checksum: Added.
        * platform/chromium-linux/svg/foreignObject/svg-document-as-direct-child-expected.checksum: Added.
        * platform/chromium-linux/svg/foreignObject/svg-document-in-html-document-expected.checksum: Added.
        * platform/chromium-linux/svg/foreignObject/text-tref-02-b-expected.checksum: Added.
        * platform/chromium-linux/svg/foreignObject/text-tref-02-b-expected.png: Added.
        * platform/chromium-win/svg/custom/bug45331-expected.checksum: Added.
        * platform/chromium-win/svg/custom/bug45331-expected.png: Added.
        * platform/chromium-win/svg/custom/bug45331-expected.txt: Added.
        * platform/chromium-win/svg/foreignObject: Added.
        * platform/chromium-win/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.checksum: Added.
        * platform/chromium-win/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.png: Added.
        * platform/chromium-win/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.txt: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-as-direct-child-expected.checksum: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-as-direct-child-expected.png: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-as-direct-child-expected.txt: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-in-html-document-expected.checksum: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-in-html-document-expected.png: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-in-html-document-expected.txt: Added.
        * platform/chromium-win/svg/foreignObject/text-tref-02-b-expected.checksum: Added.
        * platform/chromium-win/svg/foreignObject/text-tref-02-b-expected.png: Added.
        * platform/chromium-win/svg/foreignObject/text-tref-02-b-expected.txt: Added.
        * platform/chromium/test_expectations.txt:

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

9 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 08:44:01 +0000 (08:44 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename the preload scanners
        https://bugs.webkit.org/show_bug.cgi?id=41052

        Renames PreloadScanner to LegacyPreloadScanner because this code is now
        off by default.  Also, rename HTML5PreloadScanner to
        HTMLPreloadScanner.  We're not calling it PreloadScanner because we've
        factored out the CSSPreloadScanner and the HTMLPreloadScanner from the
        original PreloadScanner.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/HTML5PreloadScanner.cpp: Removed.
        * html/HTML5PreloadScanner.h: Removed.
        * html/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::pumpTokenizer):
        * html/HTMLDocumentParser.h:
        * html/HTMLPreloadScanner.cpp: Copied from WebCore/html/HTML5PreloadScanner.cpp.
        (WebCore::HTMLPreloadScanner::HTMLPreloadScanner):
        (WebCore::HTMLPreloadScanner::appendToEnd):
        (WebCore::HTMLPreloadScanner::scan):
        (WebCore::HTMLPreloadScanner::processToken):
        (WebCore::HTMLPreloadScanner::scanningBody):
        * html/HTMLPreloadScanner.h: Copied from WebCore/html/HTML5PreloadScanner.h.
        * html/LegacyHTMLDocumentParser.cpp:
        (WebCore::LegacyHTMLDocumentParser::scriptHandler):
        (WebCore::LegacyHTMLDocumentParser::scriptExecution):
        * html/LegacyHTMLDocumentParser.h:
        * html/LegacyPreloadScanner.cpp: Copied from WebCore/html/PreloadScanner.cpp.
        (WebCore::LegacyPreloadScanner::LegacyPreloadScanner):
        (WebCore::LegacyPreloadScanner::~LegacyPreloadScanner):
        (WebCore::LegacyPreloadScanner::begin):
        (WebCore::LegacyPreloadScanner::end):
        (WebCore::LegacyPreloadScanner::reset):
        (WebCore::LegacyPreloadScanner::scanningBody):
        (WebCore::LegacyPreloadScanner::write):
        (WebCore::LegacyPreloadScanner::clearLastCharacters):
        (WebCore::LegacyPreloadScanner::rememberCharacter):
        (WebCore::LegacyPreloadScanner::lastCharactersMatch):
        (WebCore::LegacyPreloadScanner::consumeEntity):
        (WebCore::LegacyPreloadScanner::tokenize):
        (WebCore::LegacyPreloadScanner::processAttribute):
        (WebCore::LegacyPreloadScanner::emitCharacter):
        (WebCore::LegacyPreloadScanner::tokenizeCSS):
        (WebCore::LegacyPreloadScanner::emitTag):
        (WebCore::LegacyPreloadScanner::emitCSSRule):
        * html/LegacyPreloadScanner.h: Copied from WebCore/html/PreloadScanner.h.
        * html/PreloadScanner.cpp: Removed.
        * html/PreloadScanner.h: Removed.
        * page/XSSAuditor.cpp:
        (WebCore::XSSAuditor::decodeHTMLEntities):

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

9 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 08:33:34 +0000 (08:33 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Yet more HTML5 => HTML renames
        https://bugs.webkit.org/show_bug.cgi?id=41051

        This patch renames HTML5DocumentParser to HTMLDocumentParser and
        HTML5TreeBuilder to HTMLTreeBuilder.  There was some discussion about
        whether to use the name HTMLTreeBuilder or HTMLTreeConstructor, but
        tree builder seems to be the dominate name in other implementations.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * dom/DocumentFragment.cpp:
        (WebCore::DocumentFragment::parseHTML):
        * html/HTML5DocumentParser.cpp: Removed.
        * html/HTML5DocumentParser.h: Removed.
        * html/HTML5PreloadScanner.cpp:
        (WebCore::HTML5PreloadScanner::scan):
        (WebCore::HTML5PreloadScanner::processToken):
        * html/HTML5TreeBuilder.cpp: Removed.
        * html/HTML5TreeBuilder.h: Removed.
        * html/HTMLDocument.cpp:
        (WebCore::HTMLDocument::createParser):
        * html/HTMLDocumentParser.cpp: Copied from WebCore/html/HTML5DocumentParser.cpp.
        (WebCore::HTMLDocumentParser::HTMLDocumentParser):
        (WebCore::HTMLDocumentParser::~HTMLDocumentParser):
        (WebCore::HTMLDocumentParser::begin):
        (WebCore::HTMLDocumentParser::stopParsing):
        (WebCore::HTMLDocumentParser::processingData):
        (WebCore::HTMLDocumentParser::pumpTokenizerIfPossible):
        (WebCore::HTMLDocumentParser::isScheduledForResume):
        (WebCore::HTMLDocumentParser::resumeParsingAfterYield):
        (WebCore::HTMLDocumentParser::runScriptsForPausedTreeConstructor):
        (WebCore::HTMLDocumentParser::pumpTokenizer):
        (WebCore::HTMLDocumentParser::willPumpLexer):
        (WebCore::HTMLDocumentParser::didPumpLexer):
        (WebCore::HTMLDocumentParser::write):
        (WebCore::HTMLDocumentParser::end):
        (WebCore::HTMLDocumentParser::attemptToEnd):
        (WebCore::HTMLDocumentParser::endIfDelayed):
        (WebCore::HTMLDocumentParser::finish):
        (WebCore::HTMLDocumentParser::finishWasCalled):
        (WebCore::HTMLDocumentParser::executingScript):
        (WebCore::HTMLDocumentParser::inScriptExecution):
        (WebCore::HTMLDocumentParser::lineNumber):
        (WebCore::HTMLDocumentParser::columnNumber):
        (WebCore::HTMLDocumentParser::htmlTreeConstructor):
        (WebCore::HTMLDocumentParser::isWaitingForScripts):
        (WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution):
        (WebCore::HTMLDocumentParser::watchForLoad):
        (WebCore::HTMLDocumentParser::stopWatchingForLoad):
        (WebCore::HTMLDocumentParser::shouldLoadExternalScriptFromSrc):
        (WebCore::HTMLDocumentParser::notifyFinished):
        (WebCore::HTMLDocumentParser::executeScriptsWaitingForStylesheets):
        (WebCore::HTMLDocumentParser::script):
        * html/HTMLDocumentParser.h: Copied from WebCore/html/HTML5DocumentParser.h.
        * html/HTMLParserScheduler.cpp:
        (WebCore::HTMLParserScheduler::HTMLParserScheduler):
        * html/HTMLParserScheduler.h:
        * html/HTMLTreeBuilder.cpp: Copied from WebCore/html/HTML5TreeBuilder.cpp.
        (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
        (WebCore::HTMLTreeBuilder::~HTMLTreeBuilder):
        (WebCore::HTMLTreeBuilder::handleScriptStartTag):
        (WebCore::HTMLTreeBuilder::handleScriptEndTag):
        (WebCore::HTMLTreeBuilder::takeScriptToProcess):
        (WebCore::HTMLTreeBuilder::adjustedLexerState):
        (WebCore::HTMLTreeBuilder::passTokenToLegacyParser):
        (WebCore::HTMLTreeBuilder::constructTreeFromToken):
        (WebCore::HTMLTreeBuilder::processToken):
        (WebCore::HTMLTreeBuilder::finished):
        (WebCore::HTMLTreeBuilder::isScriptingFlagEnabled):
        * html/HTMLTreeBuilder.h: Copied from WebCore/html/HTML5TreeBuilder.h.

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

9 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 08:18:31 +0000 (08:18 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        More HTML5 => HTML renames
        https://bugs.webkit.org/show_bug.cgi?id=41049

        This patch renames HTML5ScriptRunner, HTML5ScriptRunnerHost, and
        HTML5Token to remove the "5" from their names.  These clases aren't
        specific to HTML5 and will be used going forward.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/CSSPreloadScanner.cpp:
        (WebCore::CSSPreloadScanner::scan):
        * html/CSSPreloadScanner.h:
        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::HTML5DocumentParser):
        (WebCore::HTML5DocumentParser::notifyFinished):
        * html/HTML5DocumentParser.h:
        * html/HTML5PreloadScanner.cpp:
        (WebCore::HTMLNames::PreloadTask::PreloadTask):
        (WebCore::HTMLNames::PreloadTask::processAttributes):
        (WebCore::HTML5PreloadScanner::processToken):
        * html/HTML5PreloadScanner.h:
        * html/HTML5ScriptRunner.cpp: Removed.
        * html/HTML5ScriptRunner.h: Removed.
        * html/HTML5ScriptRunnerHost.h: Removed.
        * html/HTML5Token.h: Removed.
        * html/HTML5TreeBuilder.cpp:
        (WebCore::convertToOldStyle):
        (WebCore::HTML5TreeBuilder::handleScriptEndTag):
        (WebCore::HTML5TreeBuilder::passTokenToLegacyParser):
        (WebCore::HTML5TreeBuilder::constructTreeFromToken):
        (WebCore::HTML5TreeBuilder::processToken):
        * html/HTML5TreeBuilder.h:
        * html/HTMLScriptRunner.cpp: Copied from WebCore/html/HTML5ScriptRunner.cpp.
        (WebCore::HTMLScriptRunner::HTMLScriptRunner):
        (WebCore::HTMLScriptRunner::~HTMLScriptRunner):
        (WebCore::HTMLScriptRunner::sourceFromPendingScript):
        (WebCore::HTMLScriptRunner::isPendingScriptReady):
        (WebCore::HTMLScriptRunner::executePendingScript):
        (WebCore::HTMLScriptRunner::executeScript):
        (WebCore::HTMLScriptRunner::hasScriptsWaitingForLoad):
        (WebCore::HTMLScriptRunner::watchForLoad):
        (WebCore::HTMLScriptRunner::stopWatchingForLoad):
        (WebCore::HTMLScriptRunner::execute):
        (WebCore::HTMLScriptRunner::haveParsingBlockingScript):
        (WebCore::HTMLScriptRunner::executeParsingBlockingScripts):
        (WebCore::HTMLScriptRunner::executeScriptsWaitingForLoad):
        (WebCore::HTMLScriptRunner::executeScriptsWaitingForStylesheets):
        (WebCore::HTMLScriptRunner::requestScript):
        (WebCore::HTMLScriptRunner::runScript):
        * html/HTMLScriptRunner.h: Copied from WebCore/html/HTML5ScriptRunner.h.
        * html/HTMLScriptRunnerHost.h: Copied from WebCore/html/HTML5ScriptRunnerHost.h.
        (WebCore::HTMLScriptRunnerHost::~HTMLScriptRunnerHost):
        * html/HTMLToken.h: Copied from WebCore/html/HTML5Token.h.
        (WebCore::HTMLToken::HTMLToken):
        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::nextToken):
        (WebCore::HTMLTokenizer::emitCharacter):
        (WebCore::HTMLTokenizer::emitCurrentToken):
        (WebCore::HTMLTokenizer::shouldEmitBufferedCharacterToken):
        * html/HTMLTokenizer.h:

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

9 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 07:49:07 +0000 (07:49 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename HTML5EntityParser to HTMLEntityParser
        https://bugs.webkit.org/show_bug.cgi?id=41048

        Mostly the result of do-webcore-rename, but I tweaked the header guard
        and the name of the free function.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/HTML5EntityParser.cpp: Removed.
        * html/HTML5EntityParser.h: Removed.
        * html/HTMLEntityParser.cpp: Copied from WebCore/html/HTML5EntityParser.cpp.
        (WebCore::consumeHTMLEntity):
        * html/HTMLEntityParser.h: Copied from WebCore/html/HTML5EntityParser.h.
        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::processEntity):
        (WebCore::HTMLTokenizer::nextToken):

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

9 years ago2010-06-22 Yuta Kitamura <yutak@chromium.org>
morrita@google.com [Wed, 23 Jun 2010 07:37:50 +0000 (07:37 +0000)]
2010-06-22  Yuta Kitamura  <yutak@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Add a new class that stores information about WebSocket handshake response.

        In the future, instances of the new class will be passed to the Web Inspector
        so that it will be able to display information about WebSocket handshake
        response.

        WebSocket: Add WebSocketHandshakeResponse
        https://bugs.webkit.org/show_bug.cgi?id=38728

        Test: websocket/tests/handshake-fail-by-no-cr.html

        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * websockets/WebSocketHandshake.cpp:
        (WebCore::trimConsoleMessage):
        (WebCore::WebSocketHandshake::readServerHandshake):
        (WebCore::WebSocketHandshake::serverHandshakeResponse):
        (WebCore::WebSocketHandshake::readStatusLine): Moved from extractResponseCode.
        Add more error checks and make error messages more descriptive.
        (WebCore::WebSocketHandshake::readHTTPHeaders):
        (WebCore::WebSocketHandshake::processHeaders):
        * websockets/WebSocketHandshake.h:
        * websockets/WebSocketHandshakeResponse.cpp: Added.
        (WebCore::WebSocketHandshakeResponse::ChallengeResponse::ChallengeResponse):
        (WebCore::WebSocketHandshakeResponse::ChallengeResponse::set):
        (WebCore::WebSocketHandshakeResponse::WebSocketHandshakeResponse):
        (WebCore::WebSocketHandshakeResponse::~WebSocketHandshakeResponse):
        (WebCore::WebSocketHandshakeResponse::statusCode):
        (WebCore::WebSocketHandshakeResponse::setStatusCode):
        (WebCore::WebSocketHandshakeResponse::statusText):
        (WebCore::WebSocketHandshakeResponse::setStatusText):
        (WebCore::WebSocketHandshakeResponse::headerFields):
        (WebCore::WebSocketHandshakeResponse::addHeaderField):
        (WebCore::WebSocketHandshakeResponse::clearHeaderFields):
        (WebCore::WebSocketHandshakeResponse::challengeResponse):
        (WebCore::WebSocketHandshakeResponse::setChallengeResponse):
        * websockets/WebSocketHandshakeResponse.h: Added.

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

9 years ago2010-06-23 Yuzo Fujishima <yuzo@google.com>
yuzo@google.com [Wed, 23 Jun 2010 07:30:04 +0000 (07:30 +0000)]
2010-06-23  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        Implement page format data programming interface.
        https://bugs.webkit.org/show_bug.cgi?id=37538

        * platform/chromium/test_expectations.txt:
        * platform/gtk/Skipped:
        * platform/qt/Skipped:
        * platform/win/Skipped:
        * printing/page-format-data-expected.txt: Added.
        * printing/page-format-data.html: Added.
2010-06-23  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        Implement page format data programming interface.
        The final goal is to implement CSS Paged Media Module Level 3 (http://dev.w3.org/csswg/css3-page/).
        To begin with, this change adds methods to know:
        - if page box is visible,
        - the page area rectangle, and
        - preferred page size.

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

        Test: printing/page-format-data.html

        * WebCore.base.exp:
        * css/CSSParser.cpp:
        (WebCore::CSSParser::parseSizeParameter):
        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::applyProperty):
        (WebCore::CSSStyleSelector::applyPageSizeProperty):
        (WebCore::CSSStyleSelector::pageSizeFromName):
        (WebCore::CSSStyleSelector::mmLength):
        (WebCore::CSSStyleSelector::inchLength):
        * css/CSSStyleSelector.h:
        * css/html.css:
        (@page):
        * dom/Document.cpp:
        (WebCore::Document::isPageBoxVisible):
        (WebCore::Document::pageAreaRectInPixels):
        (WebCore::Document::preferredPageSizeInPixels):
        * dom/Document.h:
        * page/PrintContext.cpp:
        (WebCore::PrintContext::isPageBoxVisible):
        (WebCore::PrintContext::pageAreaRectInPixels):
        (WebCore::PrintContext::preferredPageSizeInPixels):
        * page/PrintContext.h:
        * rendering/style/RenderStyle.h:
        (WebCore::InheritedFlags::pageSize):
        (WebCore::InheritedFlags::setPageSize):
        * rendering/style/StyleRareNonInheritedData.h:
2010-06-23  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        Implement page format data programming interface.
        Add methods for testing.
        https://bugs.webkit.org/show_bug.cgi?id=37538

        * Misc/WebCoreStatistics.h:
        * Misc/WebCoreStatistics.mm:
        (-[WebFrame isPageBoxVisible:]):
        (-[WebFrame pageAreaRectInPixels:]):
        (-[WebFrame preferredPageSizeInPixels:]):
2010-06-23  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        Implement page format data programming interface.
        Add methods for testing.
        https://bugs.webkit.org/show_bug.cgi?id=37538

        * DumpRenderTree/LayoutTestController.cpp:
        (parsePageNumber):
        (isPageBoxVisibleCallback):
        (pageAreaRectInPixelsCallback):
        (preferredPageSizeInPixelsCallback):
        (LayoutTestController::staticFunctions):
        * DumpRenderTree/LayoutTestController.h:
        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
        (LayoutTestController::isPageBoxVisible):
        (LayoutTestController::pageAreaRectInPixels):
        (LayoutTestController::preferredPageSizeInPixels):
        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
        (LayoutTestController::isPageBoxVisible):
        (LayoutTestController::pageAreaRectInPixels):
        (LayoutTestController::preferredPageSizeInPixels):
        * DumpRenderTree/win/LayoutTestControllerWin.cpp:
        (LayoutTestController::isPageBoxVisible):
        (LayoutTestController::pageAreaRectInPixels):
        (LayoutTestController::preferredPageSizeInPixels):

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

9 years ago2010-06-23 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 23 Jun 2010 07:19:44 +0000 (07:19 +0000)]
2010-06-23  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Forgot to include four files in the last commit.

        * platform/mac/svg/custom/bug45331-expected.checksum: Added.
        * platform/mac/svg/custom/bug45331-expected.png: Added.
        * platform/mac/svg/custom/bug45331-expected.txt: Added.
        * svg/custom/bug45331.svg: Added.

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

9 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 07:16:51 +0000 (07:16 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename lexer and m_lexer to tokenizer and m_tokenizer, respectively
        https://bugs.webkit.org/show_bug.cgi?id=41046

        This is a follow up to the recent HTML5Lexer => HTMLTokenizer rename.

        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::HTML5DocumentParser):
        (WebCore::HTML5DocumentParser::begin):
        (WebCore::HTML5DocumentParser::pumpLexer):
        (WebCore::HTML5DocumentParser::willPumpLexer):
        (WebCore::HTML5DocumentParser::didPumpLexer):
        (WebCore::HTML5DocumentParser::lineNumber):
        (WebCore::HTML5DocumentParser::columnNumber):
        * html/HTML5DocumentParser.h:
        * html/HTML5PreloadScanner.cpp:
        (WebCore::HTML5PreloadScanner::scan):
        (WebCore::HTML5PreloadScanner::processToken):
        * html/HTML5PreloadScanner.h:
        * html/HTML5TreeBuilder.cpp:
        (WebCore::HTML5TreeBuilder::HTML5TreeBuilder):
        (WebCore::HTML5TreeBuilder::handleScriptStartTag):
        (WebCore::HTML5TreeBuilder::passTokenToLegacyParser):
        * html/HTML5TreeBuilder.h:
        * html/HTMLTokenizer.h:
        * html/LegacyHTMLDocumentParser.h:

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

9 years ago2010-06-23 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 23 Jun 2010 07:11:19 +0000 (07:11 +0000)]
2010-06-23  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Eric Seidel.

        Reproducible crash in com.apple.WebCore 0x01ed3784 WebCore::RenderLineBoxList::appendLineBox(WebCore::InlineFlowBox*) + 36
        https://bugs.webkit.org/show_bug.cgi?id=40953

        REGRESSION (r58209-58231): Memory corruption with invalid SVG
        https://bugs.webkit.org/show_bug.cgi?id=40173

        Fix several crashes, all related to <foreignObject> and/or invalid SVG documents.
        - Only allow <svg> nodes, as direct children of a <foreignObject>, not any other "partial" SVG content.
        - Assure to create RenderSVGRoot objects for <svg> nodes in <foreignObject>, treat them as "outermost SVG elements".
        - Never allow any partial SVG content to appear in any document. Only <svg> elements are allowed.

        Tests: svg/custom/bug45331.svg
               svg/foreignObject/disallowed-svg-nodes-as-direct-children.svg
               svg/foreignObject/no-crash-with-svg-content-in-html-document.svg
               svg/foreignObject/svg-document-as-direct-child.svg
               svg/foreignObject/svg-document-in-html-document.svg
               svg/foreignObject/text-tref-02-b.svg

        * dom/Element.cpp: Added childShouldCreateRenderer, with ENABLE(SVG) guards.
        (WebCore::Element::childShouldCreateRenderer): Only create a renderer for a SVG child, if we're a SVG element, or if the child is a <svg> element.
        * dom/Element.h: Added childShouldCreateRenderer, with ENABLE(SVG) guards.
        * svg/SVGForeignObjectElement.cpp:
        (WebCore::SVGForeignObjectElement::childShouldCreateRenderer): Disallow arbitary SVG content, only <svg> elements are allowed as direct children of a <foreignObject>
        * svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::isOutermostSVG): Be sure to create RenderSVGRoot objects for <svg> elements inside <foreignObject>

2010-06-23  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Eric Seidel.

        Reproducible crash in com.apple.WebCore 0x01ed3784 WebCore::RenderLineBoxList::appendLineBox(WebCore::InlineFlowBox*) + 36
        https://bugs.webkit.org/show_bug.cgi?id=40953

        REGRESSION (r58209-58231): Memory corruption with invalid SVG
        https://bugs.webkit.org/show_bug.cgi?id=40173

        Added several new layout tests covering the crashes with <foreignObject> and/or invalid SVG documents.

        * platform/mac/svg/custom/bug45331-expected.checksum: Added.
        * platform/mac/svg/custom/bug45331-expected.png: Added.
        * platform/mac/svg/custom/bug45331-expected.txt: Added.
        * platform/mac/svg/foreignObject: Added.
        * platform/mac/svg/foreignObject/disallowed-svg-nodes-as-direct-children-expected.checksum: Added.
        * platform/mac/svg/foreignObject/disallowed-svg-nodes-as-direct-children-expected.png: Added.
        * platform/mac/svg/foreignObject/disallowed-svg-nodes-as-direct-children-expected.txt: Added.
        * platform/mac/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.checksum: Added.
        * platform/mac/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.png: Added.
        * platform/mac/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.txt: Added.
        * platform/mac/svg/foreignObject/svg-document-as-direct-child-expected.checksum: Added.
        * platform/mac/svg/foreignObject/svg-document-as-direct-child-expected.png: Added.
        * platform/mac/svg/foreignObject/svg-document-as-direct-child-expected.txt: Added.
        * platform/mac/svg/foreignObject/svg-document-in-html-document-expected.checksum: Added.
        * platform/mac/svg/foreignObject/svg-document-in-html-document-expected.png: Added.
        * platform/mac/svg/foreignObject/svg-document-in-html-document-expected.txt: Added.
        * platform/mac/svg/foreignObject/text-tref-02-b-expected.checksum: Added.
        * platform/mac/svg/foreignObject/text-tref-02-b-expected.png: Added.
        * platform/mac/svg/foreignObject/text-tref-02-b-expected.txt: Added.
        * svg/custom/bug45331.svg: Added.
        * svg/foreignObject: Added.
        * svg/foreignObject/disallowed-svg-nodes-as-direct-children.svg: Added.
        * svg/foreignObject/no-crash-with-svg-content-in-html-document.svg: Added.
        * svg/foreignObject/svg-document-as-direct-child.svg: Added.
        * svg/foreignObject/svg-document-in-html-document.svg: Added.
        * svg/foreignObject/text-tref-02-b.svg: Added.

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

9 years ago2010-06-23 Sam Magnuson <smagnuson@netflix.com>
hamaji@chromium.org [Wed, 23 Jun 2010 07:11:11 +0000 (07:11 +0000)]
2010-06-23  Sam Magnuson  <smagnuson@netflix.com>

        Reviewed by Shinichiro Hamaji.

        Follow proper convention for if/switch/while as I've discovered
        them to be through my review processes.
        https://bugs.webkit.org/show_bug.cgi?id=40723

        Modified test so that if( foo ) is not allowed as it appears not
        to be the accepted convention.

        * Scripts/webkitpy/style/checkers/cpp.py:
        * Scripts/webkitpy/style/checkers/cpp_unittest.py:

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

9 years ago2010-06-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 07:02:56 +0000 (07:02 +0000)]
2010-06-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename HTML5Lexer to HTMLTokenizer
        https://bugs.webkit.org/show_bug.cgi?id=41045

        This might be slightly confusing given that the old class was called
        HTMLTokenizer, but it matches the terminology in the HTML5 spec.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::HTML5DocumentParser):
        (WebCore::HTML5DocumentParser::pumpLexer):
        * html/HTML5DocumentParser.h:
        * html/HTML5Lexer.cpp: Removed.
        * html/HTML5Lexer.h: Removed.
        * html/HTML5PreloadScanner.cpp:
        (WebCore::HTML5PreloadScanner::processToken):
        * html/HTML5PreloadScanner.h:
        * html/HTML5TreeBuilder.cpp:
        (WebCore::HTML5TreeBuilder::HTML5TreeBuilder):
        (WebCore::HTML5TreeBuilder::handleScriptStartTag):
        (WebCore::HTML5TreeBuilder::adjustedLexerState):
        * html/HTML5TreeBuilder.h:
        * html/HTMLTokenizer.cpp: Copied from WebCore/html/HTML5Lexer.cpp.
        (WebCore::HTMLNames::isEndTagBufferingState):
        (WebCore::HTMLTokenizer::HTMLTokenizer):
        (WebCore::HTMLTokenizer::~HTMLTokenizer):
        (WebCore::HTMLTokenizer::reset):
        (WebCore::HTMLTokenizer::processEntity):
        (WebCore::HTMLTokenizer::nextToken):
        (WebCore::HTMLTokenizer::temporaryBufferIs):
        (WebCore::HTMLTokenizer::addToPossibleEndTag):
        (WebCore::HTMLTokenizer::isAppropriateEndTag):
        (WebCore::HTMLTokenizer::emitCharacter):
        (WebCore::HTMLTokenizer::emitCodePoint):
        (WebCore::HTMLTokenizer::emitParseError):
        (WebCore::HTMLTokenizer::emitCurrentToken):
        (WebCore::HTMLTokenizer::shouldEmitBufferedCharacterToken):
        * html/HTMLTokenizer.h: Copied from WebCore/html/HTML5Lexer.h.

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

9 years agoUnreviewed Qt/Symbian build fix.
hausmann@webkit.org [Wed, 23 Jun 2010 06:54:14 +0000 (06:54 +0000)]
Unreviewed Qt/Symbian build fix.

Fix "make clean" to not try to execute clean commands for
the extra targets we use to simulate "make install".

* WebCore.pro: Use no_clean in CONFIG of extra compilers.

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

9 years ago2010-06-22 Eric Seidel <eric@webkit.org>
eric@webkit.org [Wed, 23 Jun 2010 06:44:40 +0000 (06:44 +0000)]
2010-06-22  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Run clean-header-guards to fix some header guards
        https://bugs.webkit.org/show_bug.cgi?id=41044

        No functional changes, thus no tests.

        This entire change was generated by running
        clean-header-guards, and then reverting changes
        to files which shouldn't be changed.  Those which
        are left all should be updated.

        Some of these changes are just fixing 755 permissions
        to be 644, since it seems various files have the wrong
        execute bit which don't need it.  clean-header-guards
        made those (welcome) permission fixes unintentionally.

        * bindings/v8/custom/V8HTMLAudioElementConstructor.h:
        * bindings/v8/custom/V8HTMLImageElementConstructor.h:
        * bindings/v8/custom/V8HTMLOptionElementConstructor.h:
        * dom/Touch.h:
        * dom/TouchList.h:
        * dom/XMLDocumentParser.h:
        * dom/XMLDocumentParserScope.h:
        * html/HTML5DocumentParser.h:
        * html/LegacyHTMLTreeConstructor.h:
        * loader/CrossOriginPreflightResultCache.h:
        * page/OriginAccessEntry.h:
        * page/win/FrameWin.h:
        * platform/ThreadTimers.h:
        * platform/chromium/KeyboardCodes.h:
        * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
        * platform/graphics/chromium/FontUtilsChromiumWin.h:
        * platform/graphics/filters/FEBlend.h:
        * platform/graphics/filters/FEColorMatrix.h:
        * platform/graphics/filters/FEComponentTransfer.h:
        * platform/graphics/filters/FEComposite.h:
        * platform/graphics/gstreamer/DataSourceGStreamer.h:
        * platform/graphics/gstreamer/VideoSinkGStreamer.h:
         - I checked, this crazy define was not referenced
           anywhere else.  It's safe to change the name. :)
        * platform/graphics/haiku/FontPlatformData.h:
        * platform/graphics/qt/FontCustomPlatformData.h:
        * platform/graphics/skia/SkiaFontWin.h:
        * platform/graphics/win/GraphicsLayerCACF.h:
        * platform/graphics/win/QTMovieWinTimer.h:
        * platform/graphics/win/RefCountedGDIHandle.h:
        * platform/graphics/win/WebLayer.h:
        * platform/graphics/win/WebTiledLayer.h:
        * platform/graphics/wince/FontPlatformData.h:
        * platform/graphics/wx/FontPlatformData.h:
        * platform/network/CredentialStorage.h:
        * platform/network/cf/FormDataStreamCFNet.h:
        * platform/network/curl/FormDataStreamCurl.h:
        * platform/network/qt/DnsPrefetchHelper.h:
        * platform/network/qt/QNetworkReplyHandler.h:
        * platform/win/PlatformScrollBar.h:
        * plugins/PluginDatabase.h:
        * plugins/PluginPackage.h:
        * plugins/PluginStream.h:
        * plugins/qt/PluginContainerQt.h:
        * plugins/symbian/npinterface.h:
        * rendering/RenderSelectionInfo.h:
        * rendering/SVGRenderSupport.h:
        * storage/IDBObjectStoreImpl.h:
        * svg/animation/SMILTimeContainer.h:
        * wml/WMLErrorHandling.h:
2010-06-22  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Run clean-header-guards to fix some header guards
        https://bugs.webkit.org/show_bug.cgi?id=41044

        No functional changes, thus no tests.

        This entire change was generated by running
        clean-header-guards, and then reverting changes
        to files which shouldn't be changed.  Those which
        are left all should be updated.

        Some of these changes are just fixing 755 permissions
        to be 644, since it seems various files have the wrong
        execute bit which don't need it.  clean-header-guards
        made those (welcome) permission fixes unintentionally.

        * DumpRenderTree/chromium/WebThemeControlDRT.h:
        * DumpRenderTree/chromium/WebThemeEngineDRT.h:
        * QtTestBrowser/fpstimer.h:

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

9 years ago2010-06-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 06:41:51 +0000 (06:41 +0000)]
2010-06-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename HTMLDocumentParser to LegacyHTMLDocumentParser
        https://bugs.webkit.org/show_bug.cgi?id=41043

        * src/WebEntities.cpp:
2010-06-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename HTMLDocumentParser to LegacyHTMLDocumentParser
        https://bugs.webkit.org/show_bug.cgi?id=41043

        As requested by Darin Adler.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * css/CSSStyleSheet.cpp:
        (WebCore::CSSStyleSheet::checkLoaded):
        * dom/Document.cpp:
        (WebCore::Document::write):
        * dom/DocumentFragment.cpp:
        * dom/DocumentParser.h:
        (WebCore::DocumentParser::asHTMLDocumentParser):
        * dom/XMLDocumentParserLibxml2.cpp:
        * dom/XMLDocumentParserQt.cpp:
        * html/HTML5Lexer.h:
        (WebCore::HTML5Lexer::columnNumber):
        * html/HTML5TreeBuilder.cpp:
        * html/HTMLDocument.cpp:
        (WebCore::HTMLDocument::createParser):
        * html/HTMLDocumentParser.cpp: Removed.
        * html/HTMLDocumentParser.h: Removed.
        * html/HTMLFormControlElement.cpp:
        * html/HTMLParserScheduler.cpp:
        (WebCore::parserChunkSize):
        * html/HTMLViewSourceDocument.cpp:
        (WebCore::HTMLViewSourceDocument::createParser):
        (WebCore::HTMLViewSourceDocument::addViewSourceToken):
        * html/HTMLViewSourceDocument.h:
        * html/LegacyHTMLDocumentParser.cpp: Copied from WebCore/html/HTMLDocumentParser.cpp.
        (WebCore::LegacyHTMLDocumentParser::LegacyHTMLDocumentParser):
        (WebCore::LegacyHTMLDocumentParser::reset):
        (WebCore::LegacyHTMLDocumentParser::begin):
        (WebCore::LegacyHTMLDocumentParser::setForceSynchronous):
        (WebCore::LegacyHTMLDocumentParser::processListing):
        (WebCore::LegacyHTMLDocumentParser::parseNonHTMLText):
        (WebCore::LegacyHTMLDocumentParser::scriptHandler):
        (WebCore::LegacyHTMLDocumentParser::scriptExecution):
        (WebCore::LegacyHTMLDocumentParser::parseComment):
        (WebCore::LegacyHTMLDocumentParser::parseServer):
        (WebCore::LegacyHTMLDocumentParser::parseProcessingInstruction):
        (WebCore::LegacyHTMLDocumentParser::parseText):
        (WebCore::LegacyHTMLDocumentParser::parseEntity):
        (WebCore::LegacyHTMLDocumentParser::parseDoctype):
        (WebCore::LegacyHTMLDocumentParser::parseTag):
        (WebCore::LegacyHTMLDocumentParser::continueProcessing):
        (WebCore::LegacyHTMLDocumentParser::advance):
        (WebCore::LegacyHTMLDocumentParser::willWriteHTML):
        (WebCore::LegacyHTMLDocumentParser::didWriteHTML):
        (WebCore::LegacyHTMLDocumentParser::write):
        (WebCore::LegacyHTMLDocumentParser::stopParsing):
        (WebCore::LegacyHTMLDocumentParser::processingData):
        (WebCore::LegacyHTMLDocumentParser::timerFired):
        (WebCore::LegacyHTMLDocumentParser::end):
        (WebCore::LegacyHTMLDocumentParser::finish):
        (WebCore::LegacyHTMLDocumentParser::finishWasCalled):
        (WebCore::LegacyHTMLDocumentParser::processToken):
        (WebCore::LegacyHTMLDocumentParser::processDoctypeToken):
        (WebCore::LegacyHTMLDocumentParser::~LegacyHTMLDocumentParser):
        (WebCore::LegacyHTMLDocumentParser::enlargeBuffer):
        (WebCore::LegacyHTMLDocumentParser::enlargeScriptBuffer):
        (WebCore::LegacyHTMLDocumentParser::executeScriptsWaitingForStylesheets):
        (WebCore::LegacyHTMLDocumentParser::notifyFinished):
        (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsIfReady):
        (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsTimerFired):
        (WebCore::LegacyHTMLDocumentParser::continueExecutingExternalScripts):
        (WebCore::LegacyHTMLDocumentParser::isWaitingForScripts):
        (WebCore::LegacyHTMLDocumentParser::setSrc):
        (WebCore::parseLegacyHTMLDocumentFragment):
        * html/LegacyHTMLDocumentParser.h: Copied from WebCore/html/HTMLDocumentParser.h.
        (WebCore::LegacyHTMLDocumentParser::asHTMLDocumentParser):
        * html/LegacyHTMLTreeConstructor.cpp:
        (WebCore::LegacyHTMLTreeConstructor::reportErrorToConsole):
        * html/LegacyHTMLTreeConstructor.h:
        * loader/FTPDirectoryDocument.cpp:
        (WebCore::FTPDirectoryDocumentParser::FTPDirectoryDocumentParser):
        (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
        (WebCore::FTPDirectoryDocumentParser::finish):
        * page/XSSAuditor.h:
2010-06-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename HTMLDocumentParser to LegacyHTMLDocumentParser
        https://bugs.webkit.org/show_bug.cgi?id=41043

        Update the hash.

        * Scripts/do-webcore-rename:

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

9 years ago2010-06-22 Shinichiro Hamaji <hamaji@chromium.org>
hamaji@chromium.org [Wed, 23 Jun 2010 06:35:18 +0000 (06:35 +0000)]
2010-06-22  Shinichiro Hamaji  <hamaji@chromium.org>

        Unreviewed attempt to fix the windows build.

        Split out HTML5DocumentParser yield/resume logic into a separate class
        https://bugs.webkit.org/show_bug.cgi?id=41018

        * WebCore.vcproj/WebCore.vcproj:

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

9 years ago2010-06-22 Sam Magnuson <smagnuson@netflix.com>
hamaji@chromium.org [Wed, 23 Jun 2010 06:30:15 +0000 (06:30 +0000)]
2010-06-22  Sam Magnuson  <smagnuson@netflix.com>

        Reviewed by Shinichiro Hamaji.

        Follow proper convention for variable declaration spacing.
        https://bugs.webkit.org/show_bug.cgi?id=40724

        Modified test so that 'int   a;' is not allowed.

        * Scripts/webkitpy/style/checkers/cpp.py:
        * Scripts/webkitpy/style/checkers/cpp_unittest.py:

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

9 years ago2010-06-22 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Wed, 23 Jun 2010 06:29:34 +0000 (06:29 +0000)]
2010-06-22  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: follow up to r61655 to make Chromium tests happy.

        * src/js/InspectorControllerImpl.js:
        (devtools.InspectorBackendImpl):

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

9 years ago2010-06-22 Eric Seidel <eric@webkit.org>
eric@webkit.org [Wed, 23 Jun 2010 06:18:49 +0000 (06:18 +0000)]
2010-06-22  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Split out HTML5DocumentParser yield/resume logic into a separate class
        https://bugs.webkit.org/show_bug.cgi?id=41018

        The HTML5DocumentParser is just the coordinator, and shouldn't have
        any real parsing logic of his own.  Continuing along that path, I'm
        moving the when-to-yield/resume logic out into a separate class.

        I could have create a new HTMLParserSchedulerHost virtual interface
        to allow the HTMLParserScheduler to talk back to the
        HTML5DocumentParser, but instead I just exposed the one method it
        needs (resumeParsing()) as a public method.  Since no code besides
        HTMLDocument (and DocumentFrament) ever should know about the
        HTML5DocumentParser DocumentParser subclass, no class should ever
        see the resumeParsing() method anyway.

        Most of this change is just moving code from HTML5DocumentParser
        to the new HTMLParserScheduler.

        Some of this change is wrapping previous direct access to
        m_continueNextChunkTimer.isActive() with isScheduledForResume().

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.xcodeproj/project.pbxproj:
        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::HTML5DocumentParser):
        (WebCore::HTML5DocumentParser::stopParsing):
        (WebCore::HTML5DocumentParser::processingData):
        (WebCore::HTML5DocumentParser::pumpLexerIfPossible):
        (WebCore::HTML5DocumentParser::isScheduledForResume):
        (WebCore::HTML5DocumentParser::resumeParsing):
        (WebCore::HTML5DocumentParser::pumpLexer):
        (WebCore::HTML5DocumentParser::end):
        (WebCore::HTML5DocumentParser::attemptToEnd):
        (WebCore::HTML5DocumentParser::endIfDelayed):
        * html/HTML5DocumentParser.h:
        (WebCore::HTML5DocumentParser::document):
         - Exposed for HTMLParserScheduler.
        * html/HTMLParserScheduler.cpp: Added.
        (WebCore::parserTimeLimit): Moved from HTML5DocumentParser.
        (WebCore::parserChunkSize): ditto.
        (WebCore::HTMLParserScheduler::HTMLParserScheduler):
        (WebCore::HTMLParserScheduler::~HTMLParserScheduler):
        (WebCore::isLayoutTimerActive):
        (WebCore::HTMLParserScheduler::continueNextChunkTimerFired):
         - Moved from HTML5DocumentParser.
        * html/HTMLParserScheduler.h: Added.
        (WebCore::HTMLParserScheduler::PumpSession::PumpSession):
         - Moved from HTML5DocumentParser.
        (WebCore::HTMLParserScheduler::shouldContinueParsing):
        (WebCore::HTMLParserScheduler::isScheduledForResume):

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

9 years ago* platform/qt/Skipped: Added an xhr test which requires progress events
levin@chromium.org [Wed, 23 Jun 2010 05:26:51 +0000 (05:26 +0000)]
* platform/qt/Skipped: Added an xhr test which requires progress events
next to the other xhr test which are disabled due to requiring progress events.

Reviewed by nobody (simple qt test fix).

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

9 years ago2010-06-22 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Wed, 23 Jun 2010 05:24:05 +0000 (05:24 +0000)]
2010-06-22  Kent Tamura  <tkent@chromium.org>

        Unreviewed, test expectation update.

        * platform/chromium/test_expectations.txt: send-data-blob.html fails.

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

9 years ago2010-06-22 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Wed, 23 Jun 2010 05:17:09 +0000 (05:17 +0000)]
2010-06-22  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: move nodeByPath from InjectedScript to InspectorBackend.

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

        * inspector/InjectedScriptHost.cpp:
        * inspector/InjectedScriptHost.h:
        * inspector/InjectedScriptHost.idl:
        * inspector/InspectorBackend.cpp:
        (WebCore::InspectorBackend::pushNodeByPathToFrontend):
        * inspector/InspectorBackend.h:
        * inspector/InspectorBackend.idl:
        * inspector/InspectorDOMAgent.cpp:
        (WebCore::InspectorDOMAgent::pushNodeByPathToFrontend):
        (WebCore::InspectorDOMAgent::nodeForPath):
        * inspector/InspectorDOMAgent.h:
        * inspector/InspectorFrontend.cpp:
        (WebCore::InspectorFrontend::didPushNodeByPathToFrontend):
        * inspector/InspectorFrontend.h:
        * inspector/front-end/DOMAgent.js:
        * inspector/front-end/ElementsPanel.js:
        (WebInspector.ElementsPanel.prototype.setDocument):
        * inspector/front-end/InjectedScript.js:
        * inspector/front-end/InjectedScriptAccess.js:

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

9 years agoREGRESSION: (r47291): Upload progress events are not fired for simple cross-site...
levin@chromium.org [Wed, 23 Jun 2010 04:39:13 +0000 (04:39 +0000)]
REGRESSION: (r47291): Upload progress events are not fired for simple cross-site XHR.
https://bugs.webkit.org/show_bug.cgi?id=39029

Reviewed by Alexey Proskuryakov.

WebCore:

Specifically, WebKit should fire upload events if one or more event listeners are
registered on the XMLHttpRequestUpload object when send is called in an async manner.

* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::createRequest): Allow upload events to be fired when there are
handlers for them in the cross-origin simple request case.

LayoutTests:

* http/tests/xmlhttprequest/simple-cross-origin-progress-events-expected.txt: Update results.
* http/tests/xmlhttprequest/simple-cross-origin-progress-events.html: Add a test which adds
  an upload progress event handler before XMLHttpRequest.send() is called.

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

9 years ago2010-06-22 Kinuko Yasuda <kinuko@chromium.org>
kinuko@chromium.org [Wed, 23 Jun 2010 04:16:19 +0000 (04:16 +0000)]
2010-06-22  Kinuko Yasuda  <kinuko@chromium.org>

        Unreviewed.

        Update test expectations for qt/gtk.

        * platform/gtk/fast/js/global-constructors-expected.txt:
        * platform/qt/fast/js/global-constructors-expected.txt:

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

9 years agoUnreviewed. Build fix.
hclam@chromium.org [Wed, 23 Jun 2010 04:13:42 +0000 (04:13 +0000)]
Unreviewed. Build fix.

Rebaseline some test results to make build bots green again.

* platform/chromium-mac/fast/js/switch-behaviour-expected.txt: Removed.
* platform/chromium-mac/websocket/tests/bad-sub-protocol-control-chars-expected.txt:
* platform/chromium-win/fast/js/switch-behaviour-expected.txt: Removed.
* platform/chromium-win/inspector/timeline-parse-html-expected.txt:
* platform/chromium-win/websocket/tests/bad-sub-protocol-control-chars-expected.txt:
* platform/chromium/test_expectations.txt:

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

9 years ago2010-06-22 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Wed, 23 Jun 2010 04:10:32 +0000 (04:10 +0000)]
2010-06-22  Kent Tamura  <tkent@chromium.org>

        Reviewed by Adam Barth.

        Fix uninitialized SubframeLoader::m_containsPlugins
        https://bugs.webkit.org/show_bug.cgi?id=41035

        * loader/SubframeLoader.cpp:
        (WebCore::SubframeLoader::SubframeLoader):
         Initialize m_containsPlugins with false.

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

9 years ago2010-06-22 Kinuko Yasuda <kinuko@chromium.org>
kinuko@chromium.org [Wed, 23 Jun 2010 03:55:57 +0000 (03:55 +0000)]
2010-06-22  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Adam Barth.

        Add BlobBuilder.idl to expose BlobBuilder interface
        https://bugs.webkit.org/show_bug.cgi?id=40593

        (Resubmitting with the correct file set.)

        BlobBuilder is defined in FileAPI's FileWriter spec.
        (http://dev.w3.org/2009/dap/file-system/file-writer.html)

        Also removes the ENABLE_FILE_WRITER ifdef guard for BlobBuilder.

        Tests: http/tests/local/blob/send-data-blob.html
               http/tests/local/blob/send-hybrid-blob.html
               http/tests/local/blob/send-sliced-data-blob.html

        * Android.derived.jscbindings.mk:
        * Android.derived.v8bindings.mk:
        * CMakeLists.txt:
        * DerivedSources.cpp:
        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pri:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/BlobBuilder.cpp:
        (WebCore::BlobBuilder::append):
        * html/BlobBuilder.h:
        * html/BlobBuilder.idl: Added.
        * page/DOMWindow.idl:
2010-06-22  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Adam Barth.

        Add BlobBuilder.idl to expose BlobBuilder interface
        https://bugs.webkit.org/show_bug.cgi?id=40593

        (Resubmitting with the correct file set.)

        Add new layout tests to test BlobBuilder interface.
        Also update test expectations affected by adding the constructors to DOMWindow.

        * fast/dom/Window/window-properties-expected.txt:
        * fast/dom/Window/window-property-descriptors-expected.txt:
        * fast/dom/constructed-objects-prototypes-expected.txt:
        * fast/dom/prototype-inheritance-2-expected.txt:
        * fast/dom/prototype-inheritance-expected.txt:
        * fast/js/global-constructors-expected.txt:
        * http/tests/local/blob/resources/hybrid-blob-util.js: Added.
        * http/tests/local/blob/script-tests/TEMPLATE.html: Added.
        * http/tests/local/blob/script-tests/send-data-blob.js: Added.
        * http/tests/local/blob/script-tests/send-hybrid-blob.js: Added.
        * http/tests/local/blob/script-tests/send-sliced-data-blob.js: Added.
        * http/tests/local/blob/send-data-blob-expected.txt: Added.
        * http/tests/local/blob/send-data-blob.html: Added.
        * http/tests/local/blob/send-hybrid-blob-expected.txt: Added.
        * http/tests/local/blob/send-hybrid-blob.html: Added.
        * http/tests/local/blob/send-sliced-data-blob-expected.txt: Added.
        * http/tests/local/blob/send-sliced-data-blob.html: Added.
        * http/tests/local/resources/file-for-drag-to-send2.txt: Added.
        * http/tests/resources/post-and-verify-hybrid.cgi: Added.
        * platform/chromium/fast/dom/prototype-inheritance-expected.txt:
        * platform/gtk/Skipped: Added send-hybrid-blob.html and send-sliced-data-blob.html because they need eventSender.beginDragWithFiles and Blob.slice.
        * platform/gtk/fast/dom/Window/window-properties-expected.txt:
        * platform/gtk/fast/dom/Window/window-property-descriptors-expected.txt:
        * platform/gtk/fast/dom/prototype-inheritance-expected.txt:
        * platform/qt/Skipped: Added send-hybrid-blob.html and send-sliced-data-blob.html because they need eventSender.beginDragWithFiles and Blob.slice.
        * platform/qt/fast/dom/Window/window-properties-expected.txt:
        * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:
        * platform/qt/fast/dom/prototype-inheritance-expected.txt:
        * platform/win/Skipped: Added send-hybrid-blob.html and send-sliced-data-blob.html because they need eventSender.beginDragWithFiles and Blob.slice.
        * platform/win/fast/dom/Window/window-property-descriptors-expected.txt:
        * platform/win/fast/dom/prototype-inheritance-2-expected.txt:
        * platform/win/fast/dom/prototype-inheritance-expected.txt:

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

9 years ago2010-06-22 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Wed, 23 Jun 2010 02:12:08 +0000 (02:12 +0000)]
2010-06-22  Kent Tamura  <tkent@chromium.org>

        Unreviewed, build fix for r61648.

        * platform/graphics/GraphicsContext3D.h:

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

9 years ago2010-06-22 Vangelis Kokkevis <vangelis@chromium.org>
tkent@chromium.org [Wed, 23 Jun 2010 01:55:50 +0000 (01:55 +0000)]
2010-06-22  Vangelis Kokkevis  <vangelis@chromium.org>

        Reviewed by Kent Tamura.

        Define GraphicsContext3D::platformLayer() for all remaining (non PLATFORM(MAC))
        ports to get RenderLayerBacking.cpp compiling again.
        https://bugs.webkit.org/show_bug.cgi?id=41026

        * platform/graphics/GraphicsContext3D.h:
        (WebCore::GraphicsContext3D::platformLayer):

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

9 years ago2010-06-22 Eric Seidel <eric@webkit.org>
commit-queue@webkit.org [Wed, 23 Jun 2010 01:49:42 +0000 (01:49 +0000)]
2010-06-22  Eric Seidel  <eric@webkit.org>

        Unreviewed.  Test commit for commit-queue@webkit.org.

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

9 years ago2010-06-22 Eric Seidel <eric@webkit.org>
eric@webkit.org [Wed, 23 Jun 2010 01:41:39 +0000 (01:41 +0000)]
2010-06-22  Eric Seidel  <eric@webkit.org>

        Unreviewed.  Rolling out http://trac.webkit.org/changeset/61638
        made a few tests crash.

        Make PendingScript hold a CachedResourceClient open for its lifetime
        https://bugs.webkit.org/show_bug.cgi?id=40968

        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::watchForLoad):
        (WebCore::HTML5DocumentParser::notifyFinished):
        * html/HTML5ScriptRunner.cpp:
        (WebCore::HTML5ScriptRunner::~HTML5ScriptRunner):
        (WebCore::HTML5ScriptRunner::sourceFromPendingScript):
        (WebCore::HTML5ScriptRunner::isPendingScriptReady):
        (WebCore::HTML5ScriptRunner::executePendingScript):
        (WebCore::HTML5ScriptRunner::hasScriptsWaitingForLoad):
        (WebCore::HTML5ScriptRunner::watchForLoad):
        (WebCore::HTML5ScriptRunner::stopWatchingForLoad):
        (WebCore::HTML5ScriptRunner::executeScriptsWaitingForLoad):
        (WebCore::HTML5ScriptRunner::executeScriptsWaitingForStylesheets):
        (WebCore::HTML5ScriptRunner::requestScript):
        * html/HTML5ScriptRunner.h:
        (WebCore::HTML5ScriptRunner::PendingScript::):
        (WebCore::HTML5ScriptRunner::PendingScript::PendingScript):
        (WebCore::HTML5ScriptRunner::PendingScript::watchingForLoad):
        * html/HTML5ScriptRunnerHost.h:

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

9 years agoWebCore: Fix for Crash when the renderer for the button in <input type="number">...
adele@apple.com [Wed, 23 Jun 2010 01:27:01 +0000 (01:27 +0000)]
WebCore: Fix for Crash when the renderer for the button in <input type="number"> goes away during event handling
https://bugs.webkit.org/show_bug.cgi?id=41013

Reviewed by Darin Adler.

Test: fast/forms/input-number-crash.html

* rendering/TextControlInnerElements.cpp: (WebCore::SpinButtonElement::defaultEventHandler):
Nil check the RenderBox since its possible the renderer has gone away during event handling.

LayoutTests: Test for Crash when the renderer for the button in <input type="number"> goes away during event handling
https://bugs.webkit.org/show_bug.cgi?id=41013

Reviewed by Darin Adler.

* fast/forms/input-number-crash-expected.txt: Added.
* fast/forms/input-number-crash.html: Added.

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

9 years ago2010-06-22 Eric Seidel <eric@webkit.org>
eric@webkit.org [Wed, 23 Jun 2010 00:54:38 +0000 (00:54 +0000)]
2010-06-22  Eric Seidel  <eric@webkit.org>

        Unreviewed.  Add Tony Gentilcore now that he's a committer.

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

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

9 years agoVersioning.
mrowe@apple.com [Wed, 23 Jun 2010 00:46:34 +0000 (00:46 +0000)]
Versioning.

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

9 years ago2010-06-22 Eric Seidel <eric@webkit.org>
eric@webkit.org [Wed, 23 Jun 2010 00:25:17 +0000 (00:25 +0000)]
2010-06-22  Eric Seidel  <eric@webkit.org>

        No review, skipping test due to revealed bug in ClipboardQt.

        editing/execCommand/copy-without-selection.html fails on Qt after r61637
        https://bugs.webkit.org/show_bug.cgi?id=41025

        The Qt Clipboard::setData code wrongly reinterpret_casts UChar
        data as char* data.  This was exposed by the previous commit
        which no long strips \0 characters during innerHTML.

        Skipping the affected test until a Qt person can fix
        platform/qt/ClipboardQt.cpp

        * platform/qt/Skipped:

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

9 years ago2010-06-22 Tony Gentilcore <tonyg@chromium.org>
abarth@webkit.org [Tue, 22 Jun 2010 23:56:22 +0000 (23:56 +0000)]
2010-06-22  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Eric Seidel.

        Add layout tests which test line numbers for both inline and event handler
        scripts in HTML documents.
        https://bugs.webkit.org/show_bug.cgi?id=40649

        * fast/js/resources/script-line-number.js: Added.
        (getLineFromError):
        (assertErrorOnLine):
        * fast/js/script-line-number-expected.txt: Added.
        * fast/js/script-line-number.html: Added.
2010-06-22  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Eric Seidel.

        Pull script line number from DocumentParser instead of pushing it to ScriptController
        https://bugs.webkit.org/show_bug.cgi?id=40649

        This approach is cleaner and improves WebCore/benchmarks/parser/html-parser.html by ~2%.

        Tests: fast/js/script-line-number.html

        * bindings/js/ScriptController.cpp:
        (WebCore::ScriptController::ScriptController):
        (WebCore::ScriptController::eventHandlerLineNumber):
        * bindings/js/ScriptController.h:
        * bindings/v8/ScriptController.cpp:
        (WebCore::ScriptController::eventHandlerLineNumber):
        (WebCore::ScriptController::eventHandlerColumnNumber):
        * bindings/v8/ScriptController.h:
        * bindings/v8/ScriptEventListener.cpp:
        (WebCore::createAttributeEventListener):
        * bindings/v8/V8Proxy.h:
        * dom/XMLDocumentParserLibxml2.cpp:
        (WebCore::XMLDocumentParser::startElementNs):
        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::pumpLexer):
        * html/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::processToken):

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

9 years ago2010-06-22 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 22 Jun 2010 23:55:28 +0000 (23:55 +0000)]
2010-06-22  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Add a SimpleArgumentCoder class template that works on POD types
        https://bugs.webkit.org/show_bug.cgi?id=41023

        * Platform/CoreIPC/SimpleArgumentCoder.h: Added.
        (CoreIPC::SimpleArgumentCoder::encode):
        (CoreIPC::SimpleArgumentCoder::decode):
        * Shared/WebCoreTypeArgumentMarshalling.h:
        (CoreIPC::):
        * WebKit2.xcodeproj/project.pbxproj:

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

9 years ago2010-06-22 Tony Gentilcore <tonyg@chromium.org>
abarth@webkit.org [Tue, 22 Jun 2010 23:46:53 +0000 (23:46 +0000)]
2010-06-22  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Eric Seidel.

        Make PendingScript hold a CachedResourceClient open for its lifetime
        https://bugs.webkit.org/show_bug.cgi?id=40968

        This replaces the mechanism introduced in r61374 with a simpler
        approach from preventing unexpected purges; always keep a client open.
        This will approach will allow deferred scripts to add a client after
        the resource may have already been loaded without having to worry about
        the buffer being purged in the meantime.

        No new tests because making a CachedResource purge itself is not
        testable from a LayoutTest.

        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::watchForLoad):
        (WebCore::HTML5DocumentParser::notifyFinished):
        * html/HTML5ScriptRunner.cpp:
        (WebCore::HTML5ScriptRunner::~HTML5ScriptRunner):
        (WebCore::HTML5ScriptRunner::sourceFromPendingScript):
        (WebCore::HTML5ScriptRunner::isPendingScriptReady):
        (WebCore::HTML5ScriptRunner::executePendingScript):
        (WebCore::HTML5ScriptRunner::watchForLoad):
        (WebCore::HTML5ScriptRunner::stopWatchingForLoad):
        (WebCore::HTML5ScriptRunner::executeScriptsWaitingForLoad):
        (WebCore::HTML5ScriptRunner::executeScriptsWaitingForStylesheets):
        (WebCore::HTML5ScriptRunner::requestScript):
        * html/HTML5ScriptRunner.h:
        (WebCore::HTML5ScriptRunner::PendingScript::PendingScript):
        (WebCore::HTML5ScriptRunner::PendingScript::~PendingScript):
        (WebCore::HTML5ScriptRunner::PendingScript::setCachedScript):
        (WebCore::HTML5ScriptRunner::PendingScript::cachedScript):
        (WebCore::HTML5ScriptRunner::PendingScript::notifyFinished):
        * html/HTML5ScriptRunnerHost.h:

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

9 years ago2010-06-22 Eric Seidel <eric@webkit.org>
abarth@webkit.org [Tue, 22 Jun 2010 23:43:59 +0000 (23:43 +0000)]
2010-06-22  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Fragment parsing needs to go through the HTML5 Parser code path
        https://bugs.webkit.org/show_bug.cgi?id=40645

        * fast/canvas/canvas-getContext-invalid-expected.txt:
         - \0 is now converted to \uFFFD per HTML5.
        * fast/js/null-char-in-string-expected.txt: ditto.
        * fast/js/switch-behaviour-expected.txt: ditto.
        * fast/parser/comment-in-textarea-expected.txt:
         - <textarea> is parsed in the RCDATA state, which means
           that comments are ignored, thus the </textarea> in the
           comment correctly closes the <textarea>.  This test is invalid.
           Our new behavior matches minefield.
        * fast/tokenizer/lessthan-terminates-tags-and-attrs-expected.txt:
         - This test is invalid and probably should just be removed.
           This same behavior is tested by fast/invalid/016.html.
        * inspector/timeline-parse-html-expected.txt:
         - The "extra" ParseHTML is expected.  The HTML5 Parser tells the
           inspector about every parser pump, even ones which pump no data.
           The HTML5 parser pumps one last time in finish() to flush any
           buffered characters.  Eventually we'll teach the inspector to
           filter out (not display) 0-sized pumps.
        * storage/domstorage/complex-values-expected.txt:
         - \0 is now converted to \uFFFD per HTML5
        * svg/dom/fuzz-path-parser-expected.txt: ditto.
        * svg/dom/rgb-color-parser-expected.txt: ditto
        * websocket/tests/bad-sub-protocol-control-chars-expected.txt: ditto.
2010-06-22  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Fragment parsing needs to go through the HTML5 Parser code path
        https://bugs.webkit.org/show_bug.cgi?id=40645

        Added a new HTML5DocumentParser::parseHTMLDocumentFragment
        codepath which optionally calls through to the old fragment
        parsing path, now renamed parseLegacyHTMLDocumentFragment.

        * dom/Element.cpp:
        (WebCore::Element::createContextualFragment):
         - Use document()->createDocumentFragment() instead
           of DocumentFragment::create() to match other callers
           (and not depend on DocumentFragment.h).
         - Update call to parseHTMLDocumentFragment to use the new
           HTML5 parser codepath.
        * dom/MappedAttributeEntry.h:
         - Add a FIXME about this horrible enum placement.
           Sadly this will cause a world-rebuild for everyone.
        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::HTML5DocumentParser):
        (WebCore::HTML5DocumentParser::runScriptsForPausedTreeConstructor):
         - The main pumpLexer function has gotten to large.  Move the script
           running logic into this new function.
         - Handle the case where we have no m_scriptRunner (fragment case).
        (WebCore::HTML5DocumentParser::pumpLexer):
         - Use new runScriptsForPausedTreeConstructor().
        (WebCore::HTML5DocumentParser::executingScript):
        (WebCore::HTML5DocumentParser::inScriptExecution):
         - New function to handle the case where m_scriptRunner is null.
        (WebCore::HTML5DocumentParser::resumeParsingAfterScriptExecution):
         - Use inScriptExecution() instead of m_scriptRunner->inScriptExecution().
        (WebCore::HTML5DocumentParser::executeScript): ditto.
        (WebCore::HTML5DocumentParser::notifyFinished): ditto.
        (WebCore::HTML5DocumentParser::executeScriptsWaitingForStylesheets): ditto.
        (WebCore::shouldUseLegacyParser):
         - Helper function to check the html5ParserEnabled() setting.
        (WebCore::HTML5DocumentParser::parseHTMLDocumentFragment):
         - Run HTML5DocumentParser in fragment mode, or optionally run
           the legacy parser if !html5ParserEnabled().
        * html/HTML5DocumentParser.h:
        * html/HTML5TreeBuilder.cpp:
        (WebCore::HTML5TreeBuilder::HTML5TreeBuilder):
        (WebCore::HTML5TreeBuilder::passTokenToLegacyParser):
         - Implement the FragmentScriptingNotAllowed hack for platform/Pasteboard.
        * html/HTML5TreeBuilder.h:
        * html/HTMLDocumentParser.cpp:
        (WebCore::parseLegacyHTMLDocumentFragment):
         - Renamed from parseHTMLDocumentFragment
        * html/HTMLDocumentParser.h:
        * html/HTMLElement.cpp:
        (WebCore::HTMLElement::insertAdjacentHTML):
         - Call HTML5DocumentParser::parseHTMLDocumentFragment.
        * platform/mac/PasteboardMac.mm:
        (WebCore::Pasteboard::documentFragment): ditto.
        * xml/XSLTProcessor.cpp:
        (WebCore::createFragmentFromSource): ditto.

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

9 years ago2010-06-22 Eric Seidel <eric@webkit.org>
eric@webkit.org [Tue, 22 Jun 2010 23:37:25 +0000 (23:37 +0000)]
2010-06-22  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Remove Gtk 64-Release bot from core since it's broken
        https://bugs.webkit.org/show_bug.cgi?id=41022

        This bot alone has been responsible for more than 72 hours of
        commit-queue blockage in the last week.  The bot is broken -- keeps
        losing its display server or similar.  Until the Gtk folks can fix the
        bot, we need to remove it from core.  The WebKit community can't keep
        it green as is.

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

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

9 years ago2010-06-22 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 22 Jun 2010 23:35:44 +0000 (23:35 +0000)]
2010-06-22  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Use the ArgumentCoder class template for decoding
        https://bugs.webkit.org/show_bug.cgi?id=41021

        * Platform/CoreIPC/ArgumentCoder.h:
        (CoreIPC::ArgumentCoder::decode):
        * Platform/CoreIPC/ArgumentDecoder.h:
        (CoreIPC::ArgumentDecoder::decode):
        * Shared/WebCoreTypeArgumentMarshalling.h:
        (CoreIPC::):

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

9 years ago2010-06-22 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 22 Jun 2010 23:22:57 +0000 (23:22 +0000)]
2010-06-22  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.

        Change the encode functions to be specializations of a class template
        https://bugs.webkit.org/show_bug.cgi?id=41015

        * Platform/CoreIPC/ArgumentCoder.h: Added.
        (CoreIPC::ArgumentCoder::encode):
        * Platform/CoreIPC/ArgumentEncoder.h:
        (CoreIPC::ArgumentEncoder::encode):
        * Shared/WebCoreTypeArgumentMarshalling.h:
        (CoreIPC::):
        * WebKit2.xcodeproj/project.pbxproj:

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

9 years agoGet rid of more USE_LIBDISPATCH code.
andersca@apple.com [Tue, 22 Jun 2010 23:21:20 +0000 (23:21 +0000)]
Get rid of more USE_LIBDISPATCH code.

Reviewed by Sam Weinig.

* Plugins/Hosted/NetscapePluginHostProxy.h:

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

9 years ago2010-06-22 Eric Seidel <eric@webkit.org>
abarth@webkit.org [Tue, 22 Jun 2010 23:07:53 +0000 (23:07 +0000)]
2010-06-22  Eric Seidel  <eric@webkit.org>

        Reviewed by Geoffrey Garen.

        Two fast/dynamic tests needlessly depend on legacy <tag<tag> parsing behavior
        https://bugs.webkit.org/show_bug.cgi?id=40946

        These two tests would fail when we turned on
        the HTML5 Lexer code path for DocumentFragment parsing.
        This old parser quirk is covered by several other tests
        including fast/invalid/016.html.

        * fast/dynamic/insertAdjacentHTML.html:
        * fast/dynamic/insertAdjacentText.html:

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

9 years ago2010-06-22 Chris Marrin <cmarrin@apple.com>
cmarrin@apple.com [Tue, 22 Jun 2010 22:23:57 +0000 (22:23 +0000)]
2010-06-22  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

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

        Final phase of moving ownership of WebGLLayer to GraphicsContext3D.
        As it turns out, I still have to have a separate CGLContextObj for
        rendering because Core Animation composites in a separate thread,
        so we need to disconnect WebGL rendering from CA compositing. But
        this change is still worthwhile because it reduces dependencies
        and makes it easier to port WebGL to other platforms.

        No new tests since this is just restructuring and the current tests
        are all still valid and do a sufficient test of WebGL functionality.

        * platform/graphics/GraphicsContext3D.h:
        (WebCore::GraphicsContext3D::platformLayer):
        * platform/graphics/GraphicsLayer.h:
        (WebCore::GraphicsLayer::setContentsToWebGL):
        (WebCore::GraphicsLayer::setWebGLNeedsDisplay):
        * platform/graphics/mac/GraphicsContext3DMac.mm: Add creation of WebGLLayer
        (WebCore::GraphicsContext3D::GraphicsContext3D):
        * platform/graphics/mac/GraphicsLayerCA.h:
        (WebCore::GraphicsLayerCA::):
        * platform/graphics/mac/GraphicsLayerCA.mm: Handle setting of WebGLLayer as content the same as for MediaLayer. Also changed WebGL related names for clarity
        (WebCore::GraphicsLayerCA::GraphicsLayerCA):
        (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):
        (WebCore::GraphicsLayerCA::updateContentsWebGLLayer):
        (WebCore::GraphicsLayerCA::setContentsToWebGL):
        (WebCore::GraphicsLayerCA::setWebGLNeedsDisplay):
        * platform/graphics/mac/WebGLLayer.h:
        * platform/graphics/mac/WebGLLayer.mm: Got rid of storage for context and texture, now just store GraphicsContext3D and get them from there when needed
        (-[WebGLLayer copyCGLPixelFormatForDisplayMask:]):
        (-[WebGLLayer copyCGLContextForPixelFormat:]):
        (-[WebGLLayer drawInCGLContext:pixelFormat:forLayerTime:displayTime:]):
        (-[WebGLLayer copyImageSnapshotWithColorSpace:]):
        * rendering/RenderLayerBacking.cpp: Changed init of WebGL contentsLayer to pass WebGLLayer rather than GraphicsContext3D
        (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration):
        (WebCore::RenderLayerBacking::rendererContentChanged):

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

9 years ago* html/HTMLTableCellElement.cpp:
darin@apple.com [Tue, 22 Jun 2010 22:13:24 +0000 (22:13 +0000)]
* html/HTMLTableCellElement.cpp:
(WebCore::HTMLTableCellElement::parseMappedAttribute): Removed incorrect FIXME comments.

Reviewed by Dave Hyatt.

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

9 years ago<rdar://problem/8119403> REGRESSION (r61548): PLT is almost 1.5% slower, Google page...
mitz@apple.com [Tue, 22 Jun 2010 22:10:10 +0000 (22:10 +0000)]
<rdar://problem/8119403> REGRESSION (r61548): PLT is almost 1.5% slower, Google page cycler slower
https://bugs.webkit.org/show_bug.cgi?id=41012

Reviewed by Anders Carlsson.

* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlock::computeHorizontalPositionsForLine): Removed a redundant statement that was
left over in the original patch and resulted in double the calls to RenderText::width() here.
(WebCore::RenderBlock::findNextLineBreak): Changed the order of evaluating conditions for a
potential speedup.

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

9 years agoGet rid of the USE_LIBDISPATCH code.
andersca@apple.com [Tue, 22 Jun 2010 21:16:39 +0000 (21:16 +0000)]
Get rid of the USE_LIBDISPATCH code.

Reviewed by Sam Weinig.

* Plugins/Hosted/NetscapePluginHostProxy.mm:
(WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
(WebKit::NetscapePluginHostProxy::~NetscapePluginHostProxy):

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

9 years agoAlexey asked me to take out the autorelease pools because he believes
darin@apple.com [Tue, 22 Jun 2010 20:30:42 +0000 (20:30 +0000)]
Alexey asked me to take out the autorelease pools because he believes
that there is no code that should be running using Objective-C
autorelease. Most likely, the code that is triggering these stderr
messages is incorrect, and that bug should be fixed instead.

Reviewed by Alexey Proskuryakov.

* workers/WorkerRunLoop.cpp:
(WebCore::WorkerRunLoop::run): Roll out use of AutodrainedPool.

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

9 years agoFix autorelease problem seen when running worker regression tests.
darin@apple.com [Tue, 22 Jun 2010 20:26:07 +0000 (20:26 +0000)]
Fix autorelease problem seen when running worker regression tests.
We were seeing logs to stderr saying autorelease was used without
an autorelease pool being set up.

Reviewed by Brady Eidson.

* workers/WorkerRunLoop.cpp:
(WebCore::WorkerRunLoop::run): Use an AutodrainedPool as the file
thread, icon database, and database thread do. No effect on platforms
other than Mac.

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

9 years ago2010-06-22 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 22 Jun 2010 19:54:41 +0000 (19:54 +0000)]
2010-06-22  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Wean NetscapePluginHostManager of any knowledge about WebNetscapePluginPackage
        https://bugs.webkit.org/show_bug.cgi?id=41006

        * Plugins/Hosted/NetscapePluginHostManager.h:
        * Plugins/Hosted/NetscapePluginHostManager.mm:
        (WebKit::NetscapePluginHostManager::hostForPlugin):
        (WebKit::NetscapePluginHostManager::spawnPluginHost):
        (WebKit::NetscapePluginHostManager::instantiatePlugin):
        (WebKit::NetscapePluginHostManager::createPropertyListFile):
        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
        (-[WebHostedNetscapePluginView createPlugin]):
        * Plugins/WebNetscapePluginPackage.mm:
        (-[WebNetscapePluginPackage createPropertyListFile]):

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

9 years agoImplement PluginInfoStore::shouldUsePlugin.
andersca@apple.com [Tue, 22 Jun 2010 19:39:13 +0000 (19:39 +0000)]
Implement PluginInfoStore::shouldUsePlugin.

Reviewed by Sam Weinig.

* UIProcess/Plugins/PluginInfoStore.h:
* UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
(WebKit::PluginInfoStore::getPluginInfo):
(WebKit::PluginInfoStore::shouldUsePlugin):
* WebKit2.xcodeproj/project.pbxproj:

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

9 years agoAdding regular expression caching to JavaScriptCore
zherczeg@webkit.org [Tue, 22 Jun 2010 19:16:57 +0000 (19:16 +0000)]
Adding regular expression caching to JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=38142

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

The cache is based on Round Robin eviction policy, and
can cache at most 256 character long regular expressions,
and at most 256 of them. These values can be changed at compile time.

* GNUmakefile.am:
* JavaScriptCore.gypi:
* JavaScriptCore.pro:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCore.xcodeproj/project.pbxproj:
* bytecompiler/NodesCodegen.cpp:
(JSC::RegExpNode::emitBytecode):
* runtime/JSGlobalData.cpp:
(JSC::JSGlobalData::JSGlobalData):
(JSC::JSGlobalData::~JSGlobalData):
* runtime/JSGlobalData.h:
(JSC::JSGlobalData::regExpCache):
* runtime/RegExpCache.cpp: Added.
(JSC::RegExpCache::lookupOrCreate):
(JSC::RegExpCache::create):
(JSC::RegExpCache::RegExpCache):
* runtime/RegExpCache.h: Added.
* runtime/RegExpConstructor.cpp:
(JSC::constructRegExp):
* runtime/RegExpKey.h: Added.
(JSC::RegExpKey::RegExpKey):
(JSC::RegExpKey::getFlagsValue):
(WTF::operator==):
(WTF::):
* runtime/RegExpPrototype.cpp:
(JSC::regExpProtoFuncCompile):
* runtime/StringPrototype.cpp:
(JSC::stringProtoFuncMatch):
(JSC::stringProtoFuncSearch):

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

9 years agoAX: If an element that is a continuation is removed, its parent tree is not notified...
cfleizach@apple.com [Tue, 22 Jun 2010 19:01:39 +0000 (19:01 +0000)]
AX: If an element that is a continuation is removed, its parent tree is not notified appropriately that their children have changed
https://bugs.webkit.org/show_bug.cgi?id=41000

Reviewed by Darin Adler.

WebCore:

Test: accessibility/removed-continuation-element-causes-crash.html

* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::updateChildrenIfNecessary):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::childrenChanged):
(WebCore::AccessibilityRenderObject::addChildren):
* accessibility/AccessibilityRenderObject.h:

LayoutTests:

* accessibility/removed-continuation-element-causes-crash-expected.txt: Added.
* accessibility/removed-continuation-element-causes-crash.html: Added.

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

9 years agoOverride setFailed() in each image decoder to clean up any temporary
pkasting@chromium.org [Tue, 22 Jun 2010 18:02:14 +0000 (18:02 +0000)]
Override setFailed() in each image decoder to clean up any temporary
objects.
https://bugs.webkit.org/show_bug.cgi?id=35411

Reviewed by Adam Barth.

In a few cases, we need to be careful to avoid deleting objects until
after they're no longer needed.  These cases usually mean some jumping
through hoops, to the detriment of code simplicity.

No layout tests because this does not change the visible output of
decoding in any way.

* platform/image-decoders/ImageDecoder.h:
(WebCore::ImageDecoder::setData):
* platform/image-decoders/bmp/BMPImageDecoder.cpp:
(WebCore::BMPImageDecoder::setFailed):
(WebCore::BMPImageDecoder::decode):
* platform/image-decoders/bmp/BMPImageDecoder.h:
* platform/image-decoders/bmp/BMPImageReader.cpp:
(WebCore::BMPImageReader::decodeBMP):
(WebCore::BMPImageReader::readInfoHeaderSize):
(WebCore::BMPImageReader::processInfoHeader):
(WebCore::BMPImageReader::readInfoHeader):
(WebCore::BMPImageReader::processBitmasks):
(WebCore::BMPImageReader::processColorTable):
(WebCore::BMPImageReader::processRLEData):
(WebCore::BMPImageReader::processNonRLEData):
* platform/image-decoders/bmp/BMPImageReader.h:
(WebCore::BMPImageReader::):
* platform/image-decoders/gif/GIFImageDecoder.cpp:
(WebCore::GIFImageDecoder::setFailed):
(WebCore::GIFImageDecoder::decode):
* platform/image-decoders/gif/GIFImageDecoder.h:
* platform/image-decoders/ico/ICOImageDecoder.cpp:
(WebCore::ICOImageDecoder::setFailed):
(WebCore::ICOImageDecoder::decode):
* platform/image-decoders/ico/ICOImageDecoder.h:
* platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
(WebCore::JPEGImageReader::decode):
(WebCore::JPEGImageDecoder::setFailed):
(WebCore::JPEGImageDecoder::decode):
* platform/image-decoders/jpeg/JPEGImageDecoder.h:
* platform/image-decoders/png/PNGImageDecoder.cpp:
(WebCore::PNGImageReader::decode):
(WebCore::PNGImageDecoder::PNGImageDecoder):
(WebCore::PNGImageDecoder::setFailed):
(WebCore::PNGImageDecoder::headerAvailable):
(WebCore::PNGImageDecoder::decode):
* platform/image-decoders/png/PNGImageDecoder.h:

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

9 years ago2010-06-04 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Tue, 22 Jun 2010 15:56:29 +0000 (15:56 +0000)]
2010-06-04  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Darin Adler.

        Remove side effects of form submission and prepare FormDataBuilder for splitting up.
        https://bugs.webkit.org/show_bug.cgi?id=40184

        Refactoring, covered by existing tests.

        * html/HTMLFormElement.cpp:
        (WebCore::HTMLFormElement::prepareFormSubmission):
            * Changed to use new accessors on FormDataBuilder;
            * Simplified the logic around action URL;
            * Removed form submission side effect of element's enctype property being updated when
                submitting a mailto form;
            * Removed unnecessary updating of action URL for mailto forms.
        (WebCore::HTMLFormElement::submit): Moved action URL check into prepareFormSubmission.
        (WebCore::HTMLFormElement::parseMappedAttribute): Updated to use new methods on FormDataBuilder.
        * html/HTMLFormElement.h: Removed decls for isMailtoForm and dataEncoding methods;
            moved m_target and m_url to FormDataBuilder.
        * platform/network/FormData.cpp:
        (WebCore::FormData::appendDOMFormData): Removed unnecessary instantiation of FormDataBuilder.
        * platform/network/FormDataBuilder.cpp:
        (WebCore::FormDataBuilder::parseAction): Moved from HTMLFormControl.
        * platform/network/FormDataBuilder.h:
        (WebCore::FormDataBuilder::action): Ditto.
        (WebCore::FormDataBuilder::target): Ditto.
        (WebCore::FormDataBuilder::setTarget): Ditto.

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

9 years ago2010-06-22 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Tue, 22 Jun 2010 14:58:46 +0000 (14:58 +0000)]
2010-06-22  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: inspector/elements-panel-limited-children.html test fails
        https://bugs.webkit.org/show_bug.cgi?id=40924

        * http/tests/inspector/inspector-test.js:
        (onload):
        (frontend_setupTestEnvironment): always start inspector test with Elements panel as current one.
        * inspector/elements-panel-limited-children.html:

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

9 years ago2010-06-22 Mikhail Naganov <mnaganov@chromium.org>
mnaganov@chromium.org [Tue, 22 Jun 2010 14:40:46 +0000 (14:40 +0000)]
2010-06-22  Mikhail Naganov  <mnaganov@chromium.org>

        Reviewed by Pavel Feldman.

        [Chromium] Clean up after removal of static WebDevToolsAgentClient::sendMessageToFrontendOnIOThread.

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

        * public/WebDevToolsAgentClient.h:

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

9 years ago[Qt] Fix compilation with QT_NO_COMBOBOX.
hausmann@webkit.org [Tue, 22 Jun 2010 13:54:35 +0000 (13:54 +0000)]
[Qt] Fix compilation with QT_NO_COMBOBOX.

Patch by Tasuku Suzuki <tasuku.suzuki@nokia.com> on 2010-06-22
Reviewed by Simon Hausmann.

* WebCoreSupport/ChromeClientQt.cpp:
(WebCore::ChromeClientQt::createSelectPopup):

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

9 years agoAdd native call support for ARM and Thumb-2 JIT.
loki@webkit.org [Tue, 22 Jun 2010 12:25:03 +0000 (12:25 +0000)]
Add native call support for ARM and Thumb-2 JIT.
https://bugs.webkit.org/show_bug.cgi?id=40231

Reviewed by Geoffrey Garen.

* jit/JITOpcodes.cpp:
(JSC::JIT::privateCompileCTINativeCall):
* jit/JITOpcodes32_64.cpp:
(JSC::JIT::privateCompileCTINativeCall):
* wtf/Platform.h:

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

9 years ago2010-06-21 Mikhail Naganov <mnaganov@chromium.org>
mnaganov@chromium.org [Tue, 22 Jun 2010 12:11:08 +0000 (12:11 +0000)]
2010-06-21  Mikhail Naganov  <mnaganov@chromium.org>

        Reviewed by Pavel Feldman.

        [Chromium] Add a sanity test for heap profiler.

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

        * src/js/Tests.js:
        (.TestSuite.prototype.testHeapProfiler.findDisplayedNode):
        (.TestSuite.prototype.testHeapProfiler.findVisibleView):
        (.TestSuite.prototype.testHeapProfiler):

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

9 years ago2010-06-22 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Tue, 22 Jun 2010 11:41:38 +0000 (11:41 +0000)]
2010-06-22  Kent Tamura  <tkent@chromium.org>

        Unreviewed, test expectation update.

        * platform/chromium-linux/fast/dom/HTMLMeterElement/meter-appearances-capacity-expected.checksum:
        * platform/chromium-linux/fast/dom/HTMLMeterElement/meter-appearances-capacity-expected.png:
        * platform/chromium-linux/fast/dom/HTMLMeterElement/meter-appearances-rating-relevancy-expected.checksum:
        * platform/chromium-linux/fast/dom/HTMLMeterElement/meter-appearances-rating-relevancy-expected.png:
        * platform/chromium-linux/fast/dom/HTMLMeterElement/meter-optimums-expected.checksum:
        * platform/chromium-linux/fast/dom/HTMLMeterElement/meter-optimums-expected.png:
        * platform/chromium-linux/fast/parser/broken-comments-vs-parsing-mode-expected.checksum: Added.
        * platform/chromium-linux/fast/parser/broken-comments-vs-parsing-mode-expected.png: Added.
        * platform/chromium-mac/fast/dom/HTMLMeterElement/meter-appearances-capacity-expected.checksum:
        * platform/chromium-mac/fast/dom/HTMLMeterElement/meter-appearances-capacity-expected.png:
        * platform/chromium-mac/fast/dom/HTMLMeterElement/meter-optimums-expected.checksum:
        * platform/chromium-mac/fast/dom/HTMLMeterElement/meter-optimums-expected.png:
        * platform/chromium-mac/fast/parser/broken-comments-vs-parsing-mode-expected.checksum: Removed.
        * platform/chromium-mac/fast/parser/broken-comments-vs-parsing-mode-expected.png: Removed.
        * platform/chromium-win/fast/dom/HTMLMeterElement/meter-appearances-capacity-expected.checksum:
        * platform/chromium-win/fast/dom/HTMLMeterElement/meter-appearances-capacity-expected.png:
        * platform/chromium-win/fast/dom/HTMLMeterElement/meter-appearances-rating-relevancy-expected.checksum:
        * platform/chromium-win/fast/dom/HTMLMeterElement/meter-appearances-rating-relevancy-expected.png:
        * platform/chromium-win/fast/dom/HTMLMeterElement/meter-optimums-expected.checksum:
        * platform/chromium-win/fast/dom/HTMLMeterElement/meter-optimums-expected.png:
        * platform/chromium-win/fast/parser/broken-comments-vs-parsing-mode-expected.checksum:
        * platform/chromium-win/fast/parser/broken-comments-vs-parsing-mode-expected.png:
        * platform/chromium-win/fast/parser/broken-comments-vs-parsing-mode-expected.txt: Added.
        * platform/chromium/test_expectations.txt:

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

9 years ago2010-06-22 Yuta Kitamura <yutak@chromium.org>
morrita@google.com [Tue, 22 Jun 2010 08:59:57 +0000 (08:59 +0000)]
2010-06-22  Yuta Kitamura  <yutak@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Fix WebSocketHandshakeRequest so that it fits the new handshake protocol.

        The new WebSocket specification (draft 76 and later) allows a browser to
        send header fields in arbitrary order. Thus we can use a HTTPHeaderMap to
        store header fields instead of Vector of pairs of a field name and
        a field value.

        This patch also does refactoring of WebSocketHandshakeRequest class
        to make it simpler and easier to use.

        Fix WebSocketHandshakeRequest so that it fits the new handshake protocol
        https://bugs.webkit.org/show_bug.cgi?id=39864

        No new tests, because there is no functional change.

        * websockets/WebSocketHandshake.cpp:
        (WebCore::WebSocketHandshake::clientHandshakeRequest):
        * websockets/WebSocketHandshakeRequest.cpp:
        (WebCore::WebSocketHandshakeRequest::Key3::Key3):
        (WebCore::WebSocketHandshakeRequest::Key3::set):
        (WebCore::WebSocketHandshakeRequest::WebSocketHandshakeRequest):
        (WebCore::WebSocketHandshakeRequest::requestMethod):
        (WebCore::WebSocketHandshakeRequest::url):
        (WebCore::WebSocketHandshakeRequest::addHeaderField):
        (WebCore::WebSocketHandshakeRequest::headerFields):
        (WebCore::WebSocketHandshakeRequest::key3):
        (WebCore::WebSocketHandshakeRequest::setKey3):
        * websockets/WebSocketHandshakeRequest.h:

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

9 years ago2010-06-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 22 Jun 2010 08:28:52 +0000 (08:28 +0000)]
2010-06-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Upon closer reading of the spec, we think our behavior is correct.
        We'll double-check with the working group.

        * fast/tokenizer/write-on-load-expected.txt:
        * fast/tokenizer/write-on-load.html:

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

9 years ago2010-06-20 MORITA Hajime <morrita@google.com>
morrita@google.com [Tue, 22 Jun 2010 08:22:43 +0000 (08:22 +0000)]
2010-06-20  MORITA Hajime  <morrita@google.com>

        Reviewed by Kent Tamura.

        <meter> should be yellow when  min < value < low < optimum
        https://bugs.webkit.org/show_bug.cgi?id=40824

        Update overlooked broken test results.

        * platform/mac/fast/dom/HTMLMeterElement/meter-appearances-capacity-expected.checksum:
        * platform/mac/fast/dom/HTMLMeterElement/meter-appearances-capacity-expected.png:
        * platform/mac/fast/dom/HTMLMeterElement/meter-optimums-expected.checksum:
        * platform/mac/fast/dom/HTMLMeterElement/meter-optimums-expected.png:
2010-06-20  MORITA Hajime  <morrita@google.com>

        Reviewed by Kent Tamura.

        <meter> should be yellow when  min < value < low < optimum
        https://bugs.webkit.org/show_bug.cgi?id=40824

        Fixed a wrong conditional on HTMLMeterElement::gaugeRegion().

        * html/HTMLMeterElement.cpp:
        (WebCore::HTMLMeterElement::gaugeRegion):

        Tests: fast/dom/HTMLMeterElement/meter-appearances-capacity.html
               fast/dom/HTMLMeterElement/meter-optimums.html

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

9 years ago2010-06-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 22 Jun 2010 08:14:46 +0000 (08:14 +0000)]
2010-06-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Follow the HTML5 spec more closely w.r.t. when to save the insertion point
        https://bugs.webkit.org/show_bug.cgi?id=40976

        This test no longer asserts.  The output is incorrect, however.  I'll
        fix the output in the next patch.

        * fast/tokenizer/write-on-load-expected.txt: Added.
        * fast/tokenizer/write-on-load.html: Added.
2010-06-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Follow the HTML5 spec more closely w.r.t. when to save the insertion point
        https://bugs.webkit.org/show_bug.cgi?id=40976

        The spec always increments the nesting level and saves the insertion
        point at the same time.  In this patch, we now do those operations
        packaged as a RAII.

        As a side effect, the test case below no longer ASSERTs.  (The output
        is wrong, but we'll get to that next.)

        Test: fast/tokenizer/write-on-load.html

        * html/HTML5ScriptRunner.cpp:
        (WebCore::NestScript::NestScript):
        (WebCore::NestScript::~NestScript):
        (WebCore::HTML5ScriptRunner::executePendingScript):
        (WebCore::HTML5ScriptRunner::executeScript):
        (WebCore::HTML5ScriptRunner::requestScript):
        (WebCore::HTML5ScriptRunner::runScript):
        * html/HTMLInputStream.h:

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

9 years ago2010-06-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 22 Jun 2010 07:56:26 +0000 (07:56 +0000)]
2010-06-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Expose HTMLInputStream to ScriptRunner so that ScriptRunner can save the insertion point itself
        https://bugs.webkit.org/show_bug.cgi?id=40975

        This saves us having to call back into the HTML5DocumentParser each
        time we need to save the insertion point.  This prepares us for another
        place we need to save the insertion point.

        * html/HTML5DocumentParser.cpp:
        * html/HTML5DocumentParser.h:
        (WebCore::HTML5DocumentParser::inputStream):
        * html/HTML5ScriptRunner.cpp:
        (WebCore::HTML5ScriptRunner::executeScript):
        (WebCore::HTML5ScriptRunner::requestScript):
        * html/HTML5ScriptRunnerHost.h:

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

9 years ago2010-06-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 22 Jun 2010 07:42:48 +0000 (07:42 +0000)]
2010-06-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Move HTMLInputStream to its own file
        https://bugs.webkit.org/show_bug.cgi?id=40974

        No new tests, just code motion.

        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/HTML5DocumentParser.h:

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

9 years ago2010-06-21 Julien Chaffraix <jchaffraix@webkit.org>
eric@webkit.org [Tue, 22 Jun 2010 07:13:09 +0000 (07:13 +0000)]
2010-06-21  Julien Chaffraix  <jchaffraix@webkit.org>

        Reviewed by Alexey Proskuryakov.

        Tests for:
        Space should be allowed between -- and > in comment end
        https://bugs.webkit.org/show_bug.cgi?id=21945

        * fast/css/word-space-extra.html: Tweaked the comment as -- > is now
        a valid comment end.

        * fast/parser/broken-comment-1-expected.txt: Added.
        * fast/parser/broken-comment-1.html: Added.
        * fast/parser/broken-comment-2-expected.txt: Added.
        * fast/parser/broken-comment-2.html: Added.
        * fast/parser/broken-comment-3-expected.txt: Added.
        * fast/parser/broken-comment-3.html: Added.
        * fast/parser/broken-comment-4-expected.txt: Added.
        * fast/parser/broken-comment-4.html: Added.
        * fast/parser/broken-comment-5-expected.txt: Added.
        * fast/parser/broken-comment-5.html: Added.
        * fast/parser/broken-comment-6-expected.txt: Added.
        * fast/parser/broken-comment-6.html: Added.
        Those test checks that broken comments in body are correctly parsed.
        * fast/parser/broken-comment-in-head-1-expected.txt: Added.
        * fast/parser/broken-comment-in-head-1.html: Added.
        * fast/parser/broken-comment-in-head-2-expected.txt: Added.
        * fast/parser/broken-comment-in-head-2.html: Added.
        * fast/parser/broken-comment-in-head-3-expected.txt: Added.
        * fast/parser/broken-comment-in-head-3.html: Added.
        * fast/parser/broken-comment-in-head-4-expected.txt: Added.
        * fast/parser/broken-comment-in-head-4.html: Added.
        * fast/parser/broken-comment-in-head-5-expected.txt: Added.
        * fast/parser/broken-comment-in-head-5.html: Added.
        Those test checks that broken comments in head are correctly parsed.

        * fast/parser/broken-comments-vs-parsing-mode.html: Needed to wrap the broken comment
        in a title as we match FF here and would not recover from it.

        * fast/parser/comments-expected.txt:
        * fast/parser/comments.html:
        Added more tests for comment parsing. Made sure that we close empty comments
        <!--> and <!---> as is specified in HTML5.

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

9 years ago2010-06-21 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 22 Jun 2010 07:04:34 +0000 (07:04 +0000)]
2010-06-21  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Save the insertion point before beforeload events
        https://bugs.webkit.org/show_bug.cgi?id=40973

        Update expected results to show the proper document.write order.

        * fast/tokenizer/write-before-load-expected.txt:
2010-06-21  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Save the insertion point before beforeload events
        https://bugs.webkit.org/show_bug.cgi?id=40973

        We need to save the insertion point before dispatching the beforeload
        event in case someone decides to document.write during beforeload.
        Prior to this patch, such writes would pump the lexer too much and
        tokenize the rest of the document before executing the script.

        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::dispatchBeforeLoad):
        * html/HTML5DocumentParser.h:
        * html/HTML5ScriptRunner.cpp:
        (WebCore::HTML5ScriptRunner::requestScript):
        * html/HTML5ScriptRunnerHost.h:

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

9 years agoFix the Windows build.
dumi@chromium.org [Tue, 22 Jun 2010 07:03:42 +0000 (07:03 +0000)]
Fix the Windows build.
https://bugs.webkit.org/show_bug.cgi?id=40972

Reviewed by Eric Seidel.

* DumpRenderTree/win/ImageDiff.vcproj:

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

9 years ago2010-06-21 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 22 Jun 2010 06:25:29 +0000 (06:25 +0000)]
2010-06-21  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        document.write from BeforeLoad should not assert
        https://bugs.webkit.org/show_bug.cgi?id=40971

        Test what happens when we document.write from a beforeload event.
        Notice that the order is wrong.  I'll fix that in a followup patch.

        * fast/tokenizer/write-before-load-expected.txt: Added.
        * fast/tokenizer/write-before-load.html: Added.
2010-06-21  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        document.write from BeforeLoad should not assert
        https://bugs.webkit.org/show_bug.cgi?id=40971

        We're setting the parse blocking script too early.  It's not actually
        blocking parsing yet.

        Test: fast/tokenizer/write-before-load.html

        * html/HTML5ScriptRunner.cpp:
        (WebCore::HTML5ScriptRunner::requestScript):

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

9 years agoUnreviewed, skip new modal tests on Tiger and update expected result for Chromium.
dimich@chromium.org [Tue, 22 Jun 2010 04:59:22 +0000 (04:59 +0000)]
Unreviewed, skip new modal tests on Tiger and update expected result for Chromium.

* platform/chromium/fast/dom/prototype-inheritance-expected.txt:
* platform/mac-tiger/Skipped:

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

9 years agoUnreviewed, fixing qt-specific expected results for r61599
dimich@chromium.org [Tue, 22 Jun 2010 04:41:24 +0000 (04:41 +0000)]
Unreviewed, fixing qt-specific expected results for r61599

* platform/qt/fast/dom/Window/window-properties-expected.txt:
* platform/qt/fast/dom/prototype-inheritance-expected.txt:

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

9 years agoDumpRenderTree should allow tests with modal dialogs
dimich@chromium.org [Tue, 22 Jun 2010 04:24:02 +0000 (04:24 +0000)]
DumpRenderTree should allow tests with modal dialogs
https://bugs.webkit.org/show_bug.cgi?id=35350

Patch by Prasad Tammana <prasadt@chromium.org> on 2010-06-21
Reviewed by Darin Adler, Dmitry Titov.

WebKitTools:

* DumpRenderTree/LayoutTestController.cpp:
(abortModalCallback):
(LayoutTestController::staticFunctions):
* DumpRenderTree/LayoutTestController.h:
* DumpRenderTree/mac/LayoutTestControllerMac.mm:
(LayoutTestController::abortModal):
Add abortModal method to LayoutTestController and make it available from script.

* DumpRenderTree/mac/UIDelegate.mm: Add support for showModalDialog.
(-[UIDelegate modalWindowWillClose:]): Observer for NSWindowWillCloseNotifications to call
abortModal from when modal window closes.
(-[UIDelegate webViewRunModal:]): Delegate method for showModalDialog to run the modal loop.

LayoutTests:

Added a new test show-modal-dialog.html to harness tests to verify that showModalDialog works.

Added a new test, show-modal-dialog-onblur-onfocus.html, that takes advantage of the showModalDialog
functionality added to UIDelegate.mm.  The test is only enabled on mac for now.  This test will catch
regressions on the bug fix for https://bugs.webkit.org/show_bug.cgi?id=33962.

Support for showModalDialog affected the expected output for many tests that operate under the assumption
that the method is undefined.  Modified the tests accordingly, in some cases disabled showModalDialog (not
currently tested anyway.  Opened a bug to add showModalDialog specific tests where appropriate - Bug# 39897.

* fast/dom/Window/window-function-frame-getter-precedence-expected.txt:
* fast/dom/Window/window-function-frame-getter-precedence.html:
* fast/dom/Window/window-function-name-getter-precedence-expected.txt:
* fast/dom/Window/window-function-name-getter-precedence.html:
* fast/dom/Window/window-lookup-precedence-expected.txt:
* fast/dom/Window/window-lookup-precedence.html:
* fast/dom/Window/window-properties-expected.txt:
* fast/dom/Window/window-properties.html:
* fast/dom/script-tests/prototype-inheritance.js:
Tweak tests so that showModalDialog part gets exercised only if its defined to keep output consistent across platforms.
Where its not possible, skip the test for showModalDialog, which is not currently exercised anyway.

* fast/events/resources/modal-dialog.html: Added.
* fast/events/show-modal-dialog-onblur-onfocus-expected.txt: Added.
* fast/events/show-modal-dialog-onblur-onfocus.html: Added.
* fast/harness/resources/modal-dialog.html: Added.
* fast/harness/show-modal-dialog-expected.txt: Added.
* fast/harness/show-modal-dialog.html: Added.
New tests that take advantage of showModalDialog in DRT.

* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T1-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T10-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T11-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T2-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T3-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T4-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T5-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T6-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T7-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T8-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T9-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T1-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T10-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T11-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T2-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T3-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T4-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T5-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T6-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T7-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T8-expected.txt:
* fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T9-expected.txt:
Update the expected output to reflect the fact that these tests pass now.  Skip the tests on gtk, qt and win.  They were all expected
to fail anyway.  So no coverage lost.

* http/tests/security/cross-frame-access-call-expected.txt:
* http/tests/security/cross-frame-access-call.html:
* http/tests/security/cross-frame-access-get-expected.txt:
* http/tests/security/cross-frame-access-get.html:
* http/tests/security/cross-frame-access-put-expected.txt:
Skip showModalDialog to make test pass for all platforms.  Added a FIXME with bug # to add a test specifically for showModalDialog.

* http/tests/security/resources/cross-frame-iframe-for-put-test.html:
* platform/chromium-mac/fast/dom/Window/window-function-frame-getter-precedence-expected.txt: Removed.
* platform/chromium-mac/fast/dom/Window/window-function-name-getter-precedence-expected.txt: Removed.
* platform/chromium-mac/http/tests/security/cross-frame-access-get-expected.txt:
* platform/chromium-win/fast/dom/Window/window-function-frame-getter-precedence-expected.txt: Removed.
* platform/chromium-win/fast/dom/Window/window-function-name-getter-precedence-expected.txt: Removed.
* platform/chromium-win/fast/dom/Window/window-lookup-precedence-expected.txt:
* platform/chromium-win/http/tests/security/cross-frame-access-get-expected.txt:
* platform/chromium-win/http/tests/security/cross-frame-access-put-expected.txt:
* platform/chromium/http/tests/security/cross-frame-access-call-expected.txt:
* platform/chromium/test_expectations.txt:
* platform/gtk/Skipped:
* platform/qt/Skipped:
* platform/qt/fast/dom/Window/window-function-frame-getter-precedence-expected.txt: Removed.
* platform/qt/fast/dom/Window/window-function-name-getter-precedence-expected.txt: Removed.
* platform/qt/fast/dom/Window/window-lookup-precedence-expected.txt: Removed.
Updaate expected output to reflect test changes.  Removed some platform specific files where the only reason they're different is
because of showModalDialog.

* platform/qt/http/tests/security/cross-frame-access-call-expected.txt:
* platform/qt/http/tests/security/cross-frame-access-get-expected.txt:
* platform/win/Skipped:
Skip failing tests.  Note that there is no test functionality lost.  These are either new tests or tests that were dysfunctional anyway
in the absence of showModalDialog in DRT.

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

9 years ago2010-06-21 MORITA Hajime <morrita@google.com>
morrita@google.com [Tue, 22 Jun 2010 02:28:51 +0000 (02:28 +0000)]
2010-06-21  MORITA Hajime  <morrita@google.com>

        Reviewed by Darin Fisher.

        [Chromium] Dragging outside the frame immediately causes page to scroll
        http://webkit.org/b/40461

        This is regression that was introduced at http://webkit.org/b/39725.

        There are 2 problems:
        1. It starts auto-scrolling immediately. We should have some delay.
        2. The scroll continues even after a mouse cursor goes outside a frame.
           The scroll should be stopped when the curosr has left.

        This change introduced DragScrollTimer to handle 1.
        At the same time, it fixed DragScrollTimer::scrollDistanceFor() to
        handle 2, We now stop scrolling when the cursor gone.

        * WebKit.gyp:
        * src/DragScrollTimer.cpp: Added.
        (WebKit::distanceToRect):
        (WebKit::DragScrollTimer::DragScrollTimer):
        (WebKit::DragScrollTimer::~DragScrollTimer):
        (WebKit::DragScrollTimer::stop):
        (WebKit::DragScrollTimer::scroll):
        (WebKit::DragScrollTimer::update):
        (WebKit::DragScrollTimer::triggerScroll):
        (WebKit::DragScrollTimer::scrollDistanceFor):
        * src/DragScrollTimer.h: Added.
        (WebKit::DragScrollTimer::fired):
        (WebKit::DragScrollTimer::shouldScroll):
        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::WebViewImpl):
        (WebKit::WebViewImpl::dragSourceEndedAt):
        (WebKit::WebViewImpl::dragSourceMovedTo):
        (WebKit::WebViewImpl::dragTargetDrop):
        (WebKit::WebViewImpl::dragTargetDragEnterOrOver):
        * src/WebViewImpl.h:

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

9 years agoNo review. QT build fix again.
cfleizach@apple.com [Tue, 22 Jun 2010 01:36:11 +0000 (01:36 +0000)]
No review. QT build fix again.

AX: VoiceOver does not announce WAI-ARIA state change of aria-expanded
https://bugs.webkit.org/show_bug.cgi?id=40927

* accessibility/AXObjectCache.h:
(WebCore::AXObjectCache::postNotification):

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

9 years agoNo review. QT build fix.
cfleizach@apple.com [Tue, 22 Jun 2010 01:27:34 +0000 (01:27 +0000)]
No review. QT build fix.

AX: VoiceOver does not announce WAI-ARIA state change of aria-expanded
https://bugs.webkit.org/show_bug.cgi?id=40927

* accessibility/AXObjectCache.h:
(WebCore::AXObjectCache::postNotification):

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

9 years agoAX: VoiceOver does not announce WAI-ARIA state change of aria-expanded
cfleizach@apple.com [Tue, 22 Jun 2010 01:07:56 +0000 (01:07 +0000)]
AX: VoiceOver does not announce WAI-ARIA state change of aria-expanded
https://bugs.webkit.org/show_bug.cgi?id=40927

Reviewed by Beth Dakin.

WebCore:

Test: platform/mac/accessibility/aria-expanded-notifications.html

* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::handleAriaExpandedChange):
* accessibility/AXObjectCache.h:
(WebCore::AXObjectCache::handleAriaExpandedChange):
* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::handleAriaExpandedChanged):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::handleAriaExpandedChanged):
* accessibility/AccessibilityRenderObject.h:
* accessibility/mac/AXObjectCacheMac.mm:
(WebCore::AXObjectCache::postPlatformNotification):
* dom/Element.cpp:
(WebCore::Element::updateAfterAttributeChanged):

LayoutTests:

* platform/mac-leopard/Skipped:
* platform/mac-tiger/Skipped:
* platform/mac/accessibility/aria-expanded-notifications-expected.txt: Added.
* platform/mac/accessibility/aria-expanded-notifications.html: Added.

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

9 years ago2010-06-21 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 22 Jun 2010 00:33:34 +0000 (00:33 +0000)]
2010-06-21  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Support reading plug-in info from Carbon resources
        https://bugs.webkit.org/show_bug.cgi?id=40959

        * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
        (WebKit::ResourceMap::ResourceMap):
        (WebKit::ResourceMap::~ResourceMap):
        (WebKit::ResourceMap::isValid):
        (WebKit::getStringListResource):
        (WebKit::getPluginInfoFromCarbonResources):
        (WebKit::PluginInfoStore::getPluginInfo):

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

9 years agoBuild fix.
andersca@apple.com [Tue, 22 Jun 2010 00:23:20 +0000 (00:23 +0000)]
Build fix.

* UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
(WebKit::PluginInfoStore::getPluginInfo):

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

9 years agoFix an off-by-one bug I introduced.
andersca@apple.com [Tue, 22 Jun 2010 00:07:49 +0000 (00:07 +0000)]
Fix an off-by-one bug I introduced.

Reviewed by Sam Weinig.

* Plugins/WebNetscapePluginPackage.mm:
(-[WebNetscapePluginPackage getPluginInfoFromResources]):

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

9 years ago2010-06-21 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 22 Jun 2010 00:00:29 +0000 (00:00 +0000)]
2010-06-21  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Have PluginInfoStoreMac actually get plug-in info and populate the plug-in list
        https://bugs.webkit.org/show_bug.cgi?id=40957

        * UIProcess/Plugins/PluginInfoStore.cpp:
        (WebKit::PluginInfoStore::loadPluginsIfNecessary):
        (WebKit::PluginInfoStore::loadPluginsInDirectory):
        (WebKit::PluginInfoStore::loadPlugin):
        (WebKit::PluginInfoStore::getPlugins):
        * UIProcess/Plugins/PluginInfoStore.h:
        * UIProcess/Plugins/mac/PluginInfoStoreMac.mm: Added.
        (WebKit::PluginInfoStore::pluginDirectories):
        (WebKit::PluginInfoStore::pluginPathsInDirectory):
        (WebKit::getPluginArchitecture):
        (WebKit::getPluginInfoFromPropertyLists):
        (WebKit::PluginInfoStore::getPluginInfo):
        (WebKit::PluginInfoStore::shouldUsePlugin):
        * WebKit2.xcodeproj/project.pbxproj:

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

9 years agoUpdate WebKitSystemInterface.
weinig@apple.com [Mon, 21 Jun 2010 23:42:27 +0000 (23:42 +0000)]
Update WebKitSystemInterface.

Reviewed by Anders Carlsson.

* WebKitSystemInterface.h:
* libWebKitSystemInterfaceLeopard.a:
* libWebKitSystemInterfaceSnowLeopard.a:
* libWebKitSystemInterfaceTiger.a:

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

9 years ago2010-06-21 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Mon, 21 Jun 2010 23:29:39 +0000 (23:29 +0000)]
2010-06-21  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Anders Carlsson.

        Rename DrawingAreaProxyUpdateChunk to ChunkedUpdateDrawingArea
        https://bugs.webkit.org/show_bug.cgi?id=40948

        Rename UIProcess version of DrawingAreaUpdateChunk to ChunkedUpdateDrawingAreaProxy,
        and rename the Mac/Win versions of the various DrawingArea files too.

        Also rename the DrawingAreaUpdateChunkType enum to ChunkedUpdateDrawingAreaType.

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

9 years ago2010-06-21 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Mon, 21 Jun 2010 23:17:48 +0000 (23:17 +0000)]
2010-06-21  Oliver Hunt  <oliver@apple.com>

        Reviewed by Geoffrey Garen.

        Make JSC more resilient in the face of parse failures
        https://bugs.webkit.org/show_bug.cgi?id=40951

        A number of recent bugs have occurred due to issues like miscounting
        BOMs, etc which lead to interesting crashes later on.  Adding this
        logic hardens JSC in the face of these errors, and has no impact on
        performance (32bit jit actually gets 0.7% faster but I put that down
        to cache effects).

        * bytecode/CodeBlock.cpp:
        (JSC::CodeBlock::reparseForExceptionInfoIfNecessary):
        (JSC::CodeBlock::lineNumberForBytecodeOffset):
        (JSC::CodeBlock::expressionRangeForBytecodeOffset):
        (JSC::CodeBlock::getByIdExceptionInfoForBytecodeOffset):
        * bytecode/CodeBlock.h:
        (JSC::CodeBlock::bytecodeOffset):
        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::execute):
        (JSC::Interpreter::executeCall):
        (JSC::Interpreter::executeConstruct):
        (JSC::Interpreter::prepareForRepeatCall):
        (JSC::Interpreter::privateExecute):
        * jit/JITOpcodes.cpp:
        (JSC::JIT::privateCompileCTIMachineTrampolines):
        * jit/JITOpcodes32_64.cpp:
        (JSC::JIT::privateCompileCTIMachineTrampolines):
        * jit/JITStubs.cpp:
        (JSC::DEFINE_STUB_FUNCTION):
        * runtime/ArrayPrototype.cpp:
        (JSC::isNumericCompareFunction):
        * runtime/Executable.cpp:
        (JSC::FunctionExecutable::compileForCall):
        (JSC::FunctionExecutable::compileForConstruct):
        (JSC::FunctionExecutable::generateJITCodeForCall):
        (JSC::FunctionExecutable::generateJITCodeForConstruct):
        (JSC::FunctionExecutable::reparseExceptionInfo):
        (JSC::EvalExecutable::reparseExceptionInfo):
        * runtime/Executable.h:
        (JSC::FunctionExecutable::bytecodeForCall):
        (JSC::FunctionExecutable::bytecodeForConstruct):
        * runtime/JSGlobalData.cpp:
        (JSC::JSGlobalData::numericCompareFunction):

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

9 years ago2010-06-21 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Mon, 21 Jun 2010 23:00:13 +0000 (23:00 +0000)]
2010-06-21  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Add PluginInfoStore class
        https://bugs.webkit.org/show_bug.cgi?id=40949

        * Shared/WebPreferencesStore.cpp:
        (WebKit::WebPreferencesStore::WebPreferencesStore):
        * Shared/WebPreferencesStore.h:
        (WebKit::WebPreferencesStore::encode):
        (WebKit::WebPreferencesStore::decode):
        Add plugInsEnabled to the preferences store.

        * UIProcess/Plugins: Added.
        * UIProcess/Plugins/PluginInfoStore.cpp: Added.
        (WebKit::PluginInfoStore::shared):
        (WebKit::PluginInfoStore::PluginInfoStore):
        (WebKit::PluginInfoStore::refresh):
        (WebKit::PluginInfoStore::getPlugins):
        * UIProcess/Plugins/PluginInfoStore.h: Added.
        * UIProcess/Plugins/mac: Added.
        * WebKit2.xcodeproj/project.pbxproj:
        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        (WebKit::WebPlatformStrategies::refreshPlugins):
        (WebKit::WebPlatformStrategies::getPluginInfo):
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):

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

9 years ago2010-06-21 Sheriff Bot <webkit.review.bot@gmail.com>
kinuko@chromium.org [Mon, 21 Jun 2010 22:57:56 +0000 (22:57 +0000)]
2010-06-21  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r61585.
        http://trac.webkit.org/changeset/61585
        https://bugs.webkit.org/show_bug.cgi?id=40950

        It broke builds (Requested by kinuko on #webkit).

        * Android.derived.jscbindings.mk:
        * Android.derived.v8bindings.mk:
        * CMakeLists.txt:
        * DerivedSources.cpp:
        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pri:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/BlobBuilder.cpp:
        (WebCore::BlobBuilder::appendString):
        (WebCore::BlobBuilder::appendBlob):
        * html/BlobBuilder.h:
        * page/DOMWindow.idl:
2010-06-21  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r61585.
        http://trac.webkit.org/changeset/61585
        https://bugs.webkit.org/show_bug.cgi?id=40950

        It broke builds (Requested by kinuko on #webkit).

        * fast/dom/Window/window-properties-expected.txt:
        * fast/dom/Window/window-property-descriptors-expected.txt:
        * fast/dom/constructed-objects-prototypes-expected.txt:
        * fast/dom/prototype-inheritance-2-expected.txt:
        * fast/dom/prototype-inheritance-expected.txt:
        * fast/js/global-constructors-expected.txt:
        * platform/chromium/fast/dom/prototype-inheritance-expected.txt:
        * platform/gtk/Skipped:
        * platform/gtk/fast/dom/Window/window-properties-expected.txt:
        * platform/gtk/fast/dom/Window/window-property-descriptors-expected.txt:
        * platform/gtk/fast/dom/prototype-inheritance-expected.txt:
        * platform/qt/Skipped:
        * platform/qt/fast/dom/Window/window-properties-expected.txt:
        * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:
        * platform/qt/fast/dom/prototype-inheritance-expected.txt:
        * platform/win/Skipped:
        * platform/win/fast/dom/Window/window-property-descriptors-expected.txt:
        * platform/win/fast/dom/prototype-inheritance-2-expected.txt:
        * platform/win/fast/dom/prototype-inheritance-expected.txt:

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

9 years ago2010-06-21 Kinuko Yasuda <kinuko@chromium.org>
kinuko@chromium.org [Mon, 21 Jun 2010 22:41:58 +0000 (22:41 +0000)]
2010-06-21  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Adam Barth.

        Add BlobBuilder.idl to expose BlobBuilder interface
        https://bugs.webkit.org/show_bug.cgi?id=40593

        BlobBuilder is defined in FileAPI's FileWriter spec.
        (http://dev.w3.org/2009/dap/file-system/file-writer.html)

        Also removes the ENABLE_FILE_WRITER ifdef guard for BlobBuilder.

        Tests: http/tests/local/blob/send-data-blob.html
               http/tests/local/blob/send-hybrid-blob.html
               http/tests/local/blob/send-sliced-data-blob.html

        * Android.derived.jscbindings.mk:
        * Android.derived.v8bindings.mk:
        * CMakeLists.txt:
        * DerivedSources.cpp:
        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pri:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/BlobBuilder.cpp:
        (WebCore::BlobBuilder::append):
        * html/BlobBuilder.h:
        * html/BlobBuilder.idl: Added.
        * page/DOMWindow.idl:
2010-06-21  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Adam Barth.

        Add BlobBuilder.idl to expose BlobBuilder interface
        https://bugs.webkit.org/show_bug.cgi?id=40593

        Add new layout tests to test BlobBuilder interface.
        Also update test expectations affected by adding the constructors to DOMWindow.

        * fast/dom/Window/window-properties-expected.txt:
        * fast/dom/Window/window-property-descriptors-expected.txt:
        * fast/dom/constructed-objects-prototypes-expected.txt:
        * fast/dom/prototype-inheritance-2-expected.txt:
        * fast/dom/prototype-inheritance-expected.txt:
        * fast/js/global-constructors-expected.txt:
        * http/tests/local/blob/resources/hybrid-blob-util.js: Added.
        * http/tests/local/blob/script-tests/TEMPLATE.html: Added.
        * http/tests/local/blob/script-tests/send-data-blob.js: Added.
        * http/tests/local/blob/script-tests/send-hybrid-blob.js: Added.
        * http/tests/local/blob/script-tests/send-sliced-data-blob.js: Added.
        * http/tests/local/blob/send-data-blob-expected.txt: Added.
        * http/tests/local/blob/send-data-blob.html: Added.
        * http/tests/local/blob/send-hybrid-blob-expected.txt: Added.
        * http/tests/local/blob/send-hybrid-blob.html: Added.
        * http/tests/local/blob/send-sliced-data-blob-expected.txt: Added.
        * http/tests/local/blob/send-sliced-data-blob.html: Added.
        * http/tests/local/resources/file-for-drag-to-send2.txt: Added.
        * http/tests/resources/post-and-verify-hybrid.cgi: Added.
        * platform/chromium/fast/dom/prototype-inheritance-expected.txt:
        * platform/gtk/Skipped: Added send-hybrid-blob.html and send-sliced-data-blob.html because they need eventSender.beginDragWithFiles Blob.slice.
        * platform/gtk/fast/dom/Window/window-properties-expected.txt:
        * platform/gtk/fast/dom/Window/window-property-descriptors-expected.txt:
        * platform/gtk/fast/dom/prototype-inheritance-expected.txt:
        * platform/qt/Skipped: Added send-hybrid-blob.html and send-sliced-data-blob.html because they need eventSender.beginDragWithFiles Blob.slice.
        * platform/qt/fast/dom/Window/window-properties-expected.txt:
        * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:
        * platform/qt/fast/dom/prototype-inheritance-expected.txt:
        * platform/win/Skipped: Added send-hybrid-blob.html and send-sliced-data-blob.html because they need eventSender.beginDragWithFiles Blob.slice.
        * platform/win/fast/dom/Window/window-property-descriptors-expected.txt:
        * platform/win/fast/dom/prototype-inheritance-2-expected.txt:
        * platform/win/fast/dom/prototype-inheritance-expected.txt:

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

9 years ago2010-06-21 Nate Chapin <japhet@chromium.org>
japhet@chromium.org [Mon, 21 Jun 2010 22:33:49 +0000 (22:33 +0000)]
2010-06-21  Nate Chapin  <japhet@chromium.org>

        Reviewed by Adam Barth.

        FrameLoader cleanup: Split high level subframe and plugin
        loading functions into a separate class.
        https://bugs.webkit.org/show_bug.cgi?id=40453

        Refactor only, no new tests.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.base.exp:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * dom/DOMImplementation.cpp:
        * history/PageCache.cpp:
        * html/HTMLFrameElementBase.cpp:
        * html/HTMLMediaElement.cpp:
        * loader/FrameLoader.cpp:
        * loader/FrameLoader.h:
        (WebCore::FrameLoader::subframeLoader):
        * loader/PluginDocument.cpp:
        * loader/SubframeLoader.cpp: Added.
        (WebCore::SubframeLoader::SubframeLoader):
        (WebCore::toPlugInElement):
        (WebCore::SubframeLoader::clear):
        (WebCore::SubframeLoader::requestFrame):
        (WebCore::SubframeLoader::requestObject):
        (WebCore::FrameLoader::loadMediaPlayerProxyPlugin):
        (WebCore::SubframeLoader::createJavaAppletWidget):
        (WebCore::SubframeLoader::loadSubframe):
        (WebCore::SubframeLoader::allowPlugins):
        (WebCore::SubframeLoader::shouldUsePlugin):
        (WebCore::SubframeLoader::loadPlugin):
        (WebCore::SubframeLoader::completeURL):
        * loader/SubframeLoader.h: Added.
        (WebCore::SubframeLoader::containsPlugins):
        * page/Page.cpp:
        * page/XSSAuditor.h:
        * platform/graphics/wince/MediaPlayerProxy.cpp:
        * plugins/MimeType.cpp:
        * rendering/RenderApplet.cpp:
        * rendering/RenderEmbeddedObject.cpp:

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

9 years ago2010-06-21 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Mon, 21 Jun 2010 22:22:51 +0000 (22:22 +0000)]
2010-06-21  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Anders Carlsson.

        Rename DrawingAreaProxyUpdateChunk to ChunkedUpdateDrawingArea
        https://bugs.webkit.org/show_bug.cgi?id=40948

        Rename DrawingAreaUpdateChunk to ChunkedUpdateDrawingArea.

        * UIProcess/API/mac/WKView.mm:
        (-[WKView initWithFrame:pageNamespaceRef:]):
        * UIProcess/ChunkedUpdateDrawingArea.cpp: Added.
        (WebKit::ChunkedUpdateDrawingArea::ChunkedUpdateDrawingArea):
        (WebKit::ChunkedUpdateDrawingArea::~ChunkedUpdateDrawingArea):
        (WebKit::ChunkedUpdateDrawingArea::paint):
        (WebKit::ChunkedUpdateDrawingArea::setSize):
        (WebKit::ChunkedUpdateDrawingArea::setPageIsVisible):
        (WebKit::ChunkedUpdateDrawingArea::didSetSize):
        (WebKit::ChunkedUpdateDrawingArea::update):
        (WebKit::ChunkedUpdateDrawingArea::didReceiveMessage):
        * UIProcess/ChunkedUpdateDrawingArea.h: Added.
        (WebKit::ChunkedUpdateDrawingArea::encode):
        * UIProcess/DrawingAreaProxyUpdateChunk.cpp: Removed.
        * UIProcess/DrawingAreaProxyUpdateChunk.h: Removed.
        * UIProcess/mac/DrawingAreaProxyUpdateChunkMac.mm:
        (WebKit::ChunkedUpdateDrawingArea::page):
        (WebKit::ChunkedUpdateDrawingArea::ensureBackingStore):
        (WebKit::ChunkedUpdateDrawingArea::invalidateBackingStore):
        (WebKit::ChunkedUpdateDrawingArea::platformPaint):
        (WebKit::ChunkedUpdateDrawingArea::drawUpdateChunkIntoBackingStore):
        * UIProcess/win/DrawingAreaProxyUpdateChunkWin.cpp:
        (WebKit::ChunkedUpdateDrawingArea::page):
        (WebKit::ChunkedUpdateDrawingArea::ensureBackingStore):
        (WebKit::ChunkedUpdateDrawingArea::invalidateBackingStore):
        (WebKit::ChunkedUpdateDrawingArea::platformPaint):
        (WebKit::ChunkedUpdateDrawingArea::drawUpdateChunkIntoBackingStore):
        * UIProcess/win/WebView.cpp:
        (WebKit::WebView::WebView):
        * WebKit2.xcodeproj/project.pbxproj:
        * win/WebKit2.vcproj:

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

9 years agoAnother Tiger build fix.
andersca@apple.com [Mon, 21 Jun 2010 22:09:30 +0000 (22:09 +0000)]
Another Tiger build fix.

* Plugins/WebNetscapePluginPackage.mm:
(-[WebNetscapePluginPackage _tryLoad]):

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

9 years ago2010-06-21 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Mon, 21 Jun 2010 21:40:34 +0000 (21:40 +0000)]
2010-06-21  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        More WebBasePluginPackage cleanup
        https://bugs.webkit.org/show_bug.cgi?id=40944

        * Plugins/Hosted/HostedNetscapePluginStream.mm:
        (WebKit::HostedNetscapePluginStream::pluginCancelledConnectionError):
        * Plugins/Hosted/NetscapePluginHostManager.mm:
        (WebKit::NetscapePluginHostManager::spawnPluginHost):
        * Plugins/WebBaseNetscapePluginStream.mm:
        (WebNetscapePluginStream::pluginCancelledConnectionError):
        * Plugins/WebBaseNetscapePluginView.mm:
        (WebHaltablePlugin::pluginName):
        * Plugins/WebBasePluginPackage.h:
        * Plugins/WebBasePluginPackage.mm:
        (-[WebBasePluginPackage initWithPath:]):
        (-[WebBasePluginPackage _objectForInfoDictionaryKey:]):
        (-[WebBasePluginPackage getPluginInfoFromPLists]):
        (-[WebBasePluginPackage load]):
        (-[WebBasePluginPackage dealloc]):
        (-[WebBasePluginPackage finalize]):
        (-[WebBasePluginPackage pluginInfo]):
        (-[WebBasePluginPackage supportsExtension:]):
        (-[WebBasePluginPackage supportsMIMEType:WebCore::]):
        (-[WebBasePluginPackage MIMETypeForExtension:]):
        (-[WebBasePluginPackage isJavaPlugIn]):
        (-[WebBasePluginPackage versionNumber]):
        (-[WebBasePluginPackage WebCore::]):
        * Plugins/WebNetscapePluginPackage.mm:
        (-[WebNetscapePluginPackage openResourceFile]):
        (-[WebNetscapePluginPackage closeResourceFile:]):
        (-[WebNetscapePluginPackage getPluginInfoFromResources]):
        (-[WebNetscapePluginPackage _initWithPath:]):
        (-[WebNetscapePluginPackage _applyDjVuWorkaround]):
        (-[WebNetscapePluginPackage _tryLoad]):
        (-[WebNetscapePluginPackage supportsSnapshotting]):
        (-[WebNetscapePluginPackage _unloadWithShutdown:]):
        * Plugins/WebPluginDatabase.mm:
        (-[WebPluginDatabase refresh]):
        (-[WebPluginDatabase _removePlugin:]):
        * Plugins/WebPluginPackage.mm:
        (-[WebPluginPackage initWithPath:]):
        (-[WebPluginPackage load]):
        * WebCoreSupport/WebFrameLoaderClient.mm:
        (WebFrameLoaderClient::createPlugin):
        * WebCoreSupport/WebPlatformStrategies.mm:
        (WebPlatformStrategies::getPluginInfo):

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

9 years ago2010-06-21 Robert Hogan <robert@webkit.org>
robert@webkit.org [Mon, 21 Jun 2010 21:39:14 +0000 (21:39 +0000)]
2010-06-21  Robert Hogan  <robert@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Unskip plugins/get-url-that-the-resource-load-delegate-will-disallow.html

        It's a Mac-specific test so just add the required LayoutTestController
        function as a no-op to avoid failing. Similar approach adopted by other
        ports.

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

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

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Unskip plugins/get-url-that-the-resource-load-delegate-will-disallow.html

        It's a Mac-specific test so just add the required LayoutTestController
        function as a no-op to avoid failing. Similar approach adopted by other
        ports.

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

        * DumpRenderTree/qt/LayoutTestControllerQt.h:
        (LayoutTestController::addDisallowedURL):

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

9 years agoPatch for https://bugs.webkit.org/show_bug.cgi?id=40940
weinig@apple.com [Mon, 21 Jun 2010 21:36:44 +0000 (21:36 +0000)]
Patch for https://bugs.webkit.org/show_bug.cgi?id=40940
Add message passing support to the WebKit2 API.

Reviewed by Anders Carlsson.

WebKit2:

Adds message passing for both InjectedBundle -> WebContext
and WebContext -> InjectedBundle.

* Shared/CoreIPCSupport/WebProcessMessageKinds.h:
(WebProcessMessage::):
* Shared/CoreIPCSupport/WebProcessProxyMessageKinds.h: Added.
(WebProcessProxyMessage::):
(CoreIPC::):
* UIProcess/API/C/WKContext.cpp:
(WKContextSetInjectedBundleClient):
(WKContextPostMessageToInjectedBundle):
* UIProcess/API/C/WKContext.h:
* UIProcess/WebContext.cpp:
(WebKit::WebContext::initializeInjectedBundleClient):
(WebKit::WebContext::forwardMessageToWebContext):
(WebKit::WebContext::postMessageToInjectedBundle):
* UIProcess/WebContext.h:
* UIProcess/WebContextInjectedBundleClient.cpp: Added.
(WebKit::WebContextInjectedBundleClient::WebContextInjectedBundleClient):
(WebKit::WebContextInjectedBundleClient::initialize):
(WebKit::WebContextInjectedBundleClient::didRecieveMessageFromInjectedBundle):
* UIProcess/WebContextInjectedBundleClient.h: Added.
* UIProcess/WebProcessManager.cpp:
(WebKit::WebProcessManager::processDidClose):
* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::didReceiveInjectedBundleMessage):
(WebKit::WebProcessProxy::didReceiveMessage):
* UIProcess/WebProcessProxy.h:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/API/c/WKBundle.cpp:
(WKBundlePostMessage):
* WebProcess/InjectedBundle/API/c/WKBundle.h:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::postMessage):
(WebKit::InjectedBundle::didCreatePage):
(WebKit::InjectedBundle::didRecieveMessage):
* WebProcess/InjectedBundle/InjectedBundle.h:
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::loadInjectedBundle):
(WebKit::WebProcess::forwardMessageToInjectedBundle):
(WebKit::WebProcess::didReceiveMessage):
* WebProcess/WebProcess.h:
* mac/WebKit2.exp:
* win/WebKit2.vcproj:

WebKitTools:

- Add some test messages.

* MiniBrowser/mac/AppDelegate.m:
(_didRecieveMessageFromInjectedBundle):
(-[BrowserAppDelegate init]):
* MiniBrowser/mac/WebBundle/WebBundleMain.m:
(_didClearWindow):
(_didCreatePage):
(_didRecieveMessage):
(WKBundleInitialize):

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

9 years ago2010-06-21 Robert Hogan <robert@webkit.org>
robert@webkit.org [Mon, 21 Jun 2010 21:07:37 +0000 (21:07 +0000)]
2010-06-21  Robert Hogan  <robert@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Missing forward entries when dumping back/forward list

        These now pass.
        https://bugs.webkit.org/show_bug.cgi?id=32470

        http/tests/navigation/dynamic-iframe-dynamic-form-back-entry.html
        http/tests/navigation/parsed-iframe-dynamic-form-back-entry.html

        * platform/qt/Skipped:

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

9 years agoFixed bugzilla URL in previous checkin.
sullivan@apple.com [Mon, 21 Jun 2010 21:01:39 +0000 (21:01 +0000)]
Fixed bugzilla URL in previous checkin.

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

9 years agoRetainPtr can't be used in HashMaps or HashSets
sullivan@apple.com [Mon, 21 Jun 2010 20:59:28 +0000 (20:59 +0000)]
RetainPtr can't be used in HashMaps or HashSets
<https://bugs.webkit.org/post_bug.cgi>

Reviewed by Adam Roben.

Added hashing knowledge similar to that in COMPtr.h.

* wtf/RetainPtr.h:
(WTF::RetainPtr::RetainPtr):
New function, copied from COMPtr.h but for the type change.
(WTF::RetainPtr::isHashTableDeletedValue):
Ditto.
(WTF::RetainPtr::hashTableDeletedValue):
Ditto.
Added template code for HashTraits and PtrHash copied from COMPtr.h but for the type change.
The only difference is that constructDeletedValue() matches the RefPtr implementation (in HashTraits.h)
rather than the COMPtr implementation.

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

9 years ago2010-06-21 Robert Hogan <robert@webkit.org>
robert@webkit.org [Mon, 21 Jun 2010 20:59:25 +0000 (20:59 +0000)]
2010-06-21  Robert Hogan  <robert@webkit.org>

        [Qt] Build fix for Qt on Windows MSVC2008

        Unreviewed, build fix.

        Fix by Jocelyn Turcotte.

        * Api/qwebframe.cpp:

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

9 years agoAnother PowerPC build fix.
andersca@apple.com [Mon, 21 Jun 2010 20:50:16 +0000 (20:50 +0000)]
Another PowerPC build fix.

* Plugins/WebNetscapePluginPackage.mm:
(-[WebNetscapePluginPackage openResourceFile]):
(-[WebNetscapePluginPackage _tryLoad]):

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