Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Unified Diff: Source/core/dom/Element.cpp

Issue 1162623007: Removed redundant rect methods on FrameView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 5de0390a18066f89d4c6313834d575e3c1740414..d6ea591d49338121f87ee16d203153299af9917a 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -660,7 +660,7 @@ int Element::clientWidth()
if (FrameView* view = document().view()) {
if (LayoutView* layoutView = document().layoutView()) {
if (document().page()->settings().forceZeroLayoutHeight())
- return adjustLayoutUnitForAbsoluteZoom(view->unscaledVisibleContentSize().width(), *layoutView);
+ return adjustLayoutUnitForAbsoluteZoom(view->visibleContentSize().width(), *layoutView);
return adjustLayoutUnitForAbsoluteZoom(view->layoutSize().width(), *layoutView);
}
}
@@ -684,7 +684,7 @@ int Element::clientHeight()
if (FrameView* view = document().view()) {
if (LayoutView* layoutView = document().layoutView()) {
if (document().page()->settings().forceZeroLayoutHeight())
- return adjustLayoutUnitForAbsoluteZoom(view->unscaledVisibleContentSize().height(), *layoutView);
+ return adjustLayoutUnitForAbsoluteZoom(view->visibleContentSize().height(), *layoutView);
return adjustLayoutUnitForAbsoluteZoom(view->layoutSize().height(), *layoutView);
}
}
« no previous file with comments | « no previous file | Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698