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

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

Issue 1696373003: Add CSS parser support for the snap-height property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin } ; 928 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin } ;
929 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; 929 enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath };
930 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper ties , ExcludeIndependentTransformProperties }; 930 enum ApplyIndependentTransformProperties { IncludeIndependentTransformProper ties , ExcludeIndependentTransformProperties };
931 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize, ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons t; 931 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize, ApplyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) cons t;
932 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const; 932 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App lyTransformOrigin, ApplyMotionPath, ApplyIndependentTransformProperties) const;
933 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar eNonInheritedData->m_maskBoxImage.hasImage(); } 933 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar eNonInheritedData->m_maskBoxImage.hasImage(); }
934 934
935 TextCombine textCombine() const { return static_cast<TextCombine>(rareInheri tedData->m_textCombine); } 935 TextCombine textCombine() const { return static_cast<TextCombine>(rareInheri tedData->m_textCombine); }
936 bool hasTextCombine() const { return textCombine() != TextCombineNone; } 936 bool hasTextCombine() const { return textCombine() != TextCombineNone; }
937 937
938 uint8_t snapHeightPosition() const { return rareInheritedData->m_snapHeightP osition; }
939 uint8_t snapHeightUnit() const { return rareInheritedData->m_snapHeightUnit; }
940
938 TabSize tabSize() const { return rareInheritedData->m_tabSize; } 941 TabSize tabSize() const { return rareInheritedData->m_tabSize; }
939 942
940 RespectImageOrientationEnum respectImageOrientation() const { return static_ cast<RespectImageOrientationEnum>(rareInheritedData->m_respectImageOrientation); } 943 RespectImageOrientationEnum respectImageOrientation() const { return static_ cast<RespectImageOrientationEnum>(rareInheritedData->m_respectImageOrientation); }
941 944
942 // End CSS3 Getters 945 // End CSS3 Getters
943 946
944 // Apple-specific property getter methods 947 // Apple-specific property getter methods
945 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in herited_flags._pointerEvents); } 948 EPointerEvents pointerEvents() const { return static_cast<EPointerEvents>(in herited_flags._pointerEvents); }
946 const CSSAnimationData* animations() const { return rareNonInheritedData->m_ animations.get(); } 949 const CSSAnimationData* animations() const { return rareNonInheritedData->m_ animations.get(); }
947 const CSSTransitionData* transitions() const { return rareNonInheritedData-> m_transitions.get(); } 950 const CSSTransitionData* transitions() const { return rareNonInheritedData-> m_transitions.get(); }
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 void setMotionRotation(const StyleMotionRotation& motionRotation) { SET_NEST ED_VAR(rareNonInheritedData, m_transform, m_motion.m_rotation, motionRotation); } 1436 void setMotionRotation(const StyleMotionRotation& motionRotation) { SET_NEST ED_VAR(rareNonInheritedData, m_transform, m_motion.m_rotation, motionRotation); }
1434 1437
1435 void setObjectFit(ObjectFit f) { SET_VAR(rareNonInheritedData, m_objectFit, f); } 1438 void setObjectFit(ObjectFit f) { SET_VAR(rareNonInheritedData, m_objectFit, f); }
1436 void setObjectPosition(LengthPoint position) { SET_VAR(rareNonInheritedData, m_objectPosition, position); } 1439 void setObjectPosition(LengthPoint position) { SET_VAR(rareNonInheritedData, m_objectPosition, position); }
1437 1440
1438 void setRubyPosition(RubyPosition position) { SET_VAR(rareInheritedData, m_r ubyPosition, position); } 1441 void setRubyPosition(RubyPosition position) { SET_VAR(rareInheritedData, m_r ubyPosition, position); }
1439 1442
1440 void setFilter(const FilterOperations& ops) { SET_NESTED_VAR(rareNonInherite dData, m_filter, m_operations, ops); } 1443 void setFilter(const FilterOperations& ops) { SET_NESTED_VAR(rareNonInherite dData, m_filter, m_operations, ops); }
1441 void setBackdropFilter(const FilterOperations& ops) { SET_NESTED_VAR(rareNon InheritedData, m_backdropFilter, m_operations, ops); } 1444 void setBackdropFilter(const FilterOperations& ops) { SET_NESTED_VAR(rareNon InheritedData, m_backdropFilter, m_operations, ops); }
1442 1445
1446 void setSnapHeightPosition(uint8_t position) { SET_VAR(rareInheritedData, m_ snapHeightPosition, position); }
1447 void setSnapHeightUnit(uint8_t unit) { SET_VAR(rareInheritedData, m_snapHeig htUnit, unit); }
1448
1443 void setTabSize(TabSize size) { SET_VAR(rareInheritedData, m_tabSize, size); } 1449 void setTabSize(TabSize size) { SET_VAR(rareInheritedData, m_tabSize, size); }
1444 1450
1445 void setRespectImageOrientation(RespectImageOrientationEnum v) { SET_VAR(rar eInheritedData, m_respectImageOrientation, v); } 1451 void setRespectImageOrientation(RespectImageOrientationEnum v) { SET_VAR(rar eInheritedData, m_respectImageOrientation, v); }
1446 1452
1447 // End CSS3 Setters 1453 // End CSS3 Setters
1448 1454
1449 void setWrapFlow(WrapFlow wrapFlow) { SET_VAR(rareNonInheritedData, m_wrapFl ow, wrapFlow); } 1455 void setWrapFlow(WrapFlow wrapFlow) { SET_VAR(rareNonInheritedData, m_wrapFl ow, wrapFlow); }
1450 void setWrapThrough(WrapThrough wrapThrough) { SET_VAR(rareNonInheritedData, m_wrapThrough, wrapThrough); } 1456 void setWrapThrough(WrapThrough wrapThrough) { SET_VAR(rareNonInheritedData, m_wrapThrough, wrapThrough); }
1451 1457
1452 // Apple-specific property setters 1458 // Apple-specific property setters
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
2023 } 2029 }
2024 2030
2025 inline bool ComputedStyle::hasPseudoElementStyle() const 2031 inline bool ComputedStyle::hasPseudoElementStyle() const
2026 { 2032 {
2027 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 2033 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
2028 } 2034 }
2029 2035
2030 } // namespace blink 2036 } // namespace blink
2031 2037
2032 #endif // ComputedStyle_h 2038 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.cpp ('k') | third_party/WebKit/Source/core/style/StyleRareInheritedData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698