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

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

Issue 1858553002: Refactor StyleVariableData to fallback on root map for performance reasons. (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) 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void deref() override; 58 void deref() override;
59 #endif 59 #endif
60 60
61 String getPropertyValue(CSSPropertyID) const; 61 String getPropertyValue(CSSPropertyID) const;
62 bool getPropertyPriority(CSSPropertyID) const; 62 bool getPropertyPriority(CSSPropertyID) const;
63 63
64 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyProperties() const; 64 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyProperties() const;
65 65
66 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID) const; 66 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID) const;
67 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(AtomicString customProp ertyName) const; 67 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(AtomicString customProp ertyName) const;
68 const HashMap<AtomicString, RefPtr<CSSVariableData>>* getVariables() const; 68 PassOwnPtr<HashMap<AtomicString, RefPtr<CSSVariableData>>> getVariables() co nst;
69 69
70 PassRefPtrWillBeRawPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() cons t; 70 PassRefPtrWillBeRawPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() cons t;
71 bool isMonospaceFont() const; 71 bool isMonospaceFont() const;
72 72
73 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve ctor<CSSPropertyID>&) const; 73 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve ctor<CSSPropertyID>&) const;
74 74
75 DECLARE_VIRTUAL_TRACE(); 75 DECLARE_VIRTUAL_TRACE();
76 76
77 private: 77 private:
78 CSSComputedStyleDeclaration(PassRefPtrWillBeRawPtr<Node>, bool allowVisitedS tyle, const String&); 78 CSSComputedStyleDeclaration(PassRefPtrWillBeRawPtr<Node>, bool allowVisitedS tyle, const String&);
(...skipping 30 matching lines...) Expand all
109 PseudoId m_pseudoElementSpecifier; 109 PseudoId m_pseudoElementSpecifier;
110 bool m_allowVisitedStyle; 110 bool m_allowVisitedStyle;
111 #if !ENABLE(OILPAN) 111 #if !ENABLE(OILPAN)
112 unsigned m_refCount; 112 unsigned m_refCount;
113 #endif 113 #endif
114 }; 114 };
115 115
116 } // namespace blink 116 } // namespace blink
117 117
118 #endif // CSSComputedStyleDeclaration_h 118 #endif // CSSComputedStyleDeclaration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698