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

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

Issue 342883004: Using Enum in place of bool for better code readability (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comment fixes Created 6 years, 5 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 | « no previous file | 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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details. 13 * Lesser General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Lesser General Public 15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software 16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301 USA 18 * 02110-1301 USA
19 */ 19 */
20 20
21 #ifndef CSSComputedStyleDeclaration_h 21 #ifndef CSSComputedStyleDeclaration_h
22 #define CSSComputedStyleDeclaration_h 22 #define CSSComputedStyleDeclaration_h
23 23
24 #include "core/css/CSSStyleDeclaration.h" 24 #include "core/css/CSSStyleDeclaration.h"
25 #include "core/rendering/style/RenderStyleConstants.h" 25 #include "core/rendering/style/RenderStyleConstants.h"
26 #include "platform/fonts/FixedPitchFontType.h"
26 #include "wtf/HashMap.h" 27 #include "wtf/HashMap.h"
27 #include "wtf/RefPtr.h" 28 #include "wtf/RefPtr.h"
28 #include "wtf/text/AtomicString.h" 29 #include "wtf/text/AtomicString.h"
29 #include "wtf/text/AtomicStringHash.h" 30 #include "wtf/text/AtomicStringHash.h"
30 #include "wtf/text/WTFString.h" 31 #include "wtf/text/WTFString.h"
31 32
32 namespace WebCore { 33 namespace WebCore {
33 34
34 class CSSPrimitiveValue; 35 class CSSPrimitiveValue;
35 class CSSValueList; 36 class CSSValueList;
(...skipping 24 matching lines...) Expand all
60 virtual void deref() OVERRIDE; 61 virtual void deref() OVERRIDE;
61 #endif 62 #endif
62 63
63 String getPropertyValue(CSSPropertyID) const; 64 String getPropertyValue(CSSPropertyID) const;
64 bool getPropertyPriority(CSSPropertyID) const; 65 bool getPropertyPriority(CSSPropertyID) const;
65 66
66 virtual PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyProperties() con st OVERRIDE; 67 virtual PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyProperties() con st OVERRIDE;
67 68
68 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateL ayout = UpdateLayout) const; 69 PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateL ayout = UpdateLayout) const;
69 PassRefPtrWillBeRawPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() cons t; 70 PassRefPtrWillBeRawPtr<CSSValue> getFontSizeCSSValuePreferringKeyword() cons t;
70 bool useFixedFontDefaultSize() const; 71 FixedPitchFontType fixedPitchFontType() const;
71 PassRefPtrWillBeRawPtr<CSSValue> getSVGPropertyCSSValue(CSSPropertyID, EUpda teLayout) const; 72 PassRefPtrWillBeRawPtr<CSSValue> getSVGPropertyCSSValue(CSSPropertyID, EUpda teLayout) const;
72 73
73 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve ctor<CSSPropertyID>&) const; 74 PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyPropertiesInSet(const Ve ctor<CSSPropertyID>&) const;
74 75
75 virtual void trace(Visitor*) OVERRIDE; 76 virtual void trace(Visitor*) OVERRIDE;
76 77
77 private: 78 private:
78 CSSComputedStyleDeclaration(PassRefPtrWillBeRawPtr<Node>, bool allowVisitedS tyle, const String&); 79 CSSComputedStyleDeclaration(PassRefPtrWillBeRawPtr<Node>, bool allowVisitedS tyle, const String&);
79 80
80 // The styled node is either the node passed into getComputedStyle, or the 81 // The styled node is either the node passed into getComputedStyle, or the
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 PseudoId m_pseudoElementSpecifier; 121 PseudoId m_pseudoElementSpecifier;
121 bool m_allowVisitedStyle; 122 bool m_allowVisitedStyle;
122 #if !ENABLE(OILPAN) 123 #if !ENABLE(OILPAN)
123 unsigned m_refCount; 124 unsigned m_refCount;
124 #endif 125 #endif
125 }; 126 };
126 127
127 } // namespace WebCore 128 } // namespace WebCore
128 129
129 #endif // CSSComputedStyleDeclaration_h 130 #endif // CSSComputedStyleDeclaration_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698