Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: Source/WebCore/dom/Element.cpp

Issue 12703031: Revert 146726 "AXObjectCache gets recreated during document tear..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | Source/WebCore/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 shouldInvalidateStyle |= testShouldInvalidateStyle && styleResolver->hasSele ctorForAttribute(name.localName()); 877 shouldInvalidateStyle |= testShouldInvalidateStyle && styleResolver->hasSele ctorForAttribute(name.localName());
878 878
879 invalidateNodeListCachesInAncestors(&name, this); 879 invalidateNodeListCachesInAncestors(&name, this);
880 880
881 // If there is currently no StyleResolver, we can't be sure that this attrib ute change won't affect style. 881 // If there is currently no StyleResolver, we can't be sure that this attrib ute change won't affect style.
882 shouldInvalidateStyle |= !styleResolver; 882 shouldInvalidateStyle |= !styleResolver;
883 883
884 if (shouldInvalidateStyle) 884 if (shouldInvalidateStyle)
885 setNeedsStyleRecalc(); 885 setNeedsStyleRecalc();
886 886
887 if (AXObjectCache* cache = document()->existingAXObjectCache()) 887 if (AXObjectCache::accessibilityEnabled())
888 cache->handleAttributeChanged(name, this); 888 document()->axObjectCache()->handleAttributeChanged(name, this);
889 } 889 }
890 890
891 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName& name, const AtomicString& newValue) 891 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName& name, const AtomicString& newValue)
892 { 892 {
893 #if ENABLE(CUSTOM_ELEMENTS) 893 #if ENABLE(CUSTOM_ELEMENTS)
894 if (name == isAttr) { 894 if (name == isAttr) {
895 if (CustomElementRegistry* registry = document()->registry()) 895 if (CustomElementRegistry* registry = document()->registry())
896 registry->didGiveTypeExtension(this); 896 registry->didGiveTypeExtension(this);
897 } 897 }
898 #endif 898 #endif
(...skipping 2242 matching lines...) Expand 10 before | Expand all | Expand 10 after
3141 return 0; 3141 return 0;
3142 } 3142 }
3143 3143
3144 Attribute* UniqueElementData::attributeItem(unsigned index) 3144 Attribute* UniqueElementData::attributeItem(unsigned index)
3145 { 3145 {
3146 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); 3146 ASSERT_WITH_SECURITY_IMPLICATION(index < length());
3147 return &m_attributeVector.at(index); 3147 return &m_attributeVector.at(index);
3148 } 3148 }
3149 3149
3150 } // namespace WebCore 3150 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | Source/WebCore/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698