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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 PassRefPtr<Image> image(RenderObject*, const IntSize&); | 43 PassRefPtr<Image> image(RenderObject*, const IntSize&); |
44 bool isFixedSize() const { return true; } | 44 bool isFixedSize() const { return true; } |
45 IntSize fixedSize(const RenderObject*); | 45 IntSize fixedSize(const RenderObject*); |
46 | 46 |
47 bool isPending() const { return false; } | 47 bool isPending() const { return false; } |
48 void loadSubimages(CachedResourceLoader*) { } | 48 void loadSubimages(CachedResourceLoader*) { } |
49 | 49 |
50 bool equals(const CSSCanvasValue&) const; | 50 bool equals(const CSSCanvasValue&) const; |
51 | 51 |
52 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; | |
53 | |
54 private: | 52 private: |
55 CSSCanvasValue(const String& name) | 53 CSSCanvasValue(const String& name) |
56 : CSSImageGeneratorValue(CanvasClass) | 54 : CSSImageGeneratorValue(CanvasClass) |
57 , m_canvasObserver(this) | 55 , m_canvasObserver(this) |
58 , m_name(name) | 56 , m_name(name) |
59 , m_element(0) | 57 , m_element(0) |
60 { | 58 { |
61 } | 59 } |
62 | 60 |
63 // NOTE: We put the CanvasObserver in a member instead of inheriting from it | 61 // NOTE: We put the CanvasObserver in a member instead of inheriting from it |
(...skipping 28 matching lines...) Expand all Loading... |
92 | 90 |
93 // The name of the canvas. | 91 // The name of the canvas. |
94 String m_name; | 92 String m_name; |
95 // The document supplies the element and owns it. | 93 // The document supplies the element and owns it. |
96 HTMLCanvasElement* m_element; | 94 HTMLCanvasElement* m_element; |
97 }; | 95 }; |
98 | 96 |
99 } // namespace WebCore | 97 } // namespace WebCore |
100 | 98 |
101 #endif // CSSCanvasValue_h | 99 #endif // CSSCanvasValue_h |
OLD | NEW |