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

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

Issue 1137513003: Apply bleed-avoidance insets _after_ constraining the border (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more TE. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 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 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 setBorderTopRightRadius(s); 1036 setBorderTopRightRadius(s);
1037 setBorderBottomLeftRadius(s); 1037 setBorderBottomLeftRadius(s);
1038 setBorderBottomRightRadius(s); 1038 setBorderBottomRightRadius(s);
1039 } 1039 }
1040 void setBorderRadius(const IntSize& s) 1040 void setBorderRadius(const IntSize& s)
1041 { 1041 {
1042 setBorderRadius(LengthSize(Length(s.width(), Fixed), Length(s.height(), Fixed))); 1042 setBorderRadius(LengthSize(Length(s.width(), Fixed), Length(s.height(), Fixed)));
1043 } 1043 }
1044 1044
1045 FloatRoundedRect getRoundedBorderFor(const LayoutRect& borderRect, bool incl udeLogicalLeftEdge = true, 1045 FloatRoundedRect getRoundedBorderFor(const LayoutRect& borderRect, bool incl udeLogicalLeftEdge = true,
1046 bool includeLogicalRightEdge = true, const FloatRectOutsets* insets = nu llptr) const; 1046 bool includeLogicalRightEdge = true) const;
1047 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; 1047 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const;
1048 1048
1049 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, 1049 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect,
1050 const LayoutRectOutsets insets, bool includeLogicalLeftEdge, bool includ eLogicalRightEdge) const; 1050 const LayoutRectOutsets insets, bool includeLogicalLeftEdge, bool includ eLogicalRightEdge) const;
1051 1051
1052 void setBorderLeftWidth(unsigned v) { SET_VAR(surround, border.m_left.m_widt h, v); } 1052 void setBorderLeftWidth(unsigned v) { SET_VAR(surround, border.m_left.m_widt h, v); }
1053 void setBorderLeftStyle(EBorderStyle v) { SET_VAR(surround, border.m_left.m_ style, v); } 1053 void setBorderLeftStyle(EBorderStyle v) { SET_VAR(surround, border.m_left.m_ style, v); }
1054 void setBorderLeftColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surroun d, border.m_left, v); } 1054 void setBorderLeftColor(const StyleColor& v) { SET_BORDERVALUE_COLOR(surroun d, border.m_left, v); }
1055 void setBorderRightWidth(unsigned v) { SET_VAR(surround, border.m_right.m_wi dth, v); } 1055 void setBorderRightWidth(unsigned v) { SET_VAR(surround, border.m_right.m_wi dth, v); }
1056 void setBorderRightStyle(EBorderStyle v) { SET_VAR(surround, border.m_right. m_style, v); } 1056 void setBorderRightStyle(EBorderStyle v) { SET_VAR(surround, border.m_right. m_style, v); }
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1878 } 1878 }
1879 1879
1880 inline bool ComputedStyle::hasPseudoElementStyle() const 1880 inline bool ComputedStyle::hasPseudoElementStyle() const
1881 { 1881 {
1882 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1882 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1883 } 1883 }
1884 1884
1885 } // namespace blink 1885 } // namespace blink
1886 1886
1887 #endif // ComputedStyle_h 1887 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698