Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSCounterValue.h

Issue 2804673003: Move CSSCounterValue & CSSCursorImageValue to the namespace blink::cssvalue. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSCounterValue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 10 matching lines...) Expand all
21 #ifndef CSSCounterValue_h 21 #ifndef CSSCounterValue_h
22 #define CSSCounterValue_h 22 #define CSSCounterValue_h
23 23
24 #include "core/css/CSSCustomIdentValue.h" 24 #include "core/css/CSSCustomIdentValue.h"
25 #include "core/css/CSSIdentifierValue.h" 25 #include "core/css/CSSIdentifierValue.h"
26 #include "core/css/CSSStringValue.h" 26 #include "core/css/CSSStringValue.h"
27 #include "wtf/text/WTFString.h" 27 #include "wtf/text/WTFString.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 namespace cssvalue {
32
31 class CSSCounterValue : public CSSValue { 33 class CSSCounterValue : public CSSValue {
32 public: 34 public:
33 static CSSCounterValue* create(CSSCustomIdentValue* identifier, 35 static CSSCounterValue* create(CSSCustomIdentValue* identifier,
34 CSSIdentifierValue* listStyle, 36 CSSIdentifierValue* listStyle,
35 CSSStringValue* separator) { 37 CSSStringValue* separator) {
36 return new CSSCounterValue(identifier, listStyle, separator); 38 return new CSSCounterValue(identifier, listStyle, separator);
37 } 39 }
38 40
39 String identifier() const { return m_identifier->value(); } 41 String identifier() const { return m_identifier->value(); }
40 CSSValueID listStyle() const { return m_listStyle->getValueID(); } 42 CSSValueID listStyle() const { return m_listStyle->getValueID(); }
(...skipping 17 matching lines...) Expand all
58 m_listStyle(listStyle), 60 m_listStyle(listStyle),
59 m_separator(separator) {} 61 m_separator(separator) {}
60 62
61 Member<CSSCustomIdentValue> m_identifier; // string 63 Member<CSSCustomIdentValue> m_identifier; // string
62 Member<CSSIdentifierValue> m_listStyle; // ident 64 Member<CSSIdentifierValue> m_listStyle; // ident
63 Member<CSSStringValue> m_separator; // string 65 Member<CSSStringValue> m_separator; // string
64 }; 66 };
65 67
66 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCounterValue, isCounterValue()); 68 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCounterValue, isCounterValue());
67 69
70 } // namespace cssvalue
71
68 } // namespace blink 72 } // namespace blink
69 73
70 #endif // CSSCounterValue_h 74 #endif // CSSCounterValue_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSCounterValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698