diff options
author | Steve Block <steveblock@google.com> | 2011-01-05 12:15:11 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-01-06 14:14:00 +0000 |
commit | d06194330da2bb8da887d2e1adeacb3a5c1504b2 (patch) | |
tree | e0af8413af65a8e30630563441af7bdb8478e513 /WebCore/rendering/RenderBox.cpp | |
parent | 419a5cf2f8db6ca014df624865197ffb82caad37 (diff) | |
download | external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.zip external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.tar.gz external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.tar.bz2 |
Merge WebKit at r72805: Initial merge by Git
Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.
Change-Id: I5d2bb4e8cee9d39ae8485abf48bdb55ecf8b3790
Diffstat (limited to 'WebCore/rendering/RenderBox.cpp')
-rw-r--r-- | WebCore/rendering/RenderBox.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/WebCore/rendering/RenderBox.cpp b/WebCore/rendering/RenderBox.cpp index f0618ea..41e2cd5 100644 --- a/WebCore/rendering/RenderBox.cpp +++ b/WebCore/rendering/RenderBox.cpp @@ -459,9 +459,11 @@ void RenderBox::absoluteQuads(Vector<FloatQuad>& quads) IntRect RenderBox::applyLayerTransformToRect(const IntRect& rect) const { - if (hasLayer() && layer()->hasTransform()) { + if (layer() && layer()->hasTransform()) { TransformationMatrix transform; + transform.makeIdentity(); transform.translate(rect.x(), rect.y()); + layer()->updateTransform(); transform.multLeft(layer()->currentTransform()); return transform.mapRect(IntRect(0, 0, rect.width(), rect.height())); } @@ -473,13 +475,6 @@ IntRect RenderBox::transformedFrameRect() const return applyLayerTransformToRect(frameRect()); } -void RenderBox::updateLayerTransform() -{ - // Transform-origin depends on box size, so we need to update the layer transform after layout. - if (hasLayer()) - layer()->updateTransform(); -} - IntRect RenderBox::absoluteContentBox() const { IntRect rect = contentBoxRect(); @@ -779,8 +774,8 @@ void RenderBox::paintRootBoxDecorations(PaintInfo& paintInfo, int tx, int ty) // CSS2 14.2: // The background of the box generated by the root element covers the entire canvas including // its margins. - int bx = tx - marginLeft() + view()->leftLayoutOverflow(); - int by = ty - marginTop() + view()->topLayoutOverflow(); + int bx = tx - marginLeft(); + int by = ty - marginTop(); int bw = max(w + marginLeft() + marginRight() + borderLeft() + borderRight(), rw); int bh = max(h + marginTop() + marginBottom() + borderTop() + borderBottom(), rh); |