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

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

Issue 1891473002: WTF: Implement explicit RefPtr::operator bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 TranslateTransformOperation* translate() const { return rareNonInheritedData ->m_transform->m_translate.get(); } 906 TranslateTransformOperation* translate() const { return rareNonInheritedData ->m_transform->m_translate.get(); }
907 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr ansform->m_rotate.get(); } 907 RotateTransformOperation* rotate() const { return rareNonInheritedData->m_tr ansform->m_rotate.get(); }
908 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran sform->m_scale.get(); } 908 ScaleTransformOperation* scale() const { return rareNonInheritedData->m_tran sform->m_scale.get(); }
909 float transformOriginZ() const { return transformOrigin().z(); } 909 float transformOriginZ() const { return transformOrigin().z(); }
910 bool has3DTransform() const { return rareNonInheritedData->m_transform->has3 DTransform(); } 910 bool has3DTransform() const { return rareNonInheritedData->m_transform->has3 DTransform(); }
911 bool hasTransform() const { return hasTransformOperations() || hasMotionPath () || hasCurrentTransformAnimation() || translate() || rotate() || scale(); } 911 bool hasTransform() const { return hasTransformOperations() || hasMotionPath () || hasCurrentTransformAnimation() || translate() || rotate() || scale(); }
912 bool hasTransformOperations() const { return !rareNonInheritedData->m_transf orm->m_operations.operations().isEmpty(); } 912 bool hasTransformOperations() const { return !rareNonInheritedData->m_transf orm->m_operations.operations().isEmpty(); }
913 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { return rareNonInheritedData->m_transform == otherStyle.rareNonInheritedData->m_transfo rm; } 913 bool transformDataEquivalent(const ComputedStyle& otherStyle) const { return rareNonInheritedData->m_transform == otherStyle.rareNonInheritedData->m_transfo rm; }
914 914
915 StylePath* motionPath() const { return rareNonInheritedData->m_transform->m_ motion.m_path.get(); } 915 StylePath* motionPath() const { return rareNonInheritedData->m_transform->m_ motion.m_path.get(); }
916 bool hasMotionPath() const { return rareNonInheritedData->m_transform->m_mot ion.m_path; } 916 bool hasMotionPath() const { return motionPath(); }
917 const Length& motionOffset() const { return rareNonInheritedData->m_transfor m->m_motion.m_offset; } 917 const Length& motionOffset() const { return rareNonInheritedData->m_transfor m->m_motion.m_offset; }
918 const StyleMotionRotation& motionRotation() const { return rareNonInheritedD ata->m_transform->m_motion.m_rotation; } 918 const StyleMotionRotation& motionRotation() const { return rareNonInheritedD ata->m_transform->m_motion.m_rotation; }
919 919
920 TextEmphasisFill getTextEmphasisFill() const { return static_cast<TextEmphas isFill>(rareInheritedData->textEmphasisFill); } 920 TextEmphasisFill getTextEmphasisFill() const { return static_cast<TextEmphas isFill>(rareInheritedData->textEmphasisFill); }
921 TextEmphasisMark getTextEmphasisMark() const; 921 TextEmphasisMark getTextEmphasisMark() const;
922 const AtomicString& textEmphasisCustomMark() const { return rareInheritedDat a->textEmphasisCustomMark; } 922 const AtomicString& textEmphasisCustomMark() const { return rareInheritedDat a->textEmphasisCustomMark; }
923 TextEmphasisPosition getTextEmphasisPosition() const { return static_cast<Te xtEmphasisPosition>(rareInheritedData->textEmphasisPosition); } 923 TextEmphasisPosition getTextEmphasisPosition() const { return static_cast<Te xtEmphasisPosition>(rareInheritedData->textEmphasisPosition); }
924 const AtomicString& textEmphasisMarkString() const; 924 const AtomicString& textEmphasisMarkString() const;
925 925
926 RubyPosition getRubyPosition() const { return static_cast<RubyPosition>(rare InheritedData->m_rubyPosition); } 926 RubyPosition getRubyPosition() const { return static_cast<RubyPosition>(rare InheritedData->m_rubyPosition); }
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 } 2040 }
2041 2041
2042 inline bool ComputedStyle::hasPseudoElementStyle() const 2042 inline bool ComputedStyle::hasPseudoElementStyle() const
2043 { 2043 {
2044 return noninherited_flags.pseudoBits & ElementPseudoIdMask; 2044 return noninherited_flags.pseudoBits & ElementPseudoIdMask;
2045 } 2045 }
2046 2046
2047 } // namespace blink 2047 } // namespace blink
2048 2048
2049 #endif // ComputedStyle_h 2049 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698