| 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 "core/css/CSSCounterValue.h" | 5 #include "core/css/CSSCounterValue.h" |
| 6 | 6 |
| 7 #include "core/css/CSSMarkup.h" | 7 #include "core/css/CSSMarkup.h" |
| 8 #include "wtf/text/StringBuilder.h" | 8 #include "platform/wtf/text/StringBuilder.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 namespace cssvalue { | 12 namespace cssvalue { |
| 13 | 13 |
| 14 String CSSCounterValue::CustomCSSText() const { | 14 String CSSCounterValue::CustomCSSText() const { |
| 15 StringBuilder result; | 15 StringBuilder result; |
| 16 if (Separator().IsEmpty()) | 16 if (Separator().IsEmpty()) |
| 17 result.Append("counter("); | 17 result.Append("counter("); |
| 18 else | 18 else |
| (...skipping 17 matching lines...) Expand all Loading... |
| 36 DEFINE_TRACE_AFTER_DISPATCH(CSSCounterValue) { | 36 DEFINE_TRACE_AFTER_DISPATCH(CSSCounterValue) { |
| 37 visitor->Trace(identifier_); | 37 visitor->Trace(identifier_); |
| 38 visitor->Trace(list_style_); | 38 visitor->Trace(list_style_); |
| 39 visitor->Trace(separator_); | 39 visitor->Trace(separator_); |
| 40 CSSValue::TraceAfterDispatch(visitor); | 40 CSSValue::TraceAfterDispatch(visitor); |
| 41 } | 41 } |
| 42 | 42 |
| 43 } // namespace cssvalue | 43 } // namespace cssvalue |
| 44 | 44 |
| 45 } // namespace blink | 45 } // namespace blink |
| OLD | NEW |