diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 23:02:38 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 23:02:38 +0000 |
commit | d0f98369e69763a2eeb7ea39097bf01ef234a39c (patch) | |
tree | 943e3e20a23e54d6de23d4007828a1d35c2bf6bf /cc/layer_sorter.cc | |
parent | 1140046f0868117776b6df7e7c99c5bf3dd23731 (diff) | |
download | chromium_src-d0f98369e69763a2eeb7ea39097bf01ef234a39c.zip chromium_src-d0f98369e69763a2eeb7ea39097bf01ef234a39c.tar.gz chromium_src-d0f98369e69763a2eeb7ea39097bf01ef234a39c.tar.bz2 |
Remove most remaining references to IntRect and FloatRect.
The remaining uses are:
- Dealing with the output of Region::rects() which gives a vector of
WebCore::IntRects.
- Using FloatRect::isExpressibleAsIntRect.
Covered by existing tests; no new behaviour.
BUG=147395
R=enne
Review URL: https://codereview.chromium.org/11275113
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_sorter.cc')
-rw-r--r-- | cc/layer_sorter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/layer_sorter.cc b/cc/layer_sorter.cc index e251e11..c4a540d 100644 --- a/cc/layer_sorter.cc +++ b/cc/layer_sorter.cc @@ -149,7 +149,7 @@ LayerShape::LayerShape() LayerShape::LayerShape(float width, float height, const WebTransformationMatrix& drawTransform) { - FloatQuad layerQuad(FloatRect(0, 0, width, height)); + FloatQuad layerQuad(gfx::RectF(0, 0, width, height)); // Compute the projection of the layer quad onto the z = 0 plane. @@ -158,7 +158,7 @@ LayerShape::LayerShape(float width, float height, const WebTransformationMatrix& MathUtil::mapClippedQuad(drawTransform, layerQuad, clippedQuad, numVerticesInClippedQuad); if (numVerticesInClippedQuad < 3) { - projectedBounds = FloatRect(); + projectedBounds = gfx::RectF(); return; } |