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

Unified Diff: third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp

Issue 2564633002: Don't create layout objects for children of display-none iframes. (Closed)
Patch Set: Rebase. Created 3 years, 10 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/layout/VisualRectMappingTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp b/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp
index 0ff805205e4e663ff8374cd3d58dcc11c6488345..37e1da3383da9f2a8c34637558d3c72177427ef4 100644
--- a/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp
+++ b/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp
@@ -210,9 +210,8 @@ TEST_F(VisualRectMappingTest, LayoutViewDisplayNone) {
frameElement->setInlineStyleProperty(CSSPropertyDisplay, "none");
document().view()->updateAllLifecyclePhases();
- rect = originalRect;
- EXPECT_FALSE(frameDiv->mapToVisualRectInAncestorSpace(&layoutView(), rect));
- EXPECT_EQ(rect, LayoutRect());
+ frameBody = toLayoutBlock(childDocument().body()->layoutObject());
+ EXPECT_EQ(nullptr, frameBody);
}
TEST_F(VisualRectMappingTest, SelfFlippedWritingMode) {

Powered by Google App Engine
This is Rietveld 408576698