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

Side by Side Diff: third_party/WebKit/Source/core/dom/PseudoElement.cpp

Issue 2727633006: DevTools: Rename InspectorInstrumentation:: namespace into probe:: (Closed)
Patch Set: Created 3 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 98
99 PassRefPtr<ComputedStyle> PseudoElement::customStyleForLayoutObject() { 99 PassRefPtr<ComputedStyle> PseudoElement::customStyleForLayoutObject() {
100 return parentOrShadowHostElement()->layoutObject()->getCachedPseudoStyle( 100 return parentOrShadowHostElement()->layoutObject()->getCachedPseudoStyle(
101 m_pseudoId); 101 m_pseudoId);
102 } 102 }
103 103
104 void PseudoElement::dispose() { 104 void PseudoElement::dispose() {
105 DCHECK(parentOrShadowHostElement()); 105 DCHECK(parentOrShadowHostElement());
106 106
107 InspectorInstrumentation::pseudoElementDestroyed(this); 107 probe::pseudoElementDestroyed(this);
108 108
109 DCHECK(!nextSibling()); 109 DCHECK(!nextSibling());
110 DCHECK(!previousSibling()); 110 DCHECK(!previousSibling());
111 111
112 detachLayoutTree(); 112 detachLayoutTree();
113 Element* parent = parentOrShadowHostElement(); 113 Element* parent = parentOrShadowHostElement();
114 document().adoptIfNeeded(*this); 114 document().adoptIfNeeded(*this);
115 setParentOrShadowHostNode(0); 115 setParentOrShadowHostNode(0);
116 removedFrom(parent); 116 removedFrom(parent);
117 } 117 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 LayoutObject* ancestor = layoutObject()->parent(); 189 LayoutObject* ancestor = layoutObject()->parent();
190 while (ancestor->isAnonymous() || 190 while (ancestor->isAnonymous() ||
191 (ancestor->node() && ancestor->node()->isPseudoElement())) { 191 (ancestor->node() && ancestor->node()->isPseudoElement())) {
192 DCHECK(ancestor->parent()); 192 DCHECK(ancestor->parent());
193 ancestor = ancestor->parent(); 193 ancestor = ancestor->parent();
194 } 194 }
195 return ancestor->node(); 195 return ancestor->node();
196 } 196 }
197 197
198 } // namespace blink 198 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698