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

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

Issue 1901403002: Remove UserAgent ShadowRoot + Author ShadowRoot code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Element::createShadowRoot, update some tests Created 4 years, 8 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 16 matching lines...) Expand all
27 #ifndef ShadowRoot_h 27 #ifndef ShadowRoot_h
28 #define ShadowRoot_h 28 #define ShadowRoot_h
29 29
30 #include "core/CoreExport.h" 30 #include "core/CoreExport.h"
31 #include "core/dom/ContainerNode.h" 31 #include "core/dom/ContainerNode.h"
32 #include "core/dom/DocumentFragment.h" 32 #include "core/dom/DocumentFragment.h"
33 #include "core/dom/Element.h" 33 #include "core/dom/Element.h"
34 #include "core/dom/TreeScope.h" 34 #include "core/dom/TreeScope.h"
35 #include "core/dom/shadow/SlotAssignment.h" 35 #include "core/dom/shadow/SlotAssignment.h"
36 #include "wtf/DoublyLinkedList.h" 36 #include "wtf/DoublyLinkedList.h"
37 #include <iosfwd>
37 38
38 namespace blink { 39 namespace blink {
39 40
40 class Document; 41 class Document;
41 class ElementShadow; 42 class ElementShadow;
42 class ExceptionState; 43 class ExceptionState;
43 class HTMLShadowElement; 44 class HTMLShadowElement;
44 class InsertionPoint; 45 class InsertionPoint;
45 class ShadowRootRareData; 46 class ShadowRootRareData;
46 class StyleSheetList; 47 class StyleSheetList;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 ShadowRoot* root = this->shadowRoot(); 194 ShadowRoot* root = this->shadowRoot();
194 if (root && root->isV1()) 195 if (root && root->isV1())
195 return root; 196 return root;
196 return nullptr; 197 return nullptr;
197 } 198 }
198 199
199 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); 200 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot());
200 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot()); 201 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot());
201 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); 202 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true);
202 203
204 std::ostream& operator<<(std::ostream&, const ShadowRootType&);
205
203 } // namespace blink 206 } // namespace blink
204 207
205 #endif // ShadowRoot_h 208 #endif // ShadowRoot_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp ('k') | third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698