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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1803933002: Use correct cascading order for Shadow DOM v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix inline style Created 4 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
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 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 bool queryCommandSupported(const String& command, ExceptionState&); 779 bool queryCommandSupported(const String& command, ExceptionState&);
780 String queryCommandValue(const String& command, ExceptionState&); 780 String queryCommandValue(const String& command, ExceptionState&);
781 781
782 KURL openSearchDescriptionURL(); 782 KURL openSearchDescriptionURL();
783 783
784 // designMode support 784 // designMode support
785 bool inDesignMode() const { return m_designMode; } 785 bool inDesignMode() const { return m_designMode; }
786 String designMode() const; 786 String designMode() const;
787 void setDesignMode(const String&); 787 void setDesignMode(const String&);
788 788
789 bool useCascadeOrderForShadowDOMV1() const { return m_useCascadeOrderForShad owDOMV1; }
790 void setUseCascadeOrderForShadowDOMV1() { m_useCascadeOrderForShadowDOMV1 = true; }
791
789 Document* parentDocument() const; 792 Document* parentDocument() const;
790 Document& topDocument() const; 793 Document& topDocument() const;
791 WeakPtrWillBeRawPtr<Document> contextDocument(); 794 WeakPtrWillBeRawPtr<Document> contextDocument();
792 795
793 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } 796 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); }
794 797
795 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm pty() ? m_currentScriptStack.last().get() : nullptr; } 798 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm pty() ? m_currentScriptStack.last().get() : nullptr; }
796 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>); 799 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>);
797 void popCurrentScript(); 800 void popCurrentScript();
798 801
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 unsigned m_xmlStandalone : 2; 1293 unsigned m_xmlStandalone : 2;
1291 unsigned m_hasXMLDeclaration : 1; 1294 unsigned m_hasXMLDeclaration : 1;
1292 1295
1293 AtomicString m_contentLanguage; 1296 AtomicString m_contentLanguage;
1294 1297
1295 DocumentEncodingData m_encodingData; 1298 DocumentEncodingData m_encodingData;
1296 1299
1297 bool m_designMode; 1300 bool m_designMode;
1298 bool m_isRunningExecCommand; 1301 bool m_isRunningExecCommand;
1299 1302
1303 bool m_useCascadeOrderForShadowDOMV1;
rune 2016/03/17 10:59:02 I think StyleEngine would be a better place for th
kochi 2016/03/18 09:00:52 Done.
1304
1300 WillBeHeapHashSet<RawPtrWillBeWeakMember<const LiveNodeListBase>> m_listsInv alidatedAtDocument; 1305 WillBeHeapHashSet<RawPtrWillBeWeakMember<const LiveNodeListBase>> m_listsInv alidatedAtDocument;
1301 #if ENABLE(OILPAN) 1306 #if ENABLE(OILPAN)
1302 // Oilpan keeps track of all registered NodeLists. 1307 // Oilpan keeps track of all registered NodeLists.
1303 // 1308 //
1304 // FIXME: Oilpan: improve - only need to know if a NodeList 1309 // FIXME: Oilpan: improve - only need to know if a NodeList
1305 // is currently alive or not for the different types. 1310 // is currently alive or not for the different types.
1306 HeapHashSet<WeakMember<const LiveNodeListBase>> m_nodeLists[numNodeListInval idationTypes]; 1311 HeapHashSet<WeakMember<const LiveNodeListBase>> m_nodeLists[numNodeListInval idationTypes];
1307 #else 1312 #else
1308 unsigned m_nodeListCounts[numNodeListInvalidationTypes]; 1313 unsigned m_nodeListCounts[numNodeListInvalidationTypes];
1309 #endif 1314 #endif
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1456 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1452 1457
1453 } // namespace blink 1458 } // namespace blink
1454 1459
1455 #ifndef NDEBUG 1460 #ifndef NDEBUG
1456 // Outside the WebCore namespace for ease of invocation from gdb. 1461 // Outside the WebCore namespace for ease of invocation from gdb.
1457 CORE_EXPORT void showLiveDocumentInstances(); 1462 CORE_EXPORT void showLiveDocumentInstances();
1458 #endif 1463 #endif
1459 1464
1460 #endif // Document_h 1465 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698