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

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

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class StylePendingImage; 44 class StylePendingImage;
45 45
46 // Holds information about resources, requested by stylesheets. 46 // Holds information about resources, requested by stylesheets.
47 // Lifetime: per-element style resolve. 47 // Lifetime: per-element style resolve.
48 class ElementStyleResources { 48 class ElementStyleResources {
49 STACK_ALLOCATED(); 49 STACK_ALLOCATED();
50 WTF_MAKE_NONCOPYABLE(ElementStyleResources); 50 WTF_MAKE_NONCOPYABLE(ElementStyleResources);
51 public: 51 public:
52 ElementStyleResources(Document&, float deviceScaleFactor); 52 ElementStyleResources(Document&, float deviceScaleFactor);
53 53
54 RawPtr<StyleImage> styleImage(CSSPropertyID, const CSSValue&); 54 StyleImage* styleImage(CSSPropertyID, const CSSValue&);
55 RawPtr<StyleImage> cachedOrPendingFromValue(CSSPropertyID, const CSSImageVal ue&); 55 StyleImage* cachedOrPendingFromValue(CSSPropertyID, const CSSImageValue&);
56 RawPtr<StyleImage> setOrPendingFromValue(CSSPropertyID, const CSSImageSetVal ue&); 56 StyleImage* setOrPendingFromValue(CSSPropertyID, const CSSImageSetValue&);
57 57
58 void loadPendingResources(ComputedStyle*); 58 void loadPendingResources(ComputedStyle*);
59 59
60 void addPendingSVGDocument(FilterOperation*, CSSSVGDocumentValue*); 60 void addPendingSVGDocument(FilterOperation*, CSSSVGDocumentValue*);
61 61
62 private: 62 private:
63 RawPtr<StyleImage> cursorOrPendingFromValue(CSSPropertyID, const CSSCursorIm ageValue&); 63 StyleImage* cursorOrPendingFromValue(CSSPropertyID, const CSSCursorImageValu e&);
64 RawPtr<StyleImage> generatedOrPendingFromValue(CSSPropertyID, const CSSImage GeneratorValue&); 64 StyleImage* generatedOrPendingFromValue(CSSPropertyID, const CSSImageGenerat orValue&);
65 65
66 void loadPendingSVGDocuments(ComputedStyle*); 66 void loadPendingSVGDocuments(ComputedStyle*);
67 void loadPendingImages(ComputedStyle*); 67 void loadPendingImages(ComputedStyle*);
68 68
69 RawPtr<StyleImage> loadPendingImage(StylePendingImage*, CrossOriginAttribute Value = CrossOriginAttributeNotSet); 69 StyleImage* loadPendingImage(StylePendingImage*, CrossOriginAttributeValue = CrossOriginAttributeNotSet);
70 70
71 Member<Document> m_document; 71 Member<Document> m_document;
72 HashSet<CSSPropertyID> m_pendingImageProperties; 72 HashSet<CSSPropertyID> m_pendingImageProperties;
73 HeapHashMap<Member<FilterOperation>, Member<CSSSVGDocumentValue>> m_pendingS VGDocuments; 73 HeapHashMap<Member<FilterOperation>, Member<CSSSVGDocumentValue>> m_pendingS VGDocuments;
74 float m_deviceScaleFactor; 74 float m_deviceScaleFactor;
75 }; 75 };
76 76
77 } // namespace blink 77 } // namespace blink
78 78
79 #endif // ElementStyleResources_h 79 #endif // ElementStyleResources_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698