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

Side by Side Diff: sky/engine/core/css/CSSPropertySourceData.h

Issue 860423004: Remove css !important (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/css/CSSProperty.h ('k') | sky/engine/core/css/CSSPropertySourceData.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) 2010 Google Inc. All rights reserved. 2 * Copyright (c) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 SourceRange(unsigned start, unsigned end); 48 SourceRange(unsigned start, unsigned end);
49 unsigned length() const; 49 unsigned length() const;
50 50
51 unsigned start; 51 unsigned start;
52 unsigned end; 52 unsigned end;
53 }; 53 };
54 54
55 struct CSSPropertySourceData { 55 struct CSSPropertySourceData {
56 ALLOW_ONLY_INLINE_ALLOCATION(); 56 ALLOW_ONLY_INLINE_ALLOCATION();
57 public: 57 public:
58 CSSPropertySourceData(const String& name, const String& value, bool importan t, bool disabled, bool parsedOk, const SourceRange& range); 58 CSSPropertySourceData(const String& name, const String& value, bool disabled , bool parsedOk, const SourceRange& range);
59 CSSPropertySourceData(const CSSPropertySourceData& other); 59 CSSPropertySourceData(const CSSPropertySourceData& other);
60 CSSPropertySourceData(); 60 CSSPropertySourceData();
61 61
62 String toString() const; 62 String toString() const;
63 unsigned hash() const; 63 unsigned hash() const;
64 64
65 String name; 65 String name;
66 String value; 66 String value;
67 bool important;
68 bool disabled; 67 bool disabled;
69 bool parsedOk; 68 bool parsedOk;
70 SourceRange range; 69 SourceRange range;
71 }; 70 };
72 71
73 struct CSSStyleSourceData : public RefCounted<CSSStyleSourceData> { 72 struct CSSStyleSourceData : public RefCounted<CSSStyleSourceData> {
74 static PassRefPtr<CSSStyleSourceData> create() 73 static PassRefPtr<CSSStyleSourceData> create()
75 { 74 {
76 return adoptRef(new CSSStyleSourceData()); 75 return adoptRef(new CSSStyleSourceData());
77 } 76 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Only for CSSMediaRules. 127 // Only for CSSMediaRules.
129 RuleSourceDataList childRules; 128 RuleSourceDataList childRules;
130 }; 129 };
131 130
132 } // namespace blink 131 } // namespace blink
133 132
134 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange); 133 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange);
135 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData); 134 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData);
136 135
137 #endif // SKY_ENGINE_CORE_CSS_CSSPROPERTYSOURCEDATA_H_ 136 #endif // SKY_ENGINE_CORE_CSS_CSSPROPERTYSOURCEDATA_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSProperty.h ('k') | sky/engine/core/css/CSSPropertySourceData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698