OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 Google Inc. All rights reserved. | 2 * Copyright (c) 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 unsigned start; | 51 unsigned start; |
52 unsigned end; | 52 unsigned end; |
53 }; | 53 }; |
54 | 54 |
55 struct CSSPropertySourceData { | 55 struct CSSPropertySourceData { |
56 ALLOW_ONLY_INLINE_ALLOCATION(); | 56 ALLOW_ONLY_INLINE_ALLOCATION(); |
57 public: | 57 public: |
58 CSSPropertySourceData(const String& name, const String& value, bool importan
t, bool disabled, bool parsedOk, const SourceRange& range); | 58 CSSPropertySourceData(const String& name, const String& value, bool importan
t, bool disabled, bool parsedOk, const SourceRange& range); |
59 CSSPropertySourceData(const CSSPropertySourceData& other); | 59 CSSPropertySourceData(const CSSPropertySourceData& other); |
60 CSSPropertySourceData(); | |
61 | |
62 String toString() const; | |
63 unsigned hash() const; | |
64 | 60 |
65 void trace(Visitor* visitor) { visitor->trace(range); } | 61 void trace(Visitor* visitor) { visitor->trace(range); } |
66 | 62 |
67 String name; | 63 String name; |
68 String value; | 64 String value; |
69 bool important; | 65 bool important; |
70 bool disabled; | 66 bool disabled; |
71 bool parsedOk; | 67 bool parsedOk; |
72 SourceRange range; | 68 SourceRange range; |
73 }; | 69 }; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 RefPtrWillBeMember<CSSMediaSourceData> mediaSourceData; | 172 RefPtrWillBeMember<CSSMediaSourceData> mediaSourceData; |
177 }; | 173 }; |
178 | 174 |
179 } // namespace blink | 175 } // namespace blink |
180 | 176 |
181 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange); | 177 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange); |
182 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData); | 178 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData); |
183 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSMediaQueryExpSourceData); | 179 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSMediaQueryExpSourceData); |
184 | 180 |
185 #endif // CSSPropertySourceData_h | 181 #endif // CSSPropertySourceData_h |
OLD | NEW |