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

Unified Diff: Source/core/dom/Document.h

Issue 1031543003: Remove inheritance of designMode attribute. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments, add usage counter, rebase tests, rebase to ToT Created 5 years, 9 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/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index e75547ab04e8583d40bdc8dd70ef6b0236e1e27d..51a3c60befaffd8c8722eedee272a4a7ce04c092 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -803,9 +803,7 @@ public:
KURL openSearchDescriptionURL();
// designMode support
- enum InheritedBool { off = false, on = true, inherit };
- void setDesignMode(InheritedBool value);
- bool inDesignMode() const;
+ bool inDesignMode() const { return m_designMode; }
String designMode() const;
void setDesignMode(const String&);
@@ -1297,7 +1295,7 @@ private:
DocumentEncodingData m_encodingData;
- InheritedBool m_designMode;
+ bool m_designMode;
WillBeHeapHashSet<RawPtrWillBeWeakMember<const LiveNodeListBase>> m_listsInvalidatedAtDocument;
#if ENABLE(OILPAN)
« no previous file with comments | « LayoutTests/fast/dom/HTMLElement/iscontenteditable-designmodeon-subframe-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698