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

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

Issue 17155007: [CSS3] Parsing the property, text-justify. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parsingTextJustify
Patch Set: Created 7 years, 5 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 int fontSize() const; 540 int fontSize() const;
541 541
542 float textAutosizingMultiplier() const { return visual->m_textAutosizingMult iplier; } 542 float textAutosizingMultiplier() const { return visual->m_textAutosizingMult iplier; }
543 543
544 Length textIndent() const { return rareInheritedData->indent; } 544 Length textIndent() const { return rareInheritedData->indent; }
545 #if ENABLE(CSS3_TEXT) 545 #if ENABLE(CSS3_TEXT)
546 TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(r areInheritedData->m_textIndentLine); } 546 TextIndentLine textIndentLine() const { return static_cast<TextIndentLine>(r areInheritedData->m_textIndentLine); }
547 #endif 547 #endif
548 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag s._text_align); } 548 ETextAlign textAlign() const { return static_cast<ETextAlign>(inherited_flag s._text_align); }
549 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare InheritedData->m_textAlignLast); } 549 TextAlignLast textAlignLast() const { return static_cast<TextAlignLast>(rare InheritedData->m_textAlignLast); }
550 TextJustify textJustify() const { return static_cast<TextJustify>(rareInheri tedData->m_textJustify); }
550 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); } 551 ETextTransform textTransform() const { return static_cast<ETextTransform>(in herited_flags._text_transform); }
551 TextDecoration textDecorationsInEffect() const { return static_cast<TextDeco ration>(inherited_flags._text_decorations); } 552 TextDecoration textDecorationsInEffect() const { return static_cast<TextDeco ration>(inherited_flags._text_decorations); }
552 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v isual->textDecoration); } 553 TextDecoration textDecoration() const { return static_cast<TextDecoration>(v isual->textDecoration); }
553 #if ENABLE(CSS3_TEXT) 554 #if ENABLE(CSS3_TEXT)
554 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); } 555 TextUnderlinePosition textUnderlinePosition() const { return static_cast<Tex tUnderlinePosition>(rareInheritedData->m_textUnderlinePosition); }
555 #endif // CSS3_TEXT 556 #endif // CSS3_TEXT
556 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec orationStyle>(rareNonInheritedData->m_textDecorationStyle); } 557 TextDecorationStyle textDecorationStyle() const { return static_cast<TextDec orationStyle>(rareNonInheritedData->m_textDecorationStyle); }
557 float wordSpacing() const; 558 float wordSpacing() const;
558 float letterSpacing() const; 559 float letterSpacing() const;
559 560
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 setFontSize(fontDescription().specifiedSize()); 1048 setFontSize(fontDescription().specifiedSize());
1048 } 1049 }
1049 1050
1050 void setColor(const Color&); 1051 void setColor(const Color&);
1051 void setTextIndent(Length v) { SET_VAR(rareInheritedData, indent, v); } 1052 void setTextIndent(Length v) { SET_VAR(rareInheritedData, indent, v); }
1052 #if ENABLE(CSS3_TEXT) 1053 #if ENABLE(CSS3_TEXT)
1053 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text IndentLine, v); } 1054 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text IndentLine, v); }
1054 #endif 1055 #endif
1055 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } 1056 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; }
1056 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl ignLast, v); } 1057 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl ignLast, v); }
1058 void setTextJustify(TextJustify v) { SET_VAR(rareInheritedData, m_textJustif y, v); }
1057 void setTextTransform(ETextTransform v) { inherited_flags._text_transform = v; } 1059 void setTextTransform(ETextTransform v) { inherited_flags._text_transform = v; }
1058 void addToTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_ decorations |= v; } 1060 void addToTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_ decorations |= v; }
1059 void setTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_de corations = v; } 1061 void setTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_de corations = v; }
1060 void setTextDecoration(TextDecoration v) { SET_VAR(visual, textDecoration, v ); } 1062 void setTextDecoration(TextDecoration v) { SET_VAR(visual, textDecoration, v ); }
1061 #if ENABLE(CSS3_TEXT) 1063 #if ENABLE(CSS3_TEXT)
1062 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(rareInherit edData, m_textUnderlinePosition, v); } 1064 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(rareInherit edData, m_textUnderlinePosition, v); }
1063 #endif // CSS3_TEXT 1065 #endif // CSS3_TEXT
1064 void setTextDecorationStyle(TextDecorationStyle v) { SET_VAR(rareNonInherite dData, m_textDecorationStyle, v); } 1066 void setTextDecorationStyle(TextDecorationStyle v) { SET_VAR(rareNonInherite dData, m_textDecorationStyle, v); }
1065 void setDirection(TextDirection v) { inherited_flags._direction = v; } 1067 void setDirection(TextDirection v) { inherited_flags._direction = v; }
1066 void setLineHeight(Length specifiedLineHeight); 1068 void setLineHeight(Length specifiedLineHeight);
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 static Length initialTextIndent() { return Length(Fixed); } 1505 static Length initialTextIndent() { return Length(Fixed); }
1504 #if ENABLE(CSS3_TEXT) 1506 #if ENABLE(CSS3_TEXT)
1505 static TextIndentLine initialTextIndentLine() { return TextIndentFirstLine; } 1507 static TextIndentLine initialTextIndentLine() { return TextIndentFirstLine; }
1506 #endif 1508 #endif
1507 static EVerticalAlign initialVerticalAlign() { return BASELINE; } 1509 static EVerticalAlign initialVerticalAlign() { return BASELINE; }
1508 static short initialWidows() { return 2; } 1510 static short initialWidows() { return 2; }
1509 static short initialOrphans() { return 2; } 1511 static short initialOrphans() { return 2; }
1510 static Length initialLineHeight() { return Length(-100.0, Percent); } 1512 static Length initialLineHeight() { return Length(-100.0, Percent); }
1511 static ETextAlign initialTextAlign() { return TASTART; } 1513 static ETextAlign initialTextAlign() { return TASTART; }
1512 static TextAlignLast initialTextAlignLast() { return TextAlignLastAuto; } 1514 static TextAlignLast initialTextAlignLast() { return TextAlignLastAuto; }
1515 static TextJustify initialTextJustify() { return TextJustifyAuto; }
1513 static TextDecoration initialTextDecoration() { return TextDecorationNone; } 1516 static TextDecoration initialTextDecoration() { return TextDecorationNone; }
1514 #if ENABLE(CSS3_TEXT) 1517 #if ENABLE(CSS3_TEXT)
1515 static TextUnderlinePosition initialTextUnderlinePosition() { return TextUnd erlinePositionAuto; } 1518 static TextUnderlinePosition initialTextUnderlinePosition() { return TextUnd erlinePositionAuto; }
1516 #endif // CSS3_TEXT 1519 #endif // CSS3_TEXT
1517 static TextDecorationStyle initialTextDecorationStyle() { return TextDecorat ionStyleSolid; } 1520 static TextDecorationStyle initialTextDecorationStyle() { return TextDecorat ionStyleSolid; }
1518 static float initialZoom() { return 1.0f; } 1521 static float initialZoom() { return 1.0f; }
1519 static int initialOutlineOffset() { return 0; } 1522 static int initialOutlineOffset() { return 0; }
1520 static float initialOpacity() { return 1.0f; } 1523 static float initialOpacity() { return 1.0f; }
1521 static EBoxAlignment initialBoxAlign() { return BSTRETCH; } 1524 static EBoxAlignment initialBoxAlign() { return BSTRETCH; }
1522 static EBoxDecorationBreak initialBoxDecorationBreak() { return DSLICE; } 1525 static EBoxDecorationBreak initialBoxDecorationBreak() { return DSLICE; }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1762 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) 1765 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation))
1763 return false; 1766 return false;
1764 1767
1765 rareInheritedData.access()->m_textOrientation = textOrientation; 1768 rareInheritedData.access()->m_textOrientation = textOrientation;
1766 return true; 1769 return true;
1767 } 1770 }
1768 1771
1769 } // namespace WebCore 1772 } // namespace WebCore
1770 1773
1771 #endif // RenderStyle_h 1774 #endif // RenderStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698