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

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

Issue 1076353003: Remove -webkit-user-drag (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: First patch didn't seem to appear? Created 5 years, 8 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
« no previous file with comments | « sky/engine/core/dom/Node.cpp ('k') | sky/engine/core/rendering/style/RenderStyleConstants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 void getBoxShadowBlockDirectionExtent(LayoutUnit& logicalTop, LayoutUnit& lo gicalBottom) { getShadowBlockDirectionExtent(boxShadow(), logicalTop, logicalBot tom); } 611 void getBoxShadowBlockDirectionExtent(LayoutUnit& logicalTop, LayoutUnit& lo gicalBottom) { getShadowBlockDirectionExtent(boxShadow(), logicalTop, logicalBot tom); }
612 612
613 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); } 613 EBoxDecorationBreak boxDecorationBreak() const { return m_box->boxDecoration Break(); }
614 614
615 // FIXME: reflections should belong to this helper function but they are cur rently handled 615 // FIXME: reflections should belong to this helper function but they are cur rently handled
616 // through their self-painting layers. So the rendering code doesn't account for them. 616 // through their self-painting layers. So the rendering code doesn't account for them.
617 bool hasVisualOverflowingEffect() const { return boxShadow() || hasBorderIma geOutsets() || hasOutline(); } 617 bool hasVisualOverflowingEffect() const { return boxShadow() || hasBorderIma geOutsets() || hasOutline(); }
618 618
619 EBoxSizing boxSizing() const { return m_box->boxSizing(); } 619 EBoxSizing boxSizing() const { return m_box->boxSizing(); }
620 EUserModify userModify() const { return static_cast<EUserModify>(rareInherit edData->userModify); } 620 EUserModify userModify() const { return static_cast<EUserModify>(rareInherit edData->userModify); }
621 EUserDrag userDrag() const { return static_cast<EUserDrag>(rareNonInheritedD ata->userDrag); }
622 EUserSelect userSelect() const { return static_cast<EUserSelect>(rareInherit edData->userSelect); } 621 EUserSelect userSelect() const { return static_cast<EUserSelect>(rareInherit edData->userSelect); }
623 TextOverflow textOverflow() const { return static_cast<TextOverflow>(rareNon InheritedData->textOverflow); } 622 TextOverflow textOverflow() const { return static_cast<TextOverflow>(rareNon InheritedData->textOverflow); }
624 EWordBreak wordBreak() const { return static_cast<EWordBreak>(rareInheritedD ata->wordBreak); } 623 EWordBreak wordBreak() const { return static_cast<EWordBreak>(rareInheritedD ata->wordBreak); }
625 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(rareI nheritedData->overflowWrap); } 624 EOverflowWrap overflowWrap() const { return static_cast<EOverflowWrap>(rareI nheritedData->overflowWrap); }
626 LineBreak lineBreak() const { return static_cast<LineBreak>(rareInheritedDat a->lineBreak); } 625 LineBreak lineBreak() const { return static_cast<LineBreak>(rareInheritedDat a->lineBreak); }
627 const AtomicString& highlight() const { return rareInheritedData->highlight; } 626 const AtomicString& highlight() const { return rareInheritedData->highlight; }
628 const AtomicString& hyphenationString() const { return rareInheritedData->hy phenationString; } 627 const AtomicString& hyphenationString() const { return rareInheritedData->hy phenationString; }
629 const AtomicString& locale() const { return rareInheritedData->locale; } 628 const AtomicString& locale() const { return rareInheritedData->locale; }
630 const TransformOperations& transform() const { return rareNonInheritedData-> m_transform->m_operations; } 629 const TransformOperations& transform() const { return rareNonInheritedData-> m_transform->m_operations; }
631 const Length& transformOriginX() const { return rareNonInheritedData->m_tran sform->m_x; } 630 const Length& transformOriginX() const { return rareNonInheritedData->m_tran sform->m_x; }
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa ta.access()->m_flexibleBox, m_flexDirection, direction); } 899 void setFlexDirection(EFlexDirection direction) { SET_VAR(rareNonInheritedDa ta.access()->m_flexibleBox, m_flexDirection, direction); }
901 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle xibleBox, m_flexWrap, w); } 900 void setFlexWrap(EFlexWrap w) { SET_VAR(rareNonInheritedData.access()->m_fle xibleBox, m_flexWrap, w); }
902 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_ justifyContent, p); } 901 void setJustifyContent(EJustifyContent p) { SET_VAR(rareNonInheritedData, m_ justifyContent, p); }
903 void setJustifyItems(ItemPosition justifyItems) { SET_VAR(rareNonInheritedDa ta, m_justifyItems, justifyItems); } 902 void setJustifyItems(ItemPosition justifyItems) { SET_VAR(rareNonInheritedDa ta, m_justifyItems, justifyItems); }
904 void setJustifyItemsOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_justifyItemsOverflowAlignment, overflowAlignmen t); } 903 void setJustifyItemsOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_justifyItemsOverflowAlignment, overflowAlignmen t); }
905 void setJustifyItemsPositionType(ItemPositionType positionType) { SET_VAR(ra reNonInheritedData, m_justifyItemsPositionType, positionType); } 904 void setJustifyItemsPositionType(ItemPositionType positionType) { SET_VAR(ra reNonInheritedData, m_justifyItemsPositionType, positionType); }
906 void setJustifySelf(ItemPosition justifySelf) { SET_VAR(rareNonInheritedData , m_justifySelf, justifySelf); } 905 void setJustifySelf(ItemPosition justifySelf) { SET_VAR(rareNonInheritedData , m_justifySelf, justifySelf); }
907 void setJustifySelfOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_justifySelfOverflowAlignment, overflowAlignment) ; } 906 void setJustifySelfOverflowAlignment(OverflowAlignment overflowAlignment) { SET_VAR(rareNonInheritedData, m_justifySelfOverflowAlignment, overflowAlignment) ; }
908 907
909 void setUserModify(EUserModify u) { SET_VAR(rareInheritedData, userModify, u ); } 908 void setUserModify(EUserModify u) { SET_VAR(rareInheritedData, userModify, u ); }
910 void setUserDrag(EUserDrag d) { SET_VAR(rareNonInheritedData, userDrag, d); }
911 void setUserSelect(EUserSelect s) { SET_VAR(rareInheritedData, userSelect, s ); } 909 void setUserSelect(EUserSelect s) { SET_VAR(rareInheritedData, userSelect, s ); }
912 void setTextOverflow(TextOverflow overflow) { SET_VAR(rareNonInheritedData, textOverflow, overflow); } 910 void setTextOverflow(TextOverflow overflow) { SET_VAR(rareNonInheritedData, textOverflow, overflow); }
913 void setWordBreak(EWordBreak b) { SET_VAR(rareInheritedData, wordBreak, b); } 911 void setWordBreak(EWordBreak b) { SET_VAR(rareInheritedData, wordBreak, b); }
914 void setOverflowWrap(EOverflowWrap b) { SET_VAR(rareInheritedData, overflowW rap, b); } 912 void setOverflowWrap(EOverflowWrap b) { SET_VAR(rareInheritedData, overflowW rap, b); }
915 void setLineBreak(LineBreak b) { SET_VAR(rareInheritedData, lineBreak, b); } 913 void setLineBreak(LineBreak b) { SET_VAR(rareInheritedData, lineBreak, b); }
916 void setHighlight(const AtomicString& h) { SET_VAR(rareInheritedData, highli ght, h); } 914 void setHighlight(const AtomicString& h) { SET_VAR(rareInheritedData, highli ght, h); }
917 void setHyphens(Hyphens h) { SET_VAR(rareInheritedData, hyphens, h); } 915 void setHyphens(Hyphens h) { SET_VAR(rareInheritedData, hyphens, h); }
918 void setHyphenationString(const AtomicString& h) { SET_VAR(rareInheritedData , hyphenationString, h); } 916 void setHyphenationString(const AtomicString& h) { SET_VAR(rareInheritedData , hyphenationString, h); }
919 void setLocale(const AtomicString& locale) { SET_VAR(rareInheritedData, loca le, locale); } 917 void setLocale(const AtomicString& locale) { SET_VAR(rareInheritedData, loca le, locale); }
920 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited Data.access()->m_transform, m_operations, ops); } 918 void setTransform(const TransformOperations& ops) { SET_VAR(rareNonInherited Data.access()->m_transform, m_operations, ops); }
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 static OverflowAlignment initialAlignSelfOverflowAlignment() { return Overfl owAlignmentDefault; } 1079 static OverflowAlignment initialAlignSelfOverflowAlignment() { return Overfl owAlignmentDefault; }
1082 static EFlexDirection initialFlexDirection() { return FlowColumn; } 1080 static EFlexDirection initialFlexDirection() { return FlowColumn; }
1083 static EFlexWrap initialFlexWrap() { return FlexNoWrap; } 1081 static EFlexWrap initialFlexWrap() { return FlexNoWrap; }
1084 static EJustifyContent initialJustifyContent() { return JustifyFlexStart; } 1082 static EJustifyContent initialJustifyContent() { return JustifyFlexStart; }
1085 static ItemPosition initialJustifyItems() { return ItemPositionAuto; } 1083 static ItemPosition initialJustifyItems() { return ItemPositionAuto; }
1086 static OverflowAlignment initialJustifyItemsOverflowAlignment() { return Ove rflowAlignmentDefault; } 1084 static OverflowAlignment initialJustifyItemsOverflowAlignment() { return Ove rflowAlignmentDefault; }
1087 static ItemPositionType initialJustifyItemsPositionType() { return NonLegacy Position; } 1085 static ItemPositionType initialJustifyItemsPositionType() { return NonLegacy Position; }
1088 static ItemPosition initialJustifySelf() { return ItemPositionAuto; } 1086 static ItemPosition initialJustifySelf() { return ItemPositionAuto; }
1089 static OverflowAlignment initialJustifySelfOverflowAlignment() { return Over flowAlignmentDefault; } 1087 static OverflowAlignment initialJustifySelfOverflowAlignment() { return Over flowAlignmentDefault; }
1090 static EUserModify initialUserModify() { return READ_ONLY; } 1088 static EUserModify initialUserModify() { return READ_ONLY; }
1091 static EUserDrag initialUserDrag() { return DRAG_AUTO; }
1092 static EUserSelect initialUserSelect() { return SELECT_TEXT; } 1089 static EUserSelect initialUserSelect() { return SELECT_TEXT; }
1093 static TextOverflow initialTextOverflow() { return TextOverflowClip; } 1090 static TextOverflow initialTextOverflow() { return TextOverflowClip; }
1094 static EWordBreak initialWordBreak() { return NormalWordBreak; } 1091 static EWordBreak initialWordBreak() { return NormalWordBreak; }
1095 static EOverflowWrap initialOverflowWrap() { return NormalOverflowWrap; } 1092 static EOverflowWrap initialOverflowWrap() { return NormalOverflowWrap; }
1096 static LineBreak initialLineBreak() { return LineBreakAuto; } 1093 static LineBreak initialLineBreak() { return LineBreakAuto; }
1097 static const AtomicString& initialHighlight() { return nullAtom; } 1094 static const AtomicString& initialHighlight() { return nullAtom; }
1098 static const AtomicString& initialHyphenationString() { return nullAtom; } 1095 static const AtomicString& initialHyphenationString() { return nullAtom; }
1099 static const AtomicString& initialLocale() { return nullAtom; } 1096 static const AtomicString& initialLocale() { return nullAtom; }
1100 static bool initialHasAspectRatio() { return false; } 1097 static bool initialHasAspectRatio() { return false; }
1101 static float initialAspectRatioDenominator() { return 1; } 1098 static float initialAspectRatioDenominator() { return 1; }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 1203
1207 rareInheritedData.access()->m_textOrientation = textOrientation; 1204 rareInheritedData.access()->m_textOrientation = textOrientation;
1208 return true; 1205 return true;
1209 } 1206 }
1210 1207
1211 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1208 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1212 1209
1213 } // namespace blink 1210 } // namespace blink
1214 1211
1215 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_ 1212 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Node.cpp ('k') | sky/engine/core/rendering/style/RenderStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698