Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSUnicodeRangeValue.h

Issue 1481383002: [Experimental] CSSSerializer Proof-of-concept Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: snapshot: top_25 sites ser/dser now works Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698