| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 } | 197 } |
| 198 #endif | 198 #endif |
| 199 } | 199 } |
| 200 | 200 |
| 201 inline ElementRareData* Element::elementRareData() const | 201 inline ElementRareData* Element::elementRareData() const |
| 202 { | 202 { |
| 203 DCHECK(hasRareData()); | 203 DCHECK(hasRareData()); |
| 204 return static_cast<ElementRareData*>(rareData()); | 204 return static_cast<ElementRareData*>(rareData()); |
| 205 } | 205 } |
| 206 | 206 |
| 207 ElementRareData* Element::maybeElementRareData() const |
| 208 { |
| 209 return hasRareData() ? static_cast<ElementRareData*>(rareData()) : nullptr; |
| 210 } |
| 211 |
| 207 inline ElementRareData& Element::ensureElementRareData() | 212 inline ElementRareData& Element::ensureElementRareData() |
| 208 { | 213 { |
| 209 return static_cast<ElementRareData&>(ensureRareData()); | 214 return static_cast<ElementRareData&>(ensureRareData()); |
| 210 } | 215 } |
| 211 | 216 |
| 212 bool Element::hasElementFlagInternal(ElementFlags mask) const | 217 bool Element::hasElementFlagInternal(ElementFlags mask) const |
| 213 { | 218 { |
| 214 return elementRareData()->hasElementFlag(mask); | 219 return elementRareData()->hasElementFlag(mask); |
| 215 } | 220 } |
| 216 | 221 |
| (...skipping 3455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3672 | 3677 |
| 3673 DEFINE_TRACE(Element) | 3678 DEFINE_TRACE(Element) |
| 3674 { | 3679 { |
| 3675 if (hasRareData()) | 3680 if (hasRareData()) |
| 3676 visitor->trace(elementRareData()); | 3681 visitor->trace(elementRareData()); |
| 3677 visitor->trace(m_elementData); | 3682 visitor->trace(m_elementData); |
| 3678 ContainerNode::trace(visitor); | 3683 ContainerNode::trace(visitor); |
| 3679 } | 3684 } |
| 3680 | 3685 |
| 3681 } // namespace blink | 3686 } // namespace blink |
| OLD | NEW |