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

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

Issue 1162793003: Add CSS image-orientation: from-image (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add converter Created 5 years, 5 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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper ties , ExcludeIndependentTransformProperties }; 884 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper ties , ExcludeIndependentTransformProperties };
885 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize, ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons t; 885 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize, ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons t;
886 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const; 886 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const;
887 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar eNonInheritedData->m_maskBoxImage.hasImage(); } 887 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar eNonInheritedData->m_maskBoxImage.hasImage(); }
888 888
889 TextCombine textCombine() const { return static_cast<TextCombine>(rareInheri tedData->m_textCombine); } 889 TextCombine textCombine() const { return static_cast<TextCombine>(rareInheri tedData->m_textCombine); }
890 bool hasTextCombine() const { return textCombine() != TextCombineNone; } 890 bool hasTextCombine() const { return textCombine() != TextCombineNone; }
891 891
892 TabSize tabSize() const { return rareInheritedData->m_tabSize; } 892 TabSize tabSize() const { return rareInheritedData->m_tabSize; }
893 893
894 RespectImageOrientationEnum respectImageOrientation() const { return static_ cast<RespectImageOrientationEnum>(rareInheritedData->m_respectImageOrientation); }
895
894 // End CSS3 Getters 896 // End CSS3 Getters
895 897
896 // Apple-specific property getter methods 898 // Apple-specific property getter methods
897 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in herited_flags._pointerEvents); } 899 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in herited_flags._pointerEvents); }
898 const CSSAnimationData* animations() const { return rareNonInheritedData->m_ animations.get(); } 900 const CSSAnimationData* animations() const { return rareNonInheritedData->m_ animations.get(); }
899 const CSSTransitionData* transitions() const { return rareNonInheritedData-> m_transitions.get(); } 901 const CSSTransitionData* transitions() const { return rareNonInheritedData-> m_transitions.get(); }
900 902
901 CSSAnimationData& accessAnimations(); 903 CSSAnimationData& accessAnimations();
902 CSSTransitionData& accessTransitions(); 904 CSSTransitionData& accessTransitions();
903 905
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 1372
1371 void setObjectFit(ObjectFit f) { SET_VAR(rareNonInheritedData, m_objectFit, f); } 1373 void setObjectFit(ObjectFit f) { SET_VAR(rareNonInheritedData, m_objectFit, f); }
1372 void setObjectPosition(LengthPoint position) { SET_VAR(rareNonInheritedData, m_objectPosition, position); } 1374 void setObjectPosition(LengthPoint position) { SET_VAR(rareNonInheritedData, m_objectPosition, position); }
1373 1375
1374 void setRubyPosition(RubyPosition position) { SET_VAR(rareInheritedData, m_r ubyPosition, position); } 1376 void setRubyPosition(RubyPosition position) { SET_VAR(rareInheritedData, m_r ubyPosition, position); }
1375 1377
1376 void setFilter(const FilterOperations& ops) { SET_VAR(rareNonInheritedData.a ccess()->m_filter, m_operations, ops); } 1378 void setFilter(const FilterOperations& ops) { SET_VAR(rareNonInheritedData.a ccess()->m_filter, m_operations, ops); }
1377 1379
1378 void setTabSize(TabSize size) { SET_VAR(rareInheritedData, m_tabSize, size); } 1380 void setTabSize(TabSize size) { SET_VAR(rareInheritedData, m_tabSize, size); }
1379 1381
1382 void setRespectImageOrientation(RespectImageOrientationEnum v) { SET_VAR(rar eInheritedData, m_respectImageOrientation, v); }
1383
1380 // End CSS3 Setters 1384 // End CSS3 Setters
1381 1385
1382 void setWrapFlow(WrapFlow wrapFlow) { SET_VAR(rareNonInheritedData, m_wrapFl ow, wrapFlow); } 1386 void setWrapFlow(WrapFlow wrapFlow) { SET_VAR(rareNonInheritedData, m_wrapFl ow, wrapFlow); }
1383 void setWrapThrough(WrapThrough wrapThrough) { SET_VAR(rareNonInheritedData, m_wrapThrough, wrapThrough); } 1387 void setWrapThrough(WrapThrough wrapThrough) { SET_VAR(rareNonInheritedData, m_wrapThrough, wrapThrough); }
1384 1388
1385 // Apple-specific property setters 1389 // Apple-specific property setters
1386 void setPointerEvents(EPointerEvents p) { inherited_flags._pointerEvents = p ; } 1390 void setPointerEvents(EPointerEvents p) { inherited_flags._pointerEvents = p ; }
1387 1391
1388 void setTransformStyle3D(ETransformStyle3D b) { SET_VAR(rareNonInheritedData , m_transformStyle3D, b); } 1392 void setTransformStyle3D(ETransformStyle3D b) { SET_VAR(rareNonInheritedData , m_transformStyle3D, b); }
1389 void setBackfaceVisibility(EBackfaceVisibility b) { SET_VAR(rareNonInherited Data, m_backfaceVisibility, b); } 1393 void setBackfaceVisibility(EBackfaceVisibility b) { SET_VAR(rareNonInherited Data, m_backfaceVisibility, b); }
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 static Length initialPerspectiveOriginY() { return Length(50.0, Percent); } 1683 static Length initialPerspectiveOriginY() { return Length(50.0, Percent); }
1680 static LengthPoint initialPerspectiveOrigin() { return LengthPoint(Length(50 .0, Percent), Length(50.0, Percent)); } 1684 static LengthPoint initialPerspectiveOrigin() { return LengthPoint(Length(50 .0, Percent), Length(50.0, Percent)); }
1681 static Color initialBackgroundColor() { return Color::transparent; } 1685 static Color initialBackgroundColor() { return Color::transparent; }
1682 static TextEmphasisFill initialTextEmphasisFill() { return TextEmphasisFillF illed; } 1686 static TextEmphasisFill initialTextEmphasisFill() { return TextEmphasisFillF illed; }
1683 static TextEmphasisMark initialTextEmphasisMark() { return TextEmphasisMarkN one; } 1687 static TextEmphasisMark initialTextEmphasisMark() { return TextEmphasisMarkN one; }
1684 static const AtomicString& initialTextEmphasisCustomMark() { return nullAtom ; } 1688 static const AtomicString& initialTextEmphasisCustomMark() { return nullAtom ; }
1685 static TextEmphasisPosition initialTextEmphasisPosition() { return TextEmpha sisPositionOver; } 1689 static TextEmphasisPosition initialTextEmphasisPosition() { return TextEmpha sisPositionOver; }
1686 static RubyPosition initialRubyPosition() { return RubyPositionBefore; } 1690 static RubyPosition initialRubyPosition() { return RubyPositionBefore; }
1687 static LineBoxContain initialLineBoxContain() { return LineBoxContainBlock | LineBoxContainInline | LineBoxContainReplaced; } 1691 static LineBoxContain initialLineBoxContain() { return LineBoxContainBlock | LineBoxContainInline | LineBoxContainReplaced; }
1688 static ImageOrientationEnum initialImageOrientation() { return OriginTopLeft ; } 1692 static ImageOrientationEnum initialImageOrientation() { return OriginTopLeft ; }
1693 static RespectImageOrientationEnum initialRespectImageOrientation() { return DoNotRespectImageOrientation; }
1689 static EImageRendering initialImageRendering() { return ImageRenderingAuto; } 1694 static EImageRendering initialImageRendering() { return ImageRenderingAuto; }
1690 static ImageResolutionSource initialImageResolutionSource() { return ImageRe solutionSpecified; } 1695 static ImageResolutionSource initialImageResolutionSource() { return ImageRe solutionSpecified; }
1691 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu tionNoSnap; } 1696 static ImageResolutionSnap initialImageResolutionSnap() { return ImageResolu tionNoSnap; }
1692 static float initialImageResolution() { return 1; } 1697 static float initialImageResolution() { return 1; }
1693 static StyleImage* initialBorderImageSource() { return 0; } 1698 static StyleImage* initialBorderImageSource() { return 0; }
1694 static StyleImage* initialMaskBoxImageSource() { return 0; } 1699 static StyleImage* initialMaskBoxImageSource() { return 0; }
1695 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE conomy; } 1700 static PrintColorAdjust initialPrintColorAdjust() { return PrintColorAdjustE conomy; }
1696 static TouchAction initialTouchAction() { return TouchActionAuto; } 1701 static TouchAction initialTouchAction() { return TouchActionAuto; }
1697 static ShadowList* initialBoxShadow() { return 0; } 1702 static ShadowList* initialBoxShadow() { return 0; }
1698 static ShadowList* initialTextShadow() { return 0; } 1703 static ShadowList* initialTextShadow() { return 0; }
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 } 1941 }
1937 1942
1938 inline bool ComputedStyle::hasPseudoElementStyle() const 1943 inline bool ComputedStyle::hasPseudoElementStyle() const
1939 { 1944 {
1940 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1945 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1941 } 1946 }
1942 1947
1943 } // namespace blink 1948 } // namespace blink
1944 1949
1945 #endif // ComputedStyle_h 1950 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp ('k') | Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698