diff options
author | Steve Block <steveblock@google.com> | 2011-09-19 16:16:31 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-09-19 16:16:31 -0700 |
commit | dfd464c5416bf18e36a34102c51e1c39dd9fa886 (patch) | |
tree | 8db6b84a2c18d2b9bd10867f245f2cb894e099f1 /Source/WebCore/platform/graphics/android/LayerAndroid.h | |
parent | 41247753e4166d9b2ad11c976b9ff0f9152b4150 (diff) | |
parent | a307a97864647f6373c599f917e762a5fee3a197 (diff) | |
download | external_webkit-dfd464c5416bf18e36a34102c51e1c39dd9fa886.zip external_webkit-dfd464c5416bf18e36a34102c51e1c39dd9fa886.tar.gz external_webkit-dfd464c5416bf18e36a34102c51e1c39dd9fa886.tar.bz2 |
Merge changes Ifb6cc64e,I4d819cc5
* changes:
Simplify logic in ScrollableLayerAndroid::scrollTo()
Fixes style and adds some comments to layers code
Diffstat (limited to 'Source/WebCore/platform/graphics/android/LayerAndroid.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/LayerAndroid.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/android/LayerAndroid.h b/Source/WebCore/platform/graphics/android/LayerAndroid.h index 6aca993..8078762 100644 --- a/Source/WebCore/platform/graphics/android/LayerAndroid.h +++ b/Source/WebCore/platform/graphics/android/LayerAndroid.h @@ -109,6 +109,10 @@ public: void setBackfaceVisibility(bool value) { m_backfaceVisibility = value; } void setTransform(const TransformationMatrix& matrix) { m_transform = matrix; } FloatPoint translation() const; + // Returns a rect describing the bounds of the layer with the local + // transformation applied, expressed relative to the parent layer. + // FIXME: Currently we use only the translation component of the local + // transformation. SkRect bounds() const; IntRect clippedRect() const; bool outsideViewport(); @@ -189,9 +193,10 @@ public: SkPicture* picture() const { return m_recordingPicture; } - // remove layers bounds from visible rectangle to show what can be - // scrolled into view; returns original minus layer bounds in global space. - SkRect subtractLayers(const SkRect& visibleRect) const; + // Given a rect in global space, subtracts from it the bounds of this layer + // and of all of its children. Returns the bounding rectangle of the result, + // in global space. + SkRect subtractLayers(const SkRect&) const; void dumpLayers(FILE*, int indentLevel) const; void dumpToLog() const; |