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

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

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

Powered by Google App Engine
This is Rietveld 408576698