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

Unified Diff: Source/core/rendering/RenderLayer.h

Issue 17654008: Implement the ::backdrop pseudo-element for modal <dialog>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add helper function and descendant selector test Created 7 years, 6 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: Source/core/rendering/RenderLayer.h
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h
index fea79f426b9ba3178d500e56cefa05b8af04c5d3..d5dc85b067e9755c8dcf18c0d03d7a54adcae3e2 100644
--- a/Source/core/rendering/RenderLayer.h
+++ b/Source/core/rendering/RenderLayer.h
@@ -796,8 +796,8 @@ public:
Node* enclosingElement() const;
+ bool isBackdrop() const { return renderer()->style()->styleType() == BACKDROP; }
bool isInTopLayer() const;
- bool isInTopLayerSubtree() const;
virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698