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 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1580 surround.access()->border.m_image.setImage(image); | 1580 surround.access()->border.m_image.setImage(image); |
1581 } | 1581 } |
1582 | 1582 |
1583 void RenderStyle::setBorderImageSlices(LengthBox slices) | 1583 void RenderStyle::setBorderImageSlices(LengthBox slices) |
1584 { | 1584 { |
1585 if (surround->border.m_image.imageSlices() == slices) | 1585 if (surround->border.m_image.imageSlices() == slices) |
1586 return; | 1586 return; |
1587 surround.access()->border.m_image.setImageSlices(slices); | 1587 surround.access()->border.m_image.setImageSlices(slices); |
1588 } | 1588 } |
1589 | 1589 |
1590 void RenderStyle::setBorderImageWidth(LengthBox slices) | 1590 void RenderStyle::setBorderImageWidth(const BorderImageLengthBox& slices) |
1591 { | 1591 { |
1592 if (surround->border.m_image.borderSlices().deprecatedLengthBox() == slices) | 1592 if (surround->border.m_image.borderSlices() == slices) |
1593 return; | 1593 return; |
1594 surround.access()->border.m_image.setBorderSlices(BorderImageLengthBox(slice
s)); | 1594 surround.access()->border.m_image.setBorderSlices(slices); |
1595 } | 1595 } |
1596 | 1596 |
1597 void RenderStyle::setBorderImageOutset(LengthBox outset) | 1597 void RenderStyle::setBorderImageOutset(const BorderImageLengthBox& outset) |
1598 { | 1598 { |
1599 if (surround->border.m_image.outset().deprecatedLengthBox() == outset) | 1599 if (surround->border.m_image.outset() == outset) |
1600 return; | 1600 return; |
1601 surround.access()->border.m_image.setOutset(BorderImageLengthBox(outset)); | 1601 surround.access()->border.m_image.setOutset(outset); |
1602 } | 1602 } |
1603 | 1603 |
1604 ShapeValue* RenderStyle::initialShapeInside() | 1604 ShapeValue* RenderStyle::initialShapeInside() |
1605 { | 1605 { |
1606 DEFINE_STATIC_LOCAL(RefPtr<ShapeValue>, sOutsideValue, (ShapeValue::createOu
tsideValue())); | 1606 DEFINE_STATIC_LOCAL(RefPtr<ShapeValue>, sOutsideValue, (ShapeValue::createOu
tsideValue())); |
1607 return sOutsideValue.get(); | 1607 return sOutsideValue.get(); |
1608 } | 1608 } |
1609 | 1609 |
1610 } // namespace WebCore | 1610 } // namespace WebCore |
OLD | NEW |