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

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

Issue 2352193004: Document* -> Document& for loadSubimages and friends. (Closed)
Patch Set: Added constness Created 4 years, 2 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 * Copyright (C) 2008 Apple Inc. All right reserved. 3 * Copyright (C) 2008 Apple Inc. All right 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 IntPoint hotSpot() const { return m_hotSpot; } 45 IntPoint hotSpot() const { return m_hotSpot; }
46 46
47 String customCSSText() const; 47 String customCSSText() const;
48 48
49 SVGCursorElement* getSVGCursorElement(Element*) const; 49 SVGCursorElement* getSVGCursorElement(Element*) const;
50 50
51 void clearImageResource() const; 51 void clearImageResource() const;
52 bool isCachePending(float deviceScaleFactor) const; 52 bool isCachePending(float deviceScaleFactor) const;
53 String cachedImageURL() const; 53 String cachedImageURL() const;
54 StyleImage* cachedImage(float deviceScaleFactor) const; 54 StyleImage* cachedImage(float deviceScaleFactor) const;
55 StyleImage* cacheImage(Document*, float deviceScaleFactor); 55 StyleImage* cacheImage(const Document&, float deviceScaleFactor);
56 56
57 bool equals(const CSSCursorImageValue&) const; 57 bool equals(const CSSCursorImageValue&) const;
58 58
59 DECLARE_TRACE_AFTER_DISPATCH(); 59 DECLARE_TRACE_AFTER_DISPATCH();
60 60
61 private: 61 private:
62 CSSCursorImageValue(CSSValue* imageValue, bool hotSpotSpecified, const IntPo int& hotSpot); 62 CSSCursorImageValue(CSSValue* imageValue, bool hotSpotSpecified, const IntPo int& hotSpot);
63 63
64 bool hasFragmentInURL() const; 64 bool hasFragmentInURL() const;
65 65
66 Member<CSSValue> m_imageValue; 66 Member<CSSValue> m_imageValue;
67 67
68 bool m_hotSpotSpecified; 68 bool m_hotSpotSpecified;
69 IntPoint m_hotSpot; 69 IntPoint m_hotSpot;
70 mutable bool m_isCachePending; 70 mutable bool m_isCachePending;
71 mutable Member<StyleImage> m_cachedImage; 71 mutable Member<StyleImage> m_cachedImage;
72 }; 72 };
73 73
74 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCursorImageValue, isCursorImageValue()); 74 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCursorImageValue, isCursorImageValue());
75 75
76 } // namespace blink 76 } // namespace blink
77 77
78 #endif // CSSCursorImageValue_h 78 #endif // CSSCursorImageValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698