| OLD | NEW |
| 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 // Text decoration properties. | 807 // Text decoration properties. |
| 808 // text-decoration-skip | 808 // text-decoration-skip |
| 809 static TextDecorationSkip InitialTextDecorationSkip() { | 809 static TextDecorationSkip InitialTextDecorationSkip() { |
| 810 return TextDecorationSkip::kObjects; | 810 return TextDecorationSkip::kObjects; |
| 811 } | 811 } |
| 812 | 812 |
| 813 // touch-action | 813 // touch-action |
| 814 static TouchAction InitialTouchAction() { | 814 static TouchAction InitialTouchAction() { |
| 815 return TouchAction::kTouchActionAuto; | 815 return TouchAction::kTouchActionAuto; |
| 816 } | 816 } |
| 817 TouchAction GetEffectiveTouchAction() const { |
| 818 return EffectiveTouchActionInternal(); |
| 819 } |
| 820 void SetEffectiveTouchAction(TouchAction t) { |
| 821 return SetEffectiveTouchActionInternal(t); |
| 822 } |
| 817 | 823 |
| 818 // vertical-align | 824 // vertical-align |
| 819 static EVerticalAlign InitialVerticalAlign() { | 825 static EVerticalAlign InitialVerticalAlign() { |
| 820 return EVerticalAlign::kBaseline; | 826 return EVerticalAlign::kBaseline; |
| 821 } | 827 } |
| 822 EVerticalAlign VerticalAlign() const { return VerticalAlignInternal(); } | 828 EVerticalAlign VerticalAlign() const { return VerticalAlignInternal(); } |
| 823 const Length& GetVerticalAlignLength() const { | 829 const Length& GetVerticalAlignLength() const { |
| 824 return VerticalAlignLengthInternal(); | 830 return VerticalAlignLengthInternal(); |
| 825 } | 831 } |
| 826 void SetVerticalAlign(EVerticalAlign v) { SetVerticalAlignInternal(v); } | 832 void SetVerticalAlign(EVerticalAlign v) { SetVerticalAlignInternal(v); } |
| (...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1963 // visible on only one overflow value. | 1969 // visible on only one overflow value. |
| 1964 bool IsOverflowVisible() const { | 1970 bool IsOverflowVisible() const { |
| 1965 DCHECK(OverflowX() != EOverflow::kVisible || OverflowX() == OverflowY()); | 1971 DCHECK(OverflowX() != EOverflow::kVisible || OverflowX() == OverflowY()); |
| 1966 return OverflowX() == EOverflow::kVisible; | 1972 return OverflowX() == EOverflow::kVisible; |
| 1967 } | 1973 } |
| 1968 bool IsOverflowPaged() const { | 1974 bool IsOverflowPaged() const { |
| 1969 return OverflowY() == EOverflow::kWebkitPagedX || | 1975 return OverflowY() == EOverflow::kWebkitPagedX || |
| 1970 OverflowY() == EOverflow::kWebkitPagedY; | 1976 OverflowY() == EOverflow::kWebkitPagedY; |
| 1971 } | 1977 } |
| 1972 | 1978 |
| 1979 bool IsDisplayTableRowOrColumnType() const { |
| 1980 return Display() == EDisplay::kTableRow || |
| 1981 Display() == EDisplay::kTableRowGroup || |
| 1982 Display() == EDisplay::kTableColumn || |
| 1983 Display() == EDisplay::kTableColumnGroup; |
| 1984 } |
| 1985 |
| 1986 bool HasAutoHorizontalScroll() const { |
| 1987 return OverflowX() == EOverflow::kAuto || |
| 1988 OverflowX() == EOverflow::kOverlay; |
| 1989 } |
| 1990 |
| 1991 bool HasAutoVerticalScroll() const { |
| 1992 return OverflowY() == EOverflow::kAuto || |
| 1993 OverflowY() == EOverflow::kWebkitPagedY || |
| 1994 OverflowY() == EOverflow::kOverlay; |
| 1995 } |
| 1996 |
| 1997 bool ScrollsOverflowX() const { |
| 1998 return OverflowX() == EOverflow::kScroll || HasAutoHorizontalScroll(); |
| 1999 } |
| 2000 |
| 2001 bool ScrollsOverflowY() const { |
| 2002 return OverflowY() == EOverflow::kScroll || HasAutoVerticalScroll(); |
| 2003 } |
| 2004 |
| 2005 bool ScrollsOverflow() const { |
| 2006 return ScrollsOverflowX() || ScrollsOverflowY(); |
| 2007 } |
| 2008 |
| 1973 // Visibility utility functions. | 2009 // Visibility utility functions. |
| 1974 bool VisibleToHitTesting() const { | 2010 bool VisibleToHitTesting() const { |
| 1975 return Visibility() == EVisibility::kVisible && | 2011 return Visibility() == EVisibility::kVisible && |
| 1976 PointerEvents() != EPointerEvents::kNone; | 2012 PointerEvents() != EPointerEvents::kNone; |
| 1977 } | 2013 } |
| 1978 | 2014 |
| 1979 // Animation utility functions. | 2015 // Animation utility functions. |
| 1980 bool ShouldCompositeForCurrentAnimations() const { | 2016 bool ShouldCompositeForCurrentAnimations() const { |
| 1981 return HasCurrentOpacityAnimation() || HasCurrentTransformAnimation() || | 2017 return HasCurrentOpacityAnimation() || HasCurrentTransformAnimation() || |
| 1982 HasCurrentFilterAnimation() || HasCurrentBackdropFilterAnimation(); | 2018 HasCurrentFilterAnimation() || HasCurrentBackdropFilterAnimation(); |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2617 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 2653 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
| 2618 } | 2654 } |
| 2619 | 2655 |
| 2620 inline bool ComputedStyle::HasPseudoElementStyle() const { | 2656 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 2621 return PseudoBitsInternal() & kElementPseudoIdMask; | 2657 return PseudoBitsInternal() & kElementPseudoIdMask; |
| 2622 } | 2658 } |
| 2623 | 2659 |
| 2624 } // namespace blink | 2660 } // namespace blink |
| 2625 | 2661 |
| 2626 #endif // ComputedStyle_h | 2662 #endif // ComputedStyle_h |
| OLD | NEW |