Rubber-stamped by Simon Hausmann.

Patch by Andras Becsi <abecsi@inf.u-szeged.hu> on 2009-12-24
[Qt] Skip failing test until a solution for layoutTestController.notifyDone() is found.
https://bugs.webkit.org/show_bug.cgi?id=31626

* platform/qt/Skipped: inspector/console-clear.html skipped



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52549 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-24  Shu Chang  <Chang.Shu@nokia.com>

        Reviewed by Laszlo Gombos.

        [Qt] Fix memory leak by deleting instance of ThreadPrivate
        in function waitForThreadCompletion(), synchronously, or in
        detachThread(), asynchronously.
        https://bugs.webkit.org/show_bug.cgi?id=32614 

        * wtf/qt/ThreadingQt.cpp:
        (WTF::waitForThreadCompletion):
        (WTF::detachThread):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-24  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Unreviewed; revert of r52550.

        The change regressed the following LayoutTests for QtWebKit.

        fast/workers/worker-call.html -> crashed
        fast/workers/worker-close.html -> crashed

        * wtf/qt/ThreadingQt.cpp:
        (WTF::waitForThreadCompletion):
        (WTF::detachThread):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed by Gustavo Noronha.

Doc : QGraphicsWebView::zoomFactor was introduced in 4.6.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-24  Robert Hogan  <robert@roberthogan.net>

        Reviewed by Eric Seidel.

        Remove LayoutTests/storage/change-version.html from Qt Skipped list
        
        LayoutTests/storage/change-version.html now passes.
        Probably related to the fix in https://bugs.webkit.org/show_bug.cgi?id=32437.
        
        https://bugs.webkit.org/show_bug.cgi?id=32917

        * platform/qt/Skipped:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-24  Shinichiro Hamaji  <hamaji@chromium.org>

        Unreviewed Chromium test fix by reverting r52536.

        Do not a new Database pointer to any structure until its version has been verified
        https://bugs.webkit.org/show_bug.cgi?id=32913

        * storage/Database.cpp:
        (WebCore::Database::openDatabase):
        (WebCore::Database::Database):
        (WebCore::Database::performOpenAndVerify):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Console should force long URLs to wrap
https://bugs.webkit.org/show_bug.cgi?id=32927

Reviewed by Timothy Hatcher.

* inspector/front-end/inspector.css: Added "word-wrap: break-word;" to
the #console-messages rule.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-25  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: Implement Edit Inner HTML action.

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

        * English.lproj/localizedStrings.js:
        * bindings/js/JSInjectedScriptHostCustom.cpp:
        (WebCore::JSInjectedScriptHost::pushNodePathToFrontend):
        * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
        (WebCore::V8InjectedScriptHost::pushNodePathToFrontendCallback):
        * inspector/InjectedScriptHost.cpp:
        (WebCore::InjectedScriptHost::pushNodePathToFrontend):
        * inspector/InjectedScriptHost.h:
        * inspector/InjectedScriptHost.idl:
        * inspector/InspectorDOMAgent.h:
        * inspector/front-end/ElementsPanel.js:
        (WebInspector.ElementsPanel.prototype.show):
        (WebInspector.ElementsPanel.prototype._updateModifiedNodesSoon):
        (WebInspector.ElementsPanel.prototype.updateModifiedNodes):
        * inspector/front-end/ElementsTreeOutline.js:
        (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu):
        (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML.commit):
        (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML.dispose):
        (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML):
        ():
        * inspector/front-end/InjectedScript.js:
        (InjectedScript.getNodePropertyValue):
        (InjectedScript.setOuterHTML):
        (InjectedScript.performSearch.addNodesToResults):
        (InjectedScript._inspectObject):
        (InjectedScript._copy):
        (InjectedScript.pushNodeToFrontend):
        * inspector/front-end/InjectedScriptAccess.js:
        * inspector/front-end/InspectorFrontendHostStub.js:
        (.WebInspector.InspectorFrontendHostStub.prototype.hiddenPanels):
        (.WebInspector.InspectorFrontendHostStub.prototype.windowUnloading):
        * inspector/front-end/inspector.css:
        * inspector/front-end/inspector.js:
        (WebInspector.startEditing.keyDownEventListener):
        (WebInspector.startEditing):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed trivial fix.

LayoutTests/inspector/settings-set-get.html removed 
by r52547, it should be removed from skiplist.

* platform/qt/Skipped: inspector/settings-set-get.html removed.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52557 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-25  Alexander Pavlov  <apavlov@chromium.org>

        Reviewed by Pavel Feldman.

        AuditsPanel for Web Inspector (hidden, no preset audits).

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

        * English.lproj/localizedStrings.js:
        * WebCore.gypi:
        * WebCore.vcproj/WebCore.vcproj:
        * inspector/front-end/AuditLauncherView.js: Added.
        (WebInspector.AuditLauncherView.categorySortFunction):
        (WebInspector.AuditLauncherView):
        (WebInspector.AuditLauncherView.prototype.updateResourceTrackingState):
        (WebInspector.AuditLauncherView.prototype._setAuditRunning):
        (WebInspector.AuditLauncherView.prototype._launchButtonClicked.profilingFinishedCallback):
        (WebInspector.AuditLauncherView.prototype._launchButtonClicked):
        (WebInspector.AuditLauncherView.prototype._selectAllClicked):
        (WebInspector.AuditLauncherView.prototype._categoryClicked):
        (WebInspector.AuditLauncherView.prototype._createCategoryElement):
        (WebInspector.AuditLauncherView.prototype._createLauncherUI):
        (WebInspector.AuditLauncherView.prototype._updateButton):
        (WebInspector.AuditLauncherView.prototype.resize):
        * inspector/front-end/AuditResultView.js: Added.
        (WebInspector.AuditResultView.entrySortFunction):
        (WebInspector.AuditResultView):
        (WebInspector.AuditCategoryResultPane):
        (WebInspector.AuditRuleResultPane):
        (WebInspector.AuditRuleResultPane.prototype._decorateRuleResult):
        (WebInspector.AuditRuleResultChildSection):
        (WebInspector.AuditRuleResultChildSection.prototype.set title):
        (WebInspector.AuditRuleResultChildSection.prototype.expand):
        * inspector/front-end/AuditsPanel.js: Added.
        (WebInspector.AuditsPanel):
        (WebInspector.AuditsPanel.prototype.toolbarItemClass.get toolbarItemLabel):
        (WebInspector.AuditsPanel.prototype.get statusBarItems):
        (WebInspector.AuditsPanel.prototype.get mainResourceLoadTime):
        (WebInspector.AuditsPanel.prototype.set mainResourceLoadTime):
        (WebInspector.AuditsPanel.prototype.get mainResourceDOMContentTime):
        (WebInspector.AuditsPanel.prototype.set mainResourceDOMContentTime):
        (WebInspector.AuditsPanel.prototype.get categoriesById):
        (WebInspector.AuditsPanel.prototype.get visibleView):
        (WebInspector.AuditsPanel.prototype._constructCategories):
        (WebInspector.AuditsPanel.prototype._executeAudit.ruleResultReadyCallback):
        (WebInspector.AuditsPanel.prototype._executeAudit):
        (WebInspector.AuditsPanel.prototype._auditFinishedCallback):
        (WebInspector.AuditsPanel.prototype.initiateAudit.initiateAuditCallback):
        (WebInspector.AuditsPanel.prototype.initiateAudit):
        (WebInspector.AuditsPanel.prototype._reloadResources):
        (WebInspector.AuditsPanel.prototype._didMainResourceLoad):
        (WebInspector.AuditsPanel.prototype.showResults):
        (WebInspector.AuditsPanel.prototype.showLauncherView):
        (WebInspector.AuditsPanel.prototype.showView):
        (WebInspector.AuditsPanel.prototype.show):
        (WebInspector.AuditsPanel.prototype.attach):
        (WebInspector.AuditsPanel.prototype.resize):
        (WebInspector.AuditsPanel.prototype.updateMainViewWidth):
        (WebInspector.AuditsPanel.prototype._updateLauncherViewControls):
        (WebInspector.AuditsPanel.prototype._clearButtonClicked):
        (WebInspector.AuditsPanel.prototype._closeVisibleView):
        (WebInspector.AuditCategory):
        (WebInspector.AuditCategory.prototype.get id):
        (WebInspector.AuditCategory.prototype.get displayName):
        (WebInspector.AuditCategory.prototype.get ruleCount):
        (WebInspector.AuditCategory.prototype.addRule):
        (WebInspector.AuditCategory.prototype.runRules):
        (WebInspector.AuditRule):
        (WebInspector.AuditRule.prototype.get id):
        (WebInspector.AuditRule.prototype.get displayName):
        (WebInspector.AuditRule.prototype.run):
        (WebInspector.AuditRule.prototype.doRun):
        (WebInspector.AuditRule.prototype.getValue):
        (WebInspector.AuditCategoryResult):
        (WebInspector.AuditCategoryResult.prototype.addEntry):
        (WebInspector.AuditRuleResult):
        (WebInspector.AuditRuleResult.prototype.appendChild):
        (WebInspector.AuditRuleResult.prototype.set type):
        (WebInspector.AuditRuleResult.prototype.get type):
        (WebInspector.AuditsSidebarTreeElement):
        (WebInspector.AuditsSidebarTreeElement.prototype.onattach):
        (WebInspector.AuditsSidebarTreeElement.prototype.onselect):
        (WebInspector.AuditsSidebarTreeElement.prototype.get selectable):
        (WebInspector.AuditsSidebarTreeElement.prototype.refresh):
        (WebInspector.AuditResultSidebarTreeElement):
        (WebInspector.AuditResultSidebarTreeElement.prototype.onselect):
        (WebInspector.AuditResultSidebarTreeElement.prototype.get selectable):
        * inspector/front-end/WebKit.qrc:
        * inspector/front-end/audits.css: Added.
        * inspector/front-end/inspector.html:
        * inspector/front-end/inspector.js:
        (WebInspector._createPanels):
        (WebInspector.updateResource):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-25  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        DOMWindow is missing lots of SVG* constructor objects
        https://bugs.webkit.org/show_bug.cgi?id=20430

        Expose all implemented SVG 1.1 constructors.

        Test: svg/custom/global-constructors.js

        * bindings/v8/V8Index.cpp: Add missing includes for SVGFontFaceElement & SVGMissingGlyphElement
        * bindings/v8/V8Index.h: Add misisng SVGFontFaceElement & SVGMissingGlyphElement declarations.
        * page/DOMWindow.idl: Add a bunch of new SVG object ctors.
        * svg/SVGAnimatedPathData.idl: Add OmitConstructor flag, as this is a SVG MI class, which is not exposable at the moment.
        * svg/SVGAnimatedPoints.idl: Ditto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rubber-stamped by Simon Hausmann.

[Qt] svg/custom/global-constructors.html skipped 
temporarily (until fix) because of missing variables.
Platform dependent expected files updated after r52559.

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

* platform/qt/Skipped: svg/custom/global-constructors.html added until fix.
* platform/qt/fast/dom/Window/window-properties-expected.txt: updated.
* platform/qt/fast/dom/prototype-inheritance-expected.txt: updated.
* platform/qt/fast/js/global-constructors-expected.txt: updated.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-25  Daniel Bates  <dbates@webkit.org>

        Reviewed by Adam Barth.

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

        Cleans up XSSAuditor.

        Currently, we pass various parameters through to XSSAuditor::findInRequest
        that are used to determine how to decode the HTTP input parameters so that
        we can perform a match against the script source. Instead, we have defined
        a structure XSSAuditor::FindTask that can hold all of these parameters.

        No functionality was changed. So, no new tests.

        * page/XSSAuditor.cpp:
        (WebCore::XSSAuditor::canEvaluate): Modified to use struct
        XSSAuditor::FindTask.
        (WebCore::XSSAuditor::canEvaluateJavaScriptURL): Ditto.
        (WebCore::XSSAuditor::canCreateInlineEventListener): Ditto.
        (WebCore::XSSAuditor::canLoadExternalScriptFromSrc): Ditto.
        (WebCore::XSSAuditor::canLoadObject): Ditto.
        (WebCore::XSSAuditor::canSetBaseElementURL): Ditto.
        (WebCore::XSSAuditor::findInRequest): Ditto.
        * page/XSSAuditor.h:
        (WebCore::XSSAuditor::FindTask::FindTask): Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-25  Daniel Bates  <dbates@rim.com>

        Reviewed by Eric Seidel.

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

        Fixes an issue where checkFrameworks always dies with an error under Windows
        since the clause "unless (-x $path)" is always satisfied because files under
        Windows do not have an explict executable bit.

        * Scripts/webkitdirs.pm:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
* StringsNotToBeLocalized.txt: Updated for recent changes.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-25  Kent Tamura  <tkent@chromium.org>

        Reviewed by Darin Adler.

        Implement HTML5 section element.
        https://bugs.webkit.org/show_bug.cgi?id=32936

        <section> should behave the same as <nav>.

        Test: fast/html/section-element.html

        * css/html.css: Add section as a block element.
        * editing/htmlediting.cpp:
        (WebCore::validBlockTag): Add sectionTag.
        * html/HTMLElement.cpp:
        (WebCore::HTMLElement::tagPriority): Returns 5 for sectionTag.
        (WebCore::blockTagList): Add sectionTag.
        * html/HTMLParser.cpp:
        (WebCore::HTMLParser::getNode): Add sectionTag.
        * html/HTMLTagNames.in: Add section.

2009-12-25  Kent Tamura  <tkent@chromium.org>

        Reviewed by Darin Adler.

        Implement HTML5 section element.
        https://bugs.webkit.org/show_bug.cgi?id=32936

        The new test file tests:
        - <p> closing,
        - Residual style, and
        - FormatBlock.

        * fast/html/script-tests/TEMPLATE.html: Added.
        * fast/html/script-tests/section-element.js: Added.
        * fast/html/section-element-expected.txt: Added.
        * fast/html/section-element.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rubber-stamped by Simon Hausmann.

[Qt] Skipping some flakey tests.
https://bugs.webkit.org/show_bug.cgi?id=32946

* platform/qt/Skipped:
 - http/tests/cookies/simple-cookies-expired.html added.
 - storage/database-lock-after-reload.html added.
 - storage/empty-statement.html added.
 - storage/execute-sql-args.html added.
 - storage/hash-change-with-xhr.html added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52565 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r47255): Extra Large Amount of Empty Space
https://bugs.webkit.org/show_bug.cgi?id=32690

Reviewed by Sam Weinig.

WebCore: 

Test: fast/block/float/clear-to-fit.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::getClearDelta): Only clear floats as needed to
fit the child on the line.

LayoutTests: 

* fast/block/float/clear-to-fit-expected.checksum: Added.
* fast/block/float/clear-to-fit-expected.png: Added.
* fast/block/float/clear-to-fit-expected.txt: Added.
* fast/block/float/clear-to-fit.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Added Radar URLs

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-26  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        [bzt] Make the qt build go fast
        https://bugs.webkit.org/show_bug.cgi?id=32951

        Make use of multiple cores, if available.

        * Scripts/modules/webkitport.py:

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