| 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 3218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3229 void Element::createUniqueElementData() | 3229 void Element::createUniqueElementData() |
| 3230 { | 3230 { |
| 3231 if (!m_elementData) | 3231 if (!m_elementData) |
| 3232 m_elementData = UniqueElementData::create(); | 3232 m_elementData = UniqueElementData::create(); |
| 3233 else { | 3233 else { |
| 3234 ASSERT(!m_elementData->isUnique()); | 3234 ASSERT(!m_elementData->isUnique()); |
| 3235 m_elementData = toShareableElementData(m_elementData)->makeUniqueCopy(); | 3235 m_elementData = toShareableElementData(m_elementData)->makeUniqueCopy(); |
| 3236 } | 3236 } |
| 3237 } | 3237 } |
| 3238 | 3238 |
| 3239 InputMethodContext& Element::inputMethodContext() | |
| 3240 { | |
| 3241 return ensureElementRareData().ensureInputMethodContext(toHTMLElement(this))
; | |
| 3242 } | |
| 3243 | |
| 3244 bool Element::hasInputMethodContext() const | |
| 3245 { | |
| 3246 return hasRareData() && elementRareData()->hasInputMethodContext(); | |
| 3247 } | |
| 3248 | |
| 3249 void Element::synchronizeStyleAttributeInternal() const | 3239 void Element::synchronizeStyleAttributeInternal() const |
| 3250 { | 3240 { |
| 3251 ASSERT(isStyledElement()); | 3241 ASSERT(isStyledElement()); |
| 3252 ASSERT(elementData()); | 3242 ASSERT(elementData()); |
| 3253 ASSERT(elementData()->m_styleAttributeIsDirty); | 3243 ASSERT(elementData()->m_styleAttributeIsDirty); |
| 3254 elementData()->m_styleAttributeIsDirty = false; | 3244 elementData()->m_styleAttributeIsDirty = false; |
| 3255 const StylePropertySet* inlineStyle = this->inlineStyle(); | 3245 const StylePropertySet* inlineStyle = this->inlineStyle(); |
| 3256 const_cast<Element*>(this)->setSynchronizedLazyAttribute(styleAttr, | 3246 const_cast<Element*>(this)->setSynchronizedLazyAttribute(styleAttr, |
| 3257 inlineStyle ? AtomicString(inlineStyle->asText()) : nullAtom); | 3247 inlineStyle ? AtomicString(inlineStyle->asText()) : nullAtom); |
| 3258 } | 3248 } |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3445 { | 3435 { |
| 3446 #if ENABLE(OILPAN) | 3436 #if ENABLE(OILPAN) |
| 3447 if (hasRareData()) | 3437 if (hasRareData()) |
| 3448 visitor->trace(elementRareData()); | 3438 visitor->trace(elementRareData()); |
| 3449 visitor->trace(m_elementData); | 3439 visitor->trace(m_elementData); |
| 3450 #endif | 3440 #endif |
| 3451 ContainerNode::trace(visitor); | 3441 ContainerNode::trace(visitor); |
| 3452 } | 3442 } |
| 3453 | 3443 |
| 3454 } // namespace blink | 3444 } // namespace blink |
| OLD | NEW |