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 2891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2902 if (!document().isHTMLDocument()) | 2902 if (!document().isHTMLDocument()) |
2903 return; | 2903 return; |
2904 | 2904 |
2905 if (!oldId.isEmpty()) | 2905 if (!oldId.isEmpty()) |
2906 toHTMLDocument(document()).removeExtraNamedItem(oldId); | 2906 toHTMLDocument(document()).removeExtraNamedItem(oldId); |
2907 | 2907 |
2908 if (!newId.isEmpty()) | 2908 if (!newId.isEmpty()) |
2909 toHTMLDocument(document()).addExtraNamedItem(newId); | 2909 toHTMLDocument(document()).addExtraNamedItem(newId); |
2910 } | 2910 } |
2911 | 2911 |
2912 PassRefPtr<HTMLCollection> Element::ensureCachedHTMLCollection(CollectionType ty
pe) | 2912 PassRefPtrWillBeRawPtr<HTMLCollection> Element::ensureCachedHTMLCollection(Colle
ctionType type) |
2913 { | 2913 { |
2914 if (HTMLCollection* collection = cachedHTMLCollection(type)) | 2914 if (HTMLCollection* collection = cachedHTMLCollection(type)) |
2915 return collection; | 2915 return collection; |
2916 | 2916 |
2917 if (type == TableRows) { | 2917 if (type == TableRows) { |
2918 ASSERT(isHTMLTableElement(this)); | 2918 ASSERT(isHTMLTableElement(this)); |
2919 return ensureRareData().ensureNodeLists().addCache<HTMLTableRowsCollecti
on>(*this, type); | 2919 return ensureRareData().ensureNodeLists().addCache<HTMLTableRowsCollecti
on>(*this, type); |
2920 } else if (type == SelectOptions) { | 2920 } else if (type == SelectOptions) { |
2921 ASSERT(isHTMLSelectElement(this)); | 2921 ASSERT(isHTMLSelectElement(this)); |
2922 return ensureRareData().ensureNodeLists().addCache<HTMLOptionsCollection
>(*this, type); | 2922 return ensureRareData().ensureNodeLists().addCache<HTMLOptionsCollection
>(*this, type); |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3302 | 3302 |
3303 void Element::trace(Visitor* visitor) | 3303 void Element::trace(Visitor* visitor) |
3304 { | 3304 { |
3305 if (hasRareData()) | 3305 if (hasRareData()) |
3306 visitor->trace(elementRareData()); | 3306 visitor->trace(elementRareData()); |
3307 | 3307 |
3308 ContainerNode::trace(visitor); | 3308 ContainerNode::trace(visitor); |
3309 } | 3309 } |
3310 | 3310 |
3311 } // namespace WebCore | 3311 } // namespace WebCore |
OLD | NEW |