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

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

Issue 22336008: Use the runtime flag and remove '-webkit-' prefix for CSS3 text-indent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch Created 7 years, 4 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
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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 const Font& font() const; 524 const Font& font() const;
525 const FontMetrics& fontMetrics() const; 525 const FontMetrics& fontMetrics() const;
526 const FontDescription& fontDescription() const; 526 const FontDescription& fontDescription() const;
527 float specifiedFontSize() const; 527 float specifiedFontSize() const;
528 float computedFontSize() const; 528 float computedFontSize() const;
529 int fontSize() const; 529 int fontSize() const;
530 530
531 float textAutosizingMultiplier() const { return visual->m_textAutosizingMult iplier; } 531 float textAutosizingMultiplier() const { return visual->m_textAutosizingMult iplier; }
532 532
533 Length textIndent() const { return rareInheritedData->indent; } 533 Length textIndent() const { return rareInheritedData->indent; }
534 #if ENABLE(CSS3_TEXT)
535 TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(r areInheritedData->m_textIndentLine); } 534 TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(r areInheritedData->m_textIndentLine); }
536 #endif
537 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag s._text_align); } 535 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag s._text_align); }
538 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare InheritedData->m_textAlignLast); } 536 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare InheritedData->m_textAlignLast); }
539 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); } 537 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); }
540 TextDecoration textDecorationsInEffect() const { return static_cast<TextDeco ration>(inherited_flags._text_decorations); } 538 TextDecoration textDecorationsInEffect() const { return static_cast<TextDeco ration>(inherited_flags._text_decorations); }
541 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v isual->textDecoration); } 539 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v isual->textDecoration); }
542 #if ENABLE(CSS3_TEXT) 540 #if ENABLE(CSS3_TEXT)
543 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); } 541 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); }
544 #endif // CSS3_TEXT 542 #endif // CSS3_TEXT
545 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec orationStyle>(rareNonInheritedData->m_textDecorationStyle); } 543 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec orationStyle>(rareNonInheritedData->m_textDecorationStyle); }
546 float wordSpacing() const; 544 float wordSpacing() const;
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 void setFontSize(float); 1030 void setFontSize(float);
1033 1031
1034 void setTextAutosizingMultiplier(float v) 1032 void setTextAutosizingMultiplier(float v)
1035 { 1033 {
1036 SET_VAR(visual, m_textAutosizingMultiplier, v); 1034 SET_VAR(visual, m_textAutosizingMultiplier, v);
1037 setFontSize(fontDescription().specifiedSize()); 1035 setFontSize(fontDescription().specifiedSize());
1038 } 1036 }
1039 1037
1040 void setColor(const StyleColor&); 1038 void setColor(const StyleColor&);
1041 void setTextIndent(Length v) { SET_VAR(rareInheritedData, indent, v); } 1039 void setTextIndent(Length v) { SET_VAR(rareInheritedData, indent, v); }
1042 #if ENABLE(CSS3_TEXT)
1043 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text IndentLine, v); } 1040 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text IndentLine, v); }
1044 #endif
1045 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } 1041 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; }
1046 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl ignLast, v); } 1042 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl ignLast, v); }
1047 void setTextTransform(ETextTransform v) { inherited_flags._text_transform = v; } 1043 void setTextTransform(ETextTransform v) { inherited_flags._text_transform = v; }
1048 void addToTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_ decorations |= v; } 1044 void addToTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_ decorations |= v; }
1049 void setTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_de corations = v; } 1045 void setTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_de corations = v; }
1050 void setTextDecoration(TextDecoration v) { SET_VAR(visual, textDecoration, v ); } 1046 void setTextDecoration(TextDecoration v) { SET_VAR(visual, textDecoration, v ); }
1051 #if ENABLE(CSS3_TEXT) 1047 #if ENABLE(CSS3_TEXT)
1052 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(rareInherit edData, m_textUnderlinePosition, v); } 1048 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(rareInherit edData, m_textUnderlinePosition, v); }
1053 #endif // CSS3_TEXT 1049 #endif // CSS3_TEXT
1054 void setTextDecorationStyle(TextDecorationStyle v) { SET_VAR(rareNonInherite dData, m_textDecorationStyle, v); } 1050 void setTextDecorationStyle(TextDecorationStyle v) { SET_VAR(rareNonInherite dData, m_textDecorationStyle, v); }
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 static unsigned short initialColumnRuleWidth() { return 3; } 1479 static unsigned short initialColumnRuleWidth() { return 3; }
1484 static unsigned short initialOutlineWidth() { return 3; } 1480 static unsigned short initialOutlineWidth() { return 3; }
1485 static float initialLetterWordSpacing() { return 0.0f; } 1481 static float initialLetterWordSpacing() { return 0.0f; }
1486 static Length initialSize() { return Length(); } 1482 static Length initialSize() { return Length(); }
1487 static Length initialMinSize() { return Length(Fixed); } 1483 static Length initialMinSize() { return Length(Fixed); }
1488 static Length initialMaxSize() { return Length(Undefined); } 1484 static Length initialMaxSize() { return Length(Undefined); }
1489 static Length initialOffset() { return Length(); } 1485 static Length initialOffset() { return Length(); }
1490 static Length initialMargin() { return Length(Fixed); } 1486 static Length initialMargin() { return Length(Fixed); }
1491 static Length initialPadding() { return Length(Fixed); } 1487 static Length initialPadding() { return Length(Fixed); }
1492 static Length initialTextIndent() { return Length(Fixed); } 1488 static Length initialTextIndent() { return Length(Fixed); }
1493 #if ENABLE(CSS3_TEXT)
1494 static TextIndentLine initialTextIndentLine() { return TextIndentFirstLine; } 1489 static TextIndentLine initialTextIndentLine() { return TextIndentFirstLine; }
1495 #endif
1496 static EVerticalAlign initialVerticalAlign() { return BASELINE; } 1490 static EVerticalAlign initialVerticalAlign() { return BASELINE; }
1497 static short initialWidows() { return 2; } 1491 static short initialWidows() { return 2; }
1498 static short initialOrphans() { return 2; } 1492 static short initialOrphans() { return 2; }
1499 static Length initialLineHeight() { return Length(-100.0, Percent); } 1493 static Length initialLineHeight() { return Length(-100.0, Percent); }
1500 static ETextAlign initialTextAlign() { return TASTART; } 1494 static ETextAlign initialTextAlign() { return TASTART; }
1501 static TextAlignLast initialTextAlignLast() { return TextAlignLastAuto; } 1495 static TextAlignLast initialTextAlignLast() { return TextAlignLastAuto; }
1502 static TextDecoration initialTextDecoration() { return TextDecorationNone; } 1496 static TextDecoration initialTextDecoration() { return TextDecorationNone; }
1503 #if ENABLE(CSS3_TEXT) 1497 #if ENABLE(CSS3_TEXT)
1504 static TextUnderlinePosition initialTextUnderlinePosition() { return TextUnd erlinePositionAuto; } 1498 static TextUnderlinePosition initialTextUnderlinePosition() { return TextUnd erlinePositionAuto; }
1505 #endif // CSS3_TEXT 1499 #endif // CSS3_TEXT
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) 1747 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation))
1754 return false; 1748 return false;
1755 1749
1756 rareInheritedData.access()->m_textOrientation = textOrientation; 1750 rareInheritedData.access()->m_textOrientation = textOrientation;
1757 return true; 1751 return true;
1758 } 1752 }
1759 1753
1760 } // namespace WebCore 1754 } // namespace WebCore
1761 1755
1762 #endif // RenderStyle_h 1756 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlockLineLayout.cpp ('k') | Source/core/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698