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

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

Powered by Google App Engine
This is Rietveld 408576698