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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 SpellcheckAttributeDefault 81 SpellcheckAttributeDefault
82 }; 82 };
83 83
84 enum ElementFlags { 84 enum ElementFlags {
85 TabIndexWasSetExplicitly = 1 << 0, 85 TabIndexWasSetExplicitly = 1 << 0,
86 StyleAffectedByEmpty = 1 << 1, 86 StyleAffectedByEmpty = 1 << 1,
87 IsInCanvasSubtree = 1 << 2, 87 IsInCanvasSubtree = 1 << 2,
88 ContainsFullScreenElement = 1 << 3, 88 ContainsFullScreenElement = 1 << 3,
89 IsInTopLayer = 1 << 4, 89 IsInTopLayer = 1 << 4,
90 HasPendingResources = 1 << 5, 90 HasPendingResources = 1 << 5,
91 AlreadySpellChecked = 1 << 6,
91 92
92 NumberOfElementFlags = 93 NumberOfElementFlags =
93 6, // Required size of bitfield used to store the flags. 94 7, // Required size of bitfield used to store the flags.
94 }; 95 };
95 96
96 enum class ShadowRootType; 97 enum class ShadowRootType;
97 98
98 enum class SelectionBehaviorOnFocus { 99 enum class SelectionBehaviorOnFocus {
99 Reset, 100 Reset,
100 Restore, 101 Restore,
101 None, 102 None,
102 }; 103 };
103 104
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 // sent at all. 632 // sent at all.
632 virtual bool isDisabledFormControl() const { return false; } 633 virtual bool isDisabledFormControl() const { return false; }
633 634
634 bool hasPendingResources() const { 635 bool hasPendingResources() const {
635 return hasElementFlag(HasPendingResources); 636 return hasElementFlag(HasPendingResources);
636 } 637 }
637 void setHasPendingResources() { setElementFlag(HasPendingResources); } 638 void setHasPendingResources() { setElementFlag(HasPendingResources); }
638 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } 639 void clearHasPendingResources() { clearElementFlag(HasPendingResources); }
639 virtual void buildPendingResource() {} 640 virtual void buildPendingResource() {}
640 641
642 bool isAlreadySpellChecked() const {
643 return hasElementFlag(AlreadySpellChecked);
644 }
645 void setAlreadySpellChecked(bool value) {
646 setElementFlag(AlreadySpellChecked, value);
647 }
648
641 void v0SetCustomElementDefinition(V0CustomElementDefinition*); 649 void v0SetCustomElementDefinition(V0CustomElementDefinition*);
642 V0CustomElementDefinition* v0CustomElementDefinition() const; 650 V0CustomElementDefinition* v0CustomElementDefinition() const;
643 651
644 void setCustomElementDefinition(CustomElementDefinition*); 652 void setCustomElementDefinition(CustomElementDefinition*);
645 CustomElementDefinition* customElementDefinition() const; 653 CustomElementDefinition* customElementDefinition() const;
646 654
647 bool containsFullScreenElement() const { 655 bool containsFullScreenElement() const {
648 return hasElementFlag(ContainsFullScreenElement); 656 return hasElementFlag(ContainsFullScreenElement);
649 } 657 }
650 void setContainsFullScreenElement(bool); 658 void setContainsFullScreenElement(bool);
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1160 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1153 static T* create(const QualifiedName&, Document&) 1161 static T* create(const QualifiedName&, Document&)
1154 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1162 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1155 T* T::create(const QualifiedName& tagName, Document& document) { \ 1163 T* T::create(const QualifiedName& tagName, Document& document) { \
1156 return new T(tagName, document); \ 1164 return new T(tagName, document); \
1157 } 1165 }
1158 1166
1159 } // namespace blink 1167 } // namespace blink
1160 1168
1161 #endif // Element_h 1169 #endif // Element_h
OLDNEW
« 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