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

Unified Diff: Source/core/layout/LayoutTestHelper.h

Issue 1287093004: Slimming Paint phase 2 compositing algorithm plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase from space Created 5 years, 4 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 | « Source/core/frame/FrameView.cpp ('k') | Source/core/layout/LayoutView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTestHelper.h
diff --git a/Source/core/layout/LayoutTestHelper.h b/Source/core/layout/LayoutTestHelper.h
index 20cff2ed544a130301543cd3fb6ddb2f1c4557c9..876ca996cd7c10aa46d63a50d53d4f70426e2d68 100644
--- a/Source/core/layout/LayoutTestHelper.h
+++ b/Source/core/layout/LayoutTestHelper.h
@@ -21,12 +21,14 @@ protected:
Document& document() const { return m_pageHolder->document(); }
+ // Both sets the inner html and runs the document lifecycle.
void setBodyInnerHTML(const String& htmlContent)
{
document().body()->setInnerHTML(htmlContent, ASSERT_NO_EXCEPTION);
document().view()->updateAllLifecyclePhases();
}
+ // Both enables compositing and runs the document lifecycle.
void enableCompositing()
{
m_pageHolder->page().settings().setAcceleratedCompositingEnabled(true);
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/layout/LayoutView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698