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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp

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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Rob Buis <buis@kde.org> 2 * Copyright (C) 2006 Rob Buis <buis@kde.org>
3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 */ 20 */
21 21
22 #include "core/css/CSSCursorImageValue.h" 22 #include "core/css/CSSCursorImageValue.h"
23 23
24 #include "wtf/text/StringBuilder.h" 24 #include "wtf/text/StringBuilder.h"
25 #include "wtf/text/WTFString.h" 25 #include "wtf/text/WTFString.h"
26 26
27 namespace blink { 27 namespace blink {
28 28
29 namespace cssvalue {
30
29 CSSCursorImageValue::CSSCursorImageValue(const CSSValue& imageValue, 31 CSSCursorImageValue::CSSCursorImageValue(const CSSValue& imageValue,
30 bool hotSpotSpecified, 32 bool hotSpotSpecified,
31 const IntPoint& hotSpot) 33 const IntPoint& hotSpot)
32 : CSSValue(CursorImageClass), 34 : CSSValue(CursorImageClass),
33 m_imageValue(&imageValue), 35 m_imageValue(&imageValue),
34 m_hotSpot(hotSpot), 36 m_hotSpot(hotSpot),
35 m_hotSpotSpecified(hotSpotSpecified) { 37 m_hotSpotSpecified(hotSpotSpecified) {
36 DCHECK(imageValue.isImageValue() || imageValue.isImageSetValue()); 38 DCHECK(imageValue.isImageValue() || imageValue.isImageSetValue());
37 } 39 }
38 40
(...skipping 16 matching lines...) Expand all
55 ? other.m_hotSpotSpecified && m_hotSpot == other.m_hotSpot 57 ? other.m_hotSpotSpecified && m_hotSpot == other.m_hotSpot
56 : !other.m_hotSpotSpecified) && 58 : !other.m_hotSpotSpecified) &&
57 dataEquivalent(m_imageValue, other.m_imageValue); 59 dataEquivalent(m_imageValue, other.m_imageValue);
58 } 60 }
59 61
60 DEFINE_TRACE_AFTER_DISPATCH(CSSCursorImageValue) { 62 DEFINE_TRACE_AFTER_DISPATCH(CSSCursorImageValue) {
61 visitor->trace(m_imageValue); 63 visitor->trace(m_imageValue);
62 CSSValue::traceAfterDispatch(visitor); 64 CSSValue::traceAfterDispatch(visitor);
63 } 65 }
64 66
67 } // namespace cssvalue
68
65 } // namespace blink 69 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698