diff options
Diffstat (limited to 'WebCore/platform/graphics/android/LayerAndroid.h')
-rw-r--r-- | WebCore/platform/graphics/android/LayerAndroid.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/LayerAndroid.h b/WebCore/platform/graphics/android/LayerAndroid.h index b92f4ac..e9416c1 100644 --- a/WebCore/platform/graphics/android/LayerAndroid.h +++ b/WebCore/platform/graphics/android/LayerAndroid.h @@ -96,6 +96,8 @@ public: SkLength marginTop, // CSS margin-top property SkLength marginRight, // CSS margin-right property SkLength marginBottom, // CSS margin-bottom property + int offsetX, // X Offset from the renderer + int offsetY, // Y Offset from the renderer int width, // visible overflow width int height) { // visible overflow height m_fixedLeft = left; @@ -106,9 +108,11 @@ public: m_fixedMarginTop = marginTop; m_fixedMarginRight = marginRight; m_fixedMarginBottom = marginBottom; + m_fixedOffset.set(offsetX, offsetY); m_fixedWidth = width; m_fixedHeight = height; m_isFixed = true; + setInheritFromRootTransform(true); } void setBackgroundColor(SkColor color); @@ -158,6 +162,10 @@ public: } void setExtra(DrawExtra* extra); // does not assign ownership int uniqueId() const { return m_uniqueId; } + bool isFixed() { return m_isFixed; } + const SkPoint& getOffset() const { return m_fixedOffset; } + int getFixedWidth() { return m_fixedWidth; } + int getFixedHeight() { return m_fixedHeight; } protected: virtual void onDraw(SkCanvas*, SkScalar opacity); @@ -185,6 +193,7 @@ private: SkLength m_fixedMarginTop; SkLength m_fixedMarginRight; SkLength m_fixedMarginBottom; + SkPoint m_fixedOffset; int m_fixedWidth; int m_fixedHeight; |