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

Side by Side Diff: sky/engine/core/editing/EditingStyle.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/dom/Element.cpp ('k') | sky/engine/core/editing/EditingStyle.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 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void mergeTypingStyle(Document*); 109 void mergeTypingStyle(Document*);
110 110
111 private: 111 private:
112 EditingStyle(); 112 EditingStyle();
113 EditingStyle(ContainerNode*, PropertiesToInclude); 113 EditingStyle(ContainerNode*, PropertiesToInclude);
114 EditingStyle(const Position&, PropertiesToInclude); 114 EditingStyle(const Position&, PropertiesToInclude);
115 explicit EditingStyle(const StylePropertySet*); 115 explicit EditingStyle(const StylePropertySet*);
116 EditingStyle(CSSPropertyID, const String& value); 116 EditingStyle(CSSPropertyID, const String& value);
117 void init(Node*, PropertiesToInclude); 117 void init(Node*, PropertiesToInclude);
118 void removeTextFillAndStrokeColorsIfNeeded(RenderStyle*); 118 void removeTextFillAndStrokeColorsIfNeeded(RenderStyle*);
119 void setProperty(CSSPropertyID, const String& value, bool important = false) ; 119 void setProperty(CSSPropertyID, const String& value);
120 void replaceFontSizeByKeywordIfPossible(RenderStyle*, CSSComputedStyleDeclar ation*); 120 void replaceFontSizeByKeywordIfPossible(RenderStyle*, CSSComputedStyleDeclar ation*);
121 void extractFontSizeDelta(); 121 void extractFontSizeDelta();
122 122
123 enum CSSPropertyOverrideMode { OverrideValues, DoNotOverrideValues }; 123 enum CSSPropertyOverrideMode { OverrideValues, DoNotOverrideValues };
124 void mergeStyle(const StylePropertySet*, CSSPropertyOverrideMode); 124 void mergeStyle(const StylePropertySet*, CSSPropertyOverrideMode);
125 125
126 RefPtr<MutableStylePropertySet> m_mutableStyle; 126 RefPtr<MutableStylePropertySet> m_mutableStyle;
127 FixedPitchFontType m_fixedPitchFontType; 127 FixedPitchFontType m_fixedPitchFontType;
128 float m_fontSizeDelta; 128 float m_fontSizeDelta;
129 129
130 friend class HTMLElementEquivalent; 130 friend class HTMLElementEquivalent;
131 friend class HTMLAttributeEquivalent; 131 friend class HTMLAttributeEquivalent;
132 }; 132 };
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // SKY_ENGINE_CORE_EDITING_EDITINGSTYLE_H_ 136 #endif // SKY_ENGINE_CORE_EDITING_EDITINGSTYLE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/engine/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698