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

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

Issue 175263002: Implement will-change-based creation of layers, stacking contexts, and containing blocks (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Always create a stacking context for will-change:position Created 6 years, 10 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
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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef tToRightDirection() && isHorizontalWritingMode(); } 951 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef tToRightDirection() && isHorizontalWritingMode(); }
952 952
953 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh eritedData->m_touchAction); } 953 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh eritedData->m_touchAction); }
954 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe lay>(rareInheritedData->m_touchActionDelay); } 954 TouchActionDelay touchActionDelay() const { return static_cast<TouchActionDe lay>(rareInheritedData->m_touchActionDelay); }
955 955
956 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r areNonInheritedData->m_scrollBehavior); } 956 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r areNonInheritedData->m_scrollBehavior); }
957 957
958 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn heritedData->m_willChange->m_properties; } 958 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn heritedData->m_willChange->m_properties; }
959 bool willChangeContents() const { return rareNonInheritedData->m_willChange- >m_contents; } 959 bool willChangeContents() const { return rareNonInheritedData->m_willChange- >m_contents; }
960 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC hange->m_scrollPosition; } 960 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC hange->m_scrollPosition; }
961 bool hasWillChangeCompositingHint() const;
961 962
962 // attribute setter methods 963 // attribute setter methods
963 964
964 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; } 965 void setDisplay(EDisplay v) { noninherited_flags._effectiveDisplay = v; }
965 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay = v; } 966 void setOriginalDisplay(EDisplay v) { noninherited_flags._originalDisplay = v; }
966 void setPosition(EPosition v) { noninherited_flags._position = v; } 967 void setPosition(EPosition v) { noninherited_flags._position = v; }
967 void setFloating(EFloat v) { noninherited_flags._floating = v; } 968 void setFloating(EFloat v) { noninherited_flags._floating = v; }
968 969
969 void setLeft(Length v) { SET_VAR(surround, offset.m_left, v); } 970 void setLeft(Length v) { SET_VAR(surround, offset.m_left, v); }
970 void setRight(Length v) { SET_VAR(surround, offset.m_right, v); } 971 void setRight(Length v) { SET_VAR(surround, offset.m_right, v); }
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1880 } 1881 }
1881 1882
1882 inline bool RenderStyle::hasPseudoElementStyle() const 1883 inline bool RenderStyle::hasPseudoElementStyle() const
1883 { 1884 {
1884 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; 1885 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1885 } 1886 }
1886 1887
1887 } // namespace WebCore 1888 } // namespace WebCore
1888 1889
1889 #endif // RenderStyle_h 1890 #endif // RenderStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698