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

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: Add new layout tests. Created 4 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: 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 c3d7eef11ca1e6626ed3c0c89ee9a7d33aaaf96d..492a42066f45b6754c3d93005f7a41e1ab03c32a 100644
--- a/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp
+++ b/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp
@@ -220,9 +220,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