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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2874123002: Rename members in StyleRareInheritedData. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.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) 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 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1674 short VerticalBorderSpacing() const; 1674 short VerticalBorderSpacing() const;
1675 void SetVerticalBorderSpacing(short); 1675 void SetVerticalBorderSpacing(short);
1676 1676
1677 // color 1677 // color
1678 static Color InitialColor() { return Color::kBlack; } 1678 static Color InitialColor() { return Color::kBlack; }
1679 void SetColor(const Color&); 1679 void SetColor(const Color&);
1680 1680
1681 // hyphens 1681 // hyphens
1682 static Hyphens InitialHyphens() { return kHyphensManual; } 1682 static Hyphens InitialHyphens() { return kHyphensManual; }
1683 Hyphens GetHyphens() const { 1683 Hyphens GetHyphens() const {
1684 return static_cast<Hyphens>(rare_inherited_data_->hyphens); 1684 return static_cast<Hyphens>(rare_inherited_data_->hyphens_);
1685 } 1685 }
1686 void SetHyphens(Hyphens h) { SET_VAR(rare_inherited_data_, hyphens, h); } 1686 void SetHyphens(Hyphens h) { SET_VAR(rare_inherited_data_, hyphens_, h); }
1687 1687
1688 // -webkit-hyphenate-character 1688 // -webkit-hyphenate-character
1689 static const AtomicString& InitialHyphenationString() { return g_null_atom; } 1689 static const AtomicString& InitialHyphenationString() { return g_null_atom; }
1690 const AtomicString& HyphenationString() const { 1690 const AtomicString& HyphenationString() const {
1691 return rare_inherited_data_->hyphenation_string; 1691 return rare_inherited_data_->hyphenation_string_;
1692 } 1692 }
1693 void SetHyphenationString(const AtomicString& h) { 1693 void SetHyphenationString(const AtomicString& h) {
1694 SET_VAR(rare_inherited_data_, hyphenation_string, h); 1694 SET_VAR(rare_inherited_data_, hyphenation_string_, h);
1695 } 1695 }
1696 1696
1697 // line-height 1697 // line-height
1698 static Length InitialLineHeight() { return Length(-100.0, kPercent); } 1698 static Length InitialLineHeight() { return Length(-100.0, kPercent); }
1699 Length LineHeight() const; 1699 Length LineHeight() const;
1700 void SetLineHeight(const Length& specified_line_height); 1700 void SetLineHeight(const Length& specified_line_height);
1701 1701
1702 // List style properties. 1702 // List style properties.
1703 // list-style-image 1703 // list-style-image
1704 static StyleImage* InitialListStyleImage() { return 0; } 1704 static StyleImage* InitialListStyleImage() { return 0; }
1705 StyleImage* ListStyleImage() const; 1705 StyleImage* ListStyleImage() const;
1706 void SetListStyleImage(StyleImage*); 1706 void SetListStyleImage(StyleImage*);
1707 1707
1708 // orphans 1708 // orphans
1709 static short InitialOrphans() { return 2; } 1709 static short InitialOrphans() { return 2; }
1710 short Orphans() const { return rare_inherited_data_->orphans; } 1710 short Orphans() const { return rare_inherited_data_->orphans_; }
1711 void SetOrphans(short o) { SET_VAR(rare_inherited_data_, orphans, o); } 1711 void SetOrphans(short o) { SET_VAR(rare_inherited_data_, orphans_, o); }
1712 1712
1713 // widows 1713 // widows
1714 static short InitialWidows() { return 2; } 1714 static short InitialWidows() { return 2; }
1715 short Widows() const { return rare_inherited_data_->widows; } 1715 short Widows() const { return rare_inherited_data_->widows_; }
1716 void SetWidows(short w) { SET_VAR(rare_inherited_data_, widows, w); } 1716 void SetWidows(short w) { SET_VAR(rare_inherited_data_, widows_, w); }
1717 1717
1718 // overflow-wrap (aka word-wrap) 1718 // overflow-wrap (aka word-wrap)
1719 static EOverflowWrap InitialOverflowWrap() { return kNormalOverflowWrap; } 1719 static EOverflowWrap InitialOverflowWrap() { return kNormalOverflowWrap; }
1720 EOverflowWrap OverflowWrap() const { 1720 EOverflowWrap OverflowWrap() const {
1721 return static_cast<EOverflowWrap>(rare_inherited_data_->overflow_wrap); 1721 return static_cast<EOverflowWrap>(rare_inherited_data_->overflow_wrap_);
1722 } 1722 }
1723 void SetOverflowWrap(EOverflowWrap b) { 1723 void SetOverflowWrap(EOverflowWrap b) {
1724 SET_VAR(rare_inherited_data_, overflow_wrap, b); 1724 SET_VAR(rare_inherited_data_, overflow_wrap_, b);
1725 } 1725 }
1726 1726
1727 // quotes 1727 // quotes
1728 static QuotesData* InitialQuotes() { return 0; } 1728 static QuotesData* InitialQuotes() { return 0; }
1729 QuotesData* Quotes() const { return rare_inherited_data_->quotes.Get(); } 1729 QuotesData* Quotes() const { return rare_inherited_data_->quotes_.Get(); }
1730 void SetQuotes(PassRefPtr<QuotesData>); 1730 void SetQuotes(PassRefPtr<QuotesData>);
1731 1731
1732 // line-height-step 1732 // line-height-step
1733 static uint8_t InitialLineHeightStep() { return 0; } 1733 static uint8_t InitialLineHeightStep() { return 0; }
1734 uint8_t LineHeightStep() const { 1734 uint8_t LineHeightStep() const {
1735 return rare_inherited_data_->line_height_step_; 1735 return rare_inherited_data_->line_height_step_;
1736 } 1736 }
1737 void SetLineHeightStep(uint8_t unit) { 1737 void SetLineHeightStep(uint8_t unit) {
1738 SET_VAR(rare_inherited_data_, line_height_step_, unit); 1738 SET_VAR(rare_inherited_data_, line_height_step_, unit);
1739 } 1739 }
1740 1740
1741 // speak 1741 // speak
1742 static ESpeak InitialSpeak() { return kSpeakNormal; } 1742 static ESpeak InitialSpeak() { return kSpeakNormal; }
1743 ESpeak Speak() const { 1743 ESpeak Speak() const {
1744 return static_cast<ESpeak>(rare_inherited_data_->speak); 1744 return static_cast<ESpeak>(rare_inherited_data_->speak_);
1745 } 1745 }
1746 void SetSpeak(ESpeak s) { SET_VAR(rare_inherited_data_, speak, s); } 1746 void SetSpeak(ESpeak s) { SET_VAR(rare_inherited_data_, speak_, s); }
1747 1747
1748 // tab-size 1748 // tab-size
1749 static TabSize InitialTabSize() { return TabSize(8); } 1749 static TabSize InitialTabSize() { return TabSize(8); }
1750 TabSize GetTabSize() const { return rare_inherited_data_->tab_size_; } 1750 TabSize GetTabSize() const { return rare_inherited_data_->tab_size_; }
1751 void SetTabSize(TabSize size) { 1751 void SetTabSize(TabSize size) {
1752 SET_VAR(rare_inherited_data_, tab_size_, size); 1752 SET_VAR(rare_inherited_data_, tab_size_, size);
1753 } 1753 }
1754 1754
1755 // text-align-last 1755 // text-align-last
1756 static TextAlignLast InitialTextAlignLast() { return kTextAlignLastAuto; } 1756 static TextAlignLast InitialTextAlignLast() { return kTextAlignLastAuto; }
(...skipping 10 matching lines...) Expand all
1767 return static_cast<TextCombine>(rare_inherited_data_->text_combine_); 1767 return static_cast<TextCombine>(rare_inherited_data_->text_combine_);
1768 } 1768 }
1769 void SetTextCombine(TextCombine v) { 1769 void SetTextCombine(TextCombine v) {
1770 SET_VAR(rare_inherited_data_, text_combine_, v); 1770 SET_VAR(rare_inherited_data_, text_combine_, v);
1771 } 1771 }
1772 1772
1773 // text-indent 1773 // text-indent
1774 static Length InitialTextIndent() { return Length(kFixed); } 1774 static Length InitialTextIndent() { return Length(kFixed); }
1775 static TextIndentLine InitialTextIndentLine() { return kTextIndentFirstLine; } 1775 static TextIndentLine InitialTextIndentLine() { return kTextIndentFirstLine; }
1776 static TextIndentType InitialTextIndentType() { return kTextIndentNormal; } 1776 static TextIndentType InitialTextIndentType() { return kTextIndentNormal; }
1777 const Length& TextIndent() const { return rare_inherited_data_->indent; } 1777 const Length& TextIndent() const { return rare_inherited_data_->indent_; }
1778 TextIndentLine GetTextIndentLine() const { 1778 TextIndentLine GetTextIndentLine() const {
1779 return static_cast<TextIndentLine>(rare_inherited_data_->text_indent_line_); 1779 return static_cast<TextIndentLine>(rare_inherited_data_->text_indent_line_);
1780 } 1780 }
1781 TextIndentType GetTextIndentType() const { 1781 TextIndentType GetTextIndentType() const {
1782 return static_cast<TextIndentType>(rare_inherited_data_->text_indent_type_); 1782 return static_cast<TextIndentType>(rare_inherited_data_->text_indent_type_);
1783 } 1783 }
1784 void SetTextIndent(const Length& v) { 1784 void SetTextIndent(const Length& v) {
1785 SET_VAR(rare_inherited_data_, indent, v); 1785 SET_VAR(rare_inherited_data_, indent_, v);
1786 } 1786 }
1787 void SetTextIndentLine(TextIndentLine v) { 1787 void SetTextIndentLine(TextIndentLine v) {
1788 SET_VAR(rare_inherited_data_, text_indent_line_, v); 1788 SET_VAR(rare_inherited_data_, text_indent_line_, v);
1789 } 1789 }
1790 void SetTextIndentType(TextIndentType v) { 1790 void SetTextIndentType(TextIndentType v) {
1791 SET_VAR(rare_inherited_data_, text_indent_type_, v); 1791 SET_VAR(rare_inherited_data_, text_indent_type_, v);
1792 } 1792 }
1793 1793
1794 // text-justify 1794 // text-justify
1795 static TextJustify InitialTextJustify() { return kTextJustifyAuto; } 1795 static TextJustify InitialTextJustify() { return kTextJustifyAuto; }
(...skipping 10 matching lines...) Expand all
1806 } 1806 }
1807 TextOrientation GetTextOrientation() const { 1807 TextOrientation GetTextOrientation() const {
1808 return static_cast<TextOrientation>( 1808 return static_cast<TextOrientation>(
1809 rare_inherited_data_->text_orientation_); 1809 rare_inherited_data_->text_orientation_);
1810 } 1810 }
1811 bool SetTextOrientation(TextOrientation); 1811 bool SetTextOrientation(TextOrientation);
1812 1812
1813 // text-shadow 1813 // text-shadow
1814 static ShadowList* InitialTextShadow() { return 0; } 1814 static ShadowList* InitialTextShadow() { return 0; }
1815 ShadowList* TextShadow() const { 1815 ShadowList* TextShadow() const {
1816 return rare_inherited_data_->text_shadow.Get(); 1816 return rare_inherited_data_->text_shadow_.Get();
1817 } 1817 }
1818 void SetTextShadow(PassRefPtr<ShadowList>); 1818 void SetTextShadow(PassRefPtr<ShadowList>);
1819 1819
1820 // text-size-adjust (aka -webkit-text-size-adjust) 1820 // text-size-adjust (aka -webkit-text-size-adjust)
1821 static TextSizeAdjust InitialTextSizeAdjust() { 1821 static TextSizeAdjust InitialTextSizeAdjust() {
1822 return TextSizeAdjust::AdjustAuto(); 1822 return TextSizeAdjust::AdjustAuto();
1823 } 1823 }
1824 TextSizeAdjust GetTextSizeAdjust() const { 1824 TextSizeAdjust GetTextSizeAdjust() const {
1825 return rare_inherited_data_->text_size_adjust_; 1825 return rare_inherited_data_->text_size_adjust_;
1826 } 1826 }
1827 void SetTextSizeAdjust(TextSizeAdjust size_adjust) { 1827 void SetTextSizeAdjust(TextSizeAdjust size_adjust) {
1828 SET_VAR(rare_inherited_data_, text_size_adjust_, size_adjust); 1828 SET_VAR(rare_inherited_data_, text_size_adjust_, size_adjust);
1829 } 1829 }
1830 1830
1831 // word-break inherited (aka -epub-word-break) 1831 // word-break inherited (aka -epub-word-break)
1832 static EWordBreak InitialWordBreak() { return kNormalWordBreak; } 1832 static EWordBreak InitialWordBreak() { return kNormalWordBreak; }
1833 EWordBreak WordBreak() const { 1833 EWordBreak WordBreak() const {
1834 return static_cast<EWordBreak>(rare_inherited_data_->word_break); 1834 return static_cast<EWordBreak>(rare_inherited_data_->word_break_);
1835 } 1835 }
1836 void SetWordBreak(EWordBreak b) { 1836 void SetWordBreak(EWordBreak b) {
1837 SET_VAR(rare_inherited_data_, word_break, b); 1837 SET_VAR(rare_inherited_data_, word_break_, b);
1838 } 1838 }
1839 1839
1840 // -webkit-line-break 1840 // -webkit-line-break
1841 static LineBreak InitialLineBreak() { return kLineBreakAuto; } 1841 static LineBreak InitialLineBreak() { return kLineBreakAuto; }
1842 LineBreak GetLineBreak() const { 1842 LineBreak GetLineBreak() const {
1843 return static_cast<LineBreak>(rare_inherited_data_->line_break); 1843 return static_cast<LineBreak>(rare_inherited_data_->line_break_);
1844 } 1844 }
1845 void SetLineBreak(LineBreak b) { 1845 void SetLineBreak(LineBreak b) {
1846 SET_VAR(rare_inherited_data_, line_break, b); 1846 SET_VAR(rare_inherited_data_, line_break_, b);
1847 } 1847 }
1848 1848
1849 // Text emphasis properties. 1849 // Text emphasis properties.
1850 static TextEmphasisFill InitialTextEmphasisFill() { 1850 static TextEmphasisFill InitialTextEmphasisFill() {
1851 return kTextEmphasisFillFilled; 1851 return kTextEmphasisFillFilled;
1852 } 1852 }
1853 static TextEmphasisMark InitialTextEmphasisMark() { 1853 static TextEmphasisMark InitialTextEmphasisMark() {
1854 return kTextEmphasisMarkNone; 1854 return kTextEmphasisMarkNone;
1855 } 1855 }
1856 static const AtomicString& InitialTextEmphasisCustomMark() { 1856 static const AtomicString& InitialTextEmphasisCustomMark() {
1857 return g_null_atom; 1857 return g_null_atom;
1858 } 1858 }
1859 TextEmphasisFill GetTextEmphasisFill() const { 1859 TextEmphasisFill GetTextEmphasisFill() const {
1860 return static_cast<TextEmphasisFill>( 1860 return static_cast<TextEmphasisFill>(
1861 rare_inherited_data_->text_emphasis_fill); 1861 rare_inherited_data_->text_emphasis_fill_);
1862 } 1862 }
1863 TextEmphasisMark GetTextEmphasisMark() const; 1863 TextEmphasisMark GetTextEmphasisMark() const;
1864 const AtomicString& TextEmphasisCustomMark() const { 1864 const AtomicString& TextEmphasisCustomMark() const {
1865 return rare_inherited_data_->text_emphasis_custom_mark; 1865 return rare_inherited_data_->text_emphasis_custom_mark_;
1866 } 1866 }
1867 const AtomicString& TextEmphasisMarkString() const; 1867 const AtomicString& TextEmphasisMarkString() const;
1868 void SetTextEmphasisFill(TextEmphasisFill fill) { 1868 void SetTextEmphasisFill(TextEmphasisFill fill) {
1869 SET_VAR(rare_inherited_data_, text_emphasis_fill, fill); 1869 SET_VAR(rare_inherited_data_, text_emphasis_fill_, fill);
1870 } 1870 }
1871 void SetTextEmphasisMark(TextEmphasisMark mark) { 1871 void SetTextEmphasisMark(TextEmphasisMark mark) {
1872 SET_VAR(rare_inherited_data_, text_emphasis_mark, mark); 1872 SET_VAR(rare_inherited_data_, text_emphasis_mark_, mark);
1873 } 1873 }
1874 void SetTextEmphasisCustomMark(const AtomicString& mark) { 1874 void SetTextEmphasisCustomMark(const AtomicString& mark) {
1875 SET_VAR(rare_inherited_data_, text_emphasis_custom_mark, mark); 1875 SET_VAR(rare_inherited_data_, text_emphasis_custom_mark_, mark);
1876 } 1876 }
1877 1877
1878 // -webkit-text-emphasis-color (aka -epub-text-emphasis-color) 1878 // -webkit-text-emphasis-color (aka -epub-text-emphasis-color)
1879 void SetTextEmphasisColor(const StyleColor& c) { 1879 void SetTextEmphasisColor(const StyleColor& c) {
1880 SET_VAR_WITH_SETTER(rare_inherited_data_, TextEmphasisColor, 1880 SET_VAR_WITH_SETTER(rare_inherited_data_, TextEmphasisColor,
1881 SetTextEmphasisColor, c); 1881 SetTextEmphasisColor, c);
1882 } 1882 }
1883 1883
1884 // -webkit-text-emphasis-position 1884 // -webkit-text-emphasis-position
1885 static TextEmphasisPosition InitialTextEmphasisPosition() { 1885 static TextEmphasisPosition InitialTextEmphasisPosition() {
1886 return kTextEmphasisPositionOver; 1886 return kTextEmphasisPositionOver;
1887 } 1887 }
1888 TextEmphasisPosition GetTextEmphasisPosition() const { 1888 TextEmphasisPosition GetTextEmphasisPosition() const {
1889 return static_cast<TextEmphasisPosition>( 1889 return static_cast<TextEmphasisPosition>(
1890 rare_inherited_data_->text_emphasis_position); 1890 rare_inherited_data_->text_emphasis_position_);
1891 } 1891 }
1892 void SetTextEmphasisPosition(TextEmphasisPosition position) { 1892 void SetTextEmphasisPosition(TextEmphasisPosition position) {
1893 SET_VAR(rare_inherited_data_, text_emphasis_position, position); 1893 SET_VAR(rare_inherited_data_, text_emphasis_position_, position);
1894 } 1894 }
1895 1895
1896 // -webkit-highlight 1896 // -webkit-highlight
1897 static const AtomicString& InitialHighlight() { return g_null_atom; } 1897 static const AtomicString& InitialHighlight() { return g_null_atom; }
1898 const AtomicString& Highlight() const { 1898 const AtomicString& Highlight() const {
1899 return rare_inherited_data_->highlight; 1899 return rare_inherited_data_->highlight_;
1900 } 1900 }
1901 void SetHighlight(const AtomicString& h) { 1901 void SetHighlight(const AtomicString& h) {
1902 SET_VAR(rare_inherited_data_, highlight, h); 1902 SET_VAR(rare_inherited_data_, highlight_, h);
1903 } 1903 }
1904 1904
1905 // -webkit-line-clamp 1905 // -webkit-line-clamp
1906 static LineClampValue InitialLineClamp() { return LineClampValue(); } 1906 static LineClampValue InitialLineClamp() { return LineClampValue(); }
1907 const LineClampValue& LineClamp() const { 1907 const LineClampValue& LineClamp() const {
1908 return rare_non_inherited_data_->line_clamp; 1908 return rare_non_inherited_data_->line_clamp;
1909 } 1909 }
1910 void SetLineClamp(LineClampValue c) { 1910 void SetLineClamp(LineClampValue c) {
1911 SET_VAR(rare_non_inherited_data_, line_clamp, c); 1911 SET_VAR(rare_non_inherited_data_, line_clamp, c);
1912 } 1912 }
1913 1913
1914 // -webkit-ruby-position 1914 // -webkit-ruby-position
1915 static RubyPosition InitialRubyPosition() { return kRubyPositionBefore; } 1915 static RubyPosition InitialRubyPosition() { return kRubyPositionBefore; }
1916 RubyPosition GetRubyPosition() const { 1916 RubyPosition GetRubyPosition() const {
1917 return static_cast<RubyPosition>(rare_inherited_data_->ruby_position_); 1917 return static_cast<RubyPosition>(rare_inherited_data_->ruby_position_);
1918 } 1918 }
1919 void SetRubyPosition(RubyPosition position) { 1919 void SetRubyPosition(RubyPosition position) {
1920 SET_VAR(rare_inherited_data_, ruby_position_, position); 1920 SET_VAR(rare_inherited_data_, ruby_position_, position);
1921 } 1921 }
1922 1922
1923 // -webkit-tap-highlight-color 1923 // -webkit-tap-highlight-color
1924 static Color InitialTapHighlightColor(); 1924 static Color InitialTapHighlightColor();
1925 Color TapHighlightColor() const { 1925 Color TapHighlightColor() const {
1926 return rare_inherited_data_->tap_highlight_color; 1926 return rare_inherited_data_->tap_highlight_color_;
1927 } 1927 }
1928 void SetTapHighlightColor(const Color& c) { 1928 void SetTapHighlightColor(const Color& c) {
1929 SET_VAR(rare_inherited_data_, tap_highlight_color, c); 1929 SET_VAR(rare_inherited_data_, tap_highlight_color_, c);
1930 } 1930 }
1931 1931
1932 // -webkit-text-fill-color 1932 // -webkit-text-fill-color
1933 void SetTextFillColor(const StyleColor& c) { 1933 void SetTextFillColor(const StyleColor& c) {
1934 SET_VAR_WITH_SETTER(rare_inherited_data_, TextFillColor, SetTextFillColor, 1934 SET_VAR_WITH_SETTER(rare_inherited_data_, TextFillColor, SetTextFillColor,
1935 c); 1935 c);
1936 } 1936 }
1937 1937
1938 // -webkit-text-security 1938 // -webkit-text-security
1939 static ETextSecurity InitialTextSecurity() { return TSNONE; } 1939 static ETextSecurity InitialTextSecurity() { return TSNONE; }
1940 ETextSecurity TextSecurity() const { 1940 ETextSecurity TextSecurity() const {
1941 return static_cast<ETextSecurity>(rare_inherited_data_->text_security); 1941 return static_cast<ETextSecurity>(rare_inherited_data_->text_security_);
1942 } 1942 }
1943 void SetTextSecurity(ETextSecurity a_text_security) { 1943 void SetTextSecurity(ETextSecurity a_text_security) {
1944 SET_VAR(rare_inherited_data_, text_security, a_text_security); 1944 SET_VAR(rare_inherited_data_, text_security_, a_text_security);
1945 } 1945 }
1946 1946
1947 // -webkit-text-stroke-color 1947 // -webkit-text-stroke-color
1948 void SetTextStrokeColor(const StyleColor& c) { 1948 void SetTextStrokeColor(const StyleColor& c) {
1949 SET_VAR_WITH_SETTER(rare_inherited_data_, TextStrokeColor, 1949 SET_VAR_WITH_SETTER(rare_inherited_data_, TextStrokeColor,
1950 SetTextStrokeColor, c); 1950 SetTextStrokeColor, c);
1951 } 1951 }
1952 1952
1953 // -webkit-text-stroke-width 1953 // -webkit-text-stroke-width
1954 static float InitialTextStrokeWidth() { return 0; } 1954 static float InitialTextStrokeWidth() { return 0; }
1955 float TextStrokeWidth() const { 1955 float TextStrokeWidth() const {
1956 return rare_inherited_data_->text_stroke_width; 1956 return rare_inherited_data_->text_stroke_width_;
1957 } 1957 }
1958 void SetTextStrokeWidth(float w) { 1958 void SetTextStrokeWidth(float w) {
1959 SET_VAR(rare_inherited_data_, text_stroke_width, w); 1959 SET_VAR(rare_inherited_data_, text_stroke_width_, w);
1960 } 1960 }
1961 1961
1962 // -webkit-user-drag 1962 // -webkit-user-drag
1963 static EUserDrag InitialUserDrag() { return DRAG_AUTO; } 1963 static EUserDrag InitialUserDrag() { return DRAG_AUTO; }
1964 EUserDrag UserDrag() const { 1964 EUserDrag UserDrag() const {
1965 return static_cast<EUserDrag>(rare_non_inherited_data_->user_drag); 1965 return static_cast<EUserDrag>(rare_non_inherited_data_->user_drag);
1966 } 1966 }
1967 void SetUserDrag(EUserDrag d) { 1967 void SetUserDrag(EUserDrag d) {
1968 SET_VAR(rare_non_inherited_data_, user_drag, d); 1968 SET_VAR(rare_non_inherited_data_, user_drag, d);
1969 } 1969 }
1970 1970
1971 // -webkit-user-modify 1971 // -webkit-user-modify
1972 static EUserModify InitialUserModify() { return READ_ONLY; } 1972 static EUserModify InitialUserModify() { return READ_ONLY; }
1973 EUserModify UserModify() const { 1973 EUserModify UserModify() const {
1974 return static_cast<EUserModify>(rare_inherited_data_->user_modify); 1974 return static_cast<EUserModify>(rare_inherited_data_->user_modify_);
1975 } 1975 }
1976 void SetUserModify(EUserModify u) { 1976 void SetUserModify(EUserModify u) {
1977 SET_VAR(rare_inherited_data_, user_modify, u); 1977 SET_VAR(rare_inherited_data_, user_modify_, u);
1978 } 1978 }
1979 1979
1980 // -webkit-user-select 1980 // -webkit-user-select
1981 static EUserSelect InitialUserSelect() { return SELECT_TEXT; } 1981 static EUserSelect InitialUserSelect() { return SELECT_TEXT; }
1982 EUserSelect UserSelect() const { 1982 EUserSelect UserSelect() const {
1983 return static_cast<EUserSelect>(rare_inherited_data_->user_select); 1983 return static_cast<EUserSelect>(rare_inherited_data_->user_select_);
1984 } 1984 }
1985 void SetUserSelect(EUserSelect s) { 1985 void SetUserSelect(EUserSelect s) {
1986 SET_VAR(rare_inherited_data_, user_select, s); 1986 SET_VAR(rare_inherited_data_, user_select_, s);
1987 } 1987 }
1988 1988
1989 // caret-color 1989 // caret-color
1990 void SetCaretColor(const StyleAutoColor& c) { 1990 void SetCaretColor(const StyleAutoColor& c) {
1991 SET_VAR_WITH_SETTER(rare_inherited_data_, CaretColor, SetCaretColor, c); 1991 SET_VAR_WITH_SETTER(rare_inherited_data_, CaretColor, SetCaretColor, c);
1992 } 1992 }
1993 1993
1994 // Font properties. 1994 // Font properties.
1995 const Font& GetFont() const; 1995 const Font& GetFont() const;
1996 void SetFont(const Font&); 1996 void SetFont(const Font&);
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
3085 bool IsDisplayFlexibleBox() const { return IsDisplayFlexibleBox(Display()); } 3085 bool IsDisplayFlexibleBox() const { return IsDisplayFlexibleBox(Display()); }
3086 3086
3087 // Isolation utility functions. 3087 // Isolation utility functions.
3088 bool HasIsolation() const { return Isolation() != kIsolationAuto; } 3088 bool HasIsolation() const { return Isolation() != kIsolationAuto; }
3089 3089
3090 // Content utility functions. 3090 // Content utility functions.
3091 bool HasContent() const { return GetContentData(); } 3091 bool HasContent() const { return GetContentData(); }
3092 3092
3093 // Cursor utility functions. 3093 // Cursor utility functions.
3094 CursorList* Cursors() const { 3094 CursorList* Cursors() const {
3095 return rare_inherited_data_->cursor_data.Get(); 3095 return rare_inherited_data_->cursor_data_.Get();
3096 } 3096 }
3097 void AddCursor(StyleImage*, 3097 void AddCursor(StyleImage*,
3098 bool hot_spot_specified, 3098 bool hot_spot_specified,
3099 const IntPoint& hot_spot = IntPoint()); 3099 const IntPoint& hot_spot = IntPoint());
3100 void SetCursorList(CursorList*); 3100 void SetCursorList(CursorList*);
3101 void ClearCursorList(); 3101 void ClearCursorList();
3102 3102
3103 // Text decoration utility functions. 3103 // Text decoration utility functions.
3104 void ApplyTextDecorations(const Color& parent_text_decoration_color, 3104 void ApplyTextDecorations(const Color& parent_text_decoration_color,
3105 bool override_existing_colors); 3105 bool override_existing_colors);
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
3691 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3691 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3692 } 3692 }
3693 3693
3694 inline bool ComputedStyle::HasPseudoElementStyle() const { 3694 inline bool ComputedStyle::HasPseudoElementStyle() const {
3695 return PseudoBitsInternal() & kElementPseudoIdMask; 3695 return PseudoBitsInternal() & kElementPseudoIdMask;
3696 } 3696 }
3697 3697
3698 } // namespace blink 3698 } // namespace blink
3699 3699
3700 #endif // ComputedStyle_h 3700 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698