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

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

Issue 2439503002: Add parsing support for display: contents, and minimum behavior similar to display: none (Closed)
Patch Set: Add parsing support for display: contents, and minimum behavior similar to display: none Created 4 years, 2 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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 5722b405e44838391a8e6e32d754ad22c5059cf0..c9b7d587df6ecc621b9c2c52fd3fe15a80a58a74 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -188,6 +188,7 @@ LayoutObject* LayoutObject::createObject(Element* element,
switch (style.display()) {
case EDisplay::None:
+ case EDisplay::Contents:
return nullptr;
case EDisplay::Inline:
return new LayoutInline(element);

Powered by Google App Engine
This is Rietveld 408576698