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

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

Issue 1238943004: CSSValue Immediates: Replace CSSValue usage with const references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
Patch Set: Rebase Created 5 years, 4 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 | « Source/core/css/CSSCursorImageValue.h ('k') | Source/core/css/CSSProperty.h » ('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 * 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 *
(...skipping 26 matching lines...) Expand all
37 #include "wtf/text/WTFString.h" 37 #include "wtf/text/WTFString.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 static inline SVGCursorElement* resourceReferencedByCursorElement(const String& url, TreeScope& treeScope) 41 static inline SVGCursorElement* resourceReferencedByCursorElement(const String& url, TreeScope& treeScope)
42 { 42 {
43 Element* element = SVGURIReference::targetElementFromIRIString(url, treeScop e); 43 Element* element = SVGURIReference::targetElementFromIRIString(url, treeScop e);
44 return isSVGCursorElement(element) ? toSVGCursorElement(element) : 0; 44 return isSVGCursorElement(element) ? toSVGCursorElement(element) : 0;
45 } 45 }
46 46
47 CSSCursorImageValue::CSSCursorImageValue(CSSValue imageValue, bool hotSpotSpecif ied, const IntPoint& hotSpot) 47 CSSCursorImageValue::CSSCursorImageValue(const CSSValue& imageValue, bool hotSpo tSpecified, const IntPoint& hotSpot)
48 : CSSValueObject(CursorImageClass) 48 : CSSValueObject(CursorImageClass)
49 , m_imageValue(imageValue) 49 , m_imageValue(imageValue)
50 , m_hotSpotSpecified(hotSpotSpecified) 50 , m_hotSpotSpecified(hotSpotSpecified)
51 , m_hotSpot(hotSpot) 51 , m_hotSpot(hotSpot)
52 , m_accessedImage(false) 52 , m_accessedImage(false)
53 { 53 {
54 } 54 }
55 55
56 CSSCursorImageValue::~CSSCursorImageValue() 56 CSSCursorImageValue::~CSSCursorImageValue()
57 { 57 {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 && m_imageValue.equals(other.m_imageValue); 200 && m_imageValue.equals(other.m_imageValue);
201 } 201 }
202 202
203 DEFINE_TRACE_AFTER_DISPATCH(CSSCursorImageValue) 203 DEFINE_TRACE_AFTER_DISPATCH(CSSCursorImageValue)
204 { 204 {
205 visitor->trace(m_imageValue); 205 visitor->trace(m_imageValue);
206 CSSValueObject::traceAfterDispatch(visitor); 206 CSSValueObject::traceAfterDispatch(visitor);
207 } 207 }
208 208
209 } // namespace blink 209 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/CSSCursorImageValue.h ('k') | Source/core/css/CSSProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698