WebCore:
[WebKit-https.git] / WebCore / dom / Element.cpp
index 2ebe446f8f9ed700a56d37d04644c21ebc4d386e..780130cce76a49a1b2ad2745d38c653fe00beca3 100644 (file)
@@ -346,7 +346,7 @@ int Element::clientWidth()
     if ((!inCompatMode && document()->documentElement() == this) ||
         (inCompatMode && isHTMLElement() && document()->body() == this)) {
         if (FrameView* view = document()->view())
-            return view->layoutWidth();
+            return adjustForAbsoluteZoom(view->layoutWidth(), document()->renderer());
     }
     
     if (RenderBox* rend = renderBox())
@@ -365,7 +365,7 @@ int Element::clientHeight()
     if ((!inCompatMode && document()->documentElement() == this) ||
         (inCompatMode && isHTMLElement() && document()->body() == this)) {
         if (FrameView* view = document()->view())
-            return view->layoutHeight();
+            return adjustForAbsoluteZoom(view->layoutHeight(), document()->renderer());
     }
     
     if (RenderBox* rend = renderBox())