OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 return static_cast<EIsolation>(rareNonInheritedData->m_isolation); | 828 return static_cast<EIsolation>(rareNonInheritedData->m_isolation); |
829 return IsolationAuto; | 829 return IsolationAuto; |
830 } | 830 } |
831 | 831 |
832 void RenderStyle::setIsolation(EIsolation v) | 832 void RenderStyle::setIsolation(EIsolation v) |
833 { | 833 { |
834 if (RuntimeEnabledFeatures::cssCompositingEnabled()) | 834 if (RuntimeEnabledFeatures::cssCompositingEnabled()) |
835 rareNonInheritedData.access()->m_isolation = v; | 835 rareNonInheritedData.access()->m_isolation = v; |
836 } | 836 } |
837 | 837 |
| 838 bool RenderStyle::hasIsolation() const |
| 839 { |
| 840 if (RuntimeEnabledFeatures::cssCompositingEnabled()) |
| 841 return rareNonInheritedData->m_isolation != IsolationAuto; |
| 842 return false; |
| 843 } |
| 844 |
838 inline bool requireTransformOrigin(const Vector<RefPtr<TransformOperation> >& tr
ansformOperations, RenderStyle::ApplyTransformOrigin applyOrigin) | 845 inline bool requireTransformOrigin(const Vector<RefPtr<TransformOperation> >& tr
ansformOperations, RenderStyle::ApplyTransformOrigin applyOrigin) |
839 { | 846 { |
840 // transform-origin brackets the transform with translate operations. | 847 // transform-origin brackets the transform with translate operations. |
841 // Optimize for the case where the only transform is a translation, since th
e transform-origin is irrelevant | 848 // Optimize for the case where the only transform is a translation, since th
e transform-origin is irrelevant |
842 // in that case. | 849 // in that case. |
843 if (applyOrigin != RenderStyle::IncludeTransformOrigin) | 850 if (applyOrigin != RenderStyle::IncludeTransformOrigin) |
844 return false; | 851 return false; |
845 | 852 |
846 unsigned size = transformOperations.size(); | 853 unsigned size = transformOperations.size(); |
847 for (unsigned i = 0; i < size; ++i) { | 854 for (unsigned i = 0; i < size; ++i) { |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1601 surround.access()->border.m_image.setOutset(outset); | 1608 surround.access()->border.m_image.setOutset(outset); |
1602 } | 1609 } |
1603 | 1610 |
1604 ShapeValue* RenderStyle::initialShapeInside() | 1611 ShapeValue* RenderStyle::initialShapeInside() |
1605 { | 1612 { |
1606 DEFINE_STATIC_REF(ShapeValue, sOutsideValue, (ShapeValue::createOutsideValue
())); | 1613 DEFINE_STATIC_REF(ShapeValue, sOutsideValue, (ShapeValue::createOutsideValue
())); |
1607 return sOutsideValue; | 1614 return sOutsideValue; |
1608 } | 1615 } |
1609 | 1616 |
1610 } // namespace WebCore | 1617 } // namespace WebCore |
OLD | NEW |