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

Side by Side Diff: sky/engine/core/rendering/style/RenderStyle.h

Issue 772673002: Fix Animations, Remove Compostior Animations. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: CompositorPendingAnimations -> PendingAnimations Created 6 years 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 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 bool preserves3D() const { return rareNonInheritedData->m_transformStyle3D = = TransformStyle3DPreserve3D; } 756 bool preserves3D() const { return rareNonInheritedData->m_transformStyle3D = = TransformStyle3DPreserve3D; }
757 757
758 EBackfaceVisibility backfaceVisibility() const { return static_cast<EBackfac eVisibility>(rareNonInheritedData->m_backfaceVisibility); } 758 EBackfaceVisibility backfaceVisibility() const { return static_cast<EBackfac eVisibility>(rareNonInheritedData->m_backfaceVisibility); }
759 float perspective() const { return rareNonInheritedData->m_perspective; } 759 float perspective() const { return rareNonInheritedData->m_perspective; }
760 bool hasPerspective() const { return rareNonInheritedData->m_perspective > 0 ; } 760 bool hasPerspective() const { return rareNonInheritedData->m_perspective > 0 ; }
761 const Length& perspectiveOriginX() const { return rareNonInheritedData->m_pe rspectiveOriginX; } 761 const Length& perspectiveOriginX() const { return rareNonInheritedData->m_pe rspectiveOriginX; }
762 const Length& perspectiveOriginY() const { return rareNonInheritedData->m_pe rspectiveOriginY; } 762 const Length& perspectiveOriginY() const { return rareNonInheritedData->m_pe rspectiveOriginY; }
763 const LengthSize& pageSize() const { return rareNonInheritedData->m_pageSize ; } 763 const LengthSize& pageSize() const { return rareNonInheritedData->m_pageSize ; }
764 PageSizeType pageSizeType() const { return static_cast<PageSizeType>(rareNon InheritedData->m_pageSizeType); } 764 PageSizeType pageSizeType() const { return static_cast<PageSizeType>(rareNon InheritedData->m_pageSizeType); }
765 765
766 bool hasCurrentOpacityAnimation() const { return rareNonInheritedData->m_has CurrentOpacityAnimation; }
767 bool hasCurrentTransformAnimation() const { return rareNonInheritedData->m_h asCurrentTransformAnimation; }
768 bool hasCurrentFilterAnimation() const { return rareNonInheritedData->m_hasC urrentFilterAnimation; }
769 bool shouldCompositeForCurrentAnimations() { return hasCurrentOpacityAnimati on() || hasCurrentTransformAnimation() || hasCurrentFilterAnimation(); }
770
771 bool isRunningOpacityAnimationOnCompositor() const { return rareNonInherited Data->m_runningOpacityAnimationOnCompositor; }
772 bool isRunningTransformAnimationOnCompositor() const { return rareNonInherit edData->m_runningTransformAnimationOnCompositor; }
773 bool isRunningFilterAnimationOnCompositor() const { return rareNonInheritedD ata->m_runningFilterAnimationOnCompositor; }
774 bool isRunningAnimationOnCompositor() { return isRunningOpacityAnimationOnCo mpositor() || isRunningTransformAnimationOnCompositor() || isRunningFilterAnimat ionOnCompositor(); }
775
776 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC ontain; } 766 LineBoxContain lineBoxContain() const { return rareInheritedData->m_lineBoxC ontain; }
777 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo r; } 767 Color tapHighlightColor() const { return rareInheritedData->tapHighlightColo r; }
778 768
779 EImageRendering imageRendering() const { return static_cast<EImageRendering> (rareInheritedData->m_imageRendering); } 769 EImageRendering imageRendering() const { return static_cast<EImageRendering> (rareInheritedData->m_imageRendering); }
780 770
781 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak); } 771 ESpeak speak() const { return static_cast<ESpeak>(rareInheritedData->speak); }
782 772
783 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_ filter.access()->m_operations; } 773 FilterOperations& mutableFilter() { return rareNonInheritedData.access()->m_ filter.access()->m_operations; }
784 const FilterOperations& filter() const { return rareNonInheritedData->m_filt er->m_operations; } 774 const FilterOperations& filter() const { return rareNonInheritedData->m_filt er->m_operations; }
785 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation s.operations().isEmpty(); } 775 bool hasFilter() const { return !rareNonInheritedData->m_filter->m_operation s.operations().isEmpty(); }
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 1108
1119 void setTransformStyle3D(ETransformStyle3D b) { SET_VAR(rareNonInheritedData , m_transformStyle3D, b); } 1109 void setTransformStyle3D(ETransformStyle3D b) { SET_VAR(rareNonInheritedData , m_transformStyle3D, b); }
1120 void setBackfaceVisibility(EBackfaceVisibility b) { SET_VAR(rareNonInherited Data, m_backfaceVisibility, b); } 1110 void setBackfaceVisibility(EBackfaceVisibility b) { SET_VAR(rareNonInherited Data, m_backfaceVisibility, b); }
1121 void setPerspective(float p) { SET_VAR(rareNonInheritedData, m_perspective, p); } 1111 void setPerspective(float p) { SET_VAR(rareNonInheritedData, m_perspective, p); }
1122 void setPerspectiveOriginX(const Length& l) { SET_VAR(rareNonInheritedData, m_perspectiveOriginX, l); } 1112 void setPerspectiveOriginX(const Length& l) { SET_VAR(rareNonInheritedData, m_perspectiveOriginX, l); }
1123 void setPerspectiveOriginY(const Length& l) { SET_VAR(rareNonInheritedData, m_perspectiveOriginY, l); } 1113 void setPerspectiveOriginY(const Length& l) { SET_VAR(rareNonInheritedData, m_perspectiveOriginY, l); }
1124 void setPageSize(const LengthSize& s) { SET_VAR(rareNonInheritedData, m_page Size, s); } 1114 void setPageSize(const LengthSize& s) { SET_VAR(rareNonInheritedData, m_page Size, s); }
1125 void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageS izeType, t); } 1115 void setPageSizeType(PageSizeType t) { SET_VAR(rareNonInheritedData, m_pageS izeType, t); }
1126 void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAG E_SIZE_AUTO); } 1116 void resetPageSizeType() { SET_VAR(rareNonInheritedData, m_pageSizeType, PAG E_SIZE_AUTO); }
1127 1117
1128 void setHasCurrentOpacityAnimation(bool b = true) { SET_VAR(rareNonInherited Data, m_hasCurrentOpacityAnimation, b); }
1129 void setHasCurrentTransformAnimation(bool b = true) { SET_VAR(rareNonInherit edData, m_hasCurrentTransformAnimation, b); }
1130 void setHasCurrentFilterAnimation(bool b = true) { SET_VAR(rareNonInheritedD ata, m_hasCurrentFilterAnimation, b); }
1131
1132 void setIsRunningOpacityAnimationOnCompositor(bool b = true) { SET_VAR(rareN onInheritedData, m_runningOpacityAnimationOnCompositor, b); }
1133 void setIsRunningTransformAnimationOnCompositor(bool b = true) { SET_VAR(rar eNonInheritedData, m_runningTransformAnimationOnCompositor, b); }
1134 void setIsRunningFilterAnimationOnCompositor(bool b = true) { SET_VAR(rareNo nInheritedData, m_runningFilterAnimationOnCompositor, b); }
1135
1136 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line BoxContain, c); } 1118 void setLineBoxContain(LineBoxContain c) { SET_VAR(rareInheritedData, m_line BoxContain, c); }
1137 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi ghlightColor, c); } 1119 void setTapHighlightColor(const Color& c) { SET_VAR(rareInheritedData, tapHi ghlightColor, c); }
1138 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc tion, t); } 1120 void setTouchAction(TouchAction t) { SET_VAR(rareNonInheritedData, m_touchAc tion, t); }
1139 void setTouchActionDelay(TouchActionDelay t) { SET_VAR(rareInheritedData, m_ touchActionDelay, t); } 1121 void setTouchActionDelay(TouchActionDelay t) { SET_VAR(rareInheritedData, m_ touchActionDelay, t); }
1140 1122
1141 void setScrollBehavior(ScrollBehavior b) { SET_VAR(rareNonInheritedData, m_s crollBehavior, b); } 1123 void setScrollBehavior(ScrollBehavior b) { SET_VAR(rareNonInheritedData, m_s crollBehavior, b); }
1142 1124
1143 void setWillChangeProperties(const Vector<CSSPropertyID>& properties) { SET_ VAR(rareNonInheritedData.access()->m_willChange, m_properties, properties); } 1125 void setWillChangeProperties(const Vector<CSSPropertyID>& properties) { SET_ VAR(rareNonInheritedData.access()->m_willChange, m_properties, properties); }
1144 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()-> m_willChange, m_contents, b); } 1126 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()-> m_willChange, m_contents, b); }
1145 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce ss()->m_willChange, m_scrollPosition, b); } 1127 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce ss()->m_willChange, m_scrollPosition, b); }
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 1387
1406 rareInheritedData.access()->m_textOrientation = textOrientation; 1388 rareInheritedData.access()->m_textOrientation = textOrientation;
1407 return true; 1389 return true;
1408 } 1390 }
1409 1391
1410 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1392 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1411 1393
1412 } // namespace blink 1394 } // namespace blink
1413 1395
1414 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ 1396 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderInline.h ('k') | sky/engine/core/rendering/style/StyleRareNonInheritedData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698