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

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

Issue 1858753003: Remove RawPtr from core/css (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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
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 Library General Public 6 * modify it under the terms of the GNU Library 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 uint16_t m_isSetFromShorthand : 1; 51 uint16_t m_isSetFromShorthand : 1;
52 uint16_t m_indexInShorthandsVector : 2; // If this property was set as part of an ambiguous shorthand, gives the index in the shorthands vector. 52 uint16_t m_indexInShorthandsVector : 2; // If this property was set as part of an ambiguous shorthand, gives the index in the shorthands vector.
53 uint16_t m_important : 1; 53 uint16_t m_important : 1;
54 uint16_t m_implicit : 1; // Whether or not the property was set implicitly a s the result of a shorthand. 54 uint16_t m_implicit : 1; // Whether or not the property was set implicitly a s the result of a shorthand.
55 uint16_t m_inherited : 1; 55 uint16_t m_inherited : 1;
56 }; 56 };
57 57
58 class CSSProperty { 58 class CSSProperty {
59 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 59 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
60 public: 60 public:
61 CSSProperty(CSSPropertyID propertyID, RawPtr<CSSValue> value, bool important = false, bool isSetFromShorthand = false, int indexInShorthandsVector = 0, bool implicit = false) 61 CSSProperty(CSSPropertyID propertyID, CSSValue* value, bool important = fals e, bool isSetFromShorthand = false, int indexInShorthandsVector = 0, bool implic it = false)
62 : m_metadata(propertyID, isSetFromShorthand, indexInShorthandsVector, im portant, implicit, CSSPropertyMetadata::isInheritedProperty(propertyID)) 62 : m_metadata(propertyID, isSetFromShorthand, indexInShorthandsVector, im portant, implicit, CSSPropertyMetadata::isInheritedProperty(propertyID))
63 , m_value(value) 63 , m_value(value)
64 { 64 {
65 } 65 }
66 66
67 // FIXME: Remove this. 67 // FIXME: Remove this.
68 CSSProperty(StylePropertyMetadata metadata, CSSValue* value) 68 CSSProperty(StylePropertyMetadata metadata, CSSValue* value)
69 : m_metadata(metadata) 69 : m_metadata(metadata)
70 , m_value(value) 70 , m_value(value)
71 { 71 {
(...skipping 18 matching lines...) Expand all
90 private: 90 private:
91 StylePropertyMetadata m_metadata; 91 StylePropertyMetadata m_metadata;
92 Member<CSSValue> m_value; 92 Member<CSSValue> m_value;
93 }; 93 };
94 94
95 } // namespace blink 95 } // namespace blink
96 96
97 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSProperty); 97 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSProperty);
98 98
99 #endif // CSSProperty_h 99 #endif // CSSProperty_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSPropertySourceData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698