| 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 3007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3018 { | 3018 { |
| 3019 if (oldDocument == newDocument) | 3019 if (oldDocument == newDocument) |
| 3020 return false; | 3020 return false; |
| 3021 if (oldDocument.baseURL() == newDocument.baseURL()) | 3021 if (oldDocument.baseURL() == newDocument.baseURL()) |
| 3022 return false; | 3022 return false; |
| 3023 const StylePropertySet* style = element.inlineStyle(); | 3023 const StylePropertySet* style = element.inlineStyle(); |
| 3024 if (!style) | 3024 if (!style) |
| 3025 return false; | 3025 return false; |
| 3026 for (unsigned i = 0; i < style->propertyCount(); ++i) { | 3026 for (unsigned i = 0; i < style->propertyCount(); ++i) { |
| 3027 // FIXME: Should handle all URL-based properties: CSSImageSetValue, CSSC
ursorImageValue, etc. | 3027 // FIXME: Should handle all URL-based properties: CSSImageSetValue, CSSC
ursorImageValue, etc. |
| 3028 if (style->propertyAt(i).value()->isImageValue()) | 3028 if (style->propertyAt(i).value().isImageValue()) |
| 3029 return true; | 3029 return true; |
| 3030 } | 3030 } |
| 3031 return false; | 3031 return false; |
| 3032 } | 3032 } |
| 3033 | 3033 |
| 3034 static void reResolveURLsInInlineStyle(const Document& document, MutableStylePro
pertySet& style) | 3034 static void reResolveURLsInInlineStyle(const Document& document, MutableStylePro
pertySet& style) |
| 3035 { | 3035 { |
| 3036 for (unsigned i = 0; i < style.propertyCount(); ++i) { | 3036 for (unsigned i = 0; i < style.propertyCount(); ++i) { |
| 3037 StylePropertySet::PropertyReference property = style.propertyAt(i); | 3037 StylePropertySet::PropertyReference property = style.propertyAt(i); |
| 3038 // FIXME: Should handle all URL-based properties: CSSImageSetValue, CSSC
ursorImageValue, etc. | 3038 // FIXME: Should handle all URL-based properties: CSSImageSetValue, CSSC
ursorImageValue, etc. |
| 3039 if (property.value()->isImageValue()) | 3039 if (property.value().isImageValue()) |
| 3040 toCSSImageValue(property.value())->reResolveURL(document); | 3040 toCSSImageValue(property.value()).reResolveURL(document); |
| 3041 } | 3041 } |
| 3042 } | 3042 } |
| 3043 | 3043 |
| 3044 void Element::didMoveToNewDocument(Document& oldDocument) | 3044 void Element::didMoveToNewDocument(Document& oldDocument) |
| 3045 { | 3045 { |
| 3046 Node::didMoveToNewDocument(oldDocument); | 3046 Node::didMoveToNewDocument(oldDocument); |
| 3047 | 3047 |
| 3048 // If the documents differ by quirks mode then they differ by case sensitivi
ty | 3048 // If the documents differ by quirks mode then they differ by case sensitivi
ty |
| 3049 // for class and id names so we need to go through the attribute change logi
c | 3049 // for class and id names so we need to go through the attribute change logi
c |
| 3050 // to pick up the new casing in the ElementData. | 3050 // to pick up the new casing in the ElementData. |
| (...skipping 378 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 |