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

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

Issue 301523002: Oilpan: convert remaining dom + page Element refs to transition types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « Source/core/dom/DocumentMarkerControllerTest.cpp ('k') | Source/core/page/DragController.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) 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void PseudoElement::dispose() 71 void PseudoElement::dispose()
72 { 72 {
73 ASSERT(parentOrShadowHostElement()); 73 ASSERT(parentOrShadowHostElement());
74 74
75 InspectorInstrumentation::pseudoElementDestroyed(this); 75 InspectorInstrumentation::pseudoElementDestroyed(this);
76 76
77 ASSERT(!nextSibling()); 77 ASSERT(!nextSibling());
78 ASSERT(!previousSibling()); 78 ASSERT(!previousSibling());
79 79
80 detach(); 80 detach();
81 RefPtr<Element> parent = parentOrShadowHostElement(); 81 RefPtrWillBeRawPtr<Element> parent = parentOrShadowHostElement();
82 setParentOrShadowHostNode(0); 82 setParentOrShadowHostNode(0);
83 removedFrom(parent.get()); 83 removedFrom(parent.get());
84 } 84 }
85 85
86 void PseudoElement::attach(const AttachContext& context) 86 void PseudoElement::attach(const AttachContext& context)
87 { 87 {
88 ASSERT(!renderer()); 88 ASSERT(!renderer());
89 89
90 Element::attach(context); 90 Element::attach(context);
91 91
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // The style for the RenderTextFragment for first letter is managed by a n enclosing block, not by us. 129 // The style for the RenderTextFragment for first letter is managed by a n enclosing block, not by us.
130 if (child->style()->styleType() == FIRST_LETTER) 130 if (child->style()->styleType() == FIRST_LETTER)
131 continue; 131 continue;
132 132
133 child->setPseudoStyle(renderer->style()); 133 child->setPseudoStyle(renderer->style());
134 } 134 }
135 } 135 }
136 136
137 } // namespace 137 } // namespace
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentMarkerControllerTest.cpp ('k') | Source/core/page/DragController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698