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

Side by Side Diff: Source/core/rendering/style/RenderStyle.h

Issue 22900008: Make vw/vh units to work in css transforms. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 816
817 RubyPosition rubyPosition() const { return static_cast<RubyPosition>(rareInh eritedData->m_rubyPosition); } 817 RubyPosition rubyPosition() const { return static_cast<RubyPosition>(rareInh eritedData->m_rubyPosition); }
818 818
819 TextOrientation textOrientation() const { return static_cast<TextOrientation >(rareInheritedData->m_textOrientation); } 819 TextOrientation textOrientation() const { return static_cast<TextOrientation >(rareInheritedData->m_textOrientation); }
820 820
821 // Return true if any transform related property (currently transform, trans formStyle3D or perspective) 821 // Return true if any transform related property (currently transform, trans formStyle3D or perspective)
822 // indicates that we are transforming 822 // indicates that we are transforming
823 bool hasTransformRelatedProperty() const { return hasTransform() || preserve s3D() || hasPerspective(); } 823 bool hasTransformRelatedProperty() const { return hasTransform() || preserve s3D() || hasPerspective(); }
824 824
825 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin } ; 825 enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin } ;
826 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize, ApplyTransformOrigin = IncludeTransformOrigin) const; 826 void applyTransform(TransformationMatrix&, const LayoutSize& borderBoxSize, ApplyTransformOrigin = IncludeTransformOrigin, RenderView* =0) const;
827 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App lyTransformOrigin = IncludeTransformOrigin) const; 827 void applyTransform(TransformationMatrix&, const FloatRect& boundingBox, App lyTransformOrigin = IncludeTransformOrigin, RenderView* =0) const;
828 828
829 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar eNonInheritedData->m_maskBoxImage.hasImage(); } 829 bool hasMask() const { return rareNonInheritedData->m_mask.hasImage() || rar eNonInheritedData->m_maskBoxImage.hasImage(); }
830 830
831 TextCombine textCombine() const { return static_cast<TextCombine>(rareNonInh eritedData->m_textCombine); } 831 TextCombine textCombine() const { return static_cast<TextCombine>(rareNonInh eritedData->m_textCombine); }
832 bool hasTextCombine() const { return textCombine() != TextCombineNone; } 832 bool hasTextCombine() const { return textCombine() != TextCombineNone; }
833 833
834 unsigned tabSize() const { return rareInheritedData->m_tabSize; } 834 unsigned tabSize() const { return rareInheritedData->m_tabSize; }
835 835
836 // End CSS3 Getters 836 // End CSS3 Getters
837 837
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation)) 1746 if (compareEqual(rareInheritedData->m_textOrientation, textOrientation))
1747 return false; 1747 return false;
1748 1748
1749 rareInheritedData.access()->m_textOrientation = textOrientation; 1749 rareInheritedData.access()->m_textOrientation = textOrientation;
1750 return true; 1750 return true;
1751 } 1751 }
1752 1752
1753 } // namespace WebCore 1753 } // namespace WebCore
1754 1754
1755 #endif // RenderStyle_h 1755 #endif // RenderStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698