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 28 matching lines...) Expand all Loading... |
39 return adoptRef(new CSSUnicodeRangeValue(from, to)); | 39 return adoptRef(new CSSUnicodeRangeValue(from, to)); |
40 } | 40 } |
41 | 41 |
42 UChar32 from() const { return m_from; } | 42 UChar32 from() const { return m_from; } |
43 UChar32 to() const { return m_to; } | 43 UChar32 to() const { return m_to; } |
44 | 44 |
45 String customCssText() const; | 45 String customCssText() const; |
46 | 46 |
47 bool equals(const CSSUnicodeRangeValue&) const; | 47 bool equals(const CSSUnicodeRangeValue&) const; |
48 | 48 |
49 void reportDescendantMemoryUsage(MemoryObjectInfo*) const; | |
50 | |
51 private: | 49 private: |
52 CSSUnicodeRangeValue(UChar32 from, UChar32 to) | 50 CSSUnicodeRangeValue(UChar32 from, UChar32 to) |
53 : CSSValue(UnicodeRangeClass) | 51 : CSSValue(UnicodeRangeClass) |
54 , m_from(from) | 52 , m_from(from) |
55 , m_to(to) | 53 , m_to(to) |
56 { | 54 { |
57 } | 55 } |
58 | 56 |
59 UChar32 m_from; | 57 UChar32 m_from; |
60 UChar32 m_to; | 58 UChar32 m_to; |
61 }; | 59 }; |
62 | 60 |
63 } // namespace WebCore | 61 } // namespace WebCore |
64 | 62 |
65 #endif // CSSUnicodeRangeValue_h | 63 #endif // CSSUnicodeRangeValue_h |
OLD | NEW |