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

Side by Side Diff: Source/core/css/CSSComputedStyleDeclaration.h

Issue 57643004: Pass RenderStyle / RenderObject by reference in more places (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years, 1 month 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) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights 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 Lesser General Public 6 * modify it under the terms of the GNU Lesser 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const HashMap<AtomicString, String>* variableMap() const; 121 const HashMap<AtomicString, String>* variableMap() const;
122 virtual unsigned variableCount() const OVERRIDE; 122 virtual unsigned variableCount() const OVERRIDE;
123 virtual String variableValue(const AtomicString& name) const OVERRIDE; 123 virtual String variableValue(const AtomicString& name) const OVERRIDE;
124 virtual bool setVariableValue(const AtomicString& name, const String& value, ExceptionState&) OVERRIDE; 124 virtual bool setVariableValue(const AtomicString& name, const String& value, ExceptionState&) OVERRIDE;
125 virtual bool removeVariable(const AtomicString& name) OVERRIDE; 125 virtual bool removeVariable(const AtomicString& name) OVERRIDE;
126 virtual bool clearVariables(ExceptionState&) OVERRIDE; 126 virtual bool clearVariables(ExceptionState&) OVERRIDE;
127 virtual PassRefPtr<CSSVariablesIterator> variablesIterator() const OVERRIDE { return ComputedCSSVariablesIterator::create(variableMap()); } 127 virtual PassRefPtr<CSSVariablesIterator> variablesIterator() const OVERRIDE { return ComputedCSSVariablesIterator::create(variableMap()); }
128 128
129 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const OVERRI DE; 129 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const OVERRI DE;
130 130
131 PassRefPtr<CSSValue> valueForShadowData(const ShadowData&, const RenderStyle *, bool useSpread) const; 131 PassRefPtr<CSSValue> valueForShadowData(const ShadowData&, const RenderStyle &, bool useSpread) const;
132 PassRefPtr<CSSValue> valueForShadowList(const ShadowList*, const RenderStyle *, bool useSpread) const; 132 PassRefPtr<CSSValue> valueForShadowList(const ShadowList*, const RenderStyle &, bool useSpread) const;
133 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(const RenderStyle*, c onst Color&) const; 133 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(const RenderStyle&, c onst Color&) const;
134 PassRefPtr<SVGPaint> adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint>, Ren derStyle*) const; 134 PassRefPtr<SVGPaint> adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint>, Ren derStyle&) const;
135 135
136 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle*) const; 136 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle&) const;
137 137
138 PassRefPtr<CSSValueList> valuesForShorthandProperty(const StylePropertyShort hand&) const; 138 PassRefPtr<CSSValueList> valuesForShorthandProperty(const StylePropertyShort hand&) const;
139 PassRefPtr<CSSValueList> valuesForSidesShorthand(const StylePropertyShorthan d&) const; 139 PassRefPtr<CSSValueList> valuesForSidesShorthand(const StylePropertyShorthan d&) const;
140 PassRefPtr<CSSValueList> valuesForBackgroundShorthand() const; 140 PassRefPtr<CSSValueList> valuesForBackgroundShorthand() const;
141 PassRefPtr<CSSValueList> valuesForGridShorthand(const StylePropertyShorthand &) const; 141 PassRefPtr<CSSValueList> valuesForGridShorthand(const StylePropertyShorthand &) const;
142 142
143 RefPtr<Node> m_node; 143 RefPtr<Node> m_node;
144 PseudoId m_pseudoElementSpecifier; 144 PseudoId m_pseudoElementSpecifier;
145 bool m_allowVisitedStyle; 145 bool m_allowVisitedStyle;
146 unsigned m_refCount; 146 unsigned m_refCount;
147 }; 147 };
148 148
149 } // namespace WebCore 149 } // namespace WebCore
150 150
151 #endif // CSSComputedStyleDeclaration_h 151 #endif // CSSComputedStyleDeclaration_h
OLDNEW
« no previous file with comments | « Source/core/css/BasicShapeFunctions.cpp ('k') | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698