2009-12-28  Adam Barth  <abarth@webkit.org>

        Unreviewed "build" fix (with test!).

        * Scripts/modules/bugzilla.py:
        * Scripts/modules/bugzilla_unittest.py:

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

        Reviewed by Maciej Stachowiak.

        Implement HTML5 <article> element.
        https://bugs.webkit.org/show_bug.cgi?id=32942

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

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

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

        Reviewed by Maciej Stachowiak.

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

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

        Test: fast/html/article-element.html

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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-28  Estêvão Samuel Procópio  <tevaum@gmail.com>

        Reviewed by Gustavo Noronha Silva.

        Bug 32940: [GTK] Changing the download throttle conditions.
        https://bugs.webkit.org/show_bug.cgi?id=32716

        The WebKitDownload progress notification was taking long to
        update. This fix makes notification happens each 0.7 secs
        or when the progress ups in 1%.

        * WebKit/gtk/webkit/webkitdownload.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52597 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-28  Patrick Gansterer  <paroga@paroga.com>

        Reviewed by Maciej Stachowiak.

        Cleanup of #define JS_EXPORT.

        * API/JSBase.h:
2009-12-28  Patrick Gansterer  <paroga@paroga.com>

        Reviewed by Maciej Stachowiak.

        Use JS_NO_EXPORT for JSBase.h.

        * wxwk-settings.bkl:


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

        Reviewed by Eric Seidel.

        [bzt] Create an ASAD command for uploading a patch
        https://bugs.webkit.org/show_bug.cgi?id=32979

        The create-review command goes through the whole process of preparing a
        code review, including creating a bug, editing the ChangeLogs, and
        uploading the patch.  It is indeed the All Sing, All Dance upload
        command.

        * Scripts/modules/buildsteps.py:
        * Scripts/modules/commands/upload.py:
        * Scripts/modules/commands/upload_unittest.py:
        * Scripts/modules/mock_bugzillatool.py:
        * Scripts/modules/user.py:


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

        Reviewed by Eric Seidel.

        [bzt] Add an edit-changelog command
        https://bugs.webkit.org/show_bug.cgi?id=32986

        This command makes it easier to edit ChangeLogs.  It's similar to
        prepare-ChangeLog -o, except it works with already existing ChangeLogs.

        * Scripts/modules/commands/upload.py:
        * Scripts/modules/commands/upload_unittest.py:

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

        Reviewed by Adam Barth.

        [Qt] Fix build break for Qt 4.4
        https://bugs.webkit.org/show_bug.cgi?id=30327

        No new tests, as there is no new functionality.

        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::clipOut): Use intersected() instead of
        operator &, which was only introduced in Qt version 4.5.

        * platform/qt/ScrollbarThemeQt.cpp:
        (WebCore::ScrollbarThemeQt::paintScrollCorner): Pass ColorSpace
        argument to fillColor() introduced in r50760
2009-12-28  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Adam Barth.

        [Qt] Fix build break for Qt 4.4
        https://bugs.webkit.org/show_bug.cgi?id=30327

        * DumpRenderTree/qt/DumpRenderTreeQt.cpp: Include QLocale
        * DumpRenderTree/qt/LayoutTestControllerQt.cpp: Ditto.
        * QtLauncher/main.cpp:
        (MainWindow::MainWindow): Qt::WA_TranslucentBackground was
        introduced in Qt version 4.5


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

        Reviewed by Laszlo Gombos.

        [Qt] Delete ThreadPrivate instance after it is finished.
        https://bugs.webkit.org/show_bug.cgi?id=32614

        * wtf/qt/ThreadingQt.cpp:
        (WTF::ThreadMonitor::instance):
        (WTF::ThreadMonitor::threadFinished):
        (WTF::createThreadInternal):
        (WTF::detachThread):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52602 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-28  Gustavo Noronha Silva  <gns@gnome.org>

        Reviewed by Ariya Hidayat.

        Fix warnings when generating files using gperf. The warnings are
        currently harmless, but some changes in the build system may make
        them fatal.

        [GTK] Build time must be reduced
        https://bugs.webkit.org/show_bug.cgi?id=32921

        * GNUmakefile.am:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52603 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-28  Ariya Hidayat  <ariya.hidayat@gmail.com>

        Unreviewed, update my email address.

        * Scripts/modules/committers.py:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Rubber-stamped by Xan Lopez.

        Follow Apple's decision to disable HTML DataGrid by default.

        * GNUmakefile.am:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Skip test that is failing since it was checked in, and some tests
        that need results.

        * platform/gtk/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-28  Mike Moretti  <webkit9@mordent.com>

        Reviewed by Darin Adler.

        Fix bug 28245 - problem with inserting a span into a long text block causing a crash because of a null string

        Test: fast/dom/insert-span-into-long-text-bug-28245.html

        * rendering/RenderBlockLineLayout.cpp:
        (WebCore::RenderBlock::findNextLineBreak):
2009-12-28  Mike Moretti  <webkit9@mordent.com>

        Reviewed by Darin Adler.

        Fix bug 28245 - problem with inserting a span into a long text block causing a crash because of a null string

        * fast/dom/insert-span-into-long-text-bug-28245-expected.txt: Added.
        * fast/dom/insert-span-into-long-text-bug-28245.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52607 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-28  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Maciej Stachowiak.

        Fixed isKeypadEvent behavior for chromium/Mac to correctly report
        keyLocation as DOM_KEY_LOCATION_NUMPAD for numeric pad key events.
        https://bugs.webkit.org/show_bug.cgi?id=28247

        Test: fast/events/keydown-numpad-keys.html

        * src/mac/WebInputEventFactory.mm:
        (WebKit::isKeypadEvent):
2009-12-28  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Maciej Stachowiak.

        Fixed isKeypadEvent behavior for Mac to correctly report keyLocation
        as DOM_KEY_LOCATION_NUMPAD for numeric pad key events.
        https://bugs.webkit.org/show_bug.cgi?id=28247

        Test: fast/events/keydown-numpad-keys.html

        * platform/mac/KeyEventMac.mm:
        (WebCore::isKeypadEvent):
2009-12-28  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Maciej Stachowiak.

        Added a layout-test that tests if numeric pad arrow key
        events are correctly reported with keyLocation as
        DOM_KEY_LOCATION_NUMPAD.  Currently this test only passes on Mac.
        https://bugs.webkit.org/show_bug.cgi?id=28247

        * fast/events/keydown-numpad-keys-expected.txt: Added.
        * fast/events/keydown-numpad-keys.html: Added.
        * fast/events/script-tests/keydown-numpad-keys.js: Added.
        (recordKeyEvent):
        (testKeyEventWithLocation):

        * platform/gtk/Skipped: fast/events/keydown-numpad-keys.html added.
        * platform/qt/Skipped: fast/events/keydown-numpad-keys.html added.
        * platform/win/Skipped: fast/events/keydown-numpad-keys.html added.
2009-12-28  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Maciej Stachowiak.

        Extended EventSender.keyDown method to take another (3rd) argument
        for indicating the keyLocation to make numeric pad key events testable.
        Expected values for the argument is one of the KeyLocationCode
        specified in DOM Level 3
        (http://www.w3.org/TR/DOM-Level-3-Events/#events-keyboardevents).
        https://bugs.webkit.org/show_bug.cgi?id=28247

        Test: fast/events/keydown-numpad-keys.html

        * DumpRenderTree/mac/EventSendingController.mm:
        (+[EventSendingController isSelectorExcludedFromWebScript:]):
        (+[EventSendingController webScriptNameForSelector:]):
        (-[EventSendingController keyDown:withModifiers:withLocation:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52608 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-28  Charles Wei  <charles.wei@torchmobile.com.cn>

        Reviewed by Maciej Stachowiak.

        Remove the macro ENABLE(XHTMLMP) for noscriptAreateErrorCheck in HTMLParser,
        since with XHTMLMP enabled, it's not checking create Errors,  and then contents inside 
        <noscript> are always parsed and rendered.
        https://bugs.webkit.org/show_bug.cgi?id=32706

        Tests: fast/parser/noscript-with-javascript-disabled.html
               fast/parser/noscript-with-javascript-enabled.html

        * html/HTMLParser.cpp:
        (WebCore::HTMLParser::getNode):
2009-12-28  Charles Wei  <charles.wei@torchmobile.com.cn>

        Reviewed by Maciej Stachowiak.

        Add test cases for <noscript> with both Javascript enabled and disabled
        https://bugs.webkit.org/show_bug.cgi?id=32706


        * fast/parser/noscript-with-javascript-disabled-expected.txt: Added.
        * fast/parser/noscript-with-javascript-disabled.html: Added.
        * fast/parser/noscript-with-javascript-enabled-expected.txt: Added.
        * fast/parser/noscript-with-javascript-enabled.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-28  Andrei Popescu  <andreip@google.com>

        Reviewed by Dmitry Titov.

        On Android, ResourceHandle instances make use of a pointer to a
        ResourceLoaderAndroid pointer. This needs to be stored in order to later cancel
        the load, if necessary. Since this pointer is an internal implementation
        details of ResourceHandle on Android, it needs to be stored in the
        ResourceHandleInternal class. This patch adds this pointer.
        https://bugs.webkit.org/show_bug.cgi?id=32873

        No new tests needed, this is platform-specific code.

        * platform/network/ResourceHandle.h:
        * platform/network/ResourceHandleInternal.h:
        (WebCore::ResourceHandleInternal::ResourceHandleInternal):


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

        Reviewed by Eric Seidel.

        [Qt] fix fast/dom/Window/window-onFocus.html
        
        Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
        window.onblur was getting dispatched twice from QtWebKit.
        
        https://bugs.webkit.org/show_bug.cgi?id=32990

        * Api/qwebpage.cpp:
        (QWebPagePrivate::focusOutEvent):
2009-12-29  Robert Hogan  <robert@roberthogan.net>

        Reviewed by Eric Seidel.

        [Qt] fix fast/dom/Window/window-onFocus.html
        
        Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
        window.onblur was getting dispatched twice from QtWebKit.
        
        https://bugs.webkit.org/show_bug.cgi?id=32990

        * platform/qt/Skipped:
2009-12-29  Robert Hogan  <robert@roberthogan.net>

        Reviewed by Eric Seidel.

        [Qt] fix fast/dom/Window/window-onFocus.html
        
        Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
        window.onblur was getting dispatched twice from QtWebKit.
        
        https://bugs.webkit.org/show_bug.cgi?id=32990

        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
        (WebCore::DumpRenderTree::DumpRenderTree):
        (WebCore::DumpRenderTree::switchFocus):
        * DumpRenderTree/qt/DumpRenderTreeQt.h:
        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
        (LayoutTestController::setWindowIsKey):
        (LayoutTestController::setMainFrameIsFirstResponder):
        * DumpRenderTree/qt/LayoutTestControllerQt.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-12-29  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Eric Seidel.

        [Qt] DRT: Frame loader callbacks differ from the Mac port
        https://bugs.webkit.org/show_bug.cgi?id=32989

        Remove messages from the callbacks that should not dump them to match
        the expected results for the http/loading tests.

        Unskip some http/loading tests which succeed now.

        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
        (WebCore::FrameLoaderClientQt::dispatchWillClose):
        (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
        (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
2009-12-29  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Eric Seidel.

        [Qt] DRT: Frame loader callbacks differ from the Mac port
        https://bugs.webkit.org/show_bug.cgi?id=32989

        Remove messages from the callbacks that should not dump them to match
        the expected results for the http/loading tests.

        Unskip some http/loading tests which succeed now.

        * platform/qt/Skipped:
2009-12-29  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Eric Seidel.

        [Qt] DRT: Frame loader callbacks differ from the Mac port
        https://bugs.webkit.org/show_bug.cgi?id=32989

        Remove messages from the callbacks that should not dump them to match
        the expected results for the http/loading tests.

        Unskip some http/loading tests which succeed now.

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


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

        Reviewed by Eric Seidel.

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

        Changes $diffPercentage to be a number to resolve Perl
        warning about comparing a string to a number.

        * Scripts/run-webkit-tests:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed by Holger Freyther.

[GTK] fails fast/harness/use-page-cache.html
https://bugs.webkit.org/show_bug.cgi?id=33013

Make sure settings are forwarded to child WebViews.

* DumpRenderTree/gtk/DumpRenderTree.cpp:
(createWebView):

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