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

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

Issue 14324009: Add support for disabling CSS Properties at runtime (Closed) Base URL: http://src.chromium.org/blink/trunk/Source/
Patch Set: Runtime guard more uses of CSSPropertyID, per Elliot's request. Created 7 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 virtual PassRefPtr<StylePropertySet> copy() const; 62 virtual PassRefPtr<StylePropertySet> copy() const;
63 63
64 PassRefPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateLayout) const ; 64 PassRefPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateLayout) const ;
65 PassRefPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() const; 65 PassRefPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() const;
66 bool useFixedFontDefaultSize() const; 66 bool useFixedFontDefaultSize() const;
67 #if ENABLE(SVG) 67 #if ENABLE(SVG)
68 PassRefPtr<CSSValue> getSVGPropertyCSSValue(CSSPropertyID, EUpdateLayout) co nst; 68 PassRefPtr<CSSValue> getSVGPropertyCSSValue(CSSPropertyID, EUpdateLayout) co nst;
69 #endif 69 #endif
70 70
71 PassRefPtr<StylePropertySet> copyPropertiesInSet(const CSSPropertyID* set, u nsigned length) const; 71 PassRefPtr<StylePropertySet> copyPropertiesInSet(const Vector<CSSPropertyID> &) const;
72 72
73 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 73 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
74 74
75 private: 75 private:
76 CSSComputedStyleDeclaration(PassRefPtr<Node>, bool allowVisitedStyle, const String&); 76 CSSComputedStyleDeclaration(PassRefPtr<Node>, bool allowVisitedStyle, const String&);
77 77
78 // The styled node is either the node passed into getComputedStyle, or the 78 // The styled node is either the node passed into getComputedStyle, or the
79 // PseudoElement for :before and :after if they exist. 79 // PseudoElement for :before and :after if they exist.
80 // FIXME: This should be styledElement since in JS getComputedStyle only wor ks 80 // FIXME: This should be styledElement since in JS getComputedStyle only wor ks
81 // on Elements, but right now editing creates these for text nodes. We shoul d fix 81 // on Elements, but right now editing creates these for text nodes. We shoul d fix
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 RefPtr<Node> m_node; 117 RefPtr<Node> m_node;
118 PseudoId m_pseudoElementSpecifier; 118 PseudoId m_pseudoElementSpecifier;
119 bool m_allowVisitedStyle; 119 bool m_allowVisitedStyle;
120 unsigned m_refCount; 120 unsigned m_refCount;
121 }; 121 };
122 122
123 } // namespace WebCore 123 } // namespace WebCore
124 124
125 #endif // CSSComputedStyleDeclaration_h 125 #endif // CSSComputedStyleDeclaration_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698