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

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

Issue 1188563005: Compute snap offsets (both repeat and element based) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix compile issue Created 5 years 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 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 void setIsolation(EIsolation v) { rareNonInheritedData.access()->m_isolation = v; } 977 void setIsolation(EIsolation v) { rareNonInheritedData.access()->m_isolation = v; }
978 bool hasIsolation() const { return isolation() != IsolationAuto; } 978 bool hasIsolation() const { return isolation() != IsolationAuto; }
979 979
980 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef tToRightDirection() && isHorizontalWritingMode(); } 980 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { return !isLef tToRightDirection() && isHorizontalWritingMode(); }
981 981
982 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh eritedData->m_touchAction); } 982 TouchAction touchAction() const { return static_cast<TouchAction>(rareNonInh eritedData->m_touchAction); }
983 983
984 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r areNonInheritedData->m_scrollBehavior); } 984 ScrollBehavior scrollBehavior() const { return static_cast<ScrollBehavior>(r areNonInheritedData->m_scrollBehavior); }
985 985
986 ScrollSnapType scrollSnapType() const { return static_cast<ScrollSnapType>(r areNonInheritedData->m_scrollSnapType); } 986 ScrollSnapType scrollSnapType() const { return static_cast<ScrollSnapType>(r areNonInheritedData->m_scrollSnapType); }
987 ScrollSnapPoints scrollSnapPointsX() const { return rareNonInheritedData->m_ scrollSnap->m_xPoints; } 987 const ScrollSnapPoints& scrollSnapPointsX() const { return rareNonInheritedD ata->m_scrollSnap->m_xPoints; }
988 ScrollSnapPoints scrollSnapPointsY() const { return rareNonInheritedData->m_ scrollSnap->m_yPoints; } 988 const ScrollSnapPoints& scrollSnapPointsY() const { return rareNonInheritedD ata->m_scrollSnap->m_yPoints; }
989 Vector<LengthPoint> scrollSnapCoordinate() const { return rareNonInheritedDa ta->m_scrollSnap->m_coordinates; } 989 const Vector<LengthPoint>& scrollSnapCoordinate() const { return rareNonInhe ritedData->m_scrollSnap->m_coordinates; }
990 LengthPoint scrollSnapDestination() const { return rareNonInheritedData->m_s crollSnap->m_destination; } 990 const LengthPoint& scrollSnapDestination() const { return rareNonInheritedDa ta->m_scrollSnap->m_destination; }
991 991
992 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn heritedData->m_willChange->m_properties; } 992 const Vector<CSSPropertyID>& willChangeProperties() const { return rareNonIn heritedData->m_willChange->m_properties; }
993 bool willChangeContents() const { return rareNonInheritedData->m_willChange- >m_contents; } 993 bool willChangeContents() const { return rareNonInheritedData->m_willChange- >m_contents; }
994 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC hange->m_scrollPosition; } 994 bool willChangeScrollPosition() const { return rareNonInheritedData->m_willC hange->m_scrollPosition; }
995 bool hasWillChangeCompositingHint() const; 995 bool hasWillChangeCompositingHint() const;
996 bool hasWillChangeTransformHint() const; 996 bool hasWillChangeTransformHint() const;
997 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree WillChangeContents; } 997 bool subtreeWillChangeContents() const { return rareInheritedData->m_subtree WillChangeContents; }
998 998
999 // attribute setter methods 999 // attribute setter methods
1000 1000
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1996 } 1996 }
1997 1997
1998 inline bool ComputedStyle::hasPseudoElementStyle() const 1998 inline bool ComputedStyle::hasPseudoElementStyle() const
1999 { 1999 {
2000 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2000 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2001 } 2001 }
2002 2002
2003 } // namespace blink 2003 } // namespace blink
2004 2004
2005 #endif // ComputedStyle_h 2005 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698