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

Unified Diff: Source/web/WebRuntimeFeatures.cpp

Issue 99663004: Avoid layout/full-repaint on view height change if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Protect the feature with a runtime flag Created 7 years 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: Source/web/WebRuntimeFeatures.cpp
diff --git a/Source/web/WebRuntimeFeatures.cpp b/Source/web/WebRuntimeFeatures.cpp
index eb374e7046068e3631e715de1569489aedf80e00..1ce5c2d7b20e7b1765c3234c56fde2f23a9241f5 100644
--- a/Source/web/WebRuntimeFeatures.cpp
+++ b/Source/web/WebRuntimeFeatures.cpp
@@ -465,4 +465,9 @@ void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable)
RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable);
}
+void WebRuntimeFeatures::enableOptimizedLayoutOnViewHeightChange(bool enable)
+{
+ RuntimeEnabledFeatures::setOptimizedLayoutOnViewHeightChangeEnabled(enable);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698