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

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

Issue 1501313002: Expose custom property values to getComputedStyle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void ref() override; 56 void ref() override;
57 void deref() override; 57 void deref() override;
58 #endif 58 #endif
59 59
60 String getPropertyValue(CSSPropertyID) const; 60 String getPropertyValue(CSSPropertyID) const;
61 bool getPropertyPriority(CSSPropertyID) const; 61 bool getPropertyPriority(CSSPropertyID) const;
62 62
63 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyProperties() const; 63 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyProperties() const;
64 64
65 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID) const; 65 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID) const;
66 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(AtomicString customProp ertyName) const;
67
66 PassRefPtrWillBeRawPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() cons t; 68 PassRefPtrWillBeRawPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() cons t;
67 bool isMonospaceFont() const; 69 bool isMonospaceFont() const;
68 70
69 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve ctor<CSSPropertyID>&) const; 71 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve ctor<CSSPropertyID>&) const;
70 72
71 DECLARE_VIRTUAL_TRACE(); 73 DECLARE_VIRTUAL_TRACE();
72 74
73 private: 75 private:
74 CSSComputedStyleDeclaration(PassRefPtrWillBeRawPtr<Node>, bool allowVisitedS tyle, const String&); 76 CSSComputedStyleDeclaration(PassRefPtrWillBeRawPtr<Node>, bool allowVisitedS tyle, const String&);
75 77
(...skipping 29 matching lines...) Expand all
105 PseudoId m_pseudoElementSpecifier; 107 PseudoId m_pseudoElementSpecifier;
106 bool m_allowVisitedStyle; 108 bool m_allowVisitedStyle;
107 #if !ENABLE(OILPAN) 109 #if !ENABLE(OILPAN)
108 unsigned m_refCount; 110 unsigned m_refCount;
109 #endif 111 #endif
110 }; 112 };
111 113
112 } // namespace blink 114 } // namespace blink
113 115
114 #endif // CSSComputedStyleDeclaration_h 116 #endif // CSSComputedStyleDeclaration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698