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

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

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into scroll-boundary Created 3 years, 9 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 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 // scroll-snap-type 1606 // scroll-snap-type
1607 static ScrollSnapType initialScrollSnapType() { return ScrollSnapTypeNone; } 1607 static ScrollSnapType initialScrollSnapType() { return ScrollSnapTypeNone; }
1608 ScrollSnapType getScrollSnapType() const { 1608 ScrollSnapType getScrollSnapType() const {
1609 return static_cast<ScrollSnapType>( 1609 return static_cast<ScrollSnapType>(
1610 m_rareNonInheritedData->m_scrollSnapType); 1610 m_rareNonInheritedData->m_scrollSnapType);
1611 } 1611 }
1612 void setScrollSnapType(ScrollSnapType b) { 1612 void setScrollSnapType(ScrollSnapType b) {
1613 SET_VAR(m_rareNonInheritedData, m_scrollSnapType, b); 1613 SET_VAR(m_rareNonInheritedData, m_scrollSnapType, b);
1614 } 1614 }
1615 1615
1616 // scroll-boundary-behavior
1617 static ScrollBoundaryBehavior initialScrollBoundaryBehavior() {
1618 return ScrollBoundaryBehaviorPropagate;
1619 }
1620 ScrollBoundaryBehavior getScrollBoundaryBehavior() const {
1621 return static_cast<ScrollBoundaryBehavior>(
1622 m_rareNonInheritedData->m_scrollBoundaryBehavior);
1623 }
1624 void setScrollBoundaryBehavior(ScrollBoundaryBehavior b) {
1625 SET_VAR(m_rareNonInheritedData, m_scrollBoundaryBehavior, b);
1626 }
1627
1616 // shape-image-threshold (aka -webkit-shape-image-threshold) 1628 // shape-image-threshold (aka -webkit-shape-image-threshold)
1617 static float initialShapeImageThreshold() { return 0; } 1629 static float initialShapeImageThreshold() { return 0; }
1618 float shapeImageThreshold() const { 1630 float shapeImageThreshold() const {
1619 return m_rareNonInheritedData->m_shapeImageThreshold; 1631 return m_rareNonInheritedData->m_shapeImageThreshold;
1620 } 1632 }
1621 void setShapeImageThreshold(float shapeImageThreshold) { 1633 void setShapeImageThreshold(float shapeImageThreshold) {
1622 float clampedShapeImageThreshold = 1634 float clampedShapeImageThreshold =
1623 clampTo<float>(shapeImageThreshold, 0, 1); 1635 clampTo<float>(shapeImageThreshold, 0, 1);
1624 SET_VAR(m_rareNonInheritedData, m_shapeImageThreshold, 1636 SET_VAR(m_rareNonInheritedData, m_shapeImageThreshold,
1625 clampedShapeImageThreshold); 1637 clampedShapeImageThreshold);
(...skipping 2158 matching lines...) Expand 10 before | Expand all | Expand 10 after
3784 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - FirstPublicPseudoId); 3796 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - FirstPublicPseudoId);
3785 } 3797 }
3786 3798
3787 inline bool ComputedStyle::hasPseudoElementStyle() const { 3799 inline bool ComputedStyle::hasPseudoElementStyle() const {
3788 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 3800 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
3789 } 3801 }
3790 3802
3791 } // namespace blink 3803 } // namespace blink
3792 3804
3793 #endif // ComputedStyle_h 3805 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698