2010-12-15  Jarred Nicholls  <jarred@sencha.com>

        Reviewed by Andreas Kling.

        [Qt] Implement the File API spec
        https://bugs.webkit.org/show_bug.cgi?id=49839

        * 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/qt/fast/js/global-constructors-expected.txt:
2010-12-15  Jarred Nicholls  <jarred@sencha.com>

        Reviewed by Andreas Kling.

        [Qt] Implement the File API spec
        https://bugs.webkit.org/show_bug.cgi?id=49839

        No new tests. fast/files tests work when manually operated.
        They do not automatically work due to Qt's inability to handle multi-file
        inputs (https://bugs.webkit.org/show_bug.cgi?id=22048) as well as Qt's DRT
        is missing an eventSender.beginDragWithFiles implementation.

        * WebCore.pri:
        * WebCore.pro:
        * features.pri:
        * platform/qt/FileSystemQt.cpp:
        (WebCore::directoryName):
        (WebCore::readFromFile):
        (WebCore::seekFile):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74115 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-15  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Update Chromium test expectations.

        * platform/chromium-mac/storage/private-browsing-noread-nowrite-expected.txt: Removed.
        * platform/chromium-win/storage/private-browsing-noread-nowrite-expected.txt: Removed.
        * platform/chromium/test_expectations.txt: test private-browsing-readonly.html was renamed
        into private-browsing-noread-nowrite.html in r74093, changing expecations accrodingly.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-15  Amruth Raj  <amruthraj@motorola.com> and Ravi Kasibhatla  <ravi.kasibhatla@motorola.com>

        Reviewed by Martin Robinson.

        Changes to enable building WebKit2 for Gtk port.
        (https://bugs.webkit.org/show_bug.cgi?id=37369)

        * GNUmakefile.am: Changes to build either of WebKit1 or WebKit2.
        It basically excludes all WebKit/gtk/webkit/ files when building WebKit2.
        Also, exludes Unittests, DumprenderTree, GtkLauncher etc for WebKit2.
        * configure.ac: Option for enable or disable WebKit2.
2010-12-15  Amruth Raj  <amruthraj@motorola.com> and Ravi Kasibhatla  <ravi.kasibhatla@motorola.com>

        Reviewed by Martin Robinson.

        Changes to enable building WebKit2 for Gtk port
        (https://bugs.webkit.org/show_bug.cgi?id=37369)

        No new functionality added or deleted. Only makefile change. Hence, no tests added.

        * GNUmakefile.am: Removed bindings/gobject from webcore_sources & webcore_cppflags and added them to WebKit/gtk/GNUmakefile.am
        * platform/network/soup/cache/webkit/soup-cache.h: Remove include <webkit/webkitdefines.h> and declare WEBKIT_API directly
2010-12-15  Amruth Raj  <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>

        Reviewed by Martin Robinson.

        Changes to enable building WebKit2 for Gtk port.
        (https://bugs.webkit.org/show_bug.cgi?id=37369)

        * GNUmakefile.am: Added WebCore/bindings/gobject to webkitgtk_sources & webkitgtk_cppflags.
        They should get compiled only when WebKit/gtk/GNUmakefile.am is getting included but not
        with WebKit2/GNUmakefile.am inclusion.
2010-12-15  Amruth Raj  <amruthraj@motorola.com> and Ravi Kasibhatla  <ravi.kasibhatla@motorola.com>

        Reviewed by Martin Robinson.

        Changes to enable building WebKit2 for Gtk port.
        (https://bugs.webkit.org/show_bug.cgi?id=37369)

        * GNUmakefile.am: Added.
        * Scripts/generate-forwarding-headers.pl: For GTK port, taking 1 extra argument for copying network headers.
        * WebKit2Prefix.h: Included WebCore/config.h for GTK port as the first header file for WebKit2 sources files.
        * gtk: Added.
        * gtk/webkit2.pc.in: Added.
2010-12-15  Amruth Raj  <amruthraj@motorola.com> and Ravi Kasibhatla  <ravi.kasibhatla@motorola.com>

        Reviewed by Martin Robinson.

        Change generate-forwarding-headers.pl for GTK port usage
        (https://bugs.webkit.org/show_bug.cgi?id=37369)

        * Scripts/webkitdirs.pm: Added changes to build webkit2 for GTK port using build-webkit script.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74117 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-15  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Darin Adler.

        MediaPlayer should try all installed media engines
        https://bugs.webkit.org/show_bug.cgi?id=50209

        * platform/graphics/MediaPlayer.cpp:
        (WebCore::bestMediaEngineForTypeAndCodecs): Rename from chooseBestEngineForTypeAndCodecs. Take optional
        parameter for current engine. 
        (WebCore::nextMediaEngine): New, return the next media engine in the list.
        (WebCore::MediaPlayer::MediaPlayer): Initialize reload timer.
        (WebCore::MediaPlayer::load): Store url, mime type, and codecs parameter in member variables.
        (WebCore::MediaPlayer::loadWithNextMediaEngine): New, initiate loading with the next media engine.
        (WebCore::MediaPlayer::supportsType): Make contentType parameter const.
        (WebCore::MediaPlayer::reloadTimerFired): New, call loadWithNextMediaEngine.
        (WebCore::MediaPlayer::networkStateChanged): If network state signals a failure and the file's
        metadata has not loaded, give the next installed engine a try.
        * platform/graphics/MediaPlayer.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74118 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-13  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: move scripts storage from ScriptsPanel to DebuggerModel.
        https://bugs.webkit.org/show_bug.cgi?id=50908

        * inspector/front-end/BreakpointManager.js:
        (WebInspector.BreakpointManager):
        (WebInspector.BreakpointManager.prototype._debuggerPaused):
        * inspector/front-end/CallStackSidebarPane.js:
        (WebInspector.CallStackSidebarPane):
        (WebInspector.CallStackSidebarPane.prototype.update):
        * inspector/front-end/DebuggerModel.js:
        (WebInspector.DebuggerModel):
        (WebInspector.DebuggerModel.prototype.setBreakpoint):
        (WebInspector.DebuggerModel.prototype._setBreakpoint):
        (WebInspector.DebuggerModel.prototype.scriptForSourceID):
        (WebInspector.DebuggerModel.prototype.scriptsForURL):
        (WebInspector.DebuggerModel.prototype.queryScripts):
        (WebInspector.DebuggerModel.prototype.parsedScriptSource):
        (WebInspector.DebuggerModel.prototype.failedToParseScriptSource):
        (WebInspector.DebuggerModel.prototype.breakpointRestored):
        (WebInspector.DebuggerModel.prototype.debuggerPaused):
        (WebInspector.DebuggerModel.prototype.debuggerResumed):
        * inspector/front-end/Resource.js:
        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel): eliminate sourceIDMap
        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame.prototype._createViewerIfNeeded):
        (WebInspector.SourceFrame.prototype._setBreakpoint):
        * inspector/front-end/SourceView.js:
        (WebInspector.SourceView):
        * inspector/front-end/inspector.js:
        (WebInspector.createJSBreakpointsSidebarPane):
        (WebInspector.parsedScriptSource):
        (WebInspector.failedToParseScriptSource):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74119 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-15  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Update Chromium test expectations.

        * platform/chromium/test_expectations.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74120 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename pageY to pageLogicalOffset, since for vertical writing modes it is an x-position rather than a
y-position.

Reviewed by Simon Fraser.

* rendering/LayoutState.cpp:
(WebCore::LayoutState::pageLogicalOffset):
(WebCore::LayoutState::addForcedColumnBreak):
* rendering/LayoutState.h:
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutBlock):
(WebCore::RenderBlock::markForPaginationRelayoutIfNeeded):
(WebCore::RenderBlock::layoutColumns):
(WebCore::RenderBlock::setPageLogicalOffset):
* rendering/RenderBlock.h:
(WebCore::RenderBlock::pageLogicalOffset):
(WebCore::RenderBlock::RenderBlockRareData::RenderBlockRareData):
* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::layoutBlock):
* rendering/RenderTable.cpp:
(WebCore::RenderTable::layout):
* rendering/RenderTableRow.cpp:
(WebCore::RenderTableRow::layout):
* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::layoutRows):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74121 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Fixed a clang compiling error by making the forward
declaration of MediaPlayerFactory be consistent with the definition.

* platform/graphics/MediaPlayer.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74122 268f45cc-cd09-0410-ab3c-d52691b4dbfc
https://bugs.webkit.org/show_bug.cgi?id=51117
Add a new leopard WK2 test bot

Reviewed by Stephanie Lewis.

* BuildSlaveSupport/build.webkit.org-config/config.json:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74123 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-15  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r74117.
        http://trac.webkit.org/changeset/74117
        https://bugs.webkit.org/show_bug.cgi?id=51113

        This broke the GTK1 build. (Requested by mrobinson on
        #webkit).

        * GNUmakefile.am:
        * configure.ac:
2010-12-15  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r74117.
        http://trac.webkit.org/changeset/74117
        https://bugs.webkit.org/show_bug.cgi?id=51113

        This broke the GTK1 build. (Requested by mrobinson on
        #webkit).

        * GNUmakefile.am:
        * platform/network/soup/cache/webkit/soup-cache.h:
2010-12-15  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r74117.
        http://trac.webkit.org/changeset/74117
        https://bugs.webkit.org/show_bug.cgi?id=51113

        This broke the GTK1 build. (Requested by mrobinson on
        #webkit).

        * GNUmakefile.am:
2010-12-15  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r74117.
        http://trac.webkit.org/changeset/74117
        https://bugs.webkit.org/show_bug.cgi?id=51113

        This broke the GTK1 build. (Requested by mrobinson on
        #webkit).

        * GNUmakefile.am: Removed.
        * Scripts/generate-forwarding-headers.pl:
        * WebKit2Prefix.h:
        * gtk/webkit2.pc.in: Removed.
2010-12-15  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r74117.
        http://trac.webkit.org/changeset/74117
        https://bugs.webkit.org/show_bug.cgi?id=51113

        This broke the GTK1 build. (Requested by mrobinson on
        #webkit).

        * Scripts/webkitdirs.pm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74124 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed.  Adjusting v8-dependent test expectations.

* platform/chromium/test_expectations.txt:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74125 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-15  Pavel Podivilov  <podivilov@chromium.org>

        Unreviewed, build fix for r74119.

        Fix debugger tests.

        * http/tests/inspector/debugger-test2.js:
        (initialize_DebuggerTest.InspectorTest.captureStackTrace):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74126 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed.  Removing another two suppressions for CSS entities garbage collection.

* platform/chromium/test_expectations.txt:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74127 268f45cc-cd09-0410-ab3c-d52691b4dbfc
* Scripts/webkitpy/common/net/buildbot: Added property svn:ignore.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74128 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-18  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Gustavo Noronha Silva.

        [GTK] Move input type=range rendering to RenderThemeGtk
        https://bugs.webkit.org/show_bug.cgi?id=47836

        Begin moving widget rendering out of the old Mozilla theme drawing code,
        which should remove many lines of code when completed. WidgetRenderingContext
        now hides the GTK+ 2 vs. 3 API differences, so that RenderThemeGtk can stay
        version agnostic.

        No new tests as this patch does not change functionality.

        * platform/gtk/RenderThemeGtk.cpp:
        (WebCore::RenderThemeGtk::RenderThemeGtk): gtkContainer() now returns a
        GtkWidget, so update the cast here.
        (WebCore::RenderThemeGtk::getGtkStateType): Added this helper which
        converts a RenderObject state into a GtkStateType.
        (WebCore::RenderThemeGtk::paintRenderObject): Removed work-arounds for
        scale painting, as it's not handled by this method any longer.
        (WebCore::RenderThemeGtk::paintSliderTrack): Updated to use
        WidgetRenderingContext.
        (WebCore::RenderThemeGtk::paintSliderThumb): Ditto.
        (WebCore::RenderThemeGtk::adjustSliderThumbSize): Get the size
        properties directly from the widget now instead of asking the Mozilla code.
        (WebCore::RenderThemeGtk::setupWidgetAndAddToContainer): Added this
        helper which reduces the amount of code quite a bit.
        (WebCore::RenderThemeGtk::gtkContainer): Updated to use helper.
        (WebCore::RenderThemeGtk::gtkButton): Ditto.
        (WebCore::RenderThemeGtk::gtkEntry): Ditto.
        (WebCore::RenderThemeGtk::gtkTreeView): Ditto.
        (WebCore::RenderThemeGtk::gtkVScale): Added.
        (WebCore::RenderThemeGtk::gtkHScale): Added.
        (WebCore::RenderThemeGtk::platformColorsDidChange): Removed
        GTK_CONTAINER cast.
        * platform/gtk/RenderThemeGtk.h: Updated to add new GtkHScale and
         GtkVScale members.
        * platform/gtk/WidgetRenderingContext.h: Aded new methods to proxy
        gtk_paint_box, gtk_paint_focus and gtk_paint_slider.
        * platform/gtk/WidgetRenderingContextGtk2.cpp:
        (WebCore::WidgetRenderingContext::gtkPaintBox): Added.
        (WebCore::WidgetRenderingContext::gtkPaintFocus): Ditto.
        (WebCore::WidgetRenderingContext::gtkPaintSlider): Ditto.
        * platform/gtk/WidgetRenderingContextGtk3.cpp:
        (WebCore::WidgetRenderingContext::gtkPaintBox): Ditto.
        (WebCore::WidgetRenderingContext::gtkPaintFocus): Ditto.
        (WebCore::WidgetRenderingContext::gtkPaintSlider): Ditto.
        * platform/gtk/gtk2drawing.c: Removed defunct code!
        (moz_gtk_get_widget_border):
        (moz_gtk_widget_paint):
        * platform/gtk/gtk3drawing.c: Ditto.
        (moz_gtk_get_widget_border):
        (moz_gtk_widget_paint):
        * platform/gtk/gtkdrawing.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74129 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-08  Ojan Vafai  <ojan@chromium.org>

        Reviewed by Adam Barth.

        [reviewtool] should always show overall comments text box
        https://bugs.webkit.org/show_bug.cgi?id=45870

        * PrettyPatch/PrettyPatch.rb:
        * code-review.js:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit2: WebPageWin needs implementations of hasLocalDataForURL and canHandleRequest
https://bugs.webkit.org/show_bug.cgi?id=51090
        
Reviewed by Adam Roben.

Implement these functions for WebKit2 on Windows.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::hasLocalDataForURL): Does the cross-platform part of the check for having local
    data (file URL or subresource), then calls platformHasLocalDataForURL to let the platform do
    their specific checks.
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/mac/WebPageMac.mm:
(WebKit::WebPage::platformHasLocalDataForURL): Moved the cross-platform code from here to WebPage::hasLocalDataForURL.
* WebProcess/WebPage/qt/WebPageQt.cpp:
(WebKit::WebPage::platformHasLocalDataForURL): Renamed from hasLocalDataForURL.
* WebProcess/WebPage/win/WebPageWin.cpp:
(WebKit::WebPage::platformHasLocalDataForURL): Renamed from hasLocalDataForURL and implemented with CFNetwork calls. This is the
    CFNetwork equivalent of the code in WebPageMac::platformHasLocalDataForURL.
(WebKit::WebPage::canHandleRequest): Copied the line of code from WebView::canHandleRequest in WebKit1, with a FIXME saying
    this might not be enough (although it was in WebKit1 on Windows).



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-15  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Gustavo Noronha Silva.

        [GTK] Move button rendering from gtk{2,3}drawing.cpp to RenderThemeGtk
        https://bugs.webkit.org/show_bug.cgi?id=48486

        Implement button rendering in RenderThemeGtk. The implementation
        from gtk{2,3}drawing.cpp will be removed once menu list button rendering
        is implemented in RenderThemeGtk as well.

        No new tests, as this should not change functionality.

        * platform/gtk/RenderThemeGtk.cpp:
        (WebCore::RenderThemeGtk::paintButton): Add an implementation of button
        rendering that uses WidgetRenderingContext.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74132 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Mark a failed test in chromium test expectations.

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74133 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-15  Anders Carlsson  <andersca@apple.com>

        Reviewed by Maciej Stachowiak.

        Semi-reproducible crash in ChunkedUpdateDrawingArea::paintIntoUpdateChunk closing a particular yahoo page
        https://bugs.webkit.org/show_bug.cgi?id=51126
        <rdar://problem/8771219>

        Laying out the web page can cause the drawing area to change so we need to protect against this.

        * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
        (WebKit::ChunkedUpdateDrawingArea::display):
        * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
        (WebKit::LayerBackedDrawingArea::display):
        * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm:
        (WebKit::LayerBackedDrawingArea::updateLayoutRunLoopObserverFired):

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