Index: Source/WebCore/dom/Element.cpp |
=================================================================== |
--- Source/WebCore/dom/Element.cpp (revision 140863) |
+++ Source/WebCore/dom/Element.cpp (working copy) |
@@ -445,7 +445,11 @@ |
{ |
document()->updateLayoutIgnorePendingStylesheets(); |
if (RenderBoxModelObject* renderer = renderBoxModelObject()) |
+#if ENABLE(SUBPIXEL_LAYOUT) |
+ return adjustLayoutUnitForAbsoluteZoom(renderer->pixelSnappedOffsetWidth(), renderer).round(); |
+#else |
return adjustForAbsoluteZoom(renderer->pixelSnappedOffsetWidth(), renderer); |
+#endif |
return 0; |
} |
@@ -453,7 +457,11 @@ |
{ |
document()->updateLayoutIgnorePendingStylesheets(); |
if (RenderBoxModelObject* renderer = renderBoxModelObject()) |
+#if ENABLE(SUBPIXEL_LAYOUT) |
+ return adjustLayoutUnitForAbsoluteZoom(renderer->pixelSnappedOffsetHeight(), renderer).round(); |
+#else |
return adjustForAbsoluteZoom(renderer->pixelSnappedOffsetHeight(), renderer); |
+#endif |
return 0; |
} |
@@ -500,7 +508,11 @@ |
} |
if (RenderBox* renderer = renderBox()) |
+#if ENABLE(SUBPIXEL_LAYOUT) |
+ return adjustLayoutUnitForAbsoluteZoom(renderer->pixelSnappedClientWidth(), renderer).round(); |
+#else |
return adjustForAbsoluteZoom(renderer->pixelSnappedClientWidth(), renderer); |
+#endif |
return 0; |
} |
@@ -521,7 +533,11 @@ |
} |
if (RenderBox* renderer = renderBox()) |
+#if ENABLE(SUBPIXEL_LAYOUT) |
+ return adjustLayoutUnitForAbsoluteZoom(renderer->pixelSnappedClientHeight(), renderer).round(); |
+#else |
return adjustForAbsoluteZoom(renderer->pixelSnappedClientHeight(), renderer); |
+#endif |
return 0; |
} |