| 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 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #include "config.h" | 22 #include "sky/engine/config.h" |
| 23 #include "core/css/CSSCursorImageValue.h" | 23 #include "sky/engine/core/css/CSSCursorImageValue.h" |
| 24 | 24 |
| 25 #include "core/css/CSSImageSetValue.h" | 25 #include "sky/engine/core/css/CSSImageSetValue.h" |
| 26 #include "core/fetch/ImageResource.h" | 26 #include "sky/engine/core/fetch/ImageResource.h" |
| 27 #include "core/fetch/ResourceFetcher.h" | 27 #include "sky/engine/core/fetch/ResourceFetcher.h" |
| 28 #include "core/rendering/style/StyleFetchedImage.h" | 28 #include "sky/engine/core/rendering/style/StyleFetchedImage.h" |
| 29 #include "core/rendering/style/StyleFetchedImageSet.h" | 29 #include "sky/engine/core/rendering/style/StyleFetchedImageSet.h" |
| 30 #include "core/rendering/style/StyleImage.h" | 30 #include "sky/engine/core/rendering/style/StyleImage.h" |
| 31 #include "core/rendering/style/StylePendingImage.h" | 31 #include "sky/engine/core/rendering/style/StylePendingImage.h" |
| 32 #include "wtf/MathExtras.h" | 32 #include "sky/engine/wtf/MathExtras.h" |
| 33 #include "wtf/text/StringBuilder.h" | 33 #include "sky/engine/wtf/text/StringBuilder.h" |
| 34 #include "wtf/text/WTFString.h" | 34 #include "sky/engine/wtf/text/WTFString.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 CSSCursorImageValue::CSSCursorImageValue(PassRefPtr<CSSValue> imageValue, bool h
asHotSpot, const IntPoint& hotSpot) | 38 CSSCursorImageValue::CSSCursorImageValue(PassRefPtr<CSSValue> imageValue, bool h
asHotSpot, const IntPoint& hotSpot) |
| 39 : CSSValue(CursorImageClass) | 39 : CSSValue(CursorImageClass) |
| 40 , m_imageValue(imageValue) | 40 , m_imageValue(imageValue) |
| 41 , m_hasHotSpot(hasHotSpot) | 41 , m_hasHotSpot(hasHotSpot) |
| 42 , m_hotSpot(hotSpot) | 42 , m_hotSpot(hotSpot) |
| 43 , m_accessedImage(false) | 43 , m_accessedImage(false) |
| 44 { | 44 { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 m_accessedImage = false; | 118 m_accessedImage = false; |
| 119 } | 119 } |
| 120 | 120 |
| 121 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const | 121 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const |
| 122 { | 122 { |
| 123 return m_hasHotSpot ? other.m_hasHotSpot && m_hotSpot == other.m_hotSpot : !
other.m_hasHotSpot | 123 return m_hasHotSpot ? other.m_hasHotSpot && m_hotSpot == other.m_hotSpot : !
other.m_hasHotSpot |
| 124 && compareCSSValuePtr(m_imageValue, other.m_imageValue); | 124 && compareCSSValuePtr(m_imageValue, other.m_imageValue); |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace blink | 127 } // namespace blink |
| OLD | NEW |