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 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
901 -floatValueForLength(transformOriginY(), boundingBox.height()) - off
setY, | 901 -floatValueForLength(transformOriginY(), boundingBox.height()) - off
setY, |
902 -transformOriginZ()); | 902 -transformOriginZ()); |
903 } | 903 } |
904 } | 904 } |
905 | 905 |
906 void RenderStyle::setTextShadow(PassRefPtr<ShadowList> s) | 906 void RenderStyle::setTextShadow(PassRefPtr<ShadowList> s) |
907 { | 907 { |
908 rareInheritedData.access()->textShadow = s; | 908 rareInheritedData.access()->textShadow = s; |
909 } | 909 } |
910 | 910 |
| 911 bool RenderStyle::hasBoxShadow() const |
| 912 { |
| 913 return boxShadow() && boxShadow()->shadows().size() > 0; |
| 914 } |
| 915 |
911 void RenderStyle::setBoxShadow(PassRefPtr<ShadowList> s) | 916 void RenderStyle::setBoxShadow(PassRefPtr<ShadowList> s) |
912 { | 917 { |
913 rareNonInheritedData.access()->m_boxShadow = s; | 918 rareNonInheritedData.access()->m_boxShadow = s; |
914 } | 919 } |
915 | 920 |
916 static RoundedRect::Radii calcRadiiFor(const BorderData& border, IntSize size) | 921 static RoundedRect::Radii calcRadiiFor(const BorderData& border, IntSize size) |
917 { | 922 { |
918 return RoundedRect::Radii( | 923 return RoundedRect::Radii( |
919 IntSize(valueForLength(border.topLeft().width(), size.width()), | 924 IntSize(valueForLength(border.topLeft().width(), size.width()), |
920 valueForLength(border.topLeft().height(), size.height())), | 925 valueForLength(border.topLeft().height(), size.height())), |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1619 } | 1624 } |
1620 | 1625 |
1621 void RenderStyle::setBorderImageOutset(const BorderImageLengthBox& outset) | 1626 void RenderStyle::setBorderImageOutset(const BorderImageLengthBox& outset) |
1622 { | 1627 { |
1623 if (surround->border.m_image.outset() == outset) | 1628 if (surround->border.m_image.outset() == outset) |
1624 return; | 1629 return; |
1625 surround.access()->border.m_image.setOutset(outset); | 1630 surround.access()->border.m_image.setOutset(outset); |
1626 } | 1631 } |
1627 | 1632 |
1628 } // namespace WebCore | 1633 } // namespace WebCore |
OLD | NEW |