[Qt] QWebSettings::clearMemoryCaches should clear JS garbage
https://bugs.webkit.org/show_bug.cgi?id=111094

Patch by Arunprasad Rajkumar <arunprasadr@nds.com> on 2013-03-07
Reviewed by Jocelyn Turcotte.

* Api/qwebsettings.cpp:
(QWebSettings::clearMemoryCaches):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Styles sidebar pane toolbar disappears in horizontal split mode.
https://bugs.webkit.org/show_bug.cgi?id=111735

Reviewed by Pavel Feldman.

* inspector/front-end/ElementsPanel.js:
(WebInspector.ElementsPanel.prototype._splitVertically):
* inspector/front-end/elementsPanel.css:
(.sidebar-pane.composite .metrics-and-computed .sidebar-pane-toolbar):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145086 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove GC code duplication in http/tests LayoutTests.
https://bugs.webkit.org/show_bug.cgi?id=111589

Reviewed by Kentaro Hara, Alexey Proskuryakov.

Replaced duplicated GC logic in various tests with a function call to the implementation
in /js-test-resources/js-test-pre.js

* http/tests/appcache/destroyed-frame.html:
* http/tests/media/media-source/video-media-source-sourcebufferlist-crash.html:
* http/tests/misc/async-script.html:
* http/tests/misc/embed-image-load-outlives-gc-without-crashing.html:
* http/tests/misc/image-input-type-outlives-gc-without-crashing.html:
* http/tests/misc/image-load-outlives-gc-without-crashing.html:
* http/tests/misc/javascript-url-stop-loaders.html:
* http/tests/misc/object-image-load-outlives-gc-without-crashing.html:
* http/tests/misc/svg-image-load-outlives-gc-without-crashing.html:
* http/tests/misc/video-poster-image-load-outlives-gc-without-crashing.html:
* http/tests/security/detached-sandboxed-frame-access.html:
* http/tests/websocket/tests/hybi/websocket-pending-activity.html:
* http/tests/xmlhttprequest/event-listener-gc.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145090 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Remove WebView's sharedGraphicsContext3D method.
https://bugs.webkit.org/show_bug.cgi?id=111499

Reviewed by James Robinson.

* public/WebView.h:
(WebView):
* src/WebViewImpl.cpp:
* src/WebViewImpl.h:
(WebViewImpl):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Chromium, mac-wk2 and mac need new baselines after fixing paint phases for composited scrolling.
https://bugs.webkit.org/show_bug.cgi?id=107952

New baseline for Mac.

* platform/mac/compositing/overflow/composited-scrolling-creates-a-stacking-container-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145092 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: [CodeMirror] dublicated horizontal scroll
https://bugs.webkit.org/show_bug.cgi?id=111712

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-03-07
Reviewed by Pavel Feldman.

Set a box-sizing css property on all codemirror elements to
"content-box".

No new tests.

* inspector/front-end/cm/cmdevtools.css:
(.CodeMirror *):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145093 268f45cc-cd09-0410-ab3c-d52691b4dbfc
inspector/debugger/debugger-expand-scope.html sometimes fails on Apple MountainLion Release WK1 (Tests)
https://bugs.webkit.org/show_bug.cgi?id=111754

Skipping this test so that Mac EWS can catch up.

* platform/mac/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145095 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Null-check the page overlay before trying to use it.

Reviewed by Simon Fraser.

* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::scroll):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145096 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        FormData should allow setting filename to empty
        https://bugs.webkit.org/show_bug.cgi?id=111687

        Reviewed by Brady Eidson.

        Tests: http/tests/local/formdata/send-form-data-with-empty-blob-filename.html
               http/tests/local/formdata/send-form-data-with-empty-file-filename.html

        * html/FileInputType.cpp: (WebCore::FileInputType::appendFormData):
        Use a Blob for empty file input, not a hacky File with empty path.

        * platform/network/FormData.cpp: (WebCore::FormData::appendKeyValuePairItems):
        Missing value is a null string. If the string is empty, we should treat is as
        authoritative.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145097 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r143727): Clicking / selecting inside an <embed> is broken
https://bugs.webkit.org/show_bug.cgi?id=111217

Reviewed by Julien Chaffraix.

Source/WebCore:

Hit-testing into child frames need to happen in RenderPart, otherwise
we will miss frame views in <embed> and <object> elements.

Test: fast/dom/nodesFromRect/nodesFromRect-embedded-frame-content.html

* rendering/RenderFrameBase.cpp:
* rendering/RenderFrameBase.h:
(RenderFrameBase):
* rendering/RenderPart.cpp:
(WebCore::RenderPart::nodeAtPoint):
* rendering/RenderPart.h:
(RenderPart):

LayoutTests:

Test rect and point based hit-testing inside embed and object child frames.

* fast/dom/nodesFromRect/nodesFromRect-embedded-frame-content-expected.txt: Added.
* fast/dom/nodesFromRect/nodesFromRect-embedded-frame-content.html: Added.
* fast/dom/nodesFromRect/resources/nodesFromRect.js:
(checkPoint):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145098 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Update some #includes for WebVideoFrame.h
https://bugs.webkit.org/show_bug.cgi?id=111739

Reviewed by James Robinson.

In anticipation of removing WebVideoFrame.h from WK/chromium/public/.

* public/WebMediaPlayer.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: border-fit-adjust should happen at layout time rather than paint time
https://bugs.webkit.org/show_bug.cgi?id=111606
<rdar://problem/13101714>

Reviewed by Antti Koivisto.

In order for border-fit-adjust to be accurate in more cases, it needs
to be a layout-time adjustment rather than a paint-time adjustment.
Specifically there are cases where an LTR adjusted box was right-aligned
by its container, and without genuinely shrinking the size of the box,
we end up chopping off the right edge but not shifting the box to the
right to compensate.
        
This patch changes border-fit-adjust to now do the adjustment using
the override width mechanism and a second layout pass instead of just
hacking painting.

Test: fast/block/border-fit-with-right-alignment.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutBlock):
Calls fitBorderToLinesIfNeeded at the end of layout to do a second
layout pass if the adjustment needs to be made.

(WebCore::RenderBlock::fitBorderToLinesIfNeeded):
Renamed borderFitAdjust to fitBorderToLinesIfNeeded and made it
non-virtual, since it's no longer called from RenderBox code. Changed it
to do a relayout using override widths if an adjustment is needed.

* rendering/RenderBlock.h:
(RenderBlock):
Renamed borderFitAdjust to fitBorderToLinesIfNeeded and made it
non-virtual.

* rendering/RenderBox.cpp:
(WebCore::RenderBox::paintBoxDecorations):
(WebCore::RenderBox::paintMask):
Removed the paint-time border-fit adjustment.

(WebCore::RenderBox::computeLogicalWidthInRegion):
Use the override width when border-fit is set to lines.

* rendering/RenderBox.h:
(RenderBox):
Remove the virtual borderFitAdjust method.

LayoutTests: border-fit should happen at layout time rather than paint time
https://bugs.webkit.org/show_bug.cgi?id=111606
<rdar://problem/13101714>

Reviewed by Antti Koivisto.

* fast/block/border-fit-with-right-alignment-expected.html: Added.
* fast/block/border-fit-with-right-alignment.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145100 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed.  Rolled Chromium DEPS to r186592.  Requested by
"Dana Jansens" <danakj@chromium.org> via sheriffbot.

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-03-07

* DEPS:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145101 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Remove WK/chromium/public/WebWorkerRunLoop.h
https://bugs.webkit.org/show_bug.cgi?id=111740

Reviewed by James Robinson.

No longer needed; all references have been updated to new version
in top-level Platform/ directory.

* public/WebWorkerRunLoop.h: Removed.


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

* platform/chromium/TestExpectations: http/tests/css/shared-stylesheet-mutation-preconstruct.html

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145103 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Recalculate borders at the beginning of table layout
https://bugs.webkit.org/show_bug.cgi?id=111634

Reviewed by Julien Chaffraix.

Source/WebCore:

Doing it in convertStyleLogicalWidthToComputedWidth missed some dynamic
relayout cases. I confirmed that the new results match the results we
would get if we set the border width initially instead of dynamically.

* rendering/RenderTable.cpp:
(WebCore::RenderTable::convertStyleLogicalWidthToComputedWidth):
(WebCore::RenderTable::layout):

LayoutTests:

* fast/table/border-collapsing/cached-change-row-border-width-expected.png:
* fast/table/border-collapsing/cached-change-row-border-width-expected.txt:
* fast/table/border-collapsing/cached-change-tbody-border-width-expected.png:
* fast/table/border-collapsing/cached-change-tbody-border-width-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: [ACE] set correct font
https://bugs.webkit.org/show_bug.cgi?id=111747

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-03-07
Reviewed by Pavel Feldman.

No new tests.

Set class "source-code" for the ace editor element.

* inspector/front-end/AceTextEditor.js:
(WebInspector.AceTextEditor):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145106 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make EWS bots build and test in release.

* Scripts/webkitpy/tool/commands/earlywarningsystem.py:
(WinEWS):
* Scripts/webkitpy/tool/steps/runtests.py:
(RunTests.run):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145107 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Update some #includes for WebFileInfo.h in WK/chromium/src/
https://bugs.webkit.org/show_bug.cgi?id=111741

Reviewed by James Robinson.

In preparation for removing WK/chromium/public/WebFileInfo.h.

* src/AssertMatchingEnums.cpp:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Remove WK/chromium/public/WebStorageArea.h
https://bugs.webkit.org/show_bug.cgi?id=111744

Reviewed by James Robinson.

File moved to new Platform/ directory. All references have already
been updated (including downstream).

* public/WebStorageArea.h: Removed.


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