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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
5 * Copyright (C) 2013 Intel Corporation. All rights reserved. 5 * Copyright (C) 2013 Intel Corporation. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 , m_isInherited(value->isInheritedValue()) { } 75 , m_isInherited(value->isInheritedValue()) { }
76 76
77 CSSPropertyID id() const { return m_id; } 77 CSSPropertyID id() const { return m_id; }
78 const CSSValue* value() const { return m_value; } 78 const CSSValue* value() const { return m_value; }
79 bool isImportant() const { return m_isImportant; } 79 bool isImportant() const { return m_isImportant; }
80 bool isImplicit() const { return m_isImplicit; } 80 bool isImplicit() const { return m_isImplicit; }
81 bool isInherited() const { return m_isInherited; } 81 bool isInherited() const { return m_isInherited; }
82 bool isValid() const { return m_value; } 82 bool isValid() const { return m_value; }
83 83
84 private: 84 private:
85 RawPtrWillBeMember<const CSSValue> m_value; 85 Member<const CSSValue> m_value;
86 CSSPropertyID m_id; 86 CSSPropertyID m_id;
87 bool m_isImportant; 87 bool m_isImportant;
88 bool m_isImplicit; 88 bool m_isImplicit;
89 bool m_isInherited; 89 bool m_isInherited;
90 }; 90 };
91 91
92 String getCustomPropertyText(const PropertyValueForSerializer&, bool isNotFi rstDecl) const; 92 String getCustomPropertyText(const PropertyValueForSerializer&, bool isNotFi rstDecl) const;
93 93
94 class StylePropertySetForSerializer final { 94 class StylePropertySetForSerializer final {
95 DISALLOW_NEW(); 95 DISALLOW_NEW();
96 public: 96 public:
97 explicit StylePropertySetForSerializer(const StylePropertySet&); 97 explicit StylePropertySetForSerializer(const StylePropertySet&);
98 98
99 unsigned propertyCount() const; 99 unsigned propertyCount() const;
100 PropertyValueForSerializer propertyAt(unsigned index) const; 100 PropertyValueForSerializer propertyAt(unsigned index) const;
101 bool shouldProcessPropertyAt(unsigned index) const; 101 bool shouldProcessPropertyAt(unsigned index) const;
102 int findPropertyIndex(CSSPropertyID) const; 102 int findPropertyIndex(CSSPropertyID) const;
103 const CSSValue* getPropertyCSSValue(CSSPropertyID) const; 103 const CSSValue* getPropertyCSSValue(CSSPropertyID) const;
104 String getPropertyValue(CSSPropertyID) const; 104 String getPropertyValue(CSSPropertyID) const;
105 bool isPropertyImplicit(CSSPropertyID) const; 105 bool isPropertyImplicit(CSSPropertyID) const;
106 bool propertyIsImportant(CSSPropertyID) const; 106 bool propertyIsImportant(CSSPropertyID) const;
107 107
108 DECLARE_TRACE(); 108 DECLARE_TRACE();
109 109
110 private: 110 private:
111 bool hasExpandedAllProperty() const { return hasAllProperty() && m_needT oExpandAll; } 111 bool hasExpandedAllProperty() const { return hasAllProperty() && m_needT oExpandAll; }
112 bool hasAllProperty() const { return m_allIndex != -1; } 112 bool hasAllProperty() const { return m_allIndex != -1; }
113 113
114 RawPtrWillBeMember<const StylePropertySet> m_propertySet; 114 Member<const StylePropertySet> m_propertySet;
115 int m_allIndex; 115 int m_allIndex;
116 BitArray<numCSSProperties> m_longhandPropertyUsed; 116 BitArray<numCSSProperties> m_longhandPropertyUsed;
117 bool m_needToExpandAll; 117 bool m_needToExpandAll;
118 }; 118 };
119 119
120 const StylePropertySetForSerializer m_propertySet; 120 const StylePropertySetForSerializer m_propertySet;
121 }; 121 };
122 122
123 } // namespace blink 123 } // namespace blink
124 124
125 #endif // StylePropertySerializer_h 125 #endif // StylePropertySerializer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698