OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 const String& url() const { return m_url; } | 126 const String& url() const { return m_url; } |
127 const AtomicString& fragment() const { return m_fragment; } | 127 const AtomicString& fragment() const { return m_fragment; } |
128 | 128 |
129 ReferenceFilter* filter() const { return m_filter.get(); } | 129 ReferenceFilter* filter() const { return m_filter.get(); } |
130 void setFilter(PassRefPtr<ReferenceFilter> filter) { m_filter = filter; } | 130 void setFilter(PassRefPtr<ReferenceFilter> filter) { m_filter = filter; } |
131 | 131 |
132 private: | 132 private: |
133 virtual PassRefPtr<FilterOperation> blend(const FilterOperation* from, doubl
e progress) const OVERRIDE | 133 virtual PassRefPtr<FilterOperation> blend(const FilterOperation* from, doubl
e progress) const OVERRIDE |
134 { | 134 { |
135 ASSERT_NOT_REACHED(); | 135 ASSERT_NOT_REACHED(); |
136 return 0; | 136 return nullptr; |
137 } | 137 } |
138 | 138 |
139 virtual bool operator==(const FilterOperation& o) const OVERRIDE | 139 virtual bool operator==(const FilterOperation& o) const OVERRIDE |
140 { | 140 { |
141 if (!isSameType(o)) | 141 if (!isSameType(o)) |
142 return false; | 142 return false; |
143 const ReferenceFilterOperation* other = static_cast<const ReferenceFilte
rOperation*>(&o); | 143 const ReferenceFilterOperation* other = static_cast<const ReferenceFilte
rOperation*>(&o); |
144 return m_url == other->m_url; | 144 return m_url == other->m_url; |
145 } | 145 } |
146 | 146 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 int m_stdDeviation; | 310 int m_stdDeviation; |
311 Color m_color; | 311 Color m_color; |
312 }; | 312 }; |
313 | 313 |
314 DEFINE_FILTER_OPERATION_TYPE_CASTS(DropShadowFilterOperation, DROP_SHADOW); | 314 DEFINE_FILTER_OPERATION_TYPE_CASTS(DropShadowFilterOperation, DROP_SHADOW); |
315 | 315 |
316 } // namespace WebCore | 316 } // namespace WebCore |
317 | 317 |
318 | 318 |
319 #endif // FilterOperation_h | 319 #endif // FilterOperation_h |
OLD | NEW |