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

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

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 years, 11 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. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
4 * All rights reserved. 4 * 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 return m_elementContext.distributedToInsertionPoint(); 73 return m_elementContext.distributedToInsertionPoint();
74 } 74 }
75 75
76 const ElementResolveContext& elementContext() const { 76 const ElementResolveContext& elementContext() const {
77 return m_elementContext; 77 return m_elementContext;
78 } 78 }
79 79
80 void setStyle(PassRefPtr<ComputedStyle>); 80 void setStyle(PassRefPtr<ComputedStyle>);
81 const ComputedStyle* style() const { return m_style.get(); } 81 const ComputedStyle* style() const { return m_style.get(); }
82 ComputedStyle* style() { return m_style.get(); } 82 ComputedStyle* style() { return m_style.get(); }
83 PassRefPtr<ComputedStyle> takeStyle() { return m_style.release(); } 83 PassRefPtr<ComputedStyle> takeStyle() { return std::move(m_style); }
84 84
85 ComputedStyle& mutableStyleRef() const { return *m_style; } 85 ComputedStyle& mutableStyleRef() const { return *m_style; }
86 const ComputedStyle& styleRef() const { return mutableStyleRef(); } 86 const ComputedStyle& styleRef() const { return mutableStyleRef(); }
87 87
88 const CSSToLengthConversionData& cssToLengthConversionData() const { 88 const CSSToLengthConversionData& cssToLengthConversionData() const {
89 return m_cssToLengthConversionData; 89 return m_cssToLengthConversionData;
90 } 90 }
91 CSSToLengthConversionData fontSizeConversionData() const; 91 CSSToLengthConversionData fontSizeConversionData() const;
92 92
93 void setConversionFontSizes( 93 void setConversionFontSizes(
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 mutable HeapHashMap< 237 mutable HeapHashMap<
238 Member<const CSSPendingSubstitutionValue>, 238 Member<const CSSPendingSubstitutionValue>,
239 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>> 239 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>>
240 m_parsedPropertiesForPendingSubstitutionCache; 240 m_parsedPropertiesForPendingSubstitutionCache;
241 }; 241 };
242 242
243 } // namespace blink 243 } // namespace blink
244 244
245 #endif // StyleResolverState_h 245 #endif // StyleResolverState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698