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

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

Issue 550363004: Factor painting code out of RenderBox into a new class called BoxPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix Created 6 years, 3 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/rendering/style/BorderEdge.cpp ('k') | Source/core/rendering/style/RenderStyle.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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 group.access()->variable.setColor(value) 93 group.access()->variable.setColor(value)
94 94
95 namespace blink { 95 namespace blink {
96 96
97 using std::max; 97 using std::max;
98 98
99 class FilterOperations; 99 class FilterOperations;
100 100
101 class AppliedTextDecoration; 101 class AppliedTextDecoration;
102 class BorderData; 102 class BorderData;
103 struct BorderEdge;
103 class CounterContent; 104 class CounterContent;
104 class Font; 105 class Font;
105 class FontMetrics; 106 class FontMetrics;
106 class ShadowList; 107 class ShadowList;
107 class StyleImage; 108 class StyleImage;
108 class StyleInheritedData; 109 class StyleInheritedData;
109 class StyleResolver; 110 class StyleResolver;
110 class TransformationMatrix; 111 class TransformationMatrix;
111 112
112 class ContentData; 113 class ContentData;
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 1530
1530 StyleColor visitedDependentDecorationStyleColor() const; 1531 StyleColor visitedDependentDecorationStyleColor() const;
1531 Color visitedDependentDecorationColor() const; 1532 Color visitedDependentDecorationColor() const;
1532 Color visitedDependentColor(int colorProperty) const; 1533 Color visitedDependentColor(int colorProperty) const;
1533 1534
1534 void setHasExplicitlyInheritedProperties() { noninherited_flags.explicitInhe ritance = true; } 1535 void setHasExplicitlyInheritedProperties() { noninherited_flags.explicitInhe ritance = true; }
1535 bool hasExplicitlyInheritedProperties() const { return noninherited_flags.ex plicitInheritance; } 1536 bool hasExplicitlyInheritedProperties() const { return noninherited_flags.ex plicitInheritance; }
1536 1537
1537 bool hasBoxDecorations() const { return hasBorder() || hasBorderRadius() || hasOutline() || hasAppearance() || boxShadow() || hasFilter(); } 1538 bool hasBoxDecorations() const { return hasBorder() || hasBorderRadius() || hasOutline() || hasAppearance() || boxShadow() || hasFilter(); }
1538 1539
1540 bool borderObscuresBackground() const;
1541 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru e, bool includeLogicalRightEdge = true) const;
1542
1539 // Initial values for all the properties 1543 // Initial values for all the properties
1540 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } 1544 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; }
1541 static EBorderStyle initialBorderStyle() { return BNONE; } 1545 static EBorderStyle initialBorderStyle() { return BNONE; }
1542 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } 1546 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; }
1543 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } 1547 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); }
1544 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed) , Length(0, Fixed)); } 1548 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed) , Length(0, Fixed)); }
1545 static ECaptionSide initialCaptionSide() { return CAPTOP; } 1549 static ECaptionSide initialCaptionSide() { return CAPTOP; }
1546 static EClear initialClear() { return CNONE; } 1550 static EClear initialClear() { return CNONE; }
1547 static LengthBox initialClip() { return LengthBox(); } 1551 static LengthBox initialClip() { return LengthBox(); }
1548 static TextDirection initialDirection() { return LTR; } 1552 static TextDirection initialDirection() { return LTR; }
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1910 inline bool RenderStyle::hasPseudoElementStyle() const 1914 inline bool RenderStyle::hasPseudoElementStyle() const
1911 { 1915 {
1912 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1916 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1913 } 1917 }
1914 1918
1915 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1919 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1916 1920
1917 } // namespace blink 1921 } // namespace blink
1918 1922
1919 #endif // RenderStyle_h 1923 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/rendering/style/BorderEdge.cpp ('k') | Source/core/rendering/style/RenderStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698