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

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

Issue 2567963002: Change ComputedStyle::setWritingMode() to return void instead of bool (Closed)
Patch Set: Created 4 years 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 | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 176
177 void setZoom(float f) { 177 void setZoom(float f) {
178 if (m_style->setZoom(f)) 178 if (m_style->setZoom(f))
179 m_fontBuilder.didChangeEffectiveZoom(); 179 m_fontBuilder.didChangeEffectiveZoom();
180 } 180 }
181 void setEffectiveZoom(float f) { 181 void setEffectiveZoom(float f) {
182 if (m_style->setEffectiveZoom(f)) 182 if (m_style->setEffectiveZoom(f))
183 m_fontBuilder.didChangeEffectiveZoom(); 183 m_fontBuilder.didChangeEffectiveZoom();
184 } 184 }
185 void setWritingMode(WritingMode writingMode) { 185 void setWritingMode(WritingMode newWritingMode) {
186 if (m_style->setWritingMode(writingMode)) 186 const WritingMode oldWritingMode = m_style->getWritingMode();
187 if (oldWritingMode != newWritingMode) {
sashab 2016/12/12 02:26:17 For no reason whatsoever, changed this to be an ea
188 m_style->setWritingMode(newWritingMode);
187 m_fontBuilder.didChangeWritingMode(); 189 m_fontBuilder.didChangeWritingMode();
190 }
188 } 191 }
189 void setTextOrientation(TextOrientation textOrientation) { 192 void setTextOrientation(TextOrientation textOrientation) {
190 if (m_style->setTextOrientation(textOrientation)) 193 if (m_style->setTextOrientation(textOrientation))
191 m_fontBuilder.didChangeTextOrientation(); 194 m_fontBuilder.didChangeTextOrientation();
192 } 195 }
193 196
194 void setHasDirAutoAttribute(bool value) { m_hasDirAutoAttribute = value; } 197 void setHasDirAutoAttribute(bool value) { m_hasDirAutoAttribute = value; }
195 bool hasDirAutoAttribute() const { return m_hasDirAutoAttribute; } 198 bool hasDirAutoAttribute() const { return m_hasDirAutoAttribute; }
196 199
197 void setCustomPropertySetForApplyAtRule(const String&, StylePropertySet*); 200 void setCustomPropertySetForApplyAtRule(const String&, StylePropertySet*);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 236
234 mutable HeapHashMap< 237 mutable HeapHashMap<
235 Member<const CSSPendingSubstitutionValue>, 238 Member<const CSSPendingSubstitutionValue>,
236 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>> 239 Member<HeapHashMap<CSSPropertyID, Member<const CSSValue>>>>
237 m_parsedPropertiesForPendingSubstitutionCache; 240 m_parsedPropertiesForPendingSubstitutionCache;
238 }; 241 };
239 242
240 } // namespace blink 243 } // namespace blink
241 244
242 #endif // StyleResolverState_h 245 #endif // StyleResolverState_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698