| 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 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 { | 1031 { |
| 1032 if (!layoutObject()) | 1032 if (!layoutObject()) |
| 1033 return IntRect(); | 1033 return IntRect(); |
| 1034 // FIXME: this should probably respect transforms | 1034 // FIXME: this should probably respect transforms |
| 1035 return document().view()->contentsToScreen(layoutObject()->absoluteBoundingB
oxRectIgnoringTransforms()); | 1035 return document().view()->contentsToScreen(layoutObject()->absoluteBoundingB
oxRectIgnoringTransforms()); |
| 1036 } | 1036 } |
| 1037 | 1037 |
| 1038 const AtomicString& Element::computedRole() | 1038 const AtomicString& Element::computedRole() |
| 1039 { | 1039 { |
| 1040 document().updateLayoutIgnorePendingStylesheets(); | 1040 document().updateLayoutIgnorePendingStylesheets(); |
| 1041 ScopedAXObjectCache cache(document()); | 1041 RefPtr<ScopedAXObjectCache> cache(adoptRef(new ScopedAXObjectCache(document(
)))); |
| 1042 return cache->computedRoleForNode(this); | 1042 return (*cache)->computedRoleForNode(this); |
| 1043 } | 1043 } |
| 1044 | 1044 |
| 1045 String Element::computedName() | 1045 String Element::computedName() |
| 1046 { | 1046 { |
| 1047 document().updateLayoutIgnorePendingStylesheets(); | 1047 document().updateLayoutIgnorePendingStylesheets(); |
| 1048 ScopedAXObjectCache cache(document()); | 1048 RefPtr<ScopedAXObjectCache> cache(adoptRef(new ScopedAXObjectCache(document(
)))); |
| 1049 return cache->computedNameForNode(this); | 1049 return (*cache)->computedNameForNode(this); |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 const AtomicString& Element::getAttribute(const AtomicString& localName) const | 1052 const AtomicString& Element::getAttribute(const AtomicString& localName) const |
| 1053 { | 1053 { |
| 1054 if (!elementData()) | 1054 if (!elementData()) |
| 1055 return nullAtom; | 1055 return nullAtom; |
| 1056 synchronizeAttribute(localName); | 1056 synchronizeAttribute(localName); |
| 1057 if (const Attribute* attribute = elementData()->attributes().find(localName,
shouldIgnoreAttributeCase())) | 1057 if (const Attribute* attribute = elementData()->attributes().find(localName,
shouldIgnoreAttributeCase())) |
| 1058 return attribute->value(); | 1058 return attribute->value(); |
| 1059 return nullAtom; | 1059 return nullAtom; |
| (...skipping 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3496 { | 3496 { |
| 3497 #if ENABLE(OILPAN) | 3497 #if ENABLE(OILPAN) |
| 3498 if (hasRareData()) | 3498 if (hasRareData()) |
| 3499 visitor->trace(elementRareData()); | 3499 visitor->trace(elementRareData()); |
| 3500 visitor->trace(m_elementData); | 3500 visitor->trace(m_elementData); |
| 3501 #endif | 3501 #endif |
| 3502 ContainerNode::trace(visitor); | 3502 ContainerNode::trace(visitor); |
| 3503 } | 3503 } |
| 3504 | 3504 |
| 3505 } // namespace blink | 3505 } // namespace blink |
| OLD | NEW |