| 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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 void SetTextDecorationSkip(TextDecorationSkip v) { | 830 void SetTextDecorationSkip(TextDecorationSkip v) { |
| 831 SetTextDecorationSkipInternal(v); | 831 SetTextDecorationSkipInternal(v); |
| 832 } | 832 } |
| 833 | 833 |
| 834 // touch-action | 834 // touch-action |
| 835 static TouchAction InitialTouchAction() { | 835 static TouchAction InitialTouchAction() { |
| 836 return TouchAction::kTouchActionAuto; | 836 return TouchAction::kTouchActionAuto; |
| 837 } | 837 } |
| 838 TouchAction GetTouchAction() const { return TouchActionInternal(); } | 838 TouchAction GetTouchAction() const { return TouchActionInternal(); } |
| 839 void SetTouchAction(TouchAction t) { return SetTouchActionInternal(t); } | 839 void SetTouchAction(TouchAction t) { return SetTouchActionInternal(t); } |
| 840 TouchAction GetEffectiveTouchAction() const { |
| 841 return EffectiveTouchActionInternal(); |
| 842 } |
| 843 void SetEffectiveTouchAction(TouchAction t) { |
| 844 return SetEffectiveTouchActionInternal(t); |
| 845 } |
| 840 | 846 |
| 841 // vertical-align | 847 // vertical-align |
| 842 static EVerticalAlign InitialVerticalAlign() { | 848 static EVerticalAlign InitialVerticalAlign() { |
| 843 return EVerticalAlign::kBaseline; | 849 return EVerticalAlign::kBaseline; |
| 844 } | 850 } |
| 845 EVerticalAlign VerticalAlign() const { return VerticalAlignInternal(); } | 851 EVerticalAlign VerticalAlign() const { return VerticalAlignInternal(); } |
| 846 const Length& GetVerticalAlignLength() const { | 852 const Length& GetVerticalAlignLength() const { |
| 847 return VerticalAlignLengthInternal(); | 853 return VerticalAlignLengthInternal(); |
| 848 } | 854 } |
| 849 void SetVerticalAlign(EVerticalAlign v) { SetVerticalAlignInternal(v); } | 855 void SetVerticalAlign(EVerticalAlign v) { SetVerticalAlignInternal(v); } |
| (...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1988 // visible on only one overflow value. | 1994 // visible on only one overflow value. |
| 1989 bool IsOverflowVisible() const { | 1995 bool IsOverflowVisible() const { |
| 1990 DCHECK(OverflowX() != EOverflow::kVisible || OverflowX() == OverflowY()); | 1996 DCHECK(OverflowX() != EOverflow::kVisible || OverflowX() == OverflowY()); |
| 1991 return OverflowX() == EOverflow::kVisible; | 1997 return OverflowX() == EOverflow::kVisible; |
| 1992 } | 1998 } |
| 1993 bool IsOverflowPaged() const { | 1999 bool IsOverflowPaged() const { |
| 1994 return OverflowY() == EOverflow::kWebkitPagedX || | 2000 return OverflowY() == EOverflow::kWebkitPagedX || |
| 1995 OverflowY() == EOverflow::kWebkitPagedY; | 2001 OverflowY() == EOverflow::kWebkitPagedY; |
| 1996 } | 2002 } |
| 1997 | 2003 |
| 2004 bool IsDisplayTableRowOrColumnType() const { |
| 2005 return Display() == EDisplay::kTableRow || |
| 2006 Display() == EDisplay::kTableRowGroup || |
| 2007 Display() == EDisplay::kTableColumn || |
| 2008 Display() == EDisplay::kTableColumnGroup; |
| 2009 } |
| 2010 |
| 2011 bool HasAutoHorizontalScroll() const { |
| 2012 return OverflowX() == EOverflow::kAuto || |
| 2013 OverflowX() == EOverflow::kOverlay; |
| 2014 } |
| 2015 |
| 2016 bool HasAutoVerticalScroll() const { |
| 2017 return OverflowY() == EOverflow::kAuto || |
| 2018 OverflowY() == EOverflow::kWebkitPagedY || |
| 2019 OverflowY() == EOverflow::kOverlay; |
| 2020 } |
| 2021 |
| 2022 bool ScrollsOverflowX() const { |
| 2023 return OverflowX() == EOverflow::kScroll || HasAutoHorizontalScroll(); |
| 2024 } |
| 2025 |
| 2026 bool ScrollsOverflowY() const { |
| 2027 return OverflowY() == EOverflow::kScroll || HasAutoVerticalScroll(); |
| 2028 } |
| 2029 |
| 2030 bool ScrollsOverflow() const { |
| 2031 return ScrollsOverflowX() || ScrollsOverflowY(); |
| 2032 } |
| 2033 |
| 1998 // Visibility utility functions. | 2034 // Visibility utility functions. |
| 1999 bool VisibleToHitTesting() const { | 2035 bool VisibleToHitTesting() const { |
| 2000 return Visibility() == EVisibility::kVisible && | 2036 return Visibility() == EVisibility::kVisible && |
| 2001 PointerEvents() != EPointerEvents::kNone; | 2037 PointerEvents() != EPointerEvents::kNone; |
| 2002 } | 2038 } |
| 2003 | 2039 |
| 2004 // Animation utility functions. | 2040 // Animation utility functions. |
| 2005 bool ShouldCompositeForCurrentAnimations() const { | 2041 bool ShouldCompositeForCurrentAnimations() const { |
| 2006 return HasCurrentOpacityAnimation() || HasCurrentTransformAnimation() || | 2042 return HasCurrentOpacityAnimation() || HasCurrentTransformAnimation() || |
| 2007 HasCurrentFilterAnimation() || HasCurrentBackdropFilterAnimation(); | 2043 HasCurrentFilterAnimation() || HasCurrentBackdropFilterAnimation(); |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2642 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); | 2678 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); |
| 2643 } | 2679 } |
| 2644 | 2680 |
| 2645 inline bool ComputedStyle::HasPseudoElementStyle() const { | 2681 inline bool ComputedStyle::HasPseudoElementStyle() const { |
| 2646 return PseudoBitsInternal() & kElementPseudoIdMask; | 2682 return PseudoBitsInternal() & kElementPseudoIdMask; |
| 2647 } | 2683 } |
| 2648 | 2684 |
| 2649 } // namespace blink | 2685 } // namespace blink |
| 2650 | 2686 |
| 2651 #endif // ComputedStyle_h | 2687 #endif // ComputedStyle_h |
| OLD | NEW |