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

Side by Side Diff: sky/engine/core/rendering/style/RenderStyle.h

Issue 873983007: Remove negative z-index. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
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 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 999
1000 void setCursor(ECursor c) { inherited_flags._cursor_style = c; } 1000 void setCursor(ECursor c) { inherited_flags._cursor_style = c; }
1001 void addCursor(PassRefPtr<StyleImage>, const IntPoint& hotSpot = IntPoint()) ; 1001 void addCursor(PassRefPtr<StyleImage>, const IntPoint& hotSpot = IntPoint()) ;
1002 void setCursorList(PassRefPtr<CursorList>); 1002 void setCursorList(PassRefPtr<CursorList>);
1003 void clearCursorList(); 1003 void clearCursorList();
1004 1004
1005 void setIsLink(bool b) { noninherited_flags.isLink = b; } 1005 void setIsLink(bool b) { noninherited_flags.isLink = b; }
1006 1006
1007 bool hasAutoZIndex() const { return m_box->hasAutoZIndex(); } 1007 bool hasAutoZIndex() const { return m_box->hasAutoZIndex(); }
1008 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b ox, m_zIndex, 0); } 1008 void setHasAutoZIndex() { SET_VAR(m_box, m_hasAutoZIndex, true); SET_VAR(m_b ox, m_zIndex, 0); }
1009 int zIndex() const { return m_box->zIndex(); } 1009 unsigned zIndex() const { return m_box->zIndex(); }
1010 void setZIndex(int v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR(m_bo x, m_zIndex, v); } 1010 void setZIndex(unsigned v) { SET_VAR(m_box, m_hasAutoZIndex, false); SET_VAR (m_box, m_zIndex, v); }
1011 1011
1012 void setHasAutoWidows() { SET_VAR(rareInheritedData, m_hasAutoWidows, true); SET_VAR(rareInheritedData, widows, initialWidows()); } 1012 void setHasAutoWidows() { SET_VAR(rareInheritedData, m_hasAutoWidows, true); SET_VAR(rareInheritedData, widows, initialWidows()); }
1013 void setWidows(short w) { SET_VAR(rareInheritedData, m_hasAutoWidows, false) ; SET_VAR(rareInheritedData, widows, w); } 1013 void setWidows(short w) { SET_VAR(rareInheritedData, m_hasAutoWidows, false) ; SET_VAR(rareInheritedData, widows, w); }
1014 1014
1015 void setHasAutoOrphans() { SET_VAR(rareInheritedData, m_hasAutoOrphans, true ); SET_VAR(rareInheritedData, orphans, initialOrphans()); } 1015 void setHasAutoOrphans() { SET_VAR(rareInheritedData, m_hasAutoOrphans, true ); SET_VAR(rareInheritedData, orphans, initialOrphans()); }
1016 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals e); SET_VAR(rareInheritedData, orphans, o); } 1016 void setOrphans(short o) { SET_VAR(rareInheritedData, m_hasAutoOrphans, fals e); SET_VAR(rareInheritedData, orphans, o); }
1017 1017
1018 // For valid values of page-break-inside see http://www.w3.org/TR/CSS21/page .html#page-break-props 1018 // For valid values of page-break-inside see http://www.w3.org/TR/CSS21/page .html#page-break-props
1019 void setPageBreakInside(EPageBreak b) { ASSERT(b == PBAUTO || b == PBAVOID); noninherited_flags.pageBreakInside = b; } 1019 void setPageBreakInside(EPageBreak b) { ASSERT(b == PBAUTO || b == PBAVOID); noninherited_flags.pageBreakInside = b; }
1020 void setPageBreakBefore(EPageBreak b) { noninherited_flags.pageBreakBefore = b; } 1020 void setPageBreakBefore(EPageBreak b) { noninherited_flags.pageBreakBefore = b; }
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 1378
1379 rareInheritedData.access()->m_textOrientation = textOrientation; 1379 rareInheritedData.access()->m_textOrientation = textOrientation;
1380 return true; 1380 return true;
1381 } 1381 }
1382 1382
1383 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1383 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1384 1384
1385 } // namespace blink 1385 } // namespace blink
1386 1386
1387 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ 1387 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderTreeAsText.cpp ('k') | sky/engine/core/rendering/style/StyleBoxData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698