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

Side by Side Diff: sky/engine/core/editing/EditingStyle.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/editing/EditCommand.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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void addAbsolutePositioningFromElement(const Element&); 136 void addAbsolutePositioningFromElement(const Element&);
137 void forceInline(); 137 void forceInline();
138 int legacyFontSize(Document*) const; 138 int legacyFontSize(Document*) const;
139 139
140 float fontSizeDelta() const { return m_fontSizeDelta; } 140 float fontSizeDelta() const { return m_fontSizeDelta; }
141 bool hasFontSizeDelta() const { return m_fontSizeDelta != NoFontDelta; } 141 bool hasFontSizeDelta() const { return m_fontSizeDelta != NoFontDelta; }
142 142
143 static PassRefPtr<EditingStyle> styleAtSelectionStart(const VisibleSelection &, bool shouldUseBackgroundColorInEffect = false); 143 static PassRefPtr<EditingStyle> styleAtSelectionStart(const VisibleSelection &, bool shouldUseBackgroundColorInEffect = false);
144 static WritingDirection textDirectionForSelection(const VisibleSelection&, E ditingStyle* typingStyle, bool& hasNestedOrMultipleEmbeddings); 144 static WritingDirection textDirectionForSelection(const VisibleSelection&, E ditingStyle* typingStyle, bool& hasNestedOrMultipleEmbeddings);
145 145
146 void trace(Visitor*);
147
148 private: 146 private:
149 EditingStyle(); 147 EditingStyle();
150 EditingStyle(ContainerNode*, PropertiesToInclude); 148 EditingStyle(ContainerNode*, PropertiesToInclude);
151 EditingStyle(const Position&, PropertiesToInclude); 149 EditingStyle(const Position&, PropertiesToInclude);
152 explicit EditingStyle(const StylePropertySet*); 150 explicit EditingStyle(const StylePropertySet*);
153 EditingStyle(CSSPropertyID, const String& value); 151 EditingStyle(CSSPropertyID, const String& value);
154 void init(Node*, PropertiesToInclude); 152 void init(Node*, PropertiesToInclude);
155 void removeTextFillAndStrokeColorsIfNeeded(RenderStyle*); 153 void removeTextFillAndStrokeColorsIfNeeded(RenderStyle*);
156 void setProperty(CSSPropertyID, const String& value, bool important = false) ; 154 void setProperty(CSSPropertyID, const String& value, bool important = false) ;
157 void replaceFontSizeByKeywordIfPossible(RenderStyle*, CSSComputedStyleDeclar ation*); 155 void replaceFontSizeByKeywordIfPossible(RenderStyle*, CSSComputedStyleDeclar ation*);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 String m_applyFontSize; 227 String m_applyFontSize;
230 }; 228 };
231 229
232 // FIXME: Remove these functions or make them non-global to discourage using CSS StyleDeclaration directly. 230 // FIXME: Remove these functions or make them non-global to discourage using CSS StyleDeclaration directly.
233 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID); 231 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID);
234 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID); 232 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID);
235 233
236 } // namespace blink 234 } // namespace blink
237 235
238 #endif // EditingStyle_h 236 #endif // EditingStyle_h
OLDNEW
« no previous file with comments | « sky/engine/core/editing/EditCommand.cpp ('k') | sky/engine/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698