Web Inspector: make SourceFrame a View.
https://bugs.webkit.org/show_bug.cgi?id=64274

Reviewed by Pavel Feldman.

* inspector/front-end/SourceFrame.js:
(WebInspector.SourceFrame):
(WebInspector.SourceFrame.createSearchRegex):
(WebInspector.SourceFrame.prototype.show):
(WebInspector.SourceFrame.prototype.hide):
(WebInspector.SourceFrame.prototype._beforeTextChanged):
(WebInspector.SourceFrame.prototype._afterTextChanged):
(WebInspector.SourceFrame.prototype._initializeTextViewer):
(WebInspector.SourceFrame.prototype.performSearch.doFindSearchMatches):
(WebInspector.SourceFrame.prototype.performSearch):
(WebInspector.SourceFrame.prototype._populateTextAreaContextMenu):
(WebInspector.SourceFrame.prototype._suggestedFileName):
(WebInspector.SourceFrame.prototype._doubleClick):
(WebInspector.SourceFrame.prototype._cancelEditing):
(WebInspector.TextViewerDelegateForSourceFrame):
(WebInspector.TextViewerDelegateForSourceFrame.prototype.doubleClick):
(WebInspector.TextViewerDelegateForSourceFrame.prototype.beforeTextChanged):
(WebInspector.TextViewerDelegateForSourceFrame.prototype.afterTextChanged):
(WebInspector.TextViewerDelegateForSourceFrame.prototype.commitEditing):
(WebInspector.TextViewerDelegateForSourceFrame.prototype.cancelEditing):
(WebInspector.TextViewerDelegateForSourceFrame.prototype.populateLineGutterContextMenu):
(WebInspector.TextViewerDelegateForSourceFrame.prototype.populateTextAreaContextMenu):
(WebInspector.TextViewerDelegateForSourceFrame.prototype.suggestedFileName):
* inspector/front-end/TextViewer.js:
(WebInspector.TextViewerDelegate.prototype.populateLineGutterContextMenu):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add back the win-xp and win-wk2 results that were deleted in r90699

Deleting these results caused the tests to start failing on the bots. The only test result I
didn't add back was
win-wk2/http/tests/uri/username-with-no-hostname-expected.txt, as that test is not currently
failing on the bots.

Fixes <http://webkit.org/b/64277> REGRESSION (r90699): 12 svg tests failing on Windows XP
Debug (Tests) and 13 tests failing on Windows 7 Release (WebKit2 Tests)

* platform/win-wk2/editing/selection/caret-ltr-right-expected.txt: Added.
* platform/win-wk2/editing/selection/drag-text-delay-expected.txt: Added.
* platform/win-wk2/fast/css/pseudo-any-expected.txt: Added.
* platform/win-wk2/fast/forms/textfield-overflow-expected.txt: Added.
* platform/win-wk2/fast/ruby/after-block-doesnt-crash-expected.txt: Added.
* platform/win-wk2/fast/ruby/after-table-doesnt-crash-expected.txt: Added.
* platform/win-wk2/fast/ruby/before-block-doesnt-crash-expected.txt: Added.
* platform/win-wk2/fast/ruby/before-table-doesnt-crash-expected.txt: Added.
* platform/win-wk2/fast/ruby/generated-after-counter-doesnt-crash-expected.txt: Added.
* platform/win-wk2/fast/ruby/generated-before-and-after-counter-doesnt-crash-expected.txt: Added.
* platform/win-wk2/fast/ruby/generated-before-counter-doesnt-crash-expected.txt: Added.
* platform/win-wk2/plugins/npruntime/embed-property-equality-expected.txt: Added.
* platform/win-wk2/plugins/resize-from-plugin-expected.txt: Added.
* platform/win-xp/svg/W3C-I18N/g-dirLTR-ubNone-expected.txt: Added.
* platform/win-xp/svg/W3C-I18N/g-dirLTR-ubOverride-expected.txt: Added.
* platform/win-xp/svg/W3C-I18N/g-dirRTL-ubNone-expected.txt: Added.
* platform/win-xp/svg/W3C-I18N/g-dirRTL-ubOverride-expected.txt: Added.
* platform/win-xp/svg/W3C-I18N/text-dirLTR-ubNone-expected.txt: Added.
* platform/win-xp/svg/W3C-I18N/text-dirRTL-ubNone-expected.txt: Added.
* platform/win-xp/svg/W3C-I18N/text-dirRTL-ubOverride-expected.txt: Added.
* platform/win-xp/svg/W3C-I18N/tspan-dirLTR-ubEmbed-in-rtl-context-expected.txt: Added.
* platform/win-xp/svg/W3C-I18N/tspan-dirLTR-ubNone-in-rtl-context-expected.txt: Added.
* platform/win-xp/svg/W3C-I18N/tspan-dirRTL-ubOverride-in-rtl-context-expected.txt: Added.
* platform/win-xp/svg/W3C-I18N/tspan-direction-rtl-expected.txt: Added.
* platform/win-xp/svg/text/bidi-tspans-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed by Pavel Feldman.

Web Inspector: [refactoring] Remove dependencies of components requiring network resource list from network panel
https://bugs.webkit.org/show_bug.cgi?id=62477

Source/WebCore:

* inspector/front-end/AuditsPanel.js:
* inspector/front-end/ExtensionServer.js:
(WebInspector.ExtensionServer):
(WebInspector.ExtensionServer.prototype._inspectedURLChanged):
(WebInspector.ExtensionServer.prototype._onGetHAR):
(WebInspector.ExtensionServer.prototype.initExtensions):
* inspector/front-end/HAREntry.js:
(WebInspector.HARLog):
(WebInspector.HARLog.prototype.build):
* inspector/front-end/NetworkManager.js:
(WebInspector.NetworkLog):
(WebInspector.NetworkLog.prototype.get resources):
(WebInspector.NetworkLog.prototype._onInspectedURLChanged):
(WebInspector.NetworkLog.prototype._onResourceStarted):
* inspector/front-end/NetworkPanel.js:
(WebInspector.NetworkPanel.prototype._reset):
(WebInspector.NetworkPanel.prototype._copyAll):
(WebInspector.NetworkPanel.prototype._exportAll):
* inspector/front-end/inspector.js:
(WebInspector.reset):

LayoutTests:

* http/tests/inspector/resource-har-conversion.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
new-run-webkit-tests does not support qt-arm or qt-4.8 results
https://bugs.webkit.org/show_bug.cgi?id=64071

[Qt] NRWT should pick up the right httpd config file
https://bugs.webkit.org/show_bug.cgi?id=64086

Reviewed by Zoltán Herczeg.

* Scripts/run-webkit-tests: Disable NRWT for qt-mac, qt-arm and qt-4.8 platforms until fix.
(useNewRunWebKitTests):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Teach TestFailures that ORWT's results.html file might be missing due to all tests passing

There are three reasons why we might fail to fetch ORWT's results.html:
  - All tests passed, so no results.html was generated
  - Some error during the test run caused results.html not to be generated (e.g., ORWT
    timed out)
  - Some network error occurred when fetching results.html

We were failing to account for the first possibility in some cases. For test runs before
r89610, we first check build.webkit.org/json to determine how many tests failed and whether
ORWT exited early due to too many failures; if all tests passed then we don't fetch
results.html at all. r89610 changed ORWT to put information in results.html about exiting
early due to too many failures, so we no longer needed to check build.webkit.org/json to get
that information, and in r89619 I changed TestFailures to do just that. But I forgot that we
still needed to check build.webkit.org/json to find out if all tests passed!

Now, for test runs after r89610, we check results.html first, and then check
build.webkit.org/json if we fail to fetch results.html. This lets us distinguish between all
tests passing and the error cases.

Fixes <http://webkit.org/b/64280> TestFailures page can't pinpoint that r90699 caused 13
tests to fail on Windows 7 Release (WebKit2 Tests)

Reviewed by David Kilzer.

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/LayoutTestResultsLoader.js:
(LayoutTestResultsLoader.prototype.start): Bumped the cache version so that old, buggy
cached data will get evicted. We were marking builds where all tests passed as errors!
(LayoutTestResultsLoader.prototype._fetchAndParseORWTResults): Added success/error callback
parameters to the fetchAndParseResultsHTML helper function, and added a similar
fetchNumberOfFailingTests function that fetches data from build.webkit.org/json (code came
from later in the function). For test runs before r89610, we first check
build.webkit.org/json then check results.html. For builds after r89610, we first check
results.html and then check build.webkit.org/json if we couldn't fetch results.html.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTestRunner needs an implementation of eventSender.beginDragWithFiles.
https://bugs.webkit.org/show_bug.cgi?id=64285

Add fast/forms/file-input-change-event.html to the mac-wk2 Skipped list to get the bots
green.

* platform/wk2/Skipped:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-07-11  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@90749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WK2] Forward the viewport visible area from the view instead of inferring it from the TiledDrawingAreaProxy
https://bugs.webkit.org/show_bug.cgi?id=64275

Patch by Benjamin Poulain <benjamin@webkit.org> on 2011-07-11
Reviewed by Simon Hausmann.

This patch refactors the way the viewport visible area is handled.
Previously, the TiledDrawingAreaProxy would ask for the visible rect
when painting or updating. This is reversed with this patch, and the viewport
informs the page of any change in the view area.

With this change, the TiledDrawingAreaProxy does not need to know about QTouchWebPage,
and can use the TouchViewInterface directly.

* UIProcess/API/qt/qtouchwebpage.cpp:
(QTouchWebPagePrivate::setViewportRect):
* UIProcess/API/qt/qtouchwebpage.h:
* UIProcess/API/qt/qtouchwebpage_p.h:
* UIProcess/API/qt/qtouchwebview.cpp:
(QTouchWebViewPrivate::scroll):
(QTouchWebViewPrivate::viewportRectUpdated):
(QTouchWebView::resizeEvent):
* UIProcess/API/qt/qtouchwebview.h:
* UIProcess/API/qt/qtouchwebview_p.h:
* UIProcess/PageClient.h:
* UIProcess/TiledDrawingAreaProxy.cpp:
(WebKit::TiledDrawingAreaProxy::invalidate):
(WebKit::TiledDrawingAreaProxy::paint):
(WebKit::TiledDrawingAreaProxy::setVisibleArea):
(WebKit::TiledDrawingAreaProxy::createTiles):
* UIProcess/TiledDrawingAreaProxy.h:
* UIProcess/WebPageProxy.h:
* UIProcess/qt/QtWebPageProxy.cpp:
* UIProcess/qt/QtWebPageProxy.h:
* UIProcess/qt/TiledDrawingAreaProxyQt.cpp:
(WebKit::TiledDrawingAreaProxy::updateWebView):
* UIProcess/qt/TouchViewInterface.cpp:
(WebKit::TouchViewInterface::contentSizeChanged):
* UIProcess/qt/TouchViewInterface.h:
* UIProcess/qt/WebPageProxyQt.cpp:
* UIProcess/qt/qtouchwebpageproxy.cpp:
(QTouchWebPageProxy::createDrawingAreaProxy):
(QTouchWebPageProxy::setVisibleArea):
* UIProcess/qt/qtouchwebpageproxy.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90750 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-07-11  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@90751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][Mac] Unreviewed fix after r90746.

* Scripts/run-webkit-tests:
(useNewRunWebKitTests): Really disable NRWT for qt-mac platform.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][Mac] Unreviewed gardening.

* platform/qt-mac/Skipped: Remove non-existent editing/pasteboard/do-not-copy-body-color.html.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Portuguese translation update
https://bugs.webkit.org/show_bug.cgi?id=46137

Patch by Duarte Loreto <happyguy_pt@hotmail.com> on 2011-07-11
Reviewed by Gustavo Noronha.

* pt.po: updated.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Indonesian translation
https://bugs.webkit.org/show_bug.cgi?id=44410

Patch by Andika Triwidada <andika@gmail.com> on 2011-07-11
Reviewed by Gustavo Noronha.

* id.po: updated.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Ukrainian translation for WebKitGTK+
https://bugs.webkit.org/show_bug.cgi?id=36415

Patch by Yuri Chornoivan  <yurchor@ukr.net> on 2011-07-11
Reviewed by Gustavo Noronha.

* uk.po: added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-07-11  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@90757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed by Oliver Hunt.

Canvas: Use fast, approximate dirty rects for stroke()
https://bugs.webkit.org/show_bug.cgi?id=59764

No new tests, this is an optimization.

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::stroke): Instead of using
Path::strokeBoundingRect() to calculate the exact bounding rect
for a path stroke, get the Path::boundingRect() and inflate it by
miterLimit + lineWidth to get a slightly oversized dirty rect
in a fraction of the time.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
http/tests/cache/history-only-cached-subresource-loads-max-age-https.html timing out on
Windows and WebKit2 since it was added.
https://bugs.webkit.org/show_bug.cgi?id=63806

Add the test to the WK2 Skipped list to get the bots green.

* platform/wk2/Skipped:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        The original request should be accessible from WebNavigationData.
        https://bugs.webkit.org/show_bug.cgi?id=64227

        Reviewed by Anders Carlsson.

        * Shared/WebNavigationDataStore.h:
        (WebKit::WebNavigationDataStore::encode): Handle the encoding of the original request.
        (WebKit::WebNavigationDataStore::decode): Handle the decoding of the original request.
        * UIProcess/API/C/WKNavigationData.cpp:
        (WKNavigationDataCopyOriginalRequest): 
        * UIProcess/API/C/WKNavigationData.h:
        * UIProcess/WebNavigationData.h:
        (WebKit::WebNavigationData::originalRequest):
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebKit::WebFrameLoaderClient::updateGlobalHistory): Store the original request in the WebNavigationDataStore.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix syntax error from r90757.

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90761 268f45cc-cd09-0410-ab3c-d52691b4dbfc
garden-o-matic should be able to roll out patches
https://bugs.webkit.org/show_bug.cgi?id=64185

Reviewed by Eric Seidel.

This gardening server API is simply a binding to the rollout machinery
already present in webkit-patch.

* Scripts/webkitpy/tool/commands/gardenomatic.py:
* Scripts/webkitpy/tool/servers/gardeningserver.py:
* Scripts/webkitpy/tool/servers/gardeningserver_unittest.py: Added.


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