| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |