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 21 matching lines...) Expand all Loading... |
32 #define CSSPropertySourceData_h | 32 #define CSSPropertySourceData_h |
33 | 33 |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
37 #include "wtf/Vector.h" | 37 #include "wtf/Vector.h" |
38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class StyleRuleBase; | |
43 | |
44 struct SourceRange { | 42 struct SourceRange { |
45 ALLOW_ONLY_INLINE_ALLOCATION(); | 43 ALLOW_ONLY_INLINE_ALLOCATION(); |
46 public: | 44 public: |
47 SourceRange(); | 45 SourceRange(); |
48 SourceRange(unsigned start, unsigned end); | 46 SourceRange(unsigned start, unsigned end); |
49 unsigned length() const; | 47 unsigned length() const; |
50 | 48 |
51 void trace(Visitor*) { } | 49 void trace(Visitor*) { } |
52 | 50 |
53 unsigned start; | 51 unsigned start; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // Only for CSSMediaRules. | 138 // Only for CSSMediaRules. |
141 RuleSourceDataList childRules; | 139 RuleSourceDataList childRules; |
142 }; | 140 }; |
143 | 141 |
144 } // namespace blink | 142 } // namespace blink |
145 | 143 |
146 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange); | 144 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange); |
147 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData); | 145 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData); |
148 | 146 |
149 #endif // CSSPropertySourceData_h | 147 #endif // CSSPropertySourceData_h |
OLD | NEW |