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

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

Issue 13723004: Remove the ENABLE_TEXT_AUTOSIZING compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 EClear clear() const { return static_cast<EClear>(noninherited_flags._clear) ; } 550 EClear clear() const { return static_cast<EClear>(noninherited_flags._clear) ; }
551 ETableLayout tableLayout() const { return static_cast<ETableLayout>(noninher ited_flags._table_layout); } 551 ETableLayout tableLayout() const { return static_cast<ETableLayout>(noninher ited_flags._table_layout); }
552 552
553 const Font& font() const; 553 const Font& font() const;
554 const FontMetrics& fontMetrics() const; 554 const FontMetrics& fontMetrics() const;
555 const FontDescription& fontDescription() const; 555 const FontDescription& fontDescription() const;
556 float specifiedFontSize() const; 556 float specifiedFontSize() const;
557 float computedFontSize() const; 557 float computedFontSize() const;
558 int fontSize() const; 558 int fontSize() const;
559 559
560 #if ENABLE(TEXT_AUTOSIZING)
561 float textAutosizingMultiplier() const { return visual->m_textAutosizingMult iplier; } 560 float textAutosizingMultiplier() const { return visual->m_textAutosizingMult iplier; }
562 #endif
563 561
564 Length textIndent() const { return rareInheritedData->indent; } 562 Length textIndent() const { return rareInheritedData->indent; }
565 #if ENABLE(CSS3_TEXT) 563 #if ENABLE(CSS3_TEXT)
566 TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(r areInheritedData->m_textIndentLine); } 564 TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(r areInheritedData->m_textIndentLine); }
567 #endif 565 #endif
568 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag s._text_align); } 566 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag s._text_align); }
569 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); } 567 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); }
570 ETextDecoration textDecorationsInEffect() const { return static_cast<ETextDe coration>(inherited_flags._text_decorations); } 568 ETextDecoration textDecorationsInEffect() const { return static_cast<ETextDe coration>(inherited_flags._text_decorations); }
571 ETextDecoration textDecoration() const { return static_cast<ETextDecoration> (visual->textDecoration); } 569 ETextDecoration textDecoration() const { return static_cast<ETextDecoration> (visual->textDecoration); }
572 #if ENABLE(CSS3_TEXT) 570 #if ENABLE(CSS3_TEXT)
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 1091
1094 void setUnicodeBidi(EUnicodeBidi b) { noninherited_flags._unicodeBidi = b; } 1092 void setUnicodeBidi(EUnicodeBidi b) { noninherited_flags._unicodeBidi = b; }
1095 1093
1096 void setClear(EClear v) { noninherited_flags._clear = v; } 1094 void setClear(EClear v) { noninherited_flags._clear = v; }
1097 void setTableLayout(ETableLayout v) { noninherited_flags._table_layout = v; } 1095 void setTableLayout(ETableLayout v) { noninherited_flags._table_layout = v; }
1098 1096
1099 bool setFontDescription(const FontDescription&); 1097 bool setFontDescription(const FontDescription&);
1100 // Only used for blending font sizes when animating, for MathML anonymous bl ocks, and for text autosizing. 1098 // Only used for blending font sizes when animating, for MathML anonymous bl ocks, and for text autosizing.
1101 void setFontSize(float); 1099 void setFontSize(float);
1102 1100
1103 #if ENABLE(TEXT_AUTOSIZING)
1104 void setTextAutosizingMultiplier(float v) 1101 void setTextAutosizingMultiplier(float v)
1105 { 1102 {
1106 SET_VAR(visual, m_textAutosizingMultiplier, v); 1103 SET_VAR(visual, m_textAutosizingMultiplier, v);
1107 setFontSize(fontDescription().specifiedSize()); 1104 setFontSize(fontDescription().specifiedSize());
1108 } 1105 }
1109 #endif
1110 1106
1111 void setColor(const Color&); 1107 void setColor(const Color&);
1112 void setTextIndent(Length v) { SET_VAR(rareInheritedData, indent, v); } 1108 void setTextIndent(Length v) { SET_VAR(rareInheritedData, indent, v); }
1113 #if ENABLE(CSS3_TEXT) 1109 #if ENABLE(CSS3_TEXT)
1114 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text IndentLine, v); } 1110 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text IndentLine, v); }
1115 #endif 1111 #endif
1116 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } 1112 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; }
1117 void setTextTransform(ETextTransform v) { inherited_flags._text_transform = v; } 1113 void setTextTransform(ETextTransform v) { inherited_flags._text_transform = v; }
1118 void addToTextDecorationsInEffect(ETextDecoration v) { inherited_flags._text _decorations |= v; } 1114 void addToTextDecorationsInEffect(ETextDecoration v) { inherited_flags._text _decorations |= v; }
1119 void setTextDecorationsInEffect(ETextDecoration v) { inherited_flags._text_d ecorations = v; } 1115 void setTextDecorationsInEffect(ETextDecoration v) { inherited_flags._text_d ecorations = v; }
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) 1855 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation))
1860 return false; 1856 return false;
1861 1857
1862 rareInheritedData.access()->m_textOrientation = textOrientation; 1858 rareInheritedData.access()->m_textOrientation = textOrientation;
1863 return true; 1859 return true;
1864 } 1860 }
1865 1861
1866 } // namespace WebCore 1862 } // namespace WebCore
1867 1863
1868 #endif // RenderStyle_h 1864 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/TextAutosizer.cpp ('k') | Source/WebCore/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698