| 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, 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 11 matching lines...) Expand all Loading... |
| 22 * | 22 * |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #ifndef RenderStyle_h | 25 #ifndef RenderStyle_h |
| 26 #define RenderStyle_h | 26 #define RenderStyle_h |
| 27 | 27 |
| 28 #include "CSSPropertyNames.h" | 28 #include "CSSPropertyNames.h" |
| 29 #include "core/css/CSSLineBoxContainValue.h" | 29 #include "core/css/CSSLineBoxContainValue.h" |
| 30 #include "core/css/CSSPrimitiveValue.h" | 30 #include "core/css/CSSPrimitiveValue.h" |
| 31 #include "core/css/LengthFunctions.h" | 31 #include "core/css/LengthFunctions.h" |
| 32 #include "core/css/StyleColor.h" | |
| 33 #include "core/platform/Length.h" | 32 #include "core/platform/Length.h" |
| 34 #include "core/platform/LengthBox.h" | 33 #include "core/platform/LengthBox.h" |
| 35 #include "core/platform/LengthSize.h" | 34 #include "core/platform/LengthSize.h" |
| 36 #include "core/platform/ThemeTypes.h" | 35 #include "core/platform/ThemeTypes.h" |
| 37 #include "core/platform/animation/CSSAnimationDataList.h" | 36 #include "core/platform/animation/CSSAnimationDataList.h" |
| 38 #include "core/platform/graphics/Color.h" | 37 #include "core/platform/graphics/Color.h" |
| 39 #include "core/platform/graphics/FontBaseline.h" | 38 #include "core/platform/graphics/FontBaseline.h" |
| 40 #include "core/platform/graphics/FontDescription.h" | 39 #include "core/platform/graphics/FontDescription.h" |
| 41 #include "core/platform/graphics/GraphicsTypes.h" | 40 #include "core/platform/graphics/GraphicsTypes.h" |
| 42 #include "core/platform/graphics/LayoutBoxExtent.h" | 41 #include "core/platform/graphics/LayoutBoxExtent.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 && _page_break_before == other._page_break_before | 209 && _page_break_before == other._page_break_before |
| 211 && _page_break_after == other._page_break_after | 210 && _page_break_after == other._page_break_after |
| 212 && _page_break_inside == other._page_break_inside | 211 && _page_break_inside == other._page_break_inside |
| 213 && _styleType == other._styleType | 212 && _styleType == other._styleType |
| 214 && _affectedByHover == other._affectedByHover | 213 && _affectedByHover == other._affectedByHover |
| 215 && _affectedByActive == other._affectedByActive | 214 && _affectedByActive == other._affectedByActive |
| 216 && _affectedByDrag == other._affectedByDrag | 215 && _affectedByDrag == other._affectedByDrag |
| 217 && _pseudoBits == other._pseudoBits | 216 && _pseudoBits == other._pseudoBits |
| 218 && _unicodeBidi == other._unicodeBidi | 217 && _unicodeBidi == other._unicodeBidi |
| 219 && explicitInheritance == other.explicitInheritance | 218 && explicitInheritance == other.explicitInheritance |
| 219 && currentColor == other.currentColor |
| 220 && unique == other.unique | 220 && unique == other.unique |
| 221 && emptyState == other.emptyState | 221 && emptyState == other.emptyState |
| 222 && firstChildState == other.firstChildState | 222 && firstChildState == other.firstChildState |
| 223 && lastChildState == other.lastChildState | 223 && lastChildState == other.lastChildState |
| 224 && _isLink == other._isLink; | 224 && _isLink == other._isLink; |
| 225 } | 225 } |
| 226 | 226 |
| 227 bool operator!=(const NonInheritedFlags& other) const { return !(*this =
= other); } | 227 bool operator!=(const NonInheritedFlags& other) const { return !(*this =
= other); } |
| 228 | 228 |
| 229 unsigned _effectiveDisplay : 5; // EDisplay | 229 unsigned _effectiveDisplay : 5; // EDisplay |
| 230 unsigned _originalDisplay : 5; // EDisplay | 230 unsigned _originalDisplay : 5; // EDisplay |
| 231 unsigned _overflowX : 3; // EOverflow | 231 unsigned _overflowX : 3; // EOverflow |
| 232 unsigned _overflowY : 3; // EOverflow | 232 unsigned _overflowY : 3; // EOverflow |
| 233 unsigned _vertical_align : 4; // EVerticalAlign | 233 unsigned _vertical_align : 4; // EVerticalAlign |
| 234 unsigned _clear : 2; // EClear | 234 unsigned _clear : 2; // EClear |
| 235 unsigned _position : 3; // EPosition | 235 unsigned _position : 3; // EPosition |
| 236 unsigned _floating : 2; // EFloat | 236 unsigned _floating : 2; // EFloat |
| 237 unsigned _table_layout : 1; // ETableLayout | 237 unsigned _table_layout : 1; // ETableLayout |
| 238 | 238 |
| 239 unsigned _unicodeBidi : 3; // EUnicodeBidi | 239 unsigned _unicodeBidi : 3; // EUnicodeBidi |
| 240 // 31 bits | 240 // 31 bits |
| 241 unsigned _page_break_before : 2; // EPageBreak | 241 unsigned _page_break_before : 2; // EPageBreak |
| 242 unsigned _page_break_after : 2; // EPageBreak | 242 unsigned _page_break_after : 2; // EPageBreak |
| 243 unsigned _page_break_inside : 2; // EPageBreak | 243 unsigned _page_break_inside : 2; // EPageBreak |
| 244 | 244 |
| 245 unsigned _styleType : 6; // PseudoId | 245 unsigned _styleType : 6; // PseudoId |
| 246 unsigned _pseudoBits : 8; | 246 unsigned _pseudoBits : 8; |
| 247 unsigned explicitInheritance : 1; // Explicitly inherits a non-inherited
property | 247 unsigned explicitInheritance : 1; // Explicitly inherits a non-inherited
property |
| 248 unsigned currentColor : 1; // At least one color has the value 'currentC
olor' |
| 248 unsigned unique : 1; // Style can not be shared. | 249 unsigned unique : 1; // Style can not be shared. |
| 249 unsigned emptyState : 1; | 250 unsigned emptyState : 1; |
| 250 unsigned firstChildState : 1; | 251 unsigned firstChildState : 1; |
| 251 unsigned lastChildState : 1; | 252 unsigned lastChildState : 1; |
| 252 | 253 |
| 253 bool affectedByHover() const { return _affectedByHover; } | 254 bool affectedByHover() const { return _affectedByHover; } |
| 254 void setAffectedByHover(bool value) { _affectedByHover = value; } | 255 void setAffectedByHover(bool value) { _affectedByHover = value; } |
| 255 bool affectedByActive() const { return _affectedByActive; } | 256 bool affectedByActive() const { return _affectedByActive; } |
| 256 void setAffectedByActive(bool value) { _affectedByActive = value; } | 257 void setAffectedByActive(bool value) { _affectedByActive = value; } |
| 257 bool affectedByDrag() const { return _affectedByDrag; } | 258 bool affectedByDrag() const { return _affectedByDrag; } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 noninherited_flags._position = initialPosition(); | 300 noninherited_flags._position = initialPosition(); |
| 300 noninherited_flags._floating = initialFloating(); | 301 noninherited_flags._floating = initialFloating(); |
| 301 noninherited_flags._table_layout = initialTableLayout(); | 302 noninherited_flags._table_layout = initialTableLayout(); |
| 302 noninherited_flags._unicodeBidi = initialUnicodeBidi(); | 303 noninherited_flags._unicodeBidi = initialUnicodeBidi(); |
| 303 noninherited_flags._page_break_before = initialPageBreak(); | 304 noninherited_flags._page_break_before = initialPageBreak(); |
| 304 noninherited_flags._page_break_after = initialPageBreak(); | 305 noninherited_flags._page_break_after = initialPageBreak(); |
| 305 noninherited_flags._page_break_inside = initialPageBreak(); | 306 noninherited_flags._page_break_inside = initialPageBreak(); |
| 306 noninherited_flags._styleType = NOPSEUDO; | 307 noninherited_flags._styleType = NOPSEUDO; |
| 307 noninherited_flags._pseudoBits = 0; | 308 noninherited_flags._pseudoBits = 0; |
| 308 noninherited_flags.explicitInheritance = false; | 309 noninherited_flags.explicitInheritance = false; |
| 310 noninherited_flags.currentColor = false; |
| 309 noninherited_flags.unique = false; | 311 noninherited_flags.unique = false; |
| 310 noninherited_flags.emptyState = false; | 312 noninherited_flags.emptyState = false; |
| 311 noninherited_flags.firstChildState = false; | 313 noninherited_flags.firstChildState = false; |
| 312 noninherited_flags.lastChildState = false; | 314 noninherited_flags.lastChildState = false; |
| 313 noninherited_flags.setAffectedByHover(false); | 315 noninherited_flags.setAffectedByHover(false); |
| 314 noninherited_flags.setAffectedByActive(false); | 316 noninherited_flags.setAffectedByActive(false); |
| 315 noninherited_flags.setAffectedByDrag(false); | 317 noninherited_flags.setAffectedByDrag(false); |
| 316 noninherited_flags.setIsLink(false); | 318 noninherited_flags.setIsLink(false); |
| 317 } | 319 } |
| 318 | 320 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 | 370 |
| 369 bool hasBackgroundImage() const { return m_background->background().hasImage
(); } | 371 bool hasBackgroundImage() const { return m_background->background().hasImage
(); } |
| 370 bool hasFixedBackgroundImage() const { return m_background->background().has
FixedImage(); } | 372 bool hasFixedBackgroundImage() const { return m_background->background().has
FixedImage(); } |
| 371 | 373 |
| 372 bool hasEntirelyFixedBackground() const; | 374 bool hasEntirelyFixedBackground() const; |
| 373 | 375 |
| 374 bool hasAppearance() const { return appearance() != NoControlPart; } | 376 bool hasAppearance() const { return appearance() != NoControlPart; } |
| 375 | 377 |
| 376 bool hasBackground() const | 378 bool hasBackground() const |
| 377 { | 379 { |
| 378 StyleColor color = visitedDependentColor(CSSPropertyBackgroundColor); | 380 Color color = visitedDependentColor(CSSPropertyBackgroundColor); |
| 379 if ((color.isValid() && color.alpha()) || color.isCurrentColor()) | 381 if (color.isValid() && color.alpha()) |
| 380 return true; | 382 return true; |
| 381 return hasBackgroundImage(); | 383 return hasBackgroundImage(); |
| 382 } | 384 } |
| 383 | 385 |
| 384 LayoutBoxExtent imageOutsets(const NinePieceImage&) const; | 386 LayoutBoxExtent imageOutsets(const NinePieceImage&) const; |
| 385 bool hasBorderImageOutsets() const | 387 bool hasBorderImageOutsets() const |
| 386 { | 388 { |
| 387 return borderImage().hasImage() && borderImage().outset().nonZero(); | 389 return borderImage().hasImage() && borderImage().outset().nonZero(); |
| 388 } | 390 } |
| 389 LayoutBoxExtent borderImageOutsets() const | 391 LayoutBoxExtent borderImageOutsets() const |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 872 Length perspectiveOriginX() const { return rareNonInheritedData->m_perspecti
veOriginX; } | 874 Length perspectiveOriginX() const { return rareNonInheritedData->m_perspecti
veOriginX; } |
| 873 Length perspectiveOriginY() const { return rareNonInheritedData->m_perspecti
veOriginY; } | 875 Length perspectiveOriginY() const { return rareNonInheritedData->m_perspecti
veOriginY; } |
| 874 LengthSize pageSize() const { return rareNonInheritedData->m_pageSize; } | 876 LengthSize pageSize() const { return rareNonInheritedData->m_pageSize; } |
| 875 PageSizeType pageSizeType() const { return static_cast<PageSizeType>(rareNon
InheritedData->m_pageSizeType); } | 877 PageSizeType pageSizeType() const { return static_cast<PageSizeType>(rareNon
InheritedData->m_pageSizeType); } |
| 876 | 878 |
| 877 // When set, this ensures that styles compare as different. Used during acce
lerated animations. | 879 // When set, this ensures that styles compare as different. Used during acce
lerated animations. |
| 878 bool isRunningAcceleratedAnimation() const { return rareNonInheritedData->m_
runningAcceleratedAnimation; } | 880 bool isRunningAcceleratedAnimation() const { return rareNonInheritedData->m_
runningAcceleratedAnimation; } |
| 879 | 881 |
| 880 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } | 882 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC
ontain; } |
| 881 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } | 883 const LineClampValue& lineClamp() const { return rareNonInheritedData->lineC
lamp; } |
| 882 StyleColor tapHighlightColor() const { return rareInheritedData->tapHighligh
tColor; } | 884 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo
r; } |
| 883 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(rareI
nheritedData->textSecurity); } | 885 ETextSecurity textSecurity() const { return static_cast<ETextSecurity>(rareI
nheritedData->textSecurity); } |
| 884 | 886 |
| 885 WritingMode writingMode() const { return static_cast<WritingMode>(inherited_
flags.m_writingMode); } | 887 WritingMode writingMode() const { return static_cast<WritingMode>(inherited_
flags.m_writingMode); } |
| 886 bool isHorizontalWritingMode() const { return WebCore::isHorizontalWritingMo
de(writingMode()); } | 888 bool isHorizontalWritingMode() const { return WebCore::isHorizontalWritingMo
de(writingMode()); } |
| 887 bool isFlippedLinesWritingMode() const { return WebCore::isFlippedLinesWriti
ngMode(writingMode()); } | 889 bool isFlippedLinesWritingMode() const { return WebCore::isFlippedLinesWriti
ngMode(writingMode()); } |
| 888 bool isFlippedBlocksWritingMode() const { return WebCore::isFlippedBlocksWri
tingMode(writingMode()); } | 890 bool isFlippedBlocksWritingMode() const { return WebCore::isFlippedBlocksWri
tingMode(writingMode()); } |
| 889 | 891 |
| 890 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } | 892 EImageRendering imageRendering() const { return static_cast<EImageRendering>
(rareInheritedData->m_imageRendering); } |
| 891 | 893 |
| 892 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak);
} | 894 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak);
} |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 949 void resetBorderRight() { SET_VAR(surround, border.m_right, BorderValue());
} | 951 void resetBorderRight() { SET_VAR(surround, border.m_right, BorderValue());
} |
| 950 void resetBorderBottom() { SET_VAR(surround, border.m_bottom, BorderValue())
; } | 952 void resetBorderBottom() { SET_VAR(surround, border.m_bottom, BorderValue())
; } |
| 951 void resetBorderLeft() { SET_VAR(surround, border.m_left, BorderValue()); } | 953 void resetBorderLeft() { SET_VAR(surround, border.m_left, BorderValue()); } |
| 952 void resetBorderImage() { SET_VAR(surround, border.m_image, NinePieceImage()
); } | 954 void resetBorderImage() { SET_VAR(surround, border.m_image, NinePieceImage()
); } |
| 953 void resetBorderRadius() { resetBorderTopLeftRadius(); resetBorderTopRightRa
dius(); resetBorderBottomLeftRadius(); resetBorderBottomRightRadius(); } | 955 void resetBorderRadius() { resetBorderTopLeftRadius(); resetBorderTopRightRa
dius(); resetBorderBottomLeftRadius(); resetBorderBottomRightRadius(); } |
| 954 void resetBorderTopLeftRadius() { SET_VAR(surround, border.m_topLeft, initia
lBorderRadius()); } | 956 void resetBorderTopLeftRadius() { SET_VAR(surround, border.m_topLeft, initia
lBorderRadius()); } |
| 955 void resetBorderTopRightRadius() { SET_VAR(surround, border.m_topRight, init
ialBorderRadius()); } | 957 void resetBorderTopRightRadius() { SET_VAR(surround, border.m_topRight, init
ialBorderRadius()); } |
| 956 void resetBorderBottomLeftRadius() { SET_VAR(surround, border.m_bottomLeft,
initialBorderRadius()); } | 958 void resetBorderBottomLeftRadius() { SET_VAR(surround, border.m_bottomLeft,
initialBorderRadius()); } |
| 957 void resetBorderBottomRightRadius() { SET_VAR(surround, border.m_bottomRight
, initialBorderRadius()); } | 959 void resetBorderBottomRightRadius() { SET_VAR(surround, border.m_bottomRight
, initialBorderRadius()); } |
| 958 | 960 |
| 959 void setBackgroundColor(const StyleColor& v) { SET_VAR(m_background, m_color
, v); } | 961 void setBackgroundColor(const Color& v) { SET_VAR(m_background, m_color, v);
} |
| 960 | 962 |
| 961 void setBackgroundXPosition(Length length) { SET_VAR(m_background, m_backgro
und.m_xPosition, length); } | 963 void setBackgroundXPosition(Length length) { SET_VAR(m_background, m_backgro
und.m_xPosition, length); } |
| 962 void setBackgroundYPosition(Length length) { SET_VAR(m_background, m_backgro
und.m_yPosition, length); } | 964 void setBackgroundYPosition(Length length) { SET_VAR(m_background, m_backgro
und.m_yPosition, length); } |
| 963 void setBackgroundSize(EFillSizeType b) { SET_VAR(m_background, m_background
.m_sizeType, b); } | 965 void setBackgroundSize(EFillSizeType b) { SET_VAR(m_background, m_background
.m_sizeType, b); } |
| 964 void setBackgroundSizeLength(LengthSize s) { SET_VAR(m_background, m_backgro
und.m_sizeLength, s); } | 966 void setBackgroundSizeLength(LengthSize s) { SET_VAR(m_background, m_backgro
und.m_sizeLength, s); } |
| 965 | 967 |
| 966 void setBorderImage(const NinePieceImage& b) { SET_VAR(surround, border.m_im
age, b); } | 968 void setBorderImage(const NinePieceImage& b) { SET_VAR(surround, border.m_im
age, b); } |
| 967 void setBorderImageSource(PassRefPtr<StyleImage>); | 969 void setBorderImageSource(PassRefPtr<StyleImage>); |
| 968 void setBorderImageSlices(LengthBox); | 970 void setBorderImageSlices(LengthBox); |
| 969 void setBorderImageWidth(LengthBox); | 971 void setBorderImageWidth(LengthBox); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 987 } | 989 } |
| 988 | 990 |
| 989 RoundedRect getRoundedBorderFor(const LayoutRect& borderRect, RenderView* =
0, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) cons
t; | 991 RoundedRect getRoundedBorderFor(const LayoutRect& borderRect, RenderView* =
0, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) cons
t; |
| 990 RoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, bool incl
udeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; | 992 RoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, bool incl
udeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; |
| 991 | 993 |
| 992 RoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, | 994 RoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, |
| 993 int topWidth, int bottomWidth, int leftWidth, int rightWidth, bool inclu
deLogicalLeftEdge, bool includeLogicalRightEdge) const; | 995 int topWidth, int bottomWidth, int leftWidth, int rightWidth, bool inclu
deLogicalLeftEdge, bool includeLogicalRightEdge) const; |
| 994 | 996 |
| 995 void setBorderLeftWidth(unsigned v) { SET_VAR(surround, border.m_left.m_widt
h, v); } | 997 void setBorderLeftWidth(unsigned v) { SET_VAR(surround, border.m_left.m_widt
h, v); } |
| 996 void setBorderLeftStyle(EBorderStyle v) { SET_VAR(surround, border.m_left.m_
style, v); } | 998 void setBorderLeftStyle(EBorderStyle v) { SET_VAR(surround, border.m_left.m_
style, v); } |
| 997 void setBorderLeftColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surroun
d, border.m_left, v); } | 999 void setBorderLeftColor(const Color& v) { SET_BORDERVALUE_COLOR(surround, bo
rder.m_left, v); } |
| 998 void setBorderRightWidth(unsigned v) { SET_VAR(surround, border.m_right.m_wi
dth, v); } | 1000 void setBorderRightWidth(unsigned v) { SET_VAR(surround, border.m_right.m_wi
dth, v); } |
| 999 void setBorderRightStyle(EBorderStyle v) { SET_VAR(surround, border.m_right.
m_style, v); } | 1001 void setBorderRightStyle(EBorderStyle v) { SET_VAR(surround, border.m_right.
m_style, v); } |
| 1000 void setBorderRightColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surrou
nd, border.m_right, v); } | 1002 void setBorderRightColor(const Color& v) { SET_BORDERVALUE_COLOR(surround, b
order.m_right, v); } |
| 1001 void setBorderTopWidth(unsigned v) { SET_VAR(surround, border.m_top.m_width,
v); } | 1003 void setBorderTopWidth(unsigned v) { SET_VAR(surround, border.m_top.m_width,
v); } |
| 1002 void setBorderTopStyle(EBorderStyle v) { SET_VAR(surround, border.m_top.m_st
yle, v); } | 1004 void setBorderTopStyle(EBorderStyle v) { SET_VAR(surround, border.m_top.m_st
yle, v); } |
| 1003 void setBorderTopColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surround
, border.m_top, v); } | 1005 void setBorderTopColor(const Color& v) { SET_BORDERVALUE_COLOR(surround, bor
der.m_top, v); } |
| 1004 void setBorderBottomWidth(unsigned v) { SET_VAR(surround, border.m_bottom.m_
width, v); } | 1006 void setBorderBottomWidth(unsigned v) { SET_VAR(surround, border.m_bottom.m_
width, v); } |
| 1005 void setBorderBottomStyle(EBorderStyle v) { SET_VAR(surround, border.m_botto
m.m_style, v); } | 1007 void setBorderBottomStyle(EBorderStyle v) { SET_VAR(surround, border.m_botto
m.m_style, v); } |
| 1006 void setBorderBottomColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surro
und, border.m_bottom, v); } | 1008 void setBorderBottomColor(const Color& v) { SET_BORDERVALUE_COLOR(surround,
border.m_bottom, v); } |
| 1007 | 1009 |
| 1008 void setOutlineWidth(unsigned short v) { SET_VAR(m_background, m_outline.m_w
idth, v); } | 1010 void setOutlineWidth(unsigned short v) { SET_VAR(m_background, m_outline.m_w
idth, v); } |
| 1009 void setOutlineStyleIsAuto(OutlineIsAuto isAuto) { SET_VAR(m_background, m_o
utline.m_isAuto, isAuto); } | 1011 void setOutlineStyleIsAuto(OutlineIsAuto isAuto) { SET_VAR(m_background, m_o
utline.m_isAuto, isAuto); } |
| 1010 void setOutlineStyle(EBorderStyle v) { SET_VAR(m_background, m_outline.m_sty
le, v); } | 1012 void setOutlineStyle(EBorderStyle v) { SET_VAR(m_background, m_outline.m_sty
le, v); } |
| 1011 void setOutlineColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(m_backgrou
nd, m_outline, v); } | 1013 void setOutlineColor(const Color& v) { SET_BORDERVALUE_COLOR(m_background, m
_outline, v); } |
| 1012 | 1014 |
| 1013 void setOverflowX(EOverflow v) { noninherited_flags._overflowX = v; } | 1015 void setOverflowX(EOverflow v) { noninherited_flags._overflowX = v; } |
| 1014 void setOverflowY(EOverflow v) { noninherited_flags._overflowY = v; } | 1016 void setOverflowY(EOverflow v) { noninherited_flags._overflowY = v; } |
| 1015 void setVisibility(EVisibility v) { inherited_flags._visibility = v; } | 1017 void setVisibility(EVisibility v) { inherited_flags._visibility = v; } |
| 1016 void setVerticalAlign(EVerticalAlign v) { noninherited_flags._vertical_align
= v; } | 1018 void setVerticalAlign(EVerticalAlign v) { noninherited_flags._vertical_align
= v; } |
| 1017 void setVerticalAlignLength(Length length) { setVerticalAlign(LENGTH); SET_V
AR(m_box, m_verticalAlign, length); } | 1019 void setVerticalAlignLength(Length length) { setVerticalAlign(LENGTH); SET_V
AR(m_box, m_verticalAlign, length); } |
| 1018 | 1020 |
| 1019 void setHasClip(bool b = true) { SET_VAR(visual, hasClip, b); } | 1021 void setHasClip(bool b = true) { SET_VAR(visual, hasClip, b); } |
| 1020 void setClipLeft(Length v) { SET_VAR(visual, clip.m_left, v); } | 1022 void setClipLeft(Length v) { SET_VAR(visual, clip.m_left, v); } |
| 1021 void setClipRight(Length v) { SET_VAR(visual, clip.m_right, v); } | 1023 void setClipRight(Length v) { SET_VAR(visual, clip.m_right, v); } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1032 bool setFontDescription(const FontDescription&); | 1034 bool setFontDescription(const FontDescription&); |
| 1033 // Only used for blending font sizes when animating, for MathML anonymous bl
ocks, and for text autosizing. | 1035 // Only used for blending font sizes when animating, for MathML anonymous bl
ocks, and for text autosizing. |
| 1034 void setFontSize(float); | 1036 void setFontSize(float); |
| 1035 | 1037 |
| 1036 void setTextAutosizingMultiplier(float v) | 1038 void setTextAutosizingMultiplier(float v) |
| 1037 { | 1039 { |
| 1038 SET_VAR(visual, m_textAutosizingMultiplier, v); | 1040 SET_VAR(visual, m_textAutosizingMultiplier, v); |
| 1039 setFontSize(fontDescription().specifiedSize()); | 1041 setFontSize(fontDescription().specifiedSize()); |
| 1040 } | 1042 } |
| 1041 | 1043 |
| 1042 void setColor(const StyleColor&); | 1044 void setColor(const Color&); |
| 1043 void setTextIndent(Length v) { SET_VAR(rareInheritedData, indent, v); } | 1045 void setTextIndent(Length v) { SET_VAR(rareInheritedData, indent, v); } |
| 1044 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text
IndentLine, v); } | 1046 void setTextIndentLine(TextIndentLine v) { SET_VAR(rareInheritedData, m_text
IndentLine, v); } |
| 1045 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } | 1047 void setTextAlign(ETextAlign v) { inherited_flags._text_align = v; } |
| 1046 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl
ignLast, v); } | 1048 void setTextAlignLast(TextAlignLast v) { SET_VAR(rareInheritedData, m_textAl
ignLast, v); } |
| 1047 void setTextTransform(ETextTransform v) { inherited_flags._text_transform =
v; } | 1049 void setTextTransform(ETextTransform v) { inherited_flags._text_transform =
v; } |
| 1048 void addToTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_
decorations |= v; } | 1050 void addToTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_
decorations |= v; } |
| 1049 void setTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_de
corations = v; } | 1051 void setTextDecorationsInEffect(TextDecoration v) { inherited_flags._text_de
corations = v; } |
| 1050 void setTextDecoration(TextDecoration v) { SET_VAR(visual, textDecoration, v
); } | 1052 void setTextDecoration(TextDecoration v) { SET_VAR(visual, textDecoration, v
); } |
| 1051 #if ENABLE(CSS3_TEXT) | 1053 #if ENABLE(CSS3_TEXT) |
| 1052 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(rareInherit
edData, m_textUnderlinePosition, v); } | 1054 void setTextUnderlinePosition(TextUnderlinePosition v) { SET_VAR(rareInherit
edData, m_textUnderlinePosition, v); } |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals
e); SET_VAR(rareInheritedData, orphans, o); } | 1149 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals
e); SET_VAR(rareInheritedData, orphans, o); } |
| 1148 | 1150 |
| 1149 // For valid values of page-break-inside see http://www.w3.org/TR/CSS21/page
.html#page-break-props | 1151 // For valid values of page-break-inside see http://www.w3.org/TR/CSS21/page
.html#page-break-props |
| 1150 void setPageBreakInside(EPageBreak b) { ASSERT(b == PBAUTO || b == PBAVOID);
noninherited_flags._page_break_inside = b; } | 1152 void setPageBreakInside(EPageBreak b) { ASSERT(b == PBAUTO || b == PBAVOID);
noninherited_flags._page_break_inside = b; } |
| 1151 void setPageBreakBefore(EPageBreak b) { noninherited_flags._page_break_befor
e = b; } | 1153 void setPageBreakBefore(EPageBreak b) { noninherited_flags._page_break_befor
e = b; } |
| 1152 void setPageBreakAfter(EPageBreak b) { noninherited_flags._page_break_after
= b; } | 1154 void setPageBreakAfter(EPageBreak b) { noninherited_flags._page_break_after
= b; } |
| 1153 | 1155 |
| 1154 // CSS3 Setters | 1156 // CSS3 Setters |
| 1155 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} | 1157 void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v);
} |
| 1156 void setTextShadow(PassOwnPtr<ShadowData>, bool add = false); | 1158 void setTextShadow(PassOwnPtr<ShadowData>, bool add = false); |
| 1157 void setTextStrokeColor(const StyleColor& c) { SET_VAR(rareInheritedData, te
xtStrokeColor, c); } | 1159 void setTextStrokeColor(const Color& c) { SET_VAR(rareInheritedData, textStr
okeColor, c); } |
| 1158 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt
h, w); } | 1160 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidt
h, w); } |
| 1159 void setTextFillColor(const StyleColor& c) { SET_VAR(rareInheritedData, text
FillColor, c); } | 1161 void setTextFillColor(const Color& c) { SET_VAR(rareInheritedData, textFillC
olor, c); } |
| 1160 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNo
nInheritedData, opacity, v); } | 1162 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNo
nInheritedData, opacity, v); } |
| 1161 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearan
ce, a); } | 1163 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearan
ce, a); } |
| 1162 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexb
ox-20090723/#alignment | 1164 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexb
ox-20090723/#alignment |
| 1163 void setBoxAlign(EBoxAlignment a) { SET_VAR(rareNonInheritedData.access()->m
_deprecatedFlexibleBox, align, a); } | 1165 void setBoxAlign(EBoxAlignment a) { SET_VAR(rareNonInheritedData.access()->m
_deprecatedFlexibleBox, align, a); } |
| 1164 void setBoxDecorationBreak(EBoxDecorationBreak b) { SET_VAR(m_box, m_boxDeco
rationBreak, b); } | 1166 void setBoxDecorationBreak(EBoxDecorationBreak b) { SET_VAR(m_box, m_boxDeco
rationBreak, b); } |
| 1165 void setBoxDirection(EBoxDirection d) { inherited_flags._box_direction = d;
} | 1167 void setBoxDirection(EBoxDirection d) { inherited_flags._box_direction = d;
} |
| 1166 void setBoxFlex(float f) { SET_VAR(rareNonInheritedData.access()->m_deprecat
edFlexibleBox, flex, f); } | 1168 void setBoxFlex(float f) { SET_VAR(rareNonInheritedData.access()->m_deprecat
edFlexibleBox, flex, f); } |
| 1167 void setBoxFlexGroup(unsigned int fg) { SET_VAR(rareNonInheritedData.access(
)->m_deprecatedFlexibleBox, flex_group, fg); } | 1169 void setBoxFlexGroup(unsigned int fg) { SET_VAR(rareNonInheritedData.access(
)->m_deprecatedFlexibleBox, flex_group, fg); } |
| 1168 void setBoxLines(EBoxLines l) { SET_VAR(rareNonInheritedData.access()->m_dep
recatedFlexibleBox, lines, l); } | 1170 void setBoxLines(EBoxLines l) { SET_VAR(rareNonInheritedData.access()->m_dep
recatedFlexibleBox, lines, l); } |
| 1169 void setBoxOrdinalGroup(unsigned int og) { SET_VAR(rareNonInheritedData.acce
ss()->m_deprecatedFlexibleBox, ordinal_group, og); } | 1171 void setBoxOrdinalGroup(unsigned int og) { SET_VAR(rareNonInheritedData.acce
ss()->m_deprecatedFlexibleBox, ordinal_group, og); } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 void setBorderFit(EBorderFit b) { SET_VAR(rareNonInheritedData, m_borderFit,
b); } | 1223 void setBorderFit(EBorderFit b) { SET_VAR(rareNonInheritedData, m_borderFit,
b); } |
| 1222 void setResize(EResize r) { SET_VAR(rareInheritedData, resize, r); } | 1224 void setResize(EResize r) { SET_VAR(rareInheritedData, resize, r); } |
| 1223 void setColumnAxis(ColumnAxis axis) { SET_VAR(rareNonInheritedData.access()-
>m_multiCol, m_axis, axis); } | 1225 void setColumnAxis(ColumnAxis axis) { SET_VAR(rareNonInheritedData.access()-
>m_multiCol, m_axis, axis); } |
| 1224 void setColumnProgression(ColumnProgression progression) { SET_VAR(rareNonIn
heritedData.access()->m_multiCol, m_progression, progression); } | 1226 void setColumnProgression(ColumnProgression progression) { SET_VAR(rareNonIn
heritedData.access()->m_multiCol, m_progression, progression); } |
| 1225 void setColumnWidth(float f) { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoWidth, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_
width, f); } | 1227 void setColumnWidth(float f) { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoWidth, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_
width, f); } |
| 1226 void setHasAutoColumnWidth() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoWidth, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_w
idth, 0); } | 1228 void setHasAutoColumnWidth() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoWidth, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_w
idth, 0); } |
| 1227 void setColumnCount(unsigned short c) { SET_VAR(rareNonInheritedData.access(
)->m_multiCol, m_autoCount, false); SET_VAR(rareNonInheritedData.access()->m_mul
tiCol, m_count, c); } | 1229 void setColumnCount(unsigned short c) { SET_VAR(rareNonInheritedData.access(
)->m_multiCol, m_autoCount, false); SET_VAR(rareNonInheritedData.access()->m_mul
tiCol, m_count, c); } |
| 1228 void setHasAutoColumnCount() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoCount, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_c
ount, 0); } | 1230 void setHasAutoColumnCount() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_autoCount, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_c
ount, 0); } |
| 1229 void setColumnGap(float f) { SET_VAR(rareNonInheritedData.access()->m_multiC
ol, m_normalGap, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_ga
p, f); } | 1231 void setColumnGap(float f) { SET_VAR(rareNonInheritedData.access()->m_multiC
ol, m_normalGap, false); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_ga
p, f); } |
| 1230 void setHasNormalColumnGap() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_normalGap, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_g
ap, 0); } | 1232 void setHasNormalColumnGap() { SET_VAR(rareNonInheritedData.access()->m_mult
iCol, m_normalGap, true); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_g
ap, 0); } |
| 1231 void setColumnRuleColor(const StyleColor& c) { SET_BORDERVALUE_COLOR(rareNon
InheritedData.access()->m_multiCol, m_rule, c); } | 1233 void setColumnRuleColor(const Color& c) { SET_BORDERVALUE_COLOR(rareNonInher
itedData.access()->m_multiCol, m_rule, c); } |
| 1232 void setColumnRuleStyle(EBorderStyle b) { SET_VAR(rareNonInheritedData.acces
s()->m_multiCol, m_rule.m_style, b); } | 1234 void setColumnRuleStyle(EBorderStyle b) { SET_VAR(rareNonInheritedData.acces
s()->m_multiCol, m_rule.m_style, b); } |
| 1233 void setColumnRuleWidth(unsigned short w) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_rule.m_width, w); } | 1235 void setColumnRuleWidth(unsigned short w) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_rule.m_width, w); } |
| 1234 void resetColumnRule() { SET_VAR(rareNonInheritedData.access()->m_multiCol,
m_rule, BorderValue()); } | 1236 void resetColumnRule() { SET_VAR(rareNonInheritedData.access()->m_multiCol,
m_rule, BorderValue()); } |
| 1235 void setColumnSpan(ColumnSpan columnSpan) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_columnSpan, columnSpan); } | 1237 void setColumnSpan(ColumnSpan columnSpan) { SET_VAR(rareNonInheritedData.acc
ess()->m_multiCol, m_columnSpan, columnSpan); } |
| 1236 void setColumnBreakBefore(EPageBreak p) { SET_VAR(rareNonInheritedData.acces
s()->m_multiCol, m_breakBefore, p); } | 1238 void setColumnBreakBefore(EPageBreak p) { SET_VAR(rareNonInheritedData.acces
s()->m_multiCol, m_breakBefore, p); } |
| 1237 // For valid values of column-break-inside see http://www.w3.org/TR/css3-mul
ticol/#break-before-break-after-break-inside | 1239 // For valid values of column-break-inside see http://www.w3.org/TR/css3-mul
ticol/#break-before-break-after-break-inside |
| 1238 void setColumnBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID
); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_breakInside, p); } | 1240 void setColumnBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID
); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_breakInside, p); } |
| 1239 void setColumnBreakAfter(EPageBreak p) { SET_VAR(rareNonInheritedData.access
()->m_multiCol, m_breakAfter, p); } | 1241 void setColumnBreakAfter(EPageBreak p) { SET_VAR(rareNonInheritedData.access
()->m_multiCol, m_breakAfter, p); } |
| 1240 void setRegionBreakBefore(EPageBreak p) { SET_VAR(rareNonInheritedData, m_re
gionBreakBefore, p); } | 1242 void setRegionBreakBefore(EPageBreak p) { SET_VAR(rareNonInheritedData, m_re
gionBreakBefore, p); } |
| 1241 void setRegionBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID
); SET_VAR(rareNonInheritedData, m_regionBreakInside, p); } | 1243 void setRegionBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID
); SET_VAR(rareNonInheritedData, m_regionBreakInside, p); } |
| 1242 void setRegionBreakAfter(EPageBreak p) { SET_VAR(rareNonInheritedData, m_reg
ionBreakAfter, p); } | 1244 void setRegionBreakAfter(EPageBreak p) { SET_VAR(rareNonInheritedData, m_reg
ionBreakAfter, p); } |
| 1243 void inheritColumnPropertiesFrom(RenderStyle* parent) { rareNonInheritedData
.access()->m_multiCol = parent->rareNonInheritedData->m_multiCol; } | 1245 void inheritColumnPropertiesFrom(RenderStyle* parent) { rareNonInheritedData
.access()->m_multiCol = parent->rareNonInheritedData->m_multiCol; } |
| 1244 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited
Data.access()->m_transform, m_operations, ops); } | 1246 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited
Data.access()->m_transform, m_operations, ops); } |
| 1245 void setTransformOriginX(Length l) { SET_VAR(rareNonInheritedData.access()->
m_transform, m_x, l); } | 1247 void setTransformOriginX(Length l) { SET_VAR(rareNonInheritedData.access()->
m_transform, m_x, l); } |
| 1246 void setTransformOriginY(Length l) { SET_VAR(rareNonInheritedData.access()->
m_transform, m_y, l); } | 1248 void setTransformOriginY(Length l) { SET_VAR(rareNonInheritedData.access()->
m_transform, m_y, l); } |
| 1247 void setTransformOriginZ(float f) { SET_VAR(rareNonInheritedData.access()->m
_transform, m_z, f); } | 1249 void setTransformOriginZ(float f) { SET_VAR(rareNonInheritedData.access()->m
_transform, m_z, f); } |
| 1248 void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); } | 1250 void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); } |
| 1249 void setTextCombine(TextCombine v) { SET_VAR(rareNonInheritedData, m_textCom
bine, v); } | 1251 void setTextCombine(TextCombine v) { SET_VAR(rareNonInheritedData, m_textCom
bine, v); } |
| 1250 void setTextDecorationColor(const StyleColor& c) { SET_VAR(rareNonInheritedD
ata, m_textDecorationColor, c); } | 1252 void setTextDecorationColor(const Color& c) { SET_VAR(rareNonInheritedData,
m_textDecorationColor, c); } |
| 1251 void setTextEmphasisColor(const StyleColor& c) { SET_VAR(rareInheritedData,
textEmphasisColor, c); } | 1253 void setTextEmphasisColor(const Color& c) { SET_VAR(rareInheritedData, textE
mphasisColor, c); } |
| 1252 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(rareInheritedData,
textEmphasisFill, fill); } | 1254 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(rareInheritedData,
textEmphasisFill, fill); } |
| 1253 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(rareInheritedData,
textEmphasisMark, mark); } | 1255 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(rareInheritedData,
textEmphasisMark, mark); } |
| 1254 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(rareInher
itedData, textEmphasisCustomMark, mark); } | 1256 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(rareInher
itedData, textEmphasisCustomMark, mark); } |
| 1255 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(rareIn
heritedData, textEmphasisPosition, position); } | 1257 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(rareIn
heritedData, textEmphasisPosition, position); } |
| 1256 bool setTextOrientation(TextOrientation); | 1258 bool setTextOrientation(TextOrientation); |
| 1257 | 1259 |
| 1258 void setObjectFit(ObjectFit f) { SET_VAR(rareNonInheritedData, m_objectFit,
f); } | 1260 void setObjectFit(ObjectFit f) { SET_VAR(rareNonInheritedData, m_objectFit,
f); } |
| 1259 | 1261 |
| 1260 void setRubyPosition(RubyPosition position) { SET_VAR(rareInheritedData, m_r
ubyPosition, position); } | 1262 void setRubyPosition(RubyPosition position) { SET_VAR(rareInheritedData, m_r
ubyPosition, position); } |
| 1261 | 1263 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 void setPerspectiveOriginX(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginX, l); } | 1300 void setPerspectiveOriginX(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginX, l); } |
| 1299 void setPerspectiveOriginY(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginY, l); } | 1301 void setPerspectiveOriginY(Length l) { SET_VAR(rareNonInheritedData, m_persp
ectiveOriginY, l); } |
| 1300 void setPageSize(LengthSize s) { SET_VAR(rareNonInheritedData, m_pageSize, s
); } | 1302 void setPageSize(LengthSize s) { SET_VAR(rareNonInheritedData, m_pageSize, s
); } |
| 1301 void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageS
izeType, t); } | 1303 void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageS
izeType, t); } |
| 1302 void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAG
E_SIZE_AUTO); } | 1304 void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAG
E_SIZE_AUTO); } |
| 1303 | 1305 |
| 1304 void setIsRunningAcceleratedAnimation(bool b = true) { SET_VAR(rareNonInheri
tedData, m_runningAcceleratedAnimation, b); } | 1306 void setIsRunningAcceleratedAnimation(bool b = true) { SET_VAR(rareNonInheri
tedData, m_runningAcceleratedAnimation, b); } |
| 1305 | 1307 |
| 1306 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } | 1308 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line
BoxContain, c); } |
| 1307 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } | 1309 void setLineClamp(LineClampValue c) { SET_VAR(rareNonInheritedData, lineClam
p, c); } |
| 1308 void setTapHighlightColor(const StyleColor& c) { SET_VAR(rareInheritedData,
tapHighlightColor, c); } | 1310 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi
ghlightColor, c); } |
| 1309 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } | 1311 void setTextSecurity(ETextSecurity aTextSecurity) { SET_VAR(rareInheritedDat
a, textSecurity, aTextSecurity); } |
| 1310 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } | 1312 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc
tion, t); } |
| 1311 | 1313 |
| 1312 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } | 1314 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } |
| 1313 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } | 1315 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } |
| 1314 | 1316 |
| 1315 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } | 1317 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } |
| 1316 StyleColor fillPaintColor() const { return svgStyle()->fillPaintColor(); } | 1318 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } |
| 1317 void setFillPaintColor(const StyleColor& c) { accessSVGStyle()->setFillPaint
(SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c.color(), ""); } | 1319 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP
aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } |
| 1318 float fillOpacity() const { return svgStyle()->fillOpacity(); } | 1320 float fillOpacity() const { return svgStyle()->fillOpacity(); } |
| 1319 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } | 1321 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } |
| 1320 | 1322 |
| 1321 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s
trokePaintType(); } | 1323 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s
trokePaintType(); } |
| 1322 StyleColor strokePaintColor() const { return svgStyle()->strokePaintColor();
} | 1324 Color strokePaintColor() const { return svgStyle()->strokePaintColor(); } |
| 1323 void setStrokePaintColor(const StyleColor& c) { accessSVGStyle()->setStrokeP
aint(SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c.color(), ""); } | 1325 void setStrokePaintColor(const Color& c) { accessSVGStyle()->setStrokePaint(
SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } |
| 1324 float strokeOpacity() const { return svgStyle()->strokeOpacity(); } | 1326 float strokeOpacity() const { return svgStyle()->strokeOpacity(); } |
| 1325 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); } | 1327 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); } |
| 1326 SVGLength strokeWidth() const { return svgStyle()->strokeWidth(); } | 1328 SVGLength strokeWidth() const { return svgStyle()->strokeWidth(); } |
| 1327 void setStrokeWidth(SVGLength w) { accessSVGStyle()->setStrokeWidth(w); } | 1329 void setStrokeWidth(SVGLength w) { accessSVGStyle()->setStrokeWidth(w); } |
| 1328 Vector<SVGLength> strokeDashArray() const { return svgStyle()->strokeDashArr
ay(); } | 1330 Vector<SVGLength> strokeDashArray() const { return svgStyle()->strokeDashArr
ay(); } |
| 1329 void setStrokeDashArray(Vector<SVGLength> array) { accessSVGStyle()->setStro
keDashArray(array); } | 1331 void setStrokeDashArray(Vector<SVGLength> array) { accessSVGStyle()->setStro
keDashArray(array); } |
| 1330 SVGLength strokeDashOffset() const { return svgStyle()->strokeDashOffset();
} | 1332 SVGLength strokeDashOffset() const { return svgStyle()->strokeDashOffset();
} |
| 1331 void setStrokeDashOffset(SVGLength d) { accessSVGStyle()->setStrokeDashOffse
t(d); } | 1333 void setStrokeDashOffset(SVGLength d) { accessSVGStyle()->setStrokeDashOffse
t(d); } |
| 1332 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); } | 1334 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); } |
| 1333 void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f)
; } | 1335 void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f)
; } |
| 1334 | 1336 |
| 1335 float floodOpacity() const { return svgStyle()->floodOpacity(); } | 1337 float floodOpacity() const { return svgStyle()->floodOpacity(); } |
| 1336 void setFloodOpacity(float f) { accessSVGStyle()->setFloodOpacity(f); } | 1338 void setFloodOpacity(float f) { accessSVGStyle()->setFloodOpacity(f); } |
| 1337 | 1339 |
| 1338 float stopOpacity() const { return svgStyle()->stopOpacity(); } | 1340 float stopOpacity() const { return svgStyle()->stopOpacity(); } |
| 1339 void setStopOpacity(float f) { accessSVGStyle()->setStopOpacity(f); } | 1341 void setStopOpacity(float f) { accessSVGStyle()->setStopOpacity(f); } |
| 1340 | 1342 |
| 1341 void setStopColor(const StyleColor& c) { accessSVGStyle()->setStopColor(c.co
lor()); } | 1343 void setStopColor(const Color& c) { accessSVGStyle()->setStopColor(c); } |
| 1342 void setFloodColor(const StyleColor& c) { accessSVGStyle()->setFloodColor(c.
color()); } | 1344 void setFloodColor(const Color& c) { accessSVGStyle()->setFloodColor(c); } |
| 1343 void setLightingColor(const StyleColor& c) { accessSVGStyle()->setLightingCo
lor(c.color()); } | 1345 void setLightingColor(const Color& c) { accessSVGStyle()->setLightingColor(c
); } |
| 1344 | 1346 |
| 1345 SVGLength baselineShiftValue() const { return svgStyle()->baselineShiftValue
(); } | 1347 SVGLength baselineShiftValue() const { return svgStyle()->baselineShiftValue
(); } |
| 1346 void setBaselineShiftValue(SVGLength s) { accessSVGStyle()->setBaselineShift
Value(s); } | 1348 void setBaselineShiftValue(SVGLength s) { accessSVGStyle()->setBaselineShift
Value(s); } |
| 1347 SVGLength kerning() const { return svgStyle()->kerning(); } | 1349 SVGLength kerning() const { return svgStyle()->kerning(); } |
| 1348 void setKerning(SVGLength k) { accessSVGStyle()->setKerning(k); } | 1350 void setKerning(SVGLength k) { accessSVGStyle()->setKerning(k); } |
| 1349 | 1351 |
| 1350 void setShapeInside(PassRefPtr<ShapeValue> value) | 1352 void setShapeInside(PassRefPtr<ShapeValue> value) |
| 1351 { | 1353 { |
| 1352 if (rareNonInheritedData->m_shapeInside == value) | 1354 if (rareNonInheritedData->m_shapeInside == value) |
| 1353 return; | 1355 return; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 bool unique() const { return noninherited_flags.unique; } | 1438 bool unique() const { return noninherited_flags.unique; } |
| 1437 void setUnique() { noninherited_flags.unique = true; } | 1439 void setUnique() { noninherited_flags.unique = true; } |
| 1438 | 1440 |
| 1439 bool emptyState() const { return noninherited_flags.emptyState; } | 1441 bool emptyState() const { return noninherited_flags.emptyState; } |
| 1440 void setEmptyState(bool b) { setUnique(); noninherited_flags.emptyState = b;
} | 1442 void setEmptyState(bool b) { setUnique(); noninherited_flags.emptyState = b;
} |
| 1441 bool firstChildState() const { return noninherited_flags.firstChildState; } | 1443 bool firstChildState() const { return noninherited_flags.firstChildState; } |
| 1442 void setFirstChildState() { setUnique(); noninherited_flags.firstChildState
= true; } | 1444 void setFirstChildState() { setUnique(); noninherited_flags.firstChildState
= true; } |
| 1443 bool lastChildState() const { return noninherited_flags.lastChildState; } | 1445 bool lastChildState() const { return noninherited_flags.lastChildState; } |
| 1444 void setLastChildState() { setUnique(); noninherited_flags.lastChildState =
true; } | 1446 void setLastChildState() { setUnique(); noninherited_flags.lastChildState =
true; } |
| 1445 | 1447 |
| 1446 StyleColor visitedDependentColor(int colorProperty) const; | 1448 Color visitedDependentColor(int colorProperty) const; |
| 1447 | 1449 |
| 1448 void setHasExplicitlyInheritedProperties() { noninherited_flags.explicitInhe
ritance = true; } | 1450 void setHasExplicitlyInheritedProperties() { noninherited_flags.explicitInhe
ritance = true; } |
| 1449 bool hasExplicitlyInheritedProperties() const { return noninherited_flags.ex
plicitInheritance; } | 1451 bool hasExplicitlyInheritedProperties() const { return noninherited_flags.ex
plicitInheritance; } |
| 1450 | 1452 |
| 1453 void setHasCurrentColor() { noninherited_flags.currentColor = true; } |
| 1454 bool hasCurrentColor() const { return noninherited_flags.currentColor; } |
| 1455 |
| 1451 // Initial values for all the properties | 1456 // Initial values for all the properties |
| 1452 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } | 1457 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } |
| 1453 static EBorderStyle initialBorderStyle() { return BNONE; } | 1458 static EBorderStyle initialBorderStyle() { return BNONE; } |
| 1454 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } | 1459 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } |
| 1455 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } | 1460 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } |
| 1456 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } | 1461 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed)
, Length(0, Fixed)); } |
| 1457 static ECaptionSide initialCaptionSide() { return CAPTOP; } | 1462 static ECaptionSide initialCaptionSide() { return CAPTOP; } |
| 1458 static EClear initialClear() { return CNONE; } | 1463 static EClear initialClear() { return CNONE; } |
| 1459 static ColumnAxis initialColumnAxis() { return AutoColumnAxis; } | 1464 static ColumnAxis initialColumnAxis() { return AutoColumnAxis; } |
| 1460 static ColumnProgression initialColumnProgression() { return NormalColumnPro
gression; } | 1465 static ColumnProgression initialColumnProgression() { return NormalColumnPro
gression; } |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1625 static QuotesData* initialQuotes() { return 0; } | 1630 static QuotesData* initialQuotes() { return 0; } |
| 1626 | 1631 |
| 1627 // Keep these at the end. | 1632 // Keep these at the end. |
| 1628 // FIXME: Why? Seems these should all be one big sorted list. | 1633 // FIXME: Why? Seems these should all be one big sorted list. |
| 1629 static LineClampValue initialLineClamp() { return LineClampValue(); } | 1634 static LineClampValue initialLineClamp() { return LineClampValue(); } |
| 1630 static ETextSecurity initialTextSecurity() { return TSNONE; } | 1635 static ETextSecurity initialTextSecurity() { return TSNONE; } |
| 1631 static Color initialTapHighlightColor(); | 1636 static Color initialTapHighlightColor(); |
| 1632 static const FilterOperations& initialFilter() { DEFINE_STATIC_LOCAL(FilterO
perations, ops, ()); return ops; } | 1637 static const FilterOperations& initialFilter() { DEFINE_STATIC_LOCAL(FilterO
perations, ops, ()); return ops; } |
| 1633 static BlendMode initialBlendMode() { return BlendModeNormal; } | 1638 static BlendMode initialBlendMode() { return BlendModeNormal; } |
| 1634 private: | 1639 private: |
| 1635 void setVisitedLinkColor(const StyleColor&); | 1640 void setVisitedLinkColor(const Color&); |
| 1636 void setVisitedLinkBackgroundColor(const StyleColor& v) { SET_VAR(rareNonInh
eritedData, m_visitedLinkBackgroundColor, v); } | 1641 void setVisitedLinkBackgroundColor(const Color& v) { SET_VAR(rareNonInherite
dData, m_visitedLinkBackgroundColor, v); } |
| 1637 void setVisitedLinkBorderLeftColor(const StyleColor& v) { SET_VAR(rareNonInh
eritedData, m_visitedLinkBorderLeftColor, v); } | 1642 void setVisitedLinkBorderLeftColor(const Color& v) { SET_VAR(rareNonInherite
dData, m_visitedLinkBorderLeftColor, v); } |
| 1638 void setVisitedLinkBorderRightColor(const StyleColor& v) { SET_VAR(rareNonIn
heritedData, m_visitedLinkBorderRightColor, v); } | 1643 void setVisitedLinkBorderRightColor(const Color& v) { SET_VAR(rareNonInherit
edData, m_visitedLinkBorderRightColor, v); } |
| 1639 void setVisitedLinkBorderBottomColor(const StyleColor& v) { SET_VAR(rareNonI
nheritedData, m_visitedLinkBorderBottomColor, v); } | 1644 void setVisitedLinkBorderBottomColor(const Color& v) { SET_VAR(rareNonInheri
tedData, m_visitedLinkBorderBottomColor, v); } |
| 1640 void setVisitedLinkBorderTopColor(const StyleColor& v) { SET_VAR(rareNonInhe
ritedData, m_visitedLinkBorderTopColor, v); } | 1645 void setVisitedLinkBorderTopColor(const Color& v) { SET_VAR(rareNonInherited
Data, m_visitedLinkBorderTopColor, v); } |
| 1641 void setVisitedLinkOutlineColor(const StyleColor& v) { SET_VAR(rareNonInheri
tedData, m_visitedLinkOutlineColor, v); } | 1646 void setVisitedLinkOutlineColor(const Color& v) { SET_VAR(rareNonInheritedDa
ta, m_visitedLinkOutlineColor, v); } |
| 1642 void setVisitedLinkColumnRuleColor(const StyleColor& v) { SET_VAR(rareNonInh
eritedData.access()->m_multiCol, m_visitedLinkColumnRuleColor, v); } | 1647 void setVisitedLinkColumnRuleColor(const Color& v) { SET_VAR(rareNonInherite
dData.access()->m_multiCol, m_visitedLinkColumnRuleColor, v); } |
| 1643 void setVisitedLinkTextDecorationColor(const StyleColor& v) { SET_VAR(rareNo
nInheritedData, m_visitedLinkTextDecorationColor, v); } | 1648 void setVisitedLinkTextDecorationColor(const Color& v) { SET_VAR(rareNonInhe
ritedData, m_visitedLinkTextDecorationColor, v); } |
| 1644 void setVisitedLinkTextEmphasisColor(const StyleColor& v) { SET_VAR(rareInhe
ritedData, visitedLinkTextEmphasisColor, v); } | 1649 void setVisitedLinkTextEmphasisColor(const Color& v) { SET_VAR(rareInherited
Data, visitedLinkTextEmphasisColor, v); } |
| 1645 void setVisitedLinkTextFillColor(const StyleColor& v) { SET_VAR(rareInherite
dData, visitedLinkTextFillColor, v); } | 1650 void setVisitedLinkTextFillColor(const Color& v) { SET_VAR(rareInheritedData
, visitedLinkTextFillColor, v); } |
| 1646 void setVisitedLinkTextStrokeColor(const StyleColor& v) { SET_VAR(rareInheri
tedData, visitedLinkTextStrokeColor, v); } | 1651 void setVisitedLinkTextStrokeColor(const Color& v) { SET_VAR(rareInheritedDa
ta, visitedLinkTextStrokeColor, v); } |
| 1647 | 1652 |
| 1648 void inheritUnicodeBidiFrom(const RenderStyle* parent) { noninherited_flags.
_unicodeBidi = parent->noninherited_flags._unicodeBidi; } | 1653 void inheritUnicodeBidiFrom(const RenderStyle* parent) { noninherited_flags.
_unicodeBidi = parent->noninherited_flags._unicodeBidi; } |
| 1649 void getShadowExtent(const ShadowData*, LayoutUnit& top, LayoutUnit& right,
LayoutUnit& bottom, LayoutUnit& left) const; | 1654 void getShadowExtent(const ShadowData*, LayoutUnit& top, LayoutUnit& right,
LayoutUnit& bottom, LayoutUnit& left) const; |
| 1650 LayoutBoxExtent getShadowInsetExtent(const ShadowData*) const; | 1655 LayoutBoxExtent getShadowInsetExtent(const ShadowData*) const; |
| 1651 void getShadowHorizontalExtent(const ShadowData*, LayoutUnit& left, LayoutUn
it& right) const; | 1656 void getShadowHorizontalExtent(const ShadowData*, LayoutUnit& left, LayoutUn
it& right) const; |
| 1652 void getShadowVerticalExtent(const ShadowData*, LayoutUnit& top, LayoutUnit&
bottom) const; | 1657 void getShadowVerticalExtent(const ShadowData*, LayoutUnit& top, LayoutUnit&
bottom) const; |
| 1653 void getShadowInlineDirectionExtent(const ShadowData* shadow, LayoutUnit& lo
gicalLeft, LayoutUnit& logicalRight) const | 1658 void getShadowInlineDirectionExtent(const ShadowData* shadow, LayoutUnit& lo
gicalLeft, LayoutUnit& logicalRight) const |
| 1654 { | 1659 { |
| 1655 return isHorizontalWritingMode() ? getShadowHorizontalExtent(shadow, log
icalLeft, logicalRight) : getShadowVerticalExtent(shadow, logicalLeft, logicalRi
ght); | 1660 return isHorizontalWritingMode() ? getShadowHorizontalExtent(shadow, log
icalLeft, logicalRight) : getShadowVerticalExtent(shadow, logicalLeft, logicalRi
ght); |
| 1656 } | 1661 } |
| 1657 void getShadowBlockDirectionExtent(const ShadowData* shadow, LayoutUnit& log
icalTop, LayoutUnit& logicalBottom) const | 1662 void getShadowBlockDirectionExtent(const ShadowData* shadow, LayoutUnit& log
icalTop, LayoutUnit& logicalBottom) const |
| 1658 { | 1663 { |
| 1659 return isHorizontalWritingMode() ? getShadowVerticalExtent(shadow, logic
alTop, logicalBottom) : getShadowHorizontalExtent(shadow, logicalTop, logicalBot
tom); | 1664 return isHorizontalWritingMode() ? getShadowVerticalExtent(shadow, logic
alTop, logicalBottom) : getShadowHorizontalExtent(shadow, logicalTop, logicalBot
tom); |
| 1660 } | 1665 } |
| 1661 | 1666 |
| 1662 bool isDisplayReplacedType(EDisplay display) const | 1667 bool isDisplayReplacedType(EDisplay display) const |
| 1663 { | 1668 { |
| 1664 return display == INLINE_BLOCK || display == INLINE_BOX || display == IN
LINE_FLEX | 1669 return display == INLINE_BLOCK || display == INLINE_BOX || display == IN
LINE_FLEX |
| 1665 || display == INLINE_TABLE || display == INLINE_GRID; | 1670 || display == INLINE_TABLE || display == INLINE_GRID; |
| 1666 } | 1671 } |
| 1667 | 1672 |
| 1668 bool isDisplayInlineType(EDisplay display) const | 1673 bool isDisplayInlineType(EDisplay display) const |
| 1669 { | 1674 { |
| 1670 return display == INLINE || isDisplayReplacedType(display); | 1675 return display == INLINE || isDisplayReplacedType(display); |
| 1671 } | 1676 } |
| 1672 | 1677 |
| 1673 // Color accessors are all private to make sure callers use visitedDependent
Color instead to access them. | 1678 // Color accessors are all private to make sure callers use visitedDependent
Color instead to access them. |
| 1674 StyleColor invalidColor() const { static Color invalid; return invalid; } | 1679 Color invalidColor() const { static Color invalid; return invalid; } |
| 1675 StyleColor borderLeftColor() const { return surround->border.left().color();
} | 1680 Color borderLeftColor() const { return surround->border.left().color(); } |
| 1676 StyleColor borderRightColor() const { return surround->border.right().color(
); } | 1681 Color borderRightColor() const { return surround->border.right().color(); } |
| 1677 StyleColor borderTopColor() const { return surround->border.top().color(); } | 1682 Color borderTopColor() const { return surround->border.top().color(); } |
| 1678 StyleColor borderBottomColor() const { return surround->border.bottom().colo
r(); } | 1683 Color borderBottomColor() const { return surround->border.bottom().color();
} |
| 1679 StyleColor backgroundColor() const { return m_background->color(); } | 1684 Color backgroundColor() const { return m_background->color(); } |
| 1680 StyleColor color() const; | 1685 Color color() const; |
| 1681 StyleColor columnRuleColor() const { return rareNonInheritedData->m_multiCol
->m_rule.color(); } | 1686 Color columnRuleColor() const { return rareNonInheritedData->m_multiCol->m_r
ule.color(); } |
| 1682 StyleColor outlineColor() const { return m_background->outline().color(); } | 1687 Color outlineColor() const { return m_background->outline().color(); } |
| 1683 StyleColor textEmphasisColor() const { return rareInheritedData->textEmphasi
sColor; } | 1688 Color textEmphasisColor() const { return rareInheritedData->textEmphasisColo
r; } |
| 1684 StyleColor textFillColor() const { return rareInheritedData->textFillColor;
} | 1689 Color textFillColor() const { return rareInheritedData->textFillColor; } |
| 1685 StyleColor textStrokeColor() const { return rareInheritedData->textStrokeCol
or; } | 1690 Color textStrokeColor() const { return rareInheritedData->textStrokeColor; } |
| 1686 StyleColor visitedLinkColor() const; | 1691 Color visitedLinkColor() const; |
| 1687 StyleColor visitedLinkBackgroundColor() const { return rareNonInheritedData-
>m_visitedLinkBackgroundColor; } | 1692 Color visitedLinkBackgroundColor() const { return rareNonInheritedData->m_vi
sitedLinkBackgroundColor; } |
| 1688 StyleColor visitedLinkBorderLeftColor() const { return rareNonInheritedData-
>m_visitedLinkBorderLeftColor; } | 1693 Color visitedLinkBorderLeftColor() const { return rareNonInheritedData->m_vi
sitedLinkBorderLeftColor; } |
| 1689 StyleColor visitedLinkBorderRightColor() const { return rareNonInheritedData
->m_visitedLinkBorderRightColor; } | 1694 Color visitedLinkBorderRightColor() const { return rareNonInheritedData->m_v
isitedLinkBorderRightColor; } |
| 1690 StyleColor visitedLinkBorderBottomColor() const { return rareNonInheritedDat
a->m_visitedLinkBorderBottomColor; } | 1695 Color visitedLinkBorderBottomColor() const { return rareNonInheritedData->m_
visitedLinkBorderBottomColor; } |
| 1691 StyleColor visitedLinkBorderTopColor() const { return rareNonInheritedData->
m_visitedLinkBorderTopColor; } | 1696 Color visitedLinkBorderTopColor() const { return rareNonInheritedData->m_vis
itedLinkBorderTopColor; } |
| 1692 StyleColor visitedLinkOutlineColor() const { return rareNonInheritedData->m_
visitedLinkOutlineColor; } | 1697 Color visitedLinkOutlineColor() const { return rareNonInheritedData->m_visit
edLinkOutlineColor; } |
| 1693 StyleColor visitedLinkColumnRuleColor() const { return rareNonInheritedData-
>m_multiCol->m_visitedLinkColumnRuleColor; } | 1698 Color visitedLinkColumnRuleColor() const { return rareNonInheritedData->m_mu
ltiCol->m_visitedLinkColumnRuleColor; } |
| 1694 StyleColor textDecorationColor() const { return rareNonInheritedData->m_text
DecorationColor; } | 1699 Color textDecorationColor() const { return rareNonInheritedData->m_textDecor
ationColor; } |
| 1695 StyleColor visitedLinkTextDecorationColor() const { return rareNonInheritedD
ata->m_visitedLinkTextDecorationColor; } | 1700 Color visitedLinkTextDecorationColor() const { return rareNonInheritedData->
m_visitedLinkTextDecorationColor; } |
| 1696 StyleColor visitedLinkTextEmphasisColor() const { return rareInheritedData->
visitedLinkTextEmphasisColor; } | 1701 Color visitedLinkTextEmphasisColor() const { return rareInheritedData->visit
edLinkTextEmphasisColor; } |
| 1697 StyleColor visitedLinkTextFillColor() const { return rareInheritedData->visi
tedLinkTextFillColor; } | 1702 Color visitedLinkTextFillColor() const { return rareInheritedData->visitedLi
nkTextFillColor; } |
| 1698 StyleColor visitedLinkTextStrokeColor() const { return rareInheritedData->vi
sitedLinkTextStrokeColor; } | 1703 Color visitedLinkTextStrokeColor() const { return rareInheritedData->visited
LinkTextStrokeColor; } |
| 1699 | 1704 |
| 1700 StyleColor colorIncludingFallback(int colorProperty, bool visitedLink) const
; | 1705 Color colorIncludingFallback(int colorProperty, bool visitedLink) const; |
| 1701 | 1706 |
| 1702 StyleColor stopColor() const { return svgStyle()->stopColor(); } | 1707 Color stopColor() const { return svgStyle()->stopColor(); } |
| 1703 StyleColor floodColor() const { return svgStyle()->floodColor(); } | 1708 Color floodColor() const { return svgStyle()->floodColor(); } |
| 1704 StyleColor lightingColor() const { return svgStyle()->lightingColor(); } | 1709 Color lightingColor() const { return svgStyle()->lightingColor(); } |
| 1705 | 1710 |
| 1706 void appendContent(PassOwnPtr<ContentData>); | 1711 void appendContent(PassOwnPtr<ContentData>); |
| 1707 }; | 1712 }; |
| 1708 | 1713 |
| 1709 inline int adjustForAbsoluteZoom(int value, const RenderStyle* style) | 1714 inline int adjustForAbsoluteZoom(int value, const RenderStyle* style) |
| 1710 { | 1715 { |
| 1711 double zoomFactor = style->effectiveZoom(); | 1716 double zoomFactor = style->effectiveZoom(); |
| 1712 if (zoomFactor == 1) | 1717 if (zoomFactor == 1) |
| 1713 return value; | 1718 return value; |
| 1714 // Needed because computeLengthInt truncates (rather than rounds) when scali
ng up. | 1719 // Needed because computeLengthInt truncates (rather than rounds) when scali
ng up. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1754 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) | 1759 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) |
| 1755 return false; | 1760 return false; |
| 1756 | 1761 |
| 1757 rareInheritedData.access()->m_textOrientation = textOrientation; | 1762 rareInheritedData.access()->m_textOrientation = textOrientation; |
| 1758 return true; | 1763 return true; |
| 1759 } | 1764 } |
| 1760 | 1765 |
| 1761 } // namespace WebCore | 1766 } // namespace WebCore |
| 1762 | 1767 |
| 1763 #endif // RenderStyle_h | 1768 #endif // RenderStyle_h |
| OLD | NEW |