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

Side by Side Diff: sky/engine/core/dom/shadow/ShadowRoot.h

Issue 801643009: Remove <video controls> hack. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | sky/engine/core/dom/shadow/ShadowRoot.cpp » ('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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 ShadowRootRareData* ensureShadowRootRareData(); 94 ShadowRootRareData* ensureShadowRootRareData();
95 95
96 void addChildShadowRoot(); 96 void addChildShadowRoot();
97 void removeChildShadowRoot(); 97 void removeChildShadowRoot();
98 void invalidateDescendantInsertionPoints(); 98 void invalidateDescendantInsertionPoints();
99 99
100 // ShadowRoots should never be cloned. 100 // ShadowRoots should never be cloned.
101 virtual PassRefPtr<Node> cloneNode(bool) override { return nullptr; } 101 virtual PassRefPtr<Node> cloneNode(bool) override { return nullptr; }
102 102
103 OwnPtr<ShadowRootRareData> m_shadowRootRareData; 103 OwnPtr<ShadowRootRareData> m_shadowRootRareData;
104 unsigned m_registeredWithParentShadowRoot : 1;
105 unsigned m_descendantInsertionPointsIsValid : 1; 104 unsigned m_descendantInsertionPointsIsValid : 1;
106 }; 105 };
107 106
108 inline Element* ShadowRoot::activeElement() const 107 inline Element* ShadowRoot::activeElement() const
109 { 108 {
110 return adjustedFocusedElement(); 109 return adjustedFocusedElement();
111 } 110 }
112 111
113 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); 112 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot());
114 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot()); 113 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot());
115 114
116 } // namespace blink 115 } // namespace blink
117 116
118 #endif // SKY_ENGINE_CORE_DOM_SHADOW_SHADOWROOT_H_ 117 #endif // SKY_ENGINE_CORE_DOM_SHADOW_SHADOWROOT_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698