Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 56e69b05bac772a198385b665d19f8c410ddd634..36f687fdf5da61857e72417009eb16c326c15b89 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -652,7 +652,7 @@ int Element::clientWidth() |
|| (inQuirksMode && isHTMLElement() && document().body() == this)) { |
if (FrameView* view = document().view()) { |
if (RenderView* renderView = document().renderView()) |
- return adjustForAbsoluteZoom(view->layoutWidth(), renderView); |
+ return adjustForAbsoluteZoom(view->layoutSize().width(), renderView); |
} |
} |
@@ -673,7 +673,7 @@ int Element::clientHeight() |
|| (inQuirksMode && isHTMLElement() && document().body() == this)) { |
if (FrameView* view = document().view()) { |
if (RenderView* renderView = document().renderView()) |
- return adjustForAbsoluteZoom(view->layoutHeight(), renderView); |
+ return adjustForAbsoluteZoom(view->layoutSize().height(), renderView); |
} |
} |