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

Unified Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 2450093005: Support display: contents for elements, first-line and first-letter pseudos. (Closed)
Patch Set: Support display: contents for elements, first-line and first-letter pseudos. 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/dom/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index 3038943e35fc8832e109c9665ab8e6d77c27abd3..4df08b266430bb8cbe70bc6ef5bbf730c4bfac8e 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -458,6 +458,17 @@ class CORE_EXPORT Element : public ContainerNode {
// display none.
const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone);
+ const ComputedStyle* nonLayoutObjectComputedStyle() const;
+
+ bool hasDisplayContentsStyle() const;
+
+ ComputedStyle* mutableNonLayoutObjectComputedStyle() const {
+ return const_cast<ComputedStyle*>(nonLayoutObjectComputedStyle());
+ }
+
+ bool shouldStoreNonLayoutObjectComputedStyle(const ComputedStyle&) const;
+ void storeNonLayoutObjectComputedStyle(PassRefPtr<ComputedStyle>);
+
// Methods for indicating the style is affected by dynamic updates (e.g.,
// children changing, our position changing in our sibling list, etc.)
bool styleAffectedByEmpty() const {

Powered by Google App Engine
This is Rietveld 408576698