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

Unified Diff: third_party/WebKit/Source/core/html/forms/ImageInputType.cpp

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/html/forms/ImageInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp b/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp
index e547394068dc15306c726392007ece4e3a63affd..a6d333a2be8c2166e8ea0a0a15ea8db8b46a91a7 100644
--- a/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp
@@ -200,7 +200,7 @@ unsigned ImageInputType::height() const
return imageLoader->image()->imageSize(LayoutObject::shouldRespectImageOrientation(nullptr), 1).height();
}
- element().document().updateLayout();
+ element().document().updateStyleAndLayout();
LayoutBox* box = element().layoutBox();
return box ? adjustForAbsoluteZoom(box->contentHeight(), box) : 0;
@@ -220,7 +220,7 @@ unsigned ImageInputType::width() const
return imageLoader->image()->imageSize(LayoutObject::shouldRespectImageOrientation(nullptr), 1).width();
}
- element().document().updateLayout();
+ element().document().updateStyleAndLayout();
LayoutBox* box = element().layoutBox();
return box ? adjustForAbsoluteZoom(box->contentWidth(), box) : 0;

Powered by Google App Engine
This is Rietveld 408576698