| 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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 { | 991 { |
| 992 if (!layoutObject()) | 992 if (!layoutObject()) |
| 993 return IntRect(); | 993 return IntRect(); |
| 994 // FIXME: this should probably respect transforms | 994 // FIXME: this should probably respect transforms |
| 995 return document().view()->contentsToScreen(layoutObject()->absoluteBoundingB
oxRectIgnoringTransforms()); | 995 return document().view()->contentsToScreen(layoutObject()->absoluteBoundingB
oxRectIgnoringTransforms()); |
| 996 } | 996 } |
| 997 | 997 |
| 998 const AtomicString& Element::computedRole() | 998 const AtomicString& Element::computedRole() |
| 999 { | 999 { |
| 1000 document().updateLayoutIgnorePendingStylesheets(); | 1000 document().updateLayoutIgnorePendingStylesheets(); |
| 1001 RefPtr<ScopedAXObjectCache> cache(adoptRef(new ScopedAXObjectCache(document(
)))); | 1001 OwnPtr<ScopedAXObjectCache> cache = ScopedAXObjectCache::create(document()); |
| 1002 return (*cache)->computedRoleForNode(this); | 1002 return cache->get()->computedRoleForNode(this); |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 String Element::computedName() | 1005 String Element::computedName() |
| 1006 { | 1006 { |
| 1007 document().updateLayoutIgnorePendingStylesheets(); | 1007 document().updateLayoutIgnorePendingStylesheets(); |
| 1008 RefPtr<ScopedAXObjectCache> cache(adoptRef(new ScopedAXObjectCache(document(
)))); | 1008 OwnPtr<ScopedAXObjectCache> cache = ScopedAXObjectCache::create(document()); |
| 1009 return (*cache)->computedNameForNode(this); | 1009 return cache->get()->computedNameForNode(this); |
| 1010 } | 1010 } |
| 1011 | 1011 |
| 1012 const AtomicString& Element::getAttribute(const AtomicString& localName) const | 1012 const AtomicString& Element::getAttribute(const AtomicString& localName) const |
| 1013 { | 1013 { |
| 1014 if (!elementData()) | 1014 if (!elementData()) |
| 1015 return nullAtom; | 1015 return nullAtom; |
| 1016 synchronizeAttribute(localName); | 1016 synchronizeAttribute(localName); |
| 1017 if (const Attribute* attribute = elementData()->attributes().find(localName,
shouldIgnoreAttributeCase())) | 1017 if (const Attribute* attribute = elementData()->attributes().find(localName,
shouldIgnoreAttributeCase())) |
| 1018 return attribute->value(); | 1018 return attribute->value(); |
| 1019 return nullAtom; | 1019 return nullAtom; |
| (...skipping 2409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3429 { | 3429 { |
| 3430 #if ENABLE(OILPAN) | 3430 #if ENABLE(OILPAN) |
| 3431 if (hasRareData()) | 3431 if (hasRareData()) |
| 3432 visitor->trace(elementRareData()); | 3432 visitor->trace(elementRareData()); |
| 3433 visitor->trace(m_elementData); | 3433 visitor->trace(m_elementData); |
| 3434 #endif | 3434 #endif |
| 3435 ContainerNode::trace(visitor); | 3435 ContainerNode::trace(visitor); |
| 3436 } | 3436 } |
| 3437 | 3437 |
| 3438 } // namespace blink | 3438 } // namespace blink |
| OLD | NEW |