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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 , value("") | 84 , value("") |
85 , important(false) | 85 , important(false) |
86 , disabled(false) | 86 , disabled(false) |
87 , parsedOk(false) | 87 , parsedOk(false) |
88 , range(SourceRange(0, 0)) | 88 , range(SourceRange(0, 0)) |
89 { | 89 { |
90 } | 90 } |
91 | 91 |
92 String CSSPropertySourceData::toString() const | 92 String CSSPropertySourceData::toString() const |
93 { | 93 { |
94 DEFINE_STATIC_LOCAL(String, emptyValue, (ASCIILiteral("e"))); | 94 DEFINE_STATIC_LOCAL(String, emptyValue, ("e")); |
95 if (!name && value == emptyValue) | 95 if (!name && value == emptyValue) |
96 return String(); | 96 return String(); |
97 | 97 |
98 StringBuilder result; | 98 StringBuilder result; |
99 if (disabled) | 99 if (disabled) |
100 result.append("/* "); | 100 result.append("/* "); |
101 result.append(name); | 101 result.append(name); |
102 result.appendLiteral(": "); | 102 result.appendLiteral(": "); |
103 result.append(value); | 103 result.append(value); |
104 if (important) | 104 if (important) |
(...skipping 16 matching lines...) Expand all Loading... |
121 void CSSPropertySourceData::init() | 121 void CSSPropertySourceData::init() |
122 { | 122 { |
123 static bool initialized; | 123 static bool initialized; |
124 if (!initialized) { | 124 if (!initialized) { |
125 new ((void *) &emptyCSSPropertySourceData) CSSPropertySourceData("", "e"
, false, false, false, SourceRange(0, 0)); | 125 new ((void *) &emptyCSSPropertySourceData) CSSPropertySourceData("", "e"
, false, false, false, SourceRange(0, 0)); |
126 initialized = true; | 126 initialized = true; |
127 } | 127 } |
128 } | 128 } |
129 | 129 |
130 } // namespace WebCore | 130 } // namespace WebCore |
OLD | NEW |