OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 29 matching lines...) Expand all Loading... |
40 return adoptRefWillBeNoop(new CSSCanvasValue(name)); | 40 return adoptRefWillBeNoop(new CSSCanvasValue(name)); |
41 } | 41 } |
42 ~CSSCanvasValue(); | 42 ~CSSCanvasValue(); |
43 | 43 |
44 String customCSSText() const; | 44 String customCSSText() const; |
45 | 45 |
46 PassRefPtr<Image> image(LayoutObject*, const IntSize&); | 46 PassRefPtr<Image> image(LayoutObject*, const IntSize&); |
47 bool isFixedSize() const { return true; } | 47 bool isFixedSize() const { return true; } |
48 IntSize fixedSize(const LayoutObject*); | 48 IntSize fixedSize(const LayoutObject*); |
49 | 49 |
50 bool isPending() const { return false; } | 50 bool isPending(CSSStyleImageMap&) const { return false; } |
51 void loadSubimages(Document*) { } | 51 void loadSubimages(Document*, CSSStyleImageMap&) { } |
52 | 52 |
53 bool equals(const CSSCanvasValue&) const; | 53 bool equals(const CSSCanvasValue&) const; |
54 | 54 |
55 DECLARE_TRACE_AFTER_DISPATCH(); | 55 DECLARE_TRACE_AFTER_DISPATCH(); |
56 | 56 |
57 private: | 57 private: |
58 explicit CSSCanvasValue(const String& name) | 58 explicit CSSCanvasValue(const String& name) |
59 : CSSImageGeneratorValue(CanvasClass) | 59 : CSSImageGeneratorValue(CanvasClass) |
60 , m_canvasObserver(adoptPtrWillBeNoop(new CanvasObserverProxy(this))) | 60 , m_canvasObserver(adoptPtrWillBeNoop(new CanvasObserverProxy(this))) |
61 , m_name(name) | 61 , m_name(name) |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 String m_name; | 109 String m_name; |
110 // The document supplies the element and owns it. | 110 // The document supplies the element and owns it. |
111 RawPtrWillBeWeakMember<HTMLCanvasElement> m_element; | 111 RawPtrWillBeWeakMember<HTMLCanvasElement> m_element; |
112 }; | 112 }; |
113 | 113 |
114 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCanvasValue, isCanvasValue()); | 114 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCanvasValue, isCanvasValue()); |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
117 | 117 |
118 #endif // CSSCanvasValue_h | 118 #endif // CSSCanvasValue_h |
OLD | NEW |