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

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

Issue 2414323002: Move AlreadySpellCheckedFlag from NodeFlags to ElementFlags (Closed)
Patch Set: Revise comment 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 208585d7af83e48a1ed63bc2b1436893cec7586d..96a0ae99f8fcfffe9e792f983d4a319cbf2e56a8 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -88,9 +88,10 @@ enum ElementFlags {
ContainsFullScreenElement = 1 << 3,
IsInTopLayer = 1 << 4,
HasPendingResources = 1 << 5,
+ AlreadySpellChecked = 1 << 6,
NumberOfElementFlags =
- 6, // Required size of bitfield used to store the flags.
+ 7, // Required size of bitfield used to store the flags.
};
enum class ShadowRootType;
@@ -638,6 +639,13 @@ class CORE_EXPORT Element : public ContainerNode {
void clearHasPendingResources() { clearElementFlag(HasPendingResources); }
virtual void buildPendingResource() {}
+ bool isAlreadySpellChecked() const {
+ return hasElementFlag(AlreadySpellChecked);
+ }
+ void setAlreadySpellChecked(bool value) {
+ setElementFlag(AlreadySpellChecked, value);
+ }
+
void v0SetCustomElementDefinition(V0CustomElementDefinition*);
V0CustomElementDefinition* v0CustomElementDefinition() const;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698