 Chromium Code Reviews
 Chromium Code Reviews Issue 1158603003:
  CSS Independent Transform Properties  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master
    
  
    Issue 1158603003:
  CSS Independent Transform Properties  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master| 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 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 #include "platform/fonts/FontBaseline.h" | 70 #include "platform/fonts/FontBaseline.h" | 
| 71 #include "platform/fonts/FontDescription.h" | 71 #include "platform/fonts/FontDescription.h" | 
| 72 #include "platform/geometry/FloatRoundedRect.h" | 72 #include "platform/geometry/FloatRoundedRect.h" | 
| 73 #include "platform/geometry/LayoutRectOutsets.h" | 73 #include "platform/geometry/LayoutRectOutsets.h" | 
| 74 #include "platform/graphics/Color.h" | 74 #include "platform/graphics/Color.h" | 
| 75 #include "platform/graphics/GraphicsTypes.h" | 75 #include "platform/graphics/GraphicsTypes.h" | 
| 76 #include "platform/scroll/ScrollableArea.h" | 76 #include "platform/scroll/ScrollableArea.h" | 
| 77 #include "platform/text/TextDirection.h" | 77 #include "platform/text/TextDirection.h" | 
| 78 #include "platform/text/TextRun.h" | 78 #include "platform/text/TextRun.h" | 
| 79 #include "platform/text/UnicodeBidi.h" | 79 #include "platform/text/UnicodeBidi.h" | 
| 80 #include "platform/transforms/RotateTransformOperation.h" | |
| 81 #include "platform/transforms/ScaleTransformOperation.h" | |
| 80 #include "platform/transforms/TransformOperations.h" | 82 #include "platform/transforms/TransformOperations.h" | 
| 83 #include "platform/transforms/TranslateTransformOperation.h" | |
| 81 #include "public/platform/WebScrollBlocksOn.h" | 84 #include "public/platform/WebScrollBlocksOn.h" | 
| 82 #include "wtf/Forward.h" | 85 #include "wtf/Forward.h" | 
| 83 #include "wtf/OwnPtr.h" | 86 #include "wtf/OwnPtr.h" | 
| 84 #include "wtf/RefCounted.h" | 87 #include "wtf/RefCounted.h" | 
| 85 #include "wtf/StdLibExtras.h" | 88 #include "wtf/StdLibExtras.h" | 
| 86 #include "wtf/Vector.h" | 89 #include "wtf/Vector.h" | 
| 87 | 90 | 
| 88 template<typename T, typename U> inline bool compareEqual(const T& t, const U& u ) { return t == static_cast<T>(u); } | 91 template<typename T, typename U> inline bool compareEqual(const T& t, const U& u ) { return t == static_cast<T>(u); } | 
| 89 | 92 | 
| 90 #define SET_VAR(group, variable, value) \ | 93 #define SET_VAR(group, variable, value) \ | 
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 836 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri tedData->m_multiCol->m_columnSpan); } | 839 ColumnSpan columnSpan() const { return static_cast<ColumnSpan>(rareNonInheri tedData->m_multiCol->m_columnSpan); } | 
| 837 EPageBreak columnBreakBefore() const { return static_cast<EPageBreak>(rareNo nInheritedData->m_multiCol->m_breakBefore); } | 840 EPageBreak columnBreakBefore() const { return static_cast<EPageBreak>(rareNo nInheritedData->m_multiCol->m_breakBefore); } | 
| 838 EPageBreak columnBreakInside() const { return static_cast<EPageBreak>(rareNo nInheritedData->m_multiCol->m_breakInside); } | 841 EPageBreak columnBreakInside() const { return static_cast<EPageBreak>(rareNo nInheritedData->m_multiCol->m_breakInside); } | 
| 839 EPageBreak columnBreakAfter() const { return static_cast<EPageBreak>(rareNon InheritedData->m_multiCol->m_breakAfter); } | 842 EPageBreak columnBreakAfter() const { return static_cast<EPageBreak>(rareNon InheritedData->m_multiCol->m_breakAfter); } | 
| 840 bool hasInlineTransform() const { return rareNonInheritedData->m_hasInlineTr ansform; } | 843 bool hasInlineTransform() const { return rareNonInheritedData->m_hasInlineTr ansform; } | 
| 841 bool hasCompositorProxy() const { return rareNonInheritedData->m_hasComposit orProxy; } | 844 bool hasCompositorProxy() const { return rareNonInheritedData->m_hasComposit orProxy; } | 
| 842 const TransformOperations& transform() const { return rareNonInheritedData-> m_transform->m_operations; } | 845 const TransformOperations& transform() const { return rareNonInheritedData-> m_transform->m_operations; } | 
| 843 const TransformOrigin& transformOrigin() const { return rareNonInheritedData ->m_transform->m_origin; } | 846 const TransformOrigin& transformOrigin() const { return rareNonInheritedData ->m_transform->m_origin; } | 
| 844 const Length& transformOriginX() const { return transformOrigin().x(); } | 847 const Length& transformOriginX() const { return transformOrigin().x(); } | 
| 845 const Length& transformOriginY() const { return transformOrigin().y(); } | 848 const Length& transformOriginY() const { return transformOrigin().y(); } | 
| 849 TranslateTransformOperation* translate() const { return rareNonInheritedData ->m_transform->m_translate.get(); } | |
| 850 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr ansform->m_rotate.get(); } | |
| 851 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran sform->m_scale.get(); } | |
| 846 float transformOriginZ() const { return transformOrigin().z(); } | 852 float transformOriginZ() const { return transformOrigin().z(); } | 
| 847 bool hasTransform() const { return hasTransformOperations() || hasMotionPath () || hasCurrentTransformAnimation(); } | 853 bool hasTranslate() const { return rareNonInheritedData->m_transform->m_tran slate; } | 
| 854 bool hasRotate() const { return rareNonInheritedData->m_transform->m_rotate; } | |
| 855 bool hasScale() const { return rareNonInheritedData->m_transform->m_scale; } | |
| 856 bool has3DTransformProperties() const { return rareNonInheritedData->m_trans form->has3DTransformProperties(); } | |
| 857 bool hasTransform() const { return hasTransformOperations() || hasMotionPath () || hasCurrentTransformAnimation() || hasTranslate() || hasRotate() || hasScal e(); } | |
| 848 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { return rareNonInheritedData->m_transform == otherStyle.rareNonInheritedData->m_transfo rm; } | 858 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { return rareNonInheritedData->m_transform == otherStyle.rareNonInheritedData->m_transfo rm; } | 
| 849 | 859 | 
| 850 StyleMotionPath* motionPath() const { return rareNonInheritedData->m_transfo rm->m_motion.m_path.get(); } | 860 StyleMotionPath* motionPath() const { return rareNonInheritedData->m_transfo rm->m_motion.m_path.get(); } | 
| 851 bool hasMotionPath() const { return rareNonInheritedData->m_transform->m_mot ion.m_path; } | 861 bool hasMotionPath() const { return rareNonInheritedData->m_transform->m_mot ion.m_path; } | 
| 852 const Length& motionOffset() const { return rareNonInheritedData->m_transfor m->m_motion.m_offset; } | 862 const Length& motionOffset() const { return rareNonInheritedData->m_transfor m->m_motion.m_offset; } | 
| 853 float motionRotation() const { return rareNonInheritedData->m_transform->m_m otion.m_rotation; } | 863 float motionRotation() const { return rareNonInheritedData->m_transform->m_m otion.m_rotation; } | 
| 854 MotionRotationType motionRotationType() const { return rareNonInheritedData- >m_transform->m_motion.m_rotationType; } | 864 MotionRotationType motionRotationType() const { return rareNonInheritedData- >m_transform->m_motion.m_rotationType; } | 
| 855 | 865 | 
| 856 TextEmphasisFill textEmphasisFill() const { return static_cast<TextEmphasisF ill>(rareInheritedData->textEmphasisFill); } | 866 TextEmphasisFill textEmphasisFill() const { return static_cast<TextEmphasisF ill>(rareInheritedData->textEmphasisFill); } | 
| 857 TextEmphasisMark textEmphasisMark() const; | 867 TextEmphasisMark textEmphasisMark() const; | 
| 858 const AtomicString& textEmphasisCustomMark() const { return rareInheritedDat a->textEmphasisCustomMark; } | 868 const AtomicString& textEmphasisCustomMark() const { return rareInheritedDat a->textEmphasisCustomMark; } | 
| 859 TextEmphasisPosition textEmphasisPosition() const { return static_cast<TextE mphasisPosition>(rareInheritedData->textEmphasisPosition); } | 869 TextEmphasisPosition textEmphasisPosition() const { return static_cast<TextE mphasisPosition>(rareInheritedData->textEmphasisPosition); } | 
| 860 const AtomicString& textEmphasisMarkString() const; | 870 const AtomicString& textEmphasisMarkString() const; | 
| 861 | 871 | 
| 862 RubyPosition rubyPosition() const { return static_cast<RubyPosition>(rareInh eritedData->m_rubyPosition); } | 872 RubyPosition rubyPosition() const { return static_cast<RubyPosition>(rareInh eritedData->m_rubyPosition); } | 
| 863 | 873 | 
| 864 TextOrientation textOrientation() const { return static_cast<TextOrientation >(rareInheritedData->m_textOrientation); } | 874 TextOrientation textOrientation() const { return static_cast<TextOrientation >(rareInheritedData->m_textOrientation); } | 
| 865 | 875 | 
| 866 ObjectFit objectFit() const { return static_cast<ObjectFit>(rareNonInherited Data->m_objectFit); } | 876 ObjectFit objectFit() const { return static_cast<ObjectFit>(rareNonInherited Data->m_objectFit); } | 
| 867 LengthPoint objectPosition() const { return rareNonInheritedData->m_objectPo sition; } | 877 LengthPoint objectPosition() const { return rareNonInheritedData->m_objectPo sition; } | 
| 868 | 878 | 
| 869 // Return true if any transform related property (currently transform/motion Path, transformStyle3D or perspective) | 879 // Return true if any transform related property (currently transform/motion Path, transformStyle3D or perspective) | 
| 870 // indicates that we are transforming | 880 // indicates that we are transforming | 
| 871 bool hasTransformRelatedProperty() const { return hasTransform() || preserve s3D() || hasPerspective(); } | 881 bool hasTransformRelatedProperty() const { return hasTransform() || preserve s3D() || hasPerspective(); } | 
| 872 | 882 | 
| 873 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin } ; | 883 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin } ; | 
| 874 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; | 884 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; | 
| 875 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize, ApplyTransformOrigin = IncludeTransformOrigin, ApplyMotionPath = IncludeMotionPa th) const; | 885 enum ApplyTransformL2 { IncludeTransformL2, ExcludeTransformL2 }; | 
| 
alancutter (OOO until 2018)
2015/06/17 07:38:33
ApplyIndependentTransformProperties for consistenc
 
soonm
2015/06/17 23:56:53
Done.
 | |
| 876 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App lyTransformOrigin = IncludeTransformOrigin, ApplyMotionPath = IncludeMotionPath) const; | 886 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize, ApplyTransformOrigin = IncludeTransformOrigin, ApplyMotionPath = IncludeMotionPa th, ApplyTransformL2 = IncludeTransformL2) const; | 
| 887 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App lyTransformOrigin = IncludeTransformOrigin, ApplyMotionPath = IncludeMotionPath, ApplyTransformL2 = IncludeTransformL2) const; | |
| 877 | 888 | 
| 878 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar eNonInheritedData->m_maskBoxImage.hasImage(); } | 889 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar eNonInheritedData->m_maskBoxImage.hasImage(); } | 
| 879 | 890 | 
| 880 TextCombine textCombine() const { return static_cast<TextCombine>(rareNonInh eritedData->m_textCombine); } | 891 TextCombine textCombine() const { return static_cast<TextCombine>(rareNonInh eritedData->m_textCombine); } | 
| 881 bool hasTextCombine() const { return textCombine() != TextCombineNone; } | 892 bool hasTextCombine() const { return textCombine() != TextCombineNone; } | 
| 882 | 893 | 
| 883 TabSize tabSize() const { return rareInheritedData->m_tabSize; } | 894 TabSize tabSize() const { return rareInheritedData->m_tabSize; } | 
| 884 | 895 | 
| 885 // End CSS3 Getters | 896 // End CSS3 Getters | 
| 886 | 897 | 
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1331 void setColumnBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID ); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_breakInside, p); } | 1342 void setColumnBreakInside(EPageBreak p) { ASSERT(p == PBAUTO || p == PBAVOID ); SET_VAR(rareNonInheritedData.access()->m_multiCol, m_breakInside, p); } | 
| 1332 void setColumnBreakAfter(EPageBreak p) { SET_VAR(rareNonInheritedData.access ()->m_multiCol, m_breakAfter, p); } | 1343 void setColumnBreakAfter(EPageBreak p) { SET_VAR(rareNonInheritedData.access ()->m_multiCol, m_breakAfter, p); } | 
| 1333 void inheritColumnPropertiesFrom(const ComputedStyle& parent) { rareNonInher itedData.access()->m_multiCol = parent.rareNonInheritedData->m_multiCol; } | 1344 void inheritColumnPropertiesFrom(const ComputedStyle& parent) { rareNonInher itedData.access()->m_multiCol = parent.rareNonInheritedData->m_multiCol; } | 
| 1334 void setHasInlineTransform(bool b) { SET_VAR(rareNonInheritedData, m_hasInli neTransform, b); } | 1345 void setHasInlineTransform(bool b) { SET_VAR(rareNonInheritedData, m_hasInli neTransform, b); } | 
| 1335 void setHasCompositorProxy(bool b) { SET_VAR(rareNonInheritedData, m_hasComp ositorProxy, b); } | 1346 void setHasCompositorProxy(bool b) { SET_VAR(rareNonInheritedData, m_hasComp ositorProxy, b); } | 
| 1336 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited Data.access()->m_transform, m_operations, ops); } | 1347 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited Data.access()->m_transform, m_operations, ops); } | 
| 1337 void setTransformOriginX(const Length& v) { setTransformOrigin(TransformOrig in(v, transformOriginY(), transformOriginZ())); } | 1348 void setTransformOriginX(const Length& v) { setTransformOrigin(TransformOrig in(v, transformOriginY(), transformOriginZ())); } | 
| 1338 void setTransformOriginY(const Length& v) { setTransformOrigin(TransformOrig in(transformOriginX(), v, transformOriginZ())); } | 1349 void setTransformOriginY(const Length& v) { setTransformOrigin(TransformOrig in(transformOriginX(), v, transformOriginZ())); } | 
| 1339 void setTransformOriginZ(float f) { setTransformOrigin(TransformOrigin(trans formOriginX(), transformOriginY(), f)); } | 1350 void setTransformOriginZ(float f) { setTransformOrigin(TransformOrigin(trans formOriginX(), transformOriginY(), f)); } | 
| 1340 void setTransformOrigin(const TransformOrigin& o) { SET_VAR(rareNonInherited Data.access()->m_transform, m_origin, o); } | 1351 void setTransformOrigin(const TransformOrigin& o) { SET_VAR(rareNonInherited Data.access()->m_transform, m_origin, o); } | 
| 1352 void setTranslate(PassRefPtr<TranslateTransformOperation> v) { rareNonInheri tedData.access()->m_transform.access()->m_translate = v; } | |
| 1353 void setRotate(PassRefPtr<RotateTransformOperation> v) { rareNonInheritedDat a.access()->m_transform.access()->m_rotate = v; } | |
| 1354 void setScale(PassRefPtr<ScaleTransformOperation> v) { rareNonInheritedData. access()->m_transform.access()->m_scale = v; } | |
| 1355 | |
| 1341 void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); } | 1356 void setSpeak(ESpeak s) { SET_VAR(rareInheritedData, speak, s); } | 
| 1342 void setTextCombine(TextCombine v) { SET_VAR(rareNonInheritedData, m_textCom bine, v); } | 1357 void setTextCombine(TextCombine v) { SET_VAR(rareNonInheritedData, m_textCom bine, v); } | 
| 1343 void setTextDecorationColor(const StyleColor& c) { SET_VAR(rareNonInheritedD ata, m_textDecorationColor, c); } | 1358 void setTextDecorationColor(const StyleColor& c) { SET_VAR(rareNonInheritedD ata, m_textDecorationColor, c); } | 
| 1344 void setTextEmphasisColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInh eritedData, textEmphasisColor, setTextEmphasisColor, c); } | 1359 void setTextEmphasisColor(const StyleColor& c) { SET_VAR_WITH_SETTER(rareInh eritedData, textEmphasisColor, setTextEmphasisColor, c); } | 
| 1345 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(rareInheritedData, textEmphasisFill, fill); } | 1360 void setTextEmphasisFill(TextEmphasisFill fill) { SET_VAR(rareInheritedData, textEmphasisFill, fill); } | 
| 1346 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(rareInheritedData, textEmphasisMark, mark); } | 1361 void setTextEmphasisMark(TextEmphasisMark mark) { SET_VAR(rareInheritedData, textEmphasisMark, mark); } | 
| 1347 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(rareInher itedData, textEmphasisCustomMark, mark); } | 1362 void setTextEmphasisCustomMark(const AtomicString& mark) { SET_VAR(rareInher itedData, textEmphasisCustomMark, mark); } | 
| 1348 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(rareIn heritedData, textEmphasisPosition, position); } | 1363 void setTextEmphasisPosition(TextEmphasisPosition position) { SET_VAR(rareIn heritedData, textEmphasisPosition, position); } | 
| 1349 bool setTextOrientation(TextOrientation); | 1364 bool setTextOrientation(TextOrientation); | 
| 1350 | 1365 | 
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1639 static const AtomicString& initialHyphenationString() { return nullAtom; } | 1654 static const AtomicString& initialHyphenationString() { return nullAtom; } | 
| 1640 static const AtomicString& initialLocale() { return nullAtom; } | 1655 static const AtomicString& initialLocale() { return nullAtom; } | 
| 1641 static EResize initialResize() { return RESIZE_NONE; } | 1656 static EResize initialResize() { return RESIZE_NONE; } | 
| 1642 static ControlPart initialAppearance() { return NoControlPart; } | 1657 static ControlPart initialAppearance() { return NoControlPart; } | 
| 1643 static Order initialRTLOrdering() { return LogicalOrder; } | 1658 static Order initialRTLOrdering() { return LogicalOrder; } | 
| 1644 static float initialTextStrokeWidth() { return 0; } | 1659 static float initialTextStrokeWidth() { return 0; } | 
| 1645 static unsigned short initialColumnCount() { return 1; } | 1660 static unsigned short initialColumnCount() { return 1; } | 
| 1646 static ColumnFill initialColumnFill() { return ColumnFillBalance; } | 1661 static ColumnFill initialColumnFill() { return ColumnFillBalance; } | 
| 1647 static ColumnSpan initialColumnSpan() { return ColumnSpanNone; } | 1662 static ColumnSpan initialColumnSpan() { return ColumnSpanNone; } | 
| 1648 static const TransformOperations& initialTransform() { DEFINE_STATIC_LOCAL(T ransformOperations, ops, ()); return ops; } | 1663 static const TransformOperations& initialTransform() { DEFINE_STATIC_LOCAL(T ransformOperations, ops, ()); return ops; } | 
| 1664 static const PassRefPtr<TranslateTransformOperation> initialTranslate() { re turn TranslateTransformOperation::create(Length(0, Fixed), Length(0, Fixed), 0, TransformOperation::Translate3D); } | |
| 1665 static const PassRefPtr<RotateTransformOperation> initialRotate() { return R otateTransformOperation::create(0, 0, 1, 0, TransformOperation::Rotate3D); } | |
| 1666 static const PassRefPtr<ScaleTransformOperation> initialScale() { return Sca leTransformOperation::create(1, 1, 1, TransformOperation::Scale3D); } | |
| 1649 static Length initialTransformOriginX() { return Length(50.0, Percent); } | 1667 static Length initialTransformOriginX() { return Length(50.0, Percent); } | 
| 1650 static Length initialTransformOriginY() { return Length(50.0, Percent); } | 1668 static Length initialTransformOriginY() { return Length(50.0, Percent); } | 
| 1651 static float initialTransformOriginZ() { return 0; } | 1669 static float initialTransformOriginZ() { return 0; } | 
| 1652 static TransformOrigin initialTransformOrigin() { return TransformOrigin(Len gth(50.0, Percent), Length(50.0, Percent), 0); } | 1670 static TransformOrigin initialTransformOrigin() { return TransformOrigin(Len gth(50.0, Percent), Length(50.0, Percent), 0); } | 
| 1653 static EPointerEvents initialPointerEvents() { return PE_AUTO; } | 1671 static EPointerEvents initialPointerEvents() { return PE_AUTO; } | 
| 1654 static ETransformStyle3D initialTransformStyle3D() { return TransformStyle3D Flat; } | 1672 static ETransformStyle3D initialTransformStyle3D() { return TransformStyle3D Flat; } | 
| 1655 static const StyleMotionPath* initialMotionPath() { return nullptr; } | 1673 static const StyleMotionPath* initialMotionPath() { return nullptr; } | 
| 1656 static Length initialMotionOffset() { return Length(0, Fixed); } | 1674 static Length initialMotionOffset() { return Length(0, Fixed); } | 
| 1657 static float initialMotionRotation() { return 0; } | 1675 static float initialMotionRotation() { return 0; } | 
| 1658 static MotionRotationType initialMotionRotationType() { return MotionRotatio nAuto; } | 1676 static MotionRotationType initialMotionRotationType() { return MotionRotatio nAuto; } | 
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1803 void appendContent(PassOwnPtr<ContentData>); | 1821 void appendContent(PassOwnPtr<ContentData>); | 
| 1804 void addAppliedTextDecoration(const AppliedTextDecoration&); | 1822 void addAppliedTextDecoration(const AppliedTextDecoration&); | 
| 1805 bool hasTransformOperations() const { return !rareNonInheritedData->m_transf orm->m_operations.operations().isEmpty(); } | 1823 bool hasTransformOperations() const { return !rareNonInheritedData->m_transf orm->m_operations.operations().isEmpty(); } | 
| 1806 void applyMotionPathTransform(TransformationMatrix&) const; | 1824 void applyMotionPathTransform(TransformationMatrix&) const; | 
| 1807 | 1825 | 
| 1808 bool diffNeedsFullLayoutAndPaintInvalidation(const ComputedStyle& other) con st; | 1826 bool diffNeedsFullLayoutAndPaintInvalidation(const ComputedStyle& other) con st; | 
| 1809 bool diffNeedsFullLayout(const ComputedStyle& other) const; | 1827 bool diffNeedsFullLayout(const ComputedStyle& other) const; | 
| 1810 bool diffNeedsPaintInvalidationLayer(const ComputedStyle& other) const; | 1828 bool diffNeedsPaintInvalidationLayer(const ComputedStyle& other) const; | 
| 1811 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const; | 1829 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const; | 
| 1812 void updatePropertySpecificDifferences(const ComputedStyle& other, StyleDiff erence&) const; | 1830 void updatePropertySpecificDifferences(const ComputedStyle& other, StyleDiff erence&) const; | 
| 1831 | |
| 1832 bool requireTransformOrigin(ApplyTransformOrigin applyOrigin, ApplyMotionPat h) const; | |
| 1813 }; | 1833 }; | 
| 1814 | 1834 | 
| 1815 // FIXME: Reduce/remove the dependency on zoom adjusted int values. | 1835 // FIXME: Reduce/remove the dependency on zoom adjusted int values. | 
| 1816 // The float or LayoutUnit versions of layout values should be used. | 1836 // The float or LayoutUnit versions of layout values should be used. | 
| 1817 inline int adjustForAbsoluteZoom(int value, float zoomFactor) | 1837 inline int adjustForAbsoluteZoom(int value, float zoomFactor) | 
| 1818 { | 1838 { | 
| 1819 if (zoomFactor == 1) | 1839 if (zoomFactor == 1) | 
| 1820 return value; | 1840 return value; | 
| 1821 // Needed because computeLengthInt truncates (rather than rounds) when scali ng up. | 1841 // Needed because computeLengthInt truncates (rather than rounds) when scali ng up. | 
| 1822 float fvalue = value; | 1842 float fvalue = value; | 
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1915 } | 1935 } | 
| 1916 | 1936 | 
| 1917 inline bool ComputedStyle::hasPseudoElementStyle() const | 1937 inline bool ComputedStyle::hasPseudoElementStyle() const | 
| 1918 { | 1938 { | 
| 1919 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 1939 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; | 
| 1920 } | 1940 } | 
| 1921 | 1941 | 
| 1922 } // namespace blink | 1942 } // namespace blink | 
| 1923 | 1943 | 
| 1924 #endif // ComputedStyle_h | 1944 #endif // ComputedStyle_h | 
| OLD | NEW |