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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 | « Source/core/dom/XMLDocument.h ('k') | Source/core/editing/DOMSelection.h » ('j') | 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 26 matching lines...) Expand all
37 37
38 class Document; 38 class Document;
39 class ElementShadow; 39 class ElementShadow;
40 class ExceptionState; 40 class ExceptionState;
41 class HTMLShadowElement; 41 class HTMLShadowElement;
42 class InsertionPoint; 42 class InsertionPoint;
43 class ShadowRootRareData; 43 class ShadowRootRareData;
44 class StyleSheetList; 44 class StyleSheetList;
45 45
46 class ShadowRoot FINAL : public DocumentFragment, public TreeScope, public Doubl yLinkedListNode<ShadowRoot> { 46 class ShadowRoot FINAL : public DocumentFragment, public TreeScope, public Doubl yLinkedListNode<ShadowRoot> {
47 DEFINE_WRAPPERTYPEINFO();
47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ShadowRoot); 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ShadowRoot);
48 friend class WTF::DoublyLinkedListNode<ShadowRoot>; 49 friend class WTF::DoublyLinkedListNode<ShadowRoot>;
49 public: 50 public:
50 // FIXME: We will support multiple shadow subtrees, however current implemen tation does not work well 51 // FIXME: We will support multiple shadow subtrees, however current implemen tation does not work well
51 // if a shadow root is dynamically created. So we prohibit multiple shadow s ubtrees 52 // if a shadow root is dynamically created. So we prohibit multiple shadow s ubtrees
52 // in several elements for a while. 53 // in several elements for a while.
53 // See https://bugs.webkit.org/show_bug.cgi?id=77503 and related bugs. 54 // See https://bugs.webkit.org/show_bug.cgi?id=77503 and related bugs.
54 enum ShadowRootType { 55 enum ShadowRootType {
55 UserAgentShadowRoot = 0, 56 UserAgentShadowRoot = 0,
56 AuthorShadowRoot 57 AuthorShadowRoot
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 }; 159 };
159 160
160 inline Element* ShadowRoot::activeElement() const 161 inline Element* ShadowRoot::activeElement() const
161 { 162 {
162 return adjustedFocusedElement(); 163 return adjustedFocusedElement();
163 } 164 }
164 165
165 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); 166 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot());
166 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot()); 167 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot());
167 168
168 } // namespace 169 } // namespace blink
169 170
170 #endif 171 #endif // ShadowRoot_h
OLDNEW
« no previous file with comments | « Source/core/dom/XMLDocument.h ('k') | Source/core/editing/DOMSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698