diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-06 15:23:09 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-06 15:23:09 +0000 |
commit | 277c7b7879f17c1d830e456ea46648f9b07337b4 (patch) | |
tree | 2da0ebd39a274a249fdd979252456a734d14ef40 /ui/gfx/transform.h | |
parent | 695e942ec27885b9351b6628e081a97f8b7d30ef (diff) | |
download | chromium_src-277c7b7879f17c1d830e456ea46648f9b07337b4.zip chromium_src-277c7b7879f17c1d830e456ea46648f9b07337b4.tar.gz chromium_src-277c7b7879f17c1d830e456ea46648f9b07337b4.tar.bz2 |
views: Take transforms into account when computing visible bounds.
BUG=none
TEST=ViewTest.TransformVisibleBound, ViewTest.OnVisibleBoundsChanged
Review URL: http://codereview.chromium.org/6993045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/transform.h')
-rw-r--r-- | ui/gfx/transform.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/gfx/transform.h b/ui/gfx/transform.h index 39b2159..3fdfc32 100644 --- a/ui/gfx/transform.h +++ b/ui/gfx/transform.h @@ -77,10 +77,14 @@ class Transform { // is transformed successfully. bool TransformPointReverse(gfx::Point* point); - // Applies transformation on the rectangle. Returns true of the rectangle is + // Applies transformation on the rectangle. Returns true if the rectangle is // transformed successfully. bool TransformRect(gfx::Rect* rect); + // Applies the reverse transformation on the rectangle. Returns true if the + // rectangle is transformed successfully. + bool TransformRectReverse(gfx::Rect* rect); + // Returns the underlying matrix. const SkMatrix& matrix() const { return matrix_; } |