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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 PassRefPtrWillBeRawPtr<StyleImage> styleImage(CSSPropertyID, const CSSValue& ); 54 RawPtr<StyleImage> styleImage(CSSPropertyID, const CSSValue&);
55 PassRefPtrWillBeRawPtr<StyleImage> cachedOrPendingFromValue(CSSPropertyID, c onst CSSImageValue&); 55 RawPtr<StyleImage> cachedOrPendingFromValue(CSSPropertyID, const CSSImageVal ue&);
56 PassRefPtrWillBeRawPtr<StyleImage> setOrPendingFromValue(CSSPropertyID, cons t CSSImageSetValue&); 56 RawPtr<StyleImage> setOrPendingFromValue(CSSPropertyID, const CSSImageSetVal ue&);
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 PassRefPtrWillBeRawPtr<StyleImage> cursorOrPendingFromValue(CSSPropertyID, c onst CSSCursorImageValue&); 63 RawPtr<StyleImage> cursorOrPendingFromValue(CSSPropertyID, const CSSCursorIm ageValue&);
64 PassRefPtrWillBeRawPtr<StyleImage> generatedOrPendingFromValue(CSSPropertyID , const CSSImageGeneratorValue&); 64 RawPtr<StyleImage> generatedOrPendingFromValue(CSSPropertyID, const CSSImage GeneratorValue&);
65 65
66 void loadPendingSVGDocuments(ComputedStyle*); 66 void loadPendingSVGDocuments(ComputedStyle*);
67 void loadPendingImages(ComputedStyle*); 67 void loadPendingImages(ComputedStyle*);
68 68
69 PassRefPtrWillBeRawPtr<StyleImage> loadPendingImage(StylePendingImage*, Cros sOriginAttributeValue = CrossOriginAttributeNotSet); 69 RawPtr<StyleImage> loadPendingImage(StylePendingImage*, CrossOriginAttribute Value = CrossOriginAttributeNotSet);
70 70
71 RawPtrWillBeMember<Document> m_document; 71 Member<Document> m_document;
72 HashSet<CSSPropertyID> m_pendingImageProperties; 72 HashSet<CSSPropertyID> m_pendingImageProperties;
73 WillBeHeapHashMap<RawPtrWillBeMember<FilterOperation>, RefPtrWillBeMember<CS SSVGDocumentValue>> m_pendingSVGDocuments; 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