| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2006 Rob Buis <buis@kde.org> |
| 3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> | 3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "core/fetch/ImageResource.h" | 27 #include "core/fetch/ImageResource.h" |
| 28 #include "core/fetch/ResourceFetcher.h" | 28 #include "core/fetch/ResourceFetcher.h" |
| 29 #include "core/rendering/style/StyleFetchedImage.h" | 29 #include "core/rendering/style/StyleFetchedImage.h" |
| 30 #include "core/rendering/style/StyleFetchedImageSet.h" | 30 #include "core/rendering/style/StyleFetchedImageSet.h" |
| 31 #include "core/rendering/style/StyleImage.h" | 31 #include "core/rendering/style/StyleImage.h" |
| 32 #include "core/rendering/style/StylePendingImage.h" | 32 #include "core/rendering/style/StylePendingImage.h" |
| 33 #include "core/svg/SVGCursorElement.h" | 33 #include "core/svg/SVGCursorElement.h" |
| 34 #include "core/svg/SVGLengthContext.h" | 34 #include "core/svg/SVGLengthContext.h" |
| 35 #include "core/svg/SVGURIReference.h" | 35 #include "core/svg/SVGURIReference.h" |
| 36 #include "wtf/MathExtras.h" | 36 #include "wtf/MathExtras.h" |
| 37 #include "wtf/text/StringBuilder.h" |
| 37 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 38 | 39 |
| 39 namespace WebCore { | 40 namespace WebCore { |
| 40 | 41 |
| 41 static inline SVGCursorElement* resourceReferencedByCursorElement(const String&
url, Document& document) | 42 static inline SVGCursorElement* resourceReferencedByCursorElement(const String&
url, Document& document) |
| 42 { | 43 { |
| 43 Element* element = SVGURIReference::targetElementFromIRIString(url, document
); | 44 Element* element = SVGURIReference::targetElementFromIRIString(url, document
); |
| 44 if (element && element->hasTagName(SVGNames::cursorTag)) | 45 if (element && element->hasTagName(SVGNames::cursorTag)) |
| 45 return toSVGCursorElement(element); | 46 return toSVGCursorElement(element); |
| 46 | 47 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 m_referencedElements.remove(element); | 190 m_referencedElements.remove(element); |
| 190 } | 191 } |
| 191 | 192 |
| 192 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const | 193 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const |
| 193 { | 194 { |
| 194 return m_hasHotSpot ? other.m_hasHotSpot && m_hotSpot == other.m_hotSpot : !
other.m_hasHotSpot | 195 return m_hasHotSpot ? other.m_hasHotSpot && m_hotSpot == other.m_hotSpot : !
other.m_hasHotSpot |
| 195 && compareCSSValuePtr(m_imageValue, other.m_imageValue); | 196 && compareCSSValuePtr(m_imageValue, other.m_imageValue); |
| 196 } | 197 } |
| 197 | 198 |
| 198 } // namespace WebCore | 199 } // namespace WebCore |
| OLD | NEW |