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 3587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3598 // It's sufficient to just check one direction, since it's illegal to have | 3598 // It's sufficient to just check one direction, since it's illegal to have |
3599 // visible on only one overflow value. | 3599 // visible on only one overflow value. |
3600 bool isOverflowVisible() const { | 3600 bool isOverflowVisible() const { |
3601 DCHECK(overflowX() != OverflowVisible || overflowX() == overflowY()); | 3601 DCHECK(overflowX() != OverflowVisible || overflowX() == overflowY()); |
3602 return overflowX() == OverflowVisible; | 3602 return overflowX() == OverflowVisible; |
3603 } | 3603 } |
3604 bool isOverflowPaged() const { | 3604 bool isOverflowPaged() const { |
3605 return overflowY() == OverflowPagedX || overflowY() == OverflowPagedY; | 3605 return overflowY() == OverflowPagedX || overflowY() == OverflowPagedY; |
3606 } | 3606 } |
3607 | 3607 |
| 3608 // Visibility utility functions. |
| 3609 bool visibleToHitTesting() const { |
| 3610 return visibility() == EVisibility::Visible && pointerEvents() != PE_NONE; |
| 3611 } |
| 3612 |
3608 // Animation utility functions. | 3613 // Animation utility functions. |
3609 bool shouldCompositeForCurrentAnimations() const { | 3614 bool shouldCompositeForCurrentAnimations() const { |
3610 return hasCurrentOpacityAnimation() || hasCurrentTransformAnimation() || | 3615 return hasCurrentOpacityAnimation() || hasCurrentTransformAnimation() || |
3611 hasCurrentFilterAnimation() || hasCurrentBackdropFilterAnimation(); | 3616 hasCurrentFilterAnimation() || hasCurrentBackdropFilterAnimation(); |
3612 } | 3617 } |
3613 bool isRunningAnimationOnCompositor() const { | 3618 bool isRunningAnimationOnCompositor() const { |
3614 return isRunningOpacityAnimationOnCompositor() || | 3619 return isRunningOpacityAnimationOnCompositor() || |
3615 isRunningTransformAnimationOnCompositor() || | 3620 isRunningTransformAnimationOnCompositor() || |
3616 isRunningFilterAnimationOnCompositor() || | 3621 isRunningFilterAnimationOnCompositor() || |
3617 isRunningBackdropFilterAnimationOnCompositor(); | 3622 isRunningBackdropFilterAnimationOnCompositor(); |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4113 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); | 4118 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - 1); |
4114 } | 4119 } |
4115 | 4120 |
4116 inline bool ComputedStyle::hasPseudoElementStyle() const { | 4121 inline bool ComputedStyle::hasPseudoElementStyle() const { |
4117 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 4122 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
4118 } | 4123 } |
4119 | 4124 |
4120 } // namespace blink | 4125 } // namespace blink |
4121 | 4126 |
4122 #endif // ComputedStyle_h | 4127 #endif // ComputedStyle_h |
OLD | NEW |