| OLD | NEW |
| 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 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 return !(*this == o); | 60 return !(*this == o); |
| 61 } | 61 } |
| 62 bool shadowDataEquivalent(const StyleRareInheritedData&) const; | 62 bool shadowDataEquivalent(const StyleRareInheritedData&) const; |
| 63 bool quotesDataEquivalent(const StyleRareInheritedData&) const; | 63 bool quotesDataEquivalent(const StyleRareInheritedData&) const; |
| 64 | 64 |
| 65 RefPtr<StyleImage> listStyleImage; | 65 RefPtr<StyleImage> listStyleImage; |
| 66 | 66 |
| 67 StyleColor textStrokeColor() const { return m_textStrokeColorIsCurrentColor
? StyleColor::currentColor() : StyleColor(m_textStrokeColor); } | 67 StyleColor textStrokeColor() const { return m_textStrokeColorIsCurrentColor
? StyleColor::currentColor() : StyleColor(m_textStrokeColor); } |
| 68 StyleColor textFillColor() const { return m_textFillColorIsCurrentColor ? St
yleColor::currentColor() : StyleColor(m_textFillColor); } | 68 StyleColor textFillColor() const { return m_textFillColorIsCurrentColor ? St
yleColor::currentColor() : StyleColor(m_textFillColor); } |
| 69 StyleColor textEmphasisColor() const { return m_textEmphasisColorIsCurrentCo
lor ? StyleColor::currentColor() : StyleColor(m_textEmphasisColor); } | 69 StyleColor textEmphasisColor() const { return m_textEmphasisColorIsCurrentCo
lor ? StyleColor::currentColor() : StyleColor(m_textEmphasisColor); } |
| 70 StyleColor visitedLinkTextStrokeColor() const { return m_visitedLinkTextStro
keColorIsCurrentColor ? StyleColor::currentColor() : StyleColor(m_visitedLinkTex
tStrokeColor); } | |
| 71 StyleColor visitedLinkTextFillColor() const { return m_visitedLinkTextFillCo
lorIsCurrentColor ? StyleColor::currentColor() : StyleColor(m_visitedLinkTextFil
lColor); } | |
| 72 StyleColor visitedLinkTextEmphasisColor() const { return m_visitedLinkTextEm
phasisColorIsCurrentColor ? StyleColor::currentColor() : StyleColor(m_visitedLin
kTextEmphasisColor); } | |
| 73 | 70 |
| 74 void setTextStrokeColor(const StyleColor& color) { m_textStrokeColor = color
.resolve(Color()); m_textStrokeColorIsCurrentColor = color.isCurrentColor(); } | 71 void setTextStrokeColor(const StyleColor& color) { m_textStrokeColor = color
.resolve(Color()); m_textStrokeColorIsCurrentColor = color.isCurrentColor(); } |
| 75 void setTextFillColor(const StyleColor& color) { m_textFillColor = color.res
olve(Color()); m_textFillColorIsCurrentColor = color.isCurrentColor(); } | 72 void setTextFillColor(const StyleColor& color) { m_textFillColor = color.res
olve(Color()); m_textFillColorIsCurrentColor = color.isCurrentColor(); } |
| 76 void setTextEmphasisColor(const StyleColor& color) { m_textEmphasisColor = c
olor.resolve(Color()); m_textEmphasisColorIsCurrentColor = color.isCurrentColor(
); } | 73 void setTextEmphasisColor(const StyleColor& color) { m_textEmphasisColor = c
olor.resolve(Color()); m_textEmphasisColorIsCurrentColor = color.isCurrentColor(
); } |
| 77 void setVisitedLinkTextStrokeColor(const StyleColor& color) { m_visitedLinkT
extStrokeColor = color.resolve(Color()); m_visitedLinkTextStrokeColorIsCurrentCo
lor = color.isCurrentColor(); } | |
| 78 void setVisitedLinkTextFillColor(const StyleColor& color) { m_visitedLinkTex
tFillColor = color.resolve(Color()); m_visitedLinkTextFillColorIsCurrentColor =
color.isCurrentColor(); } | |
| 79 void setVisitedLinkTextEmphasisColor(const StyleColor& color) { m_visitedLin
kTextEmphasisColor = color.resolve(Color()); m_visitedLinkTextEmphasisColorIsCur
rentColor = color.isCurrentColor(); } | |
| 80 | 74 |
| 81 Color m_textStrokeColor; | 75 Color m_textStrokeColor; |
| 82 float textStrokeWidth; | 76 float textStrokeWidth; |
| 83 Color m_textFillColor; | 77 Color m_textFillColor; |
| 84 Color m_textEmphasisColor; | 78 Color m_textEmphasisColor; |
| 85 | 79 |
| 86 Color m_visitedLinkTextStrokeColor; | |
| 87 Color m_visitedLinkTextFillColor; | |
| 88 Color m_visitedLinkTextEmphasisColor; | |
| 89 | |
| 90 RefPtr<ShadowList> textShadow; // Our text shadow information for shadowed t
ext drawing. | 80 RefPtr<ShadowList> textShadow; // Our text shadow information for shadowed t
ext drawing. |
| 91 AtomicString highlight; // Apple-specific extension for custom highlight ren
dering. | 81 AtomicString highlight; // Apple-specific extension for custom highlight ren
dering. |
| 92 | 82 |
| 93 RefPtr<CursorList> cursorData; | 83 RefPtr<CursorList> cursorData; |
| 94 Length indent; | 84 Length indent; |
| 95 float m_effectiveZoom; | 85 float m_effectiveZoom; |
| 96 | 86 |
| 97 // Paged media properties. | 87 // Paged media properties. |
| 98 short widows; | 88 short widows; |
| 99 short orphans; | 89 short orphans; |
| 100 unsigned m_hasAutoWidows : 1; | 90 unsigned m_hasAutoWidows : 1; |
| 101 unsigned m_hasAutoOrphans : 1; | 91 unsigned m_hasAutoOrphans : 1; |
| 102 | 92 |
| 103 unsigned m_textStrokeColorIsCurrentColor : 1; | 93 unsigned m_textStrokeColorIsCurrentColor : 1; |
| 104 unsigned m_textFillColorIsCurrentColor : 1; | 94 unsigned m_textFillColorIsCurrentColor : 1; |
| 105 unsigned m_textEmphasisColorIsCurrentColor : 1; | 95 unsigned m_textEmphasisColorIsCurrentColor : 1; |
| 106 unsigned m_visitedLinkTextStrokeColorIsCurrentColor : 1; | |
| 107 unsigned m_visitedLinkTextFillColorIsCurrentColor : 1; | |
| 108 unsigned m_visitedLinkTextEmphasisColorIsCurrentColor : 1; | |
| 109 | 96 |
| 110 unsigned userModify : 2; // EUserModify (editing) | 97 unsigned userModify : 2; // EUserModify (editing) |
| 111 unsigned wordBreak : 2; // EWordBreak | 98 unsigned wordBreak : 2; // EWordBreak |
| 112 unsigned overflowWrap : 1; // EOverflowWrap | 99 unsigned overflowWrap : 1; // EOverflowWrap |
| 113 unsigned lineBreak : 3; // LineBreak | 100 unsigned lineBreak : 3; // LineBreak |
| 114 unsigned resize : 2; // EResize | 101 unsigned resize : 2; // EResize |
| 115 unsigned userSelect : 2; // EUserSelect | 102 unsigned userSelect : 2; // EUserSelect |
| 116 unsigned speak : 3; // ESpeak | 103 unsigned speak : 3; // ESpeak |
| 117 unsigned hyphens : 2; // Hyphens | 104 unsigned hyphens : 2; // Hyphens |
| 118 unsigned textEmphasisFill : 1; // TextEmphasisFill | 105 unsigned textEmphasisFill : 1; // TextEmphasisFill |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 RefPtr<AppliedTextDecorationList> appliedTextDecorations; | 137 RefPtr<AppliedTextDecorationList> appliedTextDecorations; |
| 151 | 138 |
| 152 private: | 139 private: |
| 153 StyleRareInheritedData(); | 140 StyleRareInheritedData(); |
| 154 StyleRareInheritedData(const StyleRareInheritedData&); | 141 StyleRareInheritedData(const StyleRareInheritedData&); |
| 155 }; | 142 }; |
| 156 | 143 |
| 157 } // namespace blink | 144 } // namespace blink |
| 158 | 145 |
| 159 #endif // StyleRareInheritedData_h | 146 #endif // StyleRareInheritedData_h |
| OLD | NEW |