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

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

Issue 25048006: Attempt to clean up requiresLayoutToDetermineWidth to be more clear (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: MATCH THE CHUNKS HARDER Created 7 years, 3 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/rendering/RenderBox.h » ('j') | Source/core/rendering/RenderBox.cpp » ('J')
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 56e69b05bac772a198385b665d19f8c410ddd634..63d0b492f90e2bd08e3ff9d622a8e20e183bc887 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -589,7 +589,7 @@ int Element::offsetWidth()
document().updateStyleForNodeIfNeeded(this);
if (RenderBox* renderer = renderBox()) {
- if (!renderer->requiresLayoutToDetermineWidth())
+ if (renderer->canDetermineWidthWithoutLayout())
return adjustLayoutUnitForAbsoluteZoom(renderer->fixedOffsetWidth(), renderer).round();
}
« no previous file with comments | « no previous file | Source/core/rendering/RenderBox.h » ('j') | Source/core/rendering/RenderBox.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698