| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 static PassRefPtr<CSSShaderValue> create(const String& url) { return adoptRe
f(new CSSShaderValue(url)); } | 44 static PassRefPtr<CSSShaderValue> create(const String& url) { return adoptRe
f(new CSSShaderValue(url)); } |
| 45 ~CSSShaderValue(); | 45 ~CSSShaderValue(); |
| 46 | 46 |
| 47 const String& format() const { return m_format; } | 47 const String& format() const { return m_format; } |
| 48 void setFormat(const String& format) { m_format = format; } | 48 void setFormat(const String& format) { m_format = format; } |
| 49 | 49 |
| 50 KURL completeURL(ResourceFetcher*) const; | 50 KURL completeURL(ResourceFetcher*) const; |
| 51 StyleFetchedShader* resource(ResourceFetcher*); | 51 StyleFetchedShader* resource(ResourceFetcher*); |
| 52 StyleShader* cachedOrPendingShader(); | 52 StyleShader* cachedOrPendingShader(); |
| 53 | 53 |
| 54 String customCssText() const; | 54 String customCSSText() const; |
| 55 | 55 |
| 56 bool equals(const CSSShaderValue&) const; | 56 bool equals(const CSSShaderValue&) const; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 CSSShaderValue(const String& url); | 59 CSSShaderValue(const String& url); |
| 60 | 60 |
| 61 String m_url; | 61 String m_url; |
| 62 String m_format; | 62 String m_format; |
| 63 RefPtr<StyleShader> m_shader; | 63 RefPtr<StyleShader> m_shader; |
| 64 bool m_accessedShader; | 64 bool m_accessedShader; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 DEFINE_CSS_VALUE_TYPE_CASTS(ShaderValue); | 67 DEFINE_CSS_VALUE_TYPE_CASTS(ShaderValue); |
| 68 | 68 |
| 69 } // namespace WebCore | 69 } // namespace WebCore |
| 70 | 70 |
| 71 | 71 |
| 72 #endif // CSSShaderValue_h | 72 #endif // CSSShaderValue_h |
| OLD | NEW |