OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #ifndef CSSImageValue_h | 21 #ifndef CSSImageValue_h |
22 #define CSSImageValue_h | 22 #define CSSImageValue_h |
23 | 23 |
24 #include "core/CoreExport.h" | |
25 #include "core/css/CSSValue.h" | 24 #include "core/css/CSSValue.h" |
26 #include "core/fetch/ResourceFetcher.h" | 25 #include "core/fetch/ResourceFetcher.h" |
27 #include "platform/weborigin/Referrer.h" | 26 #include "platform/weborigin/Referrer.h" |
28 #include "wtf/RefPtr.h" | 27 #include "wtf/RefPtr.h" |
29 | 28 |
30 namespace blink { | 29 namespace blink { |
31 | 30 |
32 class Document; | 31 class Document; |
33 class KURL; | 32 class KURL; |
34 class StyleFetchedImage; | 33 class StyleFetchedImage; |
35 class StyleImage; | 34 class StyleImage; |
36 class LayoutObject; | 35 class LayoutObject; |
37 | 36 |
38 class CORE_EXPORT CSSImageValue : public CSSValue { | 37 class CSSImageValue : public CSSValue { |
39 public: | 38 public: |
40 static PassRefPtrWillBeRawPtr<CSSImageValue> create(const KURL& url, StyleFe
tchedImage* image = 0) | 39 static PassRefPtrWillBeRawPtr<CSSImageValue> create(const KURL& url, StyleFe
tchedImage* image = 0) |
41 { | 40 { |
42 return create(url.string(), url, image); | 41 return create(url.string(), url, image); |
43 } | 42 } |
44 static PassRefPtrWillBeRawPtr<CSSImageValue> create(const String& rawValue,
const KURL& url, StyleFetchedImage* image = 0) | 43 static PassRefPtrWillBeRawPtr<CSSImageValue> create(const String& rawValue,
const KURL& url, StyleFetchedImage* image = 0) |
45 { | 44 { |
46 return create(AtomicString(rawValue), url, image); | 45 return create(AtomicString(rawValue), url, image); |
47 } | 46 } |
48 static PassRefPtrWillBeRawPtr<CSSImageValue> create(const AtomicString& rawV
alue, const KURL& url, StyleFetchedImage* image = 0) | 47 static PassRefPtrWillBeRawPtr<CSSImageValue> create(const AtomicString& rawV
alue, const KURL& url, StyleFetchedImage* image = 0) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 bool m_isCachePending; | 89 bool m_isCachePending; |
91 RefPtrWillBeMember<StyleFetchedImage> m_cachedImage; | 90 RefPtrWillBeMember<StyleFetchedImage> m_cachedImage; |
92 AtomicString m_initiatorName; | 91 AtomicString m_initiatorName; |
93 }; | 92 }; |
94 | 93 |
95 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageValue, isImageValue()); | 94 DEFINE_CSS_VALUE_TYPE_CASTS(CSSImageValue, isImageValue()); |
96 | 95 |
97 } // namespace blink | 96 } // namespace blink |
98 | 97 |
99 #endif // CSSImageValue_h | 98 #endif // CSSImageValue_h |
OLD | NEW |