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

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

Issue 2369143003: CSS Motion Path: offset-position,offset-path establish stacking context (Closed)
Patch Set: concise Created 4 years, 2 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 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 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect, 2142 FloatRoundedRect getRoundedInnerBorderFor(const LayoutRect& borderRect,
2143 const LayoutRectOutsets insets, bool includeLogicalLeftEdge, bool includ eLogicalRightEdge) const; 2143 const LayoutRectOutsets insets, bool includeLogicalLeftEdge, bool includ eLogicalRightEdge) const;
2144 2144
2145 // Float utility functions. 2145 // Float utility functions.
2146 bool isFloating() const { return floating() != EFloat::None; } 2146 bool isFloating() const { return floating() != EFloat::None; }
2147 2147
2148 // Mix-blend-mode utility functions. 2148 // Mix-blend-mode utility functions.
2149 bool hasBlendMode() const { return blendMode() != WebBlendModeNormal; } 2149 bool hasBlendMode() const { return blendMode() != WebBlendModeNormal; }
2150 2150
2151 // Motion utility functions. 2151 // Motion utility functions.
2152 bool hasOffsetPath() const { return offsetPath(); } 2152 bool hasOffset() const { return (offsetPosition().x() != Length(Auto)) || of fsetPath(); }
2153 2153
2154 // Direction utility functions. 2154 // Direction utility functions.
2155 bool isLeftToRightDirection() const { return direction() == LTR; } 2155 bool isLeftToRightDirection() const { return direction() == LTR; }
2156 2156
2157 // Perspective utility functions. 2157 // Perspective utility functions.
2158 bool hasPerspective() const { return m_rareNonInheritedData->m_perspective > 0; } 2158 bool hasPerspective() const { return m_rareNonInheritedData->m_perspective > 0; }
2159 2159
2160 // Page size utility functions. 2160 // Page size utility functions.
2161 void resetPageSizeType() { SET_VAR(m_rareNonInheritedData, m_pageSizeType, P AGE_SIZE_AUTO); } 2161 void resetPageSizeType() { SET_VAR(m_rareNonInheritedData, m_pageSizeType, P AGE_SIZE_AUTO); }
2162 2162
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
2250 bool isRunningAnimationOnCompositor() const { return isRunningOpacityAnimati onOnCompositor() || isRunningTransformAnimationOnCompositor() || isRunningFilter AnimationOnCompositor() || isRunningBackdropFilterAnimationOnCompositor(); } 2250 bool isRunningAnimationOnCompositor() const { return isRunningOpacityAnimati onOnCompositor() || isRunningTransformAnimationOnCompositor() || isRunningFilter AnimationOnCompositor() || isRunningBackdropFilterAnimationOnCompositor(); }
2251 2251
2252 // Opacity utility functions. 2252 // Opacity utility functions.
2253 bool hasOpacity() const { return opacity() < 1.0f; } 2253 bool hasOpacity() const { return opacity() < 1.0f; }
2254 2254
2255 // Table layout utility functions. 2255 // Table layout utility functions.
2256 bool isFixedTableLayout() const { return tableLayout() == TableLayoutFixed & & !logicalWidth().isAuto(); } 2256 bool isFixedTableLayout() const { return tableLayout() == TableLayoutFixed & & !logicalWidth().isAuto(); }
2257 2257
2258 // Filter/transform utility functions. 2258 // Filter/transform utility functions.
2259 bool has3DTransform() const { return m_rareNonInheritedData->m_transform->ha s3DTransform(); } 2259 bool has3DTransform() const { return m_rareNonInheritedData->m_transform->ha s3DTransform(); }
2260 bool hasTransform() const { return hasTransformOperations() || hasOffsetPath () || hasCurrentTransformAnimation() || translate() || rotate() || scale(); } 2260 bool hasTransform() const { return hasTransformOperations() || hasOffset() | | hasCurrentTransformAnimation() || translate() || rotate() || scale(); }
2261 bool hasTransformOperations() const { return !m_rareNonInheritedData->m_tran sform->m_operations.operations().isEmpty(); } 2261 bool hasTransformOperations() const { return !m_rareNonInheritedData->m_tran sform->m_operations.operations().isEmpty(); }
2262 ETransformStyle3D usedTransformStyle3D() const { return hasGroupingProperty( ) ? TransformStyle3DFlat : transformStyle3D(); } 2262 ETransformStyle3D usedTransformStyle3D() const { return hasGroupingProperty( ) ? TransformStyle3DFlat : transformStyle3D(); }
2263 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { return m_rareNonInheritedData->m_transform == otherStyle.m_rareNonInheritedData->m_tra nsform; } 2263 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { return m_rareNonInheritedData->m_transform == otherStyle.m_rareNonInheritedData->m_tra nsform; }
2264 bool preserves3D() const { return usedTransformStyle3D() != TransformStyle3D Flat; } 2264 bool preserves3D() const { return usedTransformStyle3D() != TransformStyle3D Flat; }
2265 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin } ; 2265 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin } ;
2266 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; 2266 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath };
2267 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper ties , ExcludeIndependentTransformProperties }; 2267 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper ties , ExcludeIndependentTransformProperties };
2268 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize, ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons t; 2268 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize, ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons t;
2269 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const; 2269 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const;
2270 2270
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 } 2630 }
2631 2631
2632 inline bool ComputedStyle::hasPseudoElementStyle() const 2632 inline bool ComputedStyle::hasPseudoElementStyle() const
2633 { 2633 {
2634 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 2634 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
2635 } 2635 }
2636 2636
2637 } // namespace blink 2637 } // namespace blink
2638 2638
2639 #endif // ComputedStyle_h 2639 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/KeyframeEffect.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698