| 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 19 matching lines...) Expand all Loading... |
| 30 #include "wtf/PassRefPtr.h" | 30 #include "wtf/PassRefPtr.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class CSSUnicodeRangeValue : public CSSValue { | 34 class CSSUnicodeRangeValue : public CSSValue { |
| 35 public: | 35 public: |
| 36 static PassRefPtrWillBeRawPtr<CSSUnicodeRangeValue> create(UChar32 from, UCh
ar32 to) | 36 static PassRefPtrWillBeRawPtr<CSSUnicodeRangeValue> create(UChar32 from, UCh
ar32 to) |
| 37 { | 37 { |
| 38 return adoptRefWillBeNoop(new CSSUnicodeRangeValue(from, to)); | 38 return adoptRefWillBeNoop(new CSSUnicodeRangeValue(from, to)); |
| 39 } | 39 } |
| 40 static PassRefPtrWillBeRawPtr<CSSUnicodeRangeValue> deserializeAfterDispatch
(CSSDeserializeStream*); |
| 40 | 41 |
| 41 UChar32 from() const { return m_from; } | 42 UChar32 from() const { return m_from; } |
| 42 UChar32 to() const { return m_to; } | 43 UChar32 to() const { return m_to; } |
| 43 | 44 |
| 44 String customCSSText() const; | 45 String customCSSText() const; |
| 45 | 46 |
| 46 bool equals(const CSSUnicodeRangeValue&) const; | 47 bool equals(const CSSUnicodeRangeValue&) const; |
| 47 | 48 |
| 49 void serializeAfterDispatch(CSSSerializeStream*) const; |
| 50 |
| 48 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { CSSValue::traceAfterDispatch(visitor)
; } | 51 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { CSSValue::traceAfterDispatch(visitor)
; } |
| 49 | 52 |
| 50 private: | 53 private: |
| 51 CSSUnicodeRangeValue(UChar32 from, UChar32 to) | 54 CSSUnicodeRangeValue(UChar32 from, UChar32 to) |
| 52 : CSSValue(UnicodeRangeClass) | 55 : CSSValue(UnicodeRangeClass) |
| 53 , m_from(from) | 56 , m_from(from) |
| 54 , m_to(to) | 57 , m_to(to) |
| 55 { | 58 { |
| 56 } | 59 } |
| 57 | 60 |
| 58 UChar32 m_from; | 61 UChar32 m_from; |
| 59 UChar32 m_to; | 62 UChar32 m_to; |
| 60 }; | 63 }; |
| 61 | 64 |
| 62 DEFINE_CSS_VALUE_TYPE_CASTS(CSSUnicodeRangeValue, isUnicodeRangeValue()); | 65 DEFINE_CSS_VALUE_TYPE_CASTS(CSSUnicodeRangeValue, isUnicodeRangeValue()); |
| 63 | 66 |
| 64 } // namespace blink | 67 } // namespace blink |
| 65 | 68 |
| 66 #endif // CSSUnicodeRangeValue_h | 69 #endif // CSSUnicodeRangeValue_h |
| OLD | NEW |