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

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

Issue 1173663003: BoxBorderPainter should use computed color alpha (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/style/ComputedStyle.h ('k') | no next file » | 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) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1708 return true; 1708 return true;
1709 } 1709 }
1710 1710
1711 void ComputedStyle::getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLef tEdge, bool includeLogicalRightEdge) const 1711 void ComputedStyle::getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLef tEdge, bool includeLogicalRightEdge) const
1712 { 1712 {
1713 bool horizontal = isHorizontalWritingMode(); 1713 bool horizontal = isHorizontalWritingMode();
1714 1714
1715 edges[BSTop] = BorderEdge(borderTopWidth(), 1715 edges[BSTop] = BorderEdge(borderTopWidth(),
1716 visitedDependentColor(CSSPropertyBorderTopColor), 1716 visitedDependentColor(CSSPropertyBorderTopColor),
1717 borderTopStyle(), 1717 borderTopStyle(),
1718 borderTopIsTransparent(),
1719 horizontal || includeLogicalLeftEdge); 1718 horizontal || includeLogicalLeftEdge);
1720 1719
1721 edges[BSRight] = BorderEdge(borderRightWidth(), 1720 edges[BSRight] = BorderEdge(borderRightWidth(),
1722 visitedDependentColor(CSSPropertyBorderRightColor), 1721 visitedDependentColor(CSSPropertyBorderRightColor),
1723 borderRightStyle(), 1722 borderRightStyle(),
1724 borderRightIsTransparent(),
1725 !horizontal || includeLogicalRightEdge); 1723 !horizontal || includeLogicalRightEdge);
1726 1724
1727 edges[BSBottom] = BorderEdge(borderBottomWidth(), 1725 edges[BSBottom] = BorderEdge(borderBottomWidth(),
1728 visitedDependentColor(CSSPropertyBorderBottomColor), 1726 visitedDependentColor(CSSPropertyBorderBottomColor),
1729 borderBottomStyle(), 1727 borderBottomStyle(),
1730 borderBottomIsTransparent(),
1731 horizontal || includeLogicalRightEdge); 1728 horizontal || includeLogicalRightEdge);
1732 1729
1733 edges[BSLeft] = BorderEdge(borderLeftWidth(), 1730 edges[BSLeft] = BorderEdge(borderLeftWidth(),
1734 visitedDependentColor(CSSPropertyBorderLeftColor), 1731 visitedDependentColor(CSSPropertyBorderLeftColor),
1735 borderLeftStyle(), 1732 borderLeftStyle(),
1736 borderLeftIsTransparent(),
1737 !horizontal || includeLogicalLeftEdge); 1733 !horizontal || includeLogicalLeftEdge);
1738 } 1734 }
1739 1735
1740 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other) 1736 void ComputedStyle::copyChildDependentFlagsFrom(const ComputedStyle& other)
1741 { 1737 {
1742 setEmptyState(other.emptyState()); 1738 setEmptyState(other.emptyState());
1743 if (other.hasExplicitlyInheritedProperties()) 1739 if (other.hasExplicitlyInheritedProperties())
1744 setHasExplicitlyInheritedProperties(); 1740 setHasExplicitlyInheritedProperties();
1745 } 1741 }
1746 1742
1747 } // namespace blink 1743 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698