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

Side by Side Diff: Source/core/rendering/style/RenderStyle.h

Issue 721773002: Build animated font properties through FontBuilder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove body tags. 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 1101
1102 void setHasAutoClip() { SET_VAR(visual, hasAutoClip, true); SET_VAR(visual, clip, RenderStyle::initialClip()); } 1102 void setHasAutoClip() { SET_VAR(visual, hasAutoClip, true); SET_VAR(visual, clip, RenderStyle::initialClip()); }
1103 void setClip(const LengthBox& box) { SET_VAR(visual, hasAutoClip, false); SE T_VAR(visual, clip, box); } 1103 void setClip(const LengthBox& box) { SET_VAR(visual, hasAutoClip, false); SE T_VAR(visual, clip, box); }
1104 1104
1105 void setUnicodeBidi(EUnicodeBidi b) { noninherited_flags.unicodeBidi = b; } 1105 void setUnicodeBidi(EUnicodeBidi b) { noninherited_flags.unicodeBidi = b; }
1106 1106
1107 void setClear(EClear v) { noninherited_flags.clear = v; } 1107 void setClear(EClear v) { noninherited_flags.clear = v; }
1108 void setTableLayout(ETableLayout v) { noninherited_flags.tableLayout = v; } 1108 void setTableLayout(ETableLayout v) { noninherited_flags.tableLayout = v; }
1109 1109
1110 bool setFontDescription(const FontDescription&); 1110 bool setFontDescription(const FontDescription&);
1111 // Only used for blending font sizes when animating and for text autosizing.
1112 void setFontSize(float);
1113 void setFontStretch(FontStretch);
1114 void setFontWeight(FontWeight);
1115 1111
1116 void setTextAutosizingMultiplier(float v) 1112 void setTextAutosizingMultiplier(float);
1117 {
1118 SET_VAR(inherited, textAutosizingMultiplier, v);
1119 setFontSize(fontDescription().specifiedSize());
1120 }
1121 1113
1122 void setColor(const Color&); 1114 void setColor(const Color&);
1123 void setTextIndent(const Length& v) { SET_VAR(rareInheritedData, indent, v); } 1115 void setTextIndent(const Length& v) { SET_VAR(rareInheritedData, indent, v); }
1124 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text IndentLine, v); } 1116 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text IndentLine, v); }
1125 void setTextIndentType(TextIndentType v) { SET_VAR(rareInheritedData, m_text IndentType, v); } 1117 void setTextIndentType(TextIndentType v) { SET_VAR(rareInheritedData, m_text IndentType, v); }
1126 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } 1118 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; }
1127 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl ignLast, v); } 1119 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl ignLast, v); }
1128 void setTextJustify(TextJustify v) { SET_VAR(rareInheritedData, m_textJustif y, v); } 1120 void setTextJustify(TextJustify v) { SET_VAR(rareInheritedData, m_textJustif y, v); }
1129 void setTextTransform(ETextTransform v) { inherited_flags._text_transform = v; } 1121 void setTextTransform(ETextTransform v) { inherited_flags._text_transform = v; }
1130 void applyTextDecorations(); 1122 void applyTextDecorations();
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 inline bool RenderStyle::hasPseudoElementStyle() const 1903 inline bool RenderStyle::hasPseudoElementStyle() const
1912 { 1904 {
1913 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1905 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1914 } 1906 }
1915 1907
1916 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1908 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1917 1909
1918 } // namespace blink 1910 } // namespace blink
1919 1911
1920 #endif // RenderStyle_h 1912 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/css/resolver/AnimatedStyleBuilder.cpp ('k') | Source/core/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698