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

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

Issue 2443693003: 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.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 4f8b434ff4238cd21d3a21f026aad80b845141cd..a594966e1b36cfdeee1c4390d7ee5095ad2bb820 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -135,8 +135,8 @@ const int showTreeCharacterOffset = 39;
// function for some important information on this.
//
// Also some Node don't have an associated LayoutObjects e.g. if display: none
-// is set. For more detail, see LayoutObject::createObject that creates the
-// right LayoutObject based on the style.
+// or display: contents is set. For more detail, see LayoutObject::createObject
+// that creates the right LayoutObject based on the style.
//
// Because the SVG and CSS classes both inherit from this object, functions can
// belong to either realm and sometimes to both.
@@ -474,7 +474,8 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
// This function is used to create the appropriate LayoutObject based
// on the style, in particular 'display' and 'content'.
- // "display: none" is the only time this function will return nullptr.
+ // "display: none" or "display: contents" are the only times this function
+ // will return nullptr.
//
// For renderer creation, the inline-* values create the same renderer
// as the non-inline version. The difference is that inline-* sets
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698