OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2011 Adobe Systems Incorporated. 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 void setFormat(const String& format) { m_format = format; } | 48 void setFormat(const String& format) { m_format = format; } |
49 | 49 |
50 KURL completeURL(CachedResourceLoader*) const; | 50 KURL completeURL(CachedResourceLoader*) const; |
51 StyleCachedShader* cachedShader(CachedResourceLoader*); | 51 StyleCachedShader* cachedShader(CachedResourceLoader*); |
52 StyleShader* cachedOrPendingShader(); | 52 StyleShader* cachedOrPendingShader(); |
53 | 53 |
54 String customCssText() const; | 54 String customCssText() const; |
55 | 55 |
56 bool equals(const WebKitCSSShaderValue&) const; | 56 bool equals(const WebKitCSSShaderValue&) const; |
57 | 57 |
58 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; | |
59 | |
60 private: | 58 private: |
61 WebKitCSSShaderValue(const String& url); | 59 WebKitCSSShaderValue(const String& url); |
62 | 60 |
63 String m_url; | 61 String m_url; |
64 String m_format; | 62 String m_format; |
65 RefPtr<StyleShader> m_shader; | 63 RefPtr<StyleShader> m_shader; |
66 bool m_accessedShader; | 64 bool m_accessedShader; |
67 }; | 65 }; |
68 | 66 |
69 // This will catch anyone doing an unnecessary cast. | 67 // This will catch anyone doing an unnecessary cast. |
70 WebKitCSSShaderValue* toWebKitCSSShaderValue(const WebKitCSSShaderValue*); | 68 WebKitCSSShaderValue* toWebKitCSSShaderValue(const WebKitCSSShaderValue*); |
71 | 69 |
72 inline WebKitCSSShaderValue* toWebKitCSSShaderValue(CSSValue* value) | 70 inline WebKitCSSShaderValue* toWebKitCSSShaderValue(CSSValue* value) |
73 { | 71 { |
74 return value->isWebKitCSSShaderValue() ? static_cast<WebKitCSSShaderValue*>(
value) : 0; | 72 return value->isWebKitCSSShaderValue() ? static_cast<WebKitCSSShaderValue*>(
value) : 0; |
75 } | 73 } |
76 | 74 |
77 } // namespace WebCore | 75 } // namespace WebCore |
78 | 76 |
79 | 77 |
80 #endif // WebKitCSSShaderValue_h | 78 #endif // WebKitCSSShaderValue_h |
OLD | NEW |