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

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

Issue 55813002: Convert animation and renderer code to know about BorderImageLength (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@length-relative-die-step-1-4
Patch Set: Rebased to latest master Created 7 years, 1 month 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
« no previous file with comments | « Source/core/rendering/style/RenderStyle.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/style/RenderStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698