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

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

Issue 2088453002: Implement the inert attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert histograms.xml Created 3 years, 7 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/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index 87e069491fd0aef312b9a4d37edbd4a385d10f2b..9bd097db3937ebe0d2fba8821ea927f36b729b28 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -544,8 +544,11 @@ class CORE_EXPORT Node : public EventTarget {
// This is called only when the node is focused.
virtual bool ShouldHaveFocusAppearance() const;
- // Whether the node is inert. This can't be in Element because text nodes
- // must be recognized as inert to prevent text selection.
+ // Whether the node is inert:
+ // https://html.spec.whatwg.org/multipage/interaction.html#inert
+ // https://github.com/WICG/inert/blob/master/README.md
+ // This can't be in Element because text nodes must be recognized as
+ // inert to prevent text selection.
bool IsInert() const;
virtual LayoutRect BoundingBox() const;

Powered by Google App Engine
This is Rietveld 408576698