[Qt] feature detection in orwt/nrwt does not work with force_static_libs_as_shared
https://bugs.webkit.org/show_bug.cgi?id=91514

Reviewed by Dirk Pranke.

Analyzing libQtWebKit.so is not enough in the case of force_static_libs_as_shared.
We need to analyze all the shared library or at least the WebCore one.

* Scripts/webkitdirs.pm:
(builtDylibPathForName):
In orwt it is hard coded to search for symbols in the WebCore library.
While in theory it is possible that symbols for a given feature are not
located in that, it doesn't happen in practice, so returning the path of
the WebCore library for a force_static_libs_as_shared build is enough to
fix the bug and it doesn't require a bigger refactoring. For a default
build we still return the path of the QtWebKit lib.
* Scripts/webkitpy/layout_tests/port/qt.py:
(QtPort._modules_to_search_for_symbols):
Enumerate all dynamic libraries, not just the QtWebKit one.

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

svg/W3C-I18N/tspan-dirRTL-ubEmbed-in-default-context.svg flakily crashes on Chromium Win.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Unreviewed, try to fix the chromium-win build after r123014.

* platform/sql/chromium/SQLiteFileSystemChromiumWin.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed test expectations update. Added bug ID for fast/filesystem/file-writer-truncate-extend.html flakiness.

* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Replace uses of RenderBox::x(), y() in rendering code with with point and size methods
https://bugs.webkit.org/show_bug.cgi?id=91549

Reviewed by Eric Seidel.

Replaces uses of RenderBox::x() and RenderBox::y() with
RenderBox::location(), RenderBox::locationOffset() and
RenderBox::frameRect().

No new tests, no change in functionality.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutBlockChild):
(WebCore::RenderBlock::positionNewFloats):
Use child->frameRect() and child->location() instead of constructing a
rect and size from the x, y, width and height values.

* rendering/RenderBox.cpp:
(WebCore::RenderBox::repaintDuringLayoutIfMoved):
Compare and copy m_frameRect directly instead of comparing and copying
the individual values.

(WebCore::RenderBox::localCaretRect):
Use location() instead of x() and y().

* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry):
Use pixelSnappedIntSize and RenderBox::size() instead of computing and
snapping the width and height separately.

* rendering/RenderImage.cpp:
(WebCore::RenderImage::nodeAtPoint):
USe locationOffset() instead of creating a new LayoutSize object from the
x() and y() values.

* rendering/RenderInline.cpp:
(WebCore::RenderInline::updateHitTestResult):
Move by Size instead of x and y value.

(WebCore::RenderInline::addFocusRingRects):
Move by Size instead of x and y value.

* rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::offsetFromContainer):
Shrink offset by size instead of using x and y values.

* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::layoutRows):
(WebCore::RenderTableSection::setLogicalPositionForCell):
Use child->frameRect() and child->location() instead of constructing a
rect and size from the x, y, width and height values.

* rendering/svg/SVGRenderTreeAsText.cpp:
(WebCore::writeRenderSVGTextBox):
Use location() instead of x() and y().


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

Updated test expectation for compositing/masks/layer-mask-placement.html.
Updated bug number for fast/js/mozilla/strict/assign-to-callee-name.html after filing webkit bug 91676.

Updated bug number for fast/url/ipv6.html after filing crbug.com/137938.

* platform/chromium-mac-snowleopard/compositing/masks/layer-mask-placement-expected.png: Removed.
* platform/chromium-mac/compositing/masks/layer-mask-placement-expected.png: Added.
* platform/chromium-win/compositing/masks/layer-mask-placement-expected.png: Added.
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
OOB read of stack buffer below DoubleToStringConverter::CreateExponentialRepresentation() in debug builds
https://bugs.webkit.org/show_bug.cgi?id=91642

Reviewed by Abhishek Arya.

* wtf/dtoa/double-conversion.cc:
(DoubleToStringConverter::CreateExponentialRepresentation): NUL-terminate string buffer before passing it to StringBuilder::AddSubstring()


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DFG 32-bit PutById transition stub storage reallocation case copies the first pointer of each JSValue instead of the whole JSValue
https://bugs.webkit.org/show_bug.cgi?id=91599

Source/JavaScriptCore: 

Reviewed by Geoffrey Garen.

* dfg/DFGRepatch.cpp:
(JSC::DFG::emitPutTransitionStub):

LayoutTests: 

Rubber stamped by Mark Hahnenberg.

It turns out we previously didn't have adequate coverage for this. Now we do.

* fast/js/dfg-put-by-id-allocate-storage-expected.txt: Added.
* fast/js/dfg-put-by-id-allocate-storage-polymorphic-expected.txt: Added.
* fast/js/dfg-put-by-id-allocate-storage-polymorphic.html: Added.
* fast/js/dfg-put-by-id-allocate-storage.html: Added.
* fast/js/dfg-put-by-id-reallocate-storage-expected.txt: Added.
* fast/js/dfg-put-by-id-reallocate-storage-polymorphic-expected.txt: Added.
* fast/js/dfg-put-by-id-reallocate-storage-polymorphic.html: Added.
* fast/js/dfg-put-by-id-reallocate-storage.html: Added.
* fast/js/script-tests/dfg-put-by-id-allocate-storage-polymorphic.js: Added.
(foo):
* fast/js/script-tests/dfg-put-by-id-allocate-storage.js: Added.
(foo):
* fast/js/script-tests/dfg-put-by-id-reallocate-storage-polymorphic.js: Added.
(foo):
* fast/js/script-tests/dfg-put-by-id-reallocate-storage.js: Added.
(foo):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123028 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Ensure that the compositor code which is aware of flipped status of video-textures
per platform sets the flipped bit to false on Windows.
https://bugs.webkit.org/show_bug.cgi?id=91562

Patch by Anantanarayanan G Iyengar <ananta@chromium.org> on 2012-07-18
Reviewed by Adrienne Walker.

No new tests. (HW video decode is still only being tested manually for orientation)

* platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
(WebCore::CCVideoLayerImpl::appendQuads):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add Pravin D to the list of contributors.

* Scripts/webkitpy/common/config/committers.py:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Content size of child having percent height inside a fixed height container having overflow:auto is wrongly calculated
https://bugs.webkit.org/show_bug.cgi?id=11355

Patch by Pravin D <pravind.2k4@gmail.com> on 2012-07-18
Reviewed by Julien Chaffraix.

Source/WebCore:

The content height of a child must be container height minus padding, border width and height of horizontal scrollbar(if any).

Tests: fast/overflow/child-100percent-height-inside-fixed-container-with-overflow-auto.html
       fast/overflow/replaced-child-100percent-height-inside-fixed-container-with-overflow-auto.html

* rendering/RenderBox.cpp:
(WebCore::RenderBox::computePercentageLogicalHeight):
(WebCore::RenderBox::computeReplacedLogicalHeightUsing):
Subtracting the height of the scrollbar from the client height when the client has percentage height.

LayoutTests:

* fast/overflow/child-100percent-height-inside-fixed-container-with-overflow-auto-expected.txt: Added.
* fast/overflow/child-100percent-height-inside-fixed-container-with-overflow-auto.html: Added.
* fast/overflow/replaced-child-100percent-height-inside-fixed-container-with-overflow-auto-expected.txt: Added.
* fast/overflow/replaced-child-100percent-height-inside-fixed-container-with-overflow-auto.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123031 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Implement currentTime() and monotonicallyIncreasingTime() for OS(QNX)
https://bugs.webkit.org/show_bug.cgi?id=91659

Patch by Yong Li <yoli@rim.com> on 2012-07-18
Reviewed by Rob Buis.

Implement currentTime() and monotonicallyIncreasingTime() for OS(QNX) with clock_gettime().

* wtf/CurrentTime.cpp:
(WTF):
(WTF::currentTime):
(WTF::monotonicallyIncreasingTime):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Ubercomp: clean up CCRenderer interface
https://bugs.webkit.org/show_bug.cgi?id=91555

Patch by Alexandre Elias <aelias@google.com> on 2012-07-18
Reviewed by Adrienne Walker.

I replaced the one-by-one RenderPass calls with a new drawFrame()
method that directly takes a CCRenderPassList, and moved a small
amount of code from CCLayerTreeHostImpl to implement it.  In ubercomp
mode, we will produce a frame bundle rather than a command-stream, so
the full list is easier to work with.

Also, give empty default implementations for the methods that don't
need to do anything in a non-GL context, and make private
setScissorToRect.

Source/WebCore:

No new tests (no-op refactoring).

* platform/graphics/chromium/LayerRendererChromium.cpp:
(WebCore::LayerRendererChromium::drawFrame):
(WebCore):
* platform/graphics/chromium/LayerRendererChromium.h:
(LayerRendererChromium):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::drawLayers):
* platform/graphics/chromium/cc/CCRenderer.h:
(WebCore::CCRenderer::viewportChanged):
(WebCore::CCRenderer::decideRenderPassAllocationsForFrame):
(WebCore::CCRenderer::haveCachedResourcesForRenderPassId):
(CCRenderer):
(WebCore::CCRenderer::finishDrawingFrame):
(WebCore::CCRenderer::doNoOp):
(WebCore::CCRenderer::isContextLost):

Source/WebKit/chromium:

* tests/LayerRendererChromiumTest.cpp:
(FakeCCRendererClient::FakeCCRendererClient):
(FakeCCRendererClient::renderPasses):
(FakeCCRendererClient):
(TEST_F):
(TEST):

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