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

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

Issue 1156133008: Remove obsolete comment in ShadowRoot.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | 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) 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class HTMLShadowElement; 42 class HTMLShadowElement;
43 class InsertionPoint; 43 class InsertionPoint;
44 class ShadowRootRareData; 44 class ShadowRootRareData;
45 class StyleSheetList; 45 class StyleSheetList;
46 46
47 class CORE_EXPORT ShadowRoot final : public DocumentFragment, public TreeScope, public DoublyLinkedListNode<ShadowRoot> { 47 class CORE_EXPORT ShadowRoot final : public DocumentFragment, public TreeScope, public DoublyLinkedListNode<ShadowRoot> {
48 DEFINE_WRAPPERTYPEINFO(); 48 DEFINE_WRAPPERTYPEINFO();
49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ShadowRoot); 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ShadowRoot);
50 friend class WTF::DoublyLinkedListNode<ShadowRoot>; 50 friend class WTF::DoublyLinkedListNode<ShadowRoot>;
51 public: 51 public:
52 // FIXME: We will support multiple shadow subtrees, however current implemen tation does not work well
hayato 2015/06/04 07:25:07 The spec dropped multiple shadow roots, however, B
kochi 2015/06/04 07:47:38 What comment do you think is useful? I think the
hayato 2015/06/04 08:20:14 Only part we have to remove is "We'll support mult
53 // if a shadow root is dynamically created. So we prohibit multiple shadow s ubtrees
54 // in several elements for a while.
55 // See https://bugs.webkit.org/show_bug.cgi?id=77503 and related bugs.
56 enum ShadowRootType { 52 enum ShadowRootType {
57 UserAgentShadowRoot = 0, 53 UserAgentShadowRoot = 0,
58 OpenShadowRoot 54 OpenShadowRoot
59 }; 55 };
60 56
61 static PassRefPtrWillBeRawPtr<ShadowRoot> create(Document& document, ShadowR ootType type) 57 static PassRefPtrWillBeRawPtr<ShadowRoot> create(Document& document, ShadowR ootType type)
62 { 58 {
63 return adoptRefWillBeNoop(new ShadowRoot(document, type)); 59 return adoptRefWillBeNoop(new ShadowRoot(document, type));
64 } 60 }
65 61
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 return adjustedFocusedElement(); 159 return adjustedFocusedElement();
164 } 160 }
165 161
166 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); 162 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot());
167 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot()); 163 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot());
168 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); 164 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true);
169 165
170 } // namespace blink 166 } // namespace blink
171 167
172 #endif // ShadowRoot_h 168 #endif // ShadowRoot_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698