Index: third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp |
diff --git a/third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp b/third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp |
index 5ff11925faa05504b284679c8fb438041db1d338..5425e633748bf9f064a3c72665640e6a4bc1dc6a 100644 |
--- a/third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp |
+++ b/third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp |
@@ -316,8 +316,7 @@ TEST_P(BoxPaintInvalidatorTest, NonCompositedLayoutViewResize) { |
" iframe { display: block; width: 100px; height: 100px; border: none; }" |
"</style>" |
"<iframe id='iframe'></iframe>"); |
- Document& frameDocument = setupChildIframe( |
- "iframe", |
+ setChildFrameHTML( |
"<style>" |
" ::-webkit-scrollbar { display: none }" |
" body { margin: 0; background: green; height: 0 }" |
@@ -325,7 +324,7 @@ TEST_P(BoxPaintInvalidatorTest, NonCompositedLayoutViewResize) { |
"<div id='content' style='width: 200px; height: 200px'></div>"); |
document().view()->updateAllLifecyclePhases(); |
Element* iframe = document().getElementById("iframe"); |
- Element* content = frameDocument.getElementById("content"); |
+ Element* content = childDocument().getElementById("content"); |
EXPECT_EQ(layoutView(), |
content->layoutObject()->containerForPaintInvalidation()); |
@@ -370,8 +369,7 @@ TEST_P(BoxPaintInvalidatorTest, NonCompositedLayoutViewGradientResize) { |
" iframe { display: block; width: 100px; height: 100px; border: none; }" |
"</style>" |
"<iframe id='iframe'></iframe>"); |
- Document& frameDocument = setupChildIframe( |
- "iframe", |
+ setChildFrameHTML( |
"<style>" |
" ::-webkit-scrollbar { display: none }" |
" body {" |
@@ -383,7 +381,7 @@ TEST_P(BoxPaintInvalidatorTest, NonCompositedLayoutViewGradientResize) { |
"<div id='content' style='width: 200px; height: 200px'></div>"); |
document().view()->updateAllLifecyclePhases(); |
Element* iframe = document().getElementById("iframe"); |
- Element* content = frameDocument.getElementById("content"); |
+ Element* content = childDocument().getElementById("content"); |
LayoutView* frameLayoutView = content->layoutObject()->view(); |
EXPECT_EQ(layoutView(), |
content->layoutObject()->containerForPaintInvalidation()); |