summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp')
-rw-r--r--WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
index 93469b0..7b479bf 100644
--- a/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
+++ b/WebCore/platform/graphics/android/GraphicsLayerAndroid.cpp
@@ -241,7 +241,16 @@ void GraphicsLayerAndroid::updateFixedPosition()
int w = view->rightVisibleOverflow() - view->leftVisibleOverflow();
int h = view->bottomVisibleOverflow() - view->topVisibleOverflow();
- m_contentLayer->setFixedPosition(left, top, right, bottom, w, h);
+ SkLength marginLeft, marginTop, marginRight, marginBottom;
+ marginLeft = convertLength(view->style()->marginLeft());
+ marginTop = convertLength(view->style()->marginTop());
+ marginRight = convertLength(view->style()->marginRight());
+ marginBottom = convertLength(view->style()->marginBottom());
+
+ m_contentLayer->setFixedPosition(left, top, right, bottom,
+ marginLeft, marginTop,
+ marginRight, marginBottom,
+ w, h);
}
}