| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2659 } | 2659 } |
| 2660 return false; | 2660 return false; |
| 2661 } | 2661 } |
| 2662 | 2662 |
| 2663 void Element::createPseudoElementIfNeeded(PseudoId pseudoId) | 2663 void Element::createPseudoElementIfNeeded(PseudoId pseudoId) |
| 2664 { | 2664 { |
| 2665 if (isPseudoElement()) | 2665 if (isPseudoElement()) |
| 2666 return; | 2666 return; |
| 2667 | 2667 |
| 2668 // Document::ensureStyleResolver is not inlined and shows up on profiles, av
oid it here. | 2668 // Document::ensureStyleResolver is not inlined and shows up on profiles, av
oid it here. |
| 2669 StyleEngine* engine = document().styleEngine(); | 2669 RefPtrWillBeRawPtr<PseudoElement> element = document().styleEngine().ensureR
esolver().createPseudoElementIfNeeded(*this, pseudoId); |
| 2670 RefPtrWillBeRawPtr<PseudoElement> element = engine->ensureResolver().createP
seudoElementIfNeeded(*this, pseudoId); | |
| 2671 if (!element) | 2670 if (!element) |
| 2672 return; | 2671 return; |
| 2673 | 2672 |
| 2674 if (pseudoId == BACKDROP) | 2673 if (pseudoId == BACKDROP) |
| 2675 document().addToTopLayer(element.get(), this); | 2674 document().addToTopLayer(element.get(), this); |
| 2676 element->insertedInto(this); | 2675 element->insertedInto(this); |
| 2677 element->attach(); | 2676 element->attach(); |
| 2678 | 2677 |
| 2679 InspectorInstrumentation::pseudoElementCreated(element.get()); | 2678 InspectorInstrumentation::pseudoElementCreated(element.get()); |
| 2680 | 2679 |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3381 { | 3380 { |
| 3382 #if ENABLE(OILPAN) | 3381 #if ENABLE(OILPAN) |
| 3383 if (hasRareData()) | 3382 if (hasRareData()) |
| 3384 visitor->trace(elementRareData()); | 3383 visitor->trace(elementRareData()); |
| 3385 visitor->trace(m_elementData); | 3384 visitor->trace(m_elementData); |
| 3386 #endif | 3385 #endif |
| 3387 ContainerNode::trace(visitor); | 3386 ContainerNode::trace(visitor); |
| 3388 } | 3387 } |
| 3389 | 3388 |
| 3390 } // namespace blink | 3389 } // namespace blink |
| OLD | NEW |