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

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

Issue 815933006: Change all uses of the RoundedRect class to use FloatRoundedRect instead. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 12 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "core/rendering/style/TransformOrigin.h" 60 #include "core/rendering/style/TransformOrigin.h"
61 #include "platform/Length.h" 61 #include "platform/Length.h"
62 #include "platform/LengthBox.h" 62 #include "platform/LengthBox.h"
63 #include "platform/LengthPoint.h" 63 #include "platform/LengthPoint.h"
64 #include "platform/LengthSize.h" 64 #include "platform/LengthSize.h"
65 #include "platform/ThemeTypes.h" 65 #include "platform/ThemeTypes.h"
66 #include "platform/fonts/FontBaseline.h" 66 #include "platform/fonts/FontBaseline.h"
67 #include "platform/fonts/FontDescription.h" 67 #include "platform/fonts/FontDescription.h"
68 #include "platform/geometry/FloatRoundedRect.h" 68 #include "platform/geometry/FloatRoundedRect.h"
69 #include "platform/geometry/LayoutBoxExtent.h" 69 #include "platform/geometry/LayoutBoxExtent.h"
70 #include "platform/geometry/RoundedRect.h"
71 #include "platform/graphics/Color.h" 70 #include "platform/graphics/Color.h"
72 #include "platform/graphics/GraphicsTypes.h" 71 #include "platform/graphics/GraphicsTypes.h"
73 #include "platform/scroll/ScrollableArea.h" 72 #include "platform/scroll/ScrollableArea.h"
74 #include "platform/text/TextDirection.h" 73 #include "platform/text/TextDirection.h"
75 #include "platform/text/UnicodeBidi.h" 74 #include "platform/text/UnicodeBidi.h"
76 #include "platform/transforms/TransformOperations.h" 75 #include "platform/transforms/TransformOperations.h"
77 #include "wtf/Forward.h" 76 #include "wtf/Forward.h"
78 #include "wtf/OwnPtr.h" 77 #include "wtf/OwnPtr.h"
79 #include "wtf/RefCounted.h" 78 #include "wtf/RefCounted.h"
80 #include "wtf/StdLibExtras.h" 79 #include "wtf/StdLibExtras.h"
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 setBorderTopLeftRadius(s); 1011 setBorderTopLeftRadius(s);
1013 setBorderTopRightRadius(s); 1012 setBorderTopRightRadius(s);
1014 setBorderBottomLeftRadius(s); 1013 setBorderBottomLeftRadius(s);
1015 setBorderBottomRightRadius(s); 1014 setBorderBottomRightRadius(s);
1016 } 1015 }
1017 void setBorderRadius(const IntSize& s) 1016 void setBorderRadius(const IntSize& s)
1018 { 1017 {
1019 setBorderRadius(LengthSize(Length(s.width(), Fixed), Length(s.height(), Fixed))); 1018 setBorderRadius(LengthSize(Length(s.width(), Fixed), Length(s.height(), Fixed)));
1020 } 1019 }
1021 1020
1022 RoundedRect getRoundedBorderFor(const LayoutRect& borderRect, bool includeLo gicalLeftEdge = true, bool includeLogicalRightEdge = true) const; 1021 FloatRoundedRect getRoundedBorderFor(const LayoutRect& borderRect, bool incl udeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const;
1023 RoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, bool incl udeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; 1022 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const;
1024 1023
1025 RoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, 1024 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect,
1026 int topWidth, int bottomWidth, int leftWidth, int rightWidth, bool inclu deLogicalLeftEdge, bool includeLogicalRightEdge) const; 1025 int topWidth, int bottomWidth, int leftWidth, int rightWidth, bool inclu deLogicalLeftEdge, bool includeLogicalRightEdge) const;
1027 1026
1028 void setBorderLeftWidth(unsigned v) { SET_VAR(surround, border.m_left.m_widt h, v); } 1027 void setBorderLeftWidth(unsigned v) { SET_VAR(surround, border.m_left.m_widt h, v); }
1029 void setBorderLeftStyle(EBorderStyle v) { SET_VAR(surround, border.m_left.m_ style, v); } 1028 void setBorderLeftStyle(EBorderStyle v) { SET_VAR(surround, border.m_left.m_ style, v); }
1030 void setBorderLeftColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surroun d, border.m_left, v); } 1029 void setBorderLeftColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surroun d, border.m_left, v); }
1031 void setBorderRightWidth(unsigned v) { SET_VAR(surround, border.m_right.m_wi dth, v); } 1030 void setBorderRightWidth(unsigned v) { SET_VAR(surround, border.m_right.m_wi dth, v); }
1032 void setBorderRightStyle(EBorderStyle v) { SET_VAR(surround, border.m_right. m_style, v); } 1031 void setBorderRightStyle(EBorderStyle v) { SET_VAR(surround, border.m_right. m_style, v); }
1033 void setBorderRightColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surrou nd, border.m_right, v); } 1032 void setBorderRightColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surrou nd, border.m_right, v); }
1034 void setBorderTopWidth(unsigned v) { SET_VAR(surround, border.m_top.m_width, v); } 1033 void setBorderTopWidth(unsigned v) { SET_VAR(surround, border.m_top.m_width, v); }
1035 void setBorderTopStyle(EBorderStyle v) { SET_VAR(surround, border.m_top.m_st yle, v); } 1034 void setBorderTopStyle(EBorderStyle v) { SET_VAR(surround, border.m_top.m_st yle, v); }
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 inline bool RenderStyle::hasPseudoElementStyle() const 1855 inline bool RenderStyle::hasPseudoElementStyle() const
1857 { 1856 {
1858 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1857 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1859 } 1858 }
1860 1859
1861 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1860 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1862 1861
1863 } // namespace blink 1862 } // namespace blink
1864 1863
1865 #endif // RenderStyle_h 1864 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/rendering/shapes/ShapeOutsideInfo.cpp ('k') | Source/core/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698