OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "core/css/CSSCounterValue.h" | 6 #include "core/css/CSSCounterValue.h" |
7 | 7 |
8 #include "core/css/CSSMarkup.h" | 8 #include "core/css/CSSMarkup.h" |
9 #include "wtf/text/StringBuilder.h" | 9 #include "wtf/text/StringBuilder.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 bool isDefaultListStyle = listStyleIdent() == CSSValueDecimal; | 26 bool isDefaultListStyle = listStyleIdent() == CSSValueDecimal; |
27 if (!listStyle().isEmpty() && !isDefaultListStyle) { | 27 if (!listStyle().isEmpty() && !isDefaultListStyle) { |
28 result.appendLiteral(", "); | 28 result.appendLiteral(", "); |
29 result.append(listStyle()); | 29 result.append(listStyle()); |
30 } | 30 } |
31 result.append(')'); | 31 result.append(')'); |
32 | 32 |
33 return result.toString(); | 33 return result.toString(); |
34 } | 34 } |
35 | 35 |
36 DEFINE_TRACE_AFTER_DISPATCH(CSSCounterValue) | |
37 { | |
38 visitor->trace(m_identifier); | |
39 visitor->trace(m_listStyle); | |
40 visitor->trace(m_separator); | |
41 CSSValue::traceAfterDispatch(visitor); | |
42 } | 36 } |
43 | |
44 } | |
OLD | NEW |