Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 8c02630fe8c5c6f687b1d498b3a6b8f8956333e7..345555c3fa31f53ebea131ebacf19a3e261d3546 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -568,7 +568,7 @@ static int adjustForLocalZoom(LayoutUnit value, RenderObject* renderer) |
int Element::offsetLeft() |
{ |
- document()->updateLayoutIgnorePendingStylesheets(); |
+ document()->partialUpdateLayoutIgnorePendingStylesheets(this); |
if (RenderBoxModelObject* renderer = renderBoxModelObject()) |
return adjustForLocalZoom(renderer->pixelSnappedOffsetLeft(), renderer); |
return 0; |
@@ -576,7 +576,7 @@ int Element::offsetLeft() |
int Element::offsetTop() |
{ |
- document()->updateLayoutIgnorePendingStylesheets(); |
+ document()->partialUpdateLayoutIgnorePendingStylesheets(this); |
if (RenderBoxModelObject* renderer = renderBoxModelObject()) |
return adjustForLocalZoom(renderer->pixelSnappedOffsetTop(), renderer); |
return 0; |
@@ -591,7 +591,7 @@ int Element::offsetWidth() |
return adjustLayoutUnitForAbsoluteZoom(renderer->fixedOffsetWidth(), renderer).round(); |
} |
- document()->updateLayoutIgnorePendingStylesheets(); |
+ document()->partialUpdateLayoutIgnorePendingStylesheets(this); |
if (RenderBoxModelObject* renderer = renderBoxModelObject()) |
return adjustLayoutUnitForAbsoluteZoom(renderer->pixelSnappedOffsetWidth(), renderer).round(); |
return 0; |
@@ -599,7 +599,7 @@ int Element::offsetWidth() |
int Element::offsetHeight() |
{ |
- document()->updateLayoutIgnorePendingStylesheets(); |
+ document()->partialUpdateLayoutIgnorePendingStylesheets(this); |
if (RenderBoxModelObject* renderer = renderBoxModelObject()) |
return adjustLayoutUnitForAbsoluteZoom(renderer->pixelSnappedOffsetHeight(), renderer).round(); |
return 0; |