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

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

Issue 1176503002: Rename isNormalFlowOnly to something meaningful (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/paint/DeprecatedPaintLayerStackingNode.cpp ('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) 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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 void addCursor(PassRefPtr<StyleImage>, bool hotSpotSpecified, const IntPoint & hotSpot = IntPoint()); 1197 void addCursor(PassRefPtr<StyleImage>, bool hotSpotSpecified, const IntPoint & hotSpot = IntPoint());
1198 void setCursorList(PassRefPtr<CursorList>); 1198 void setCursorList(PassRefPtr<CursorList>);
1199 void clearCursorList(); 1199 void clearCursorList();
1200 1200
1201 void setInsideLink(EInsideLink insideLink) { inherited_flags._insideLink = i nsideLink; } 1201 void setInsideLink(EInsideLink insideLink) { inherited_flags._insideLink = i nsideLink; }
1202 void setIsLink(bool b) { noninherited_flags.isLink = b; } 1202 void setIsLink(bool b) { noninherited_flags.isLink = b; }
1203 1203
1204 PrintColorAdjust printColorAdjust() const { return static_cast<PrintColorAdj ust>(inherited_flags.m_printColorAdjust); } 1204 PrintColorAdjust printColorAdjust() const { return static_cast<PrintColorAdj ust>(inherited_flags.m_printColorAdjust); }
1205 void setPrintColorAdjust(PrintColorAdjust value) { inherited_flags.m_printCo lorAdjust = value; } 1205 void setPrintColorAdjust(PrintColorAdjust value) { inherited_flags.m_printCo lorAdjust = value; }
1206 1206
1207 // A stacking context is painted atomically and defines a stacking order, wh ereas
1208 // a containing stacking context defines in which order the stacking context s
1209 // below are painted. In Blink, a stacking context is defined by non-auto
1210 // z-index'. This invariant is enforced by the logic in StyleAdjuster
1211 // See CSS 2.1, Appendix E for more details.
1212 bool isStackingContext() const { return !hasAutoZIndex(); }
1213
1214 // Some elements are "treated as if they create a new stacking context" for the purpose
1215 // of painting and hit testing. However they don't determine the stacking of the stacking
1216 // context underneath them. That means that they are painted atomically.
1217 bool isTreatedAsStackingContextForPainting() const
1218 {
1219 // FIXME: Floating objects are also considered stacking contexts.
leviw_travelin_and_unemployed 2015/06/09 18:29:00 Nit: add "for painting"
Julien - ping for review 2015/06/09 19:39:55 Nuked the nit!
1220 return isStackingContext() || position() != StaticPosition;
1221 }
1222
1207 bool hasAutoZIndex() const { return m_box->hasAutoZIndex(); } 1223 bool hasAutoZIndex() const { return m_box->hasAutoZIndex(); }
1208 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b ox, m_zIndex, 0); } 1224 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b ox, m_zIndex, 0); }
1209 int zIndex() const { return m_box->zIndex(); } 1225 int zIndex() const { return m_box->zIndex(); }
1210 void setZIndex(int v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR(m_bo x, m_zIndex, v); } 1226 void setZIndex(int v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR(m_bo x, m_zIndex, v); }
1211 1227
1212 void setHasAutoWidows() { SET_VAR(rareInheritedData, widows, initialWidows() ); } 1228 void setHasAutoWidows() { SET_VAR(rareInheritedData, widows, initialWidows() ); }
1213 void setWidows(short w) { SET_VAR(rareInheritedData, widows, w); } 1229 void setWidows(short w) { SET_VAR(rareInheritedData, widows, w); }
1214 1230
1215 void setHasAutoOrphans() { SET_VAR(rareInheritedData, m_hasAutoOrphans, true ); SET_VAR(rareInheritedData, orphans, initialOrphans()); } 1231 void setHasAutoOrphans() { SET_VAR(rareInheritedData, m_hasAutoOrphans, true ); SET_VAR(rareInheritedData, orphans, initialOrphans()); }
1216 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals e); SET_VAR(rareInheritedData, orphans, o); } 1232 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals e); SET_VAR(rareInheritedData, orphans, o); }
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 } 1917 }
1902 1918
1903 inline bool ComputedStyle::hasPseudoElementStyle() const 1919 inline bool ComputedStyle::hasPseudoElementStyle() const
1904 { 1920 {
1905 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1921 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1906 } 1922 }
1907 1923
1908 } // namespace blink 1924 } // namespace blink
1909 1925
1910 #endif // ComputedStyle_h 1926 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayerStackingNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698