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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 bool execCommand(const String& command, bool showUI, const String& value); 796 bool execCommand(const String& command, bool showUI, const String& value);
797 bool queryCommandEnabled(const String& command); 797 bool queryCommandEnabled(const String& command);
798 bool queryCommandIndeterm(const String& command); 798 bool queryCommandIndeterm(const String& command);
799 bool queryCommandState(const String& command); 799 bool queryCommandState(const String& command);
800 bool queryCommandSupported(const String& command); 800 bool queryCommandSupported(const String& command);
801 String queryCommandValue(const String& command); 801 String queryCommandValue(const String& command);
802 802
803 KURL openSearchDescriptionURL(); 803 KURL openSearchDescriptionURL();
804 804
805 // designMode support 805 // designMode support
806 enum InheritedBool { off = false, on = true, inherit }; 806 bool inDesignMode() const { return m_designMode; }
807 void setDesignMode(InheritedBool value);
808 bool inDesignMode() const;
809 String designMode() const; 807 String designMode() const;
810 void setDesignMode(const String&); 808 void setDesignMode(const String&);
811 809
812 Document* parentDocument() const; 810 Document* parentDocument() const;
813 Document& topDocument() const; 811 Document& topDocument() const;
814 WeakPtrWillBeRawPtr<Document> contextDocument(); 812 WeakPtrWillBeRawPtr<Document> contextDocument();
815 813
816 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } 814 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); }
817 815
818 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm pty() ? m_currentScriptStack.last().get() : nullptr; } 816 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm pty() ? m_currentScriptStack.last().get() : nullptr; }
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 1288
1291 String m_xmlEncoding; 1289 String m_xmlEncoding;
1292 String m_xmlVersion; 1290 String m_xmlVersion;
1293 unsigned m_xmlStandalone : 2; 1291 unsigned m_xmlStandalone : 2;
1294 unsigned m_hasXMLDeclaration : 1; 1292 unsigned m_hasXMLDeclaration : 1;
1295 1293
1296 AtomicString m_contentLanguage; 1294 AtomicString m_contentLanguage;
1297 1295
1298 DocumentEncodingData m_encodingData; 1296 DocumentEncodingData m_encodingData;
1299 1297
1300 InheritedBool m_designMode; 1298 bool m_designMode;
1301 1299
1302 WillBeHeapHashSet<RawPtrWillBeWeakMember<const LiveNodeListBase>> m_listsInv alidatedAtDocument; 1300 WillBeHeapHashSet<RawPtrWillBeWeakMember<const LiveNodeListBase>> m_listsInv alidatedAtDocument;
1303 #if ENABLE(OILPAN) 1301 #if ENABLE(OILPAN)
1304 // Oilpan keeps track of all registered NodeLists. 1302 // Oilpan keeps track of all registered NodeLists.
1305 // 1303 //
1306 // FIXME: Oilpan: improve - only need to know if a NodeList 1304 // FIXME: Oilpan: improve - only need to know if a NodeList
1307 // is currently alive or not for the different types. 1305 // is currently alive or not for the different types.
1308 HeapHashSet<WeakMember<const LiveNodeListBase>> m_nodeLists[numNodeListInval idationTypes]; 1306 HeapHashSet<WeakMember<const LiveNodeListBase>> m_nodeLists[numNodeListInval idationTypes];
1309 #else 1307 #else
1310 unsigned m_nodeListCounts[numNodeListInvalidationTypes]; 1308 unsigned m_nodeListCounts[numNodeListInvalidationTypes];
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1437 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1440 1438
1441 } // namespace blink 1439 } // namespace blink
1442 1440
1443 #ifndef NDEBUG 1441 #ifndef NDEBUG
1444 // Outside the WebCore namespace for ease of invocation from gdb. 1442 // Outside the WebCore namespace for ease of invocation from gdb.
1445 void showLiveDocumentInstances(); 1443 void showLiveDocumentInstances();
1446 #endif 1444 #endif
1447 1445
1448 #endif // Document_h 1446 #endif // Document_h
OLDNEW
« 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