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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 PassRefPtr<RenderStyle> RenderStyle::create() | 80 PassRefPtr<RenderStyle> RenderStyle::create() |
81 { | 81 { |
82 return adoptRef(new RenderStyle()); | 82 return adoptRef(new RenderStyle()); |
83 } | 83 } |
84 | 84 |
85 PassRefPtr<RenderStyle> RenderStyle::createDefaultStyle() | 85 PassRefPtr<RenderStyle> RenderStyle::createDefaultStyle() |
86 { | 86 { |
87 return adoptRef(new RenderStyle(true)); | 87 return adoptRef(new RenderStyle(true)); |
88 } | 88 } |
89 | 89 |
90 PassRefPtr<RenderStyle> RenderStyle::createAnonymousStyle(const RenderStyle* par
entStyle) | 90 PassRefPtr<RenderStyle> RenderStyle::createAnonymousStyleWithDisplay(const Rende
rStyle* parentStyle, EDisplay display) |
91 { | 91 { |
92 RefPtr<RenderStyle> newStyle = RenderStyle::create(); | 92 RefPtr<RenderStyle> newStyle = RenderStyle::create(); |
93 newStyle->inheritFrom(parentStyle); | 93 newStyle->inheritFrom(parentStyle); |
94 newStyle->inheritUnicodeBidiFrom(parentStyle); | 94 newStyle->inheritUnicodeBidiFrom(parentStyle); |
| 95 newStyle->setDisplay(display); |
95 return newStyle; | 96 return newStyle; |
96 } | 97 } |
97 | 98 |
98 PassRefPtr<RenderStyle> RenderStyle::clone(const RenderStyle* other) | 99 PassRefPtr<RenderStyle> RenderStyle::clone(const RenderStyle* other) |
99 { | 100 { |
100 return adoptRef(new RenderStyle(*other)); | 101 return adoptRef(new RenderStyle(*other)); |
101 } | 102 } |
102 | 103 |
103 ALWAYS_INLINE RenderStyle::RenderStyle() | 104 ALWAYS_INLINE RenderStyle::RenderStyle() |
104 : m_box(defaultStyle()->m_box) | 105 : m_box(defaultStyle()->m_box) |
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1609 left = NinePieceImage::computeOutset(image.outset().left(), borderLeftWidth(
)); | 1610 left = NinePieceImage::computeOutset(image.outset().left(), borderLeftWidth(
)); |
1610 } | 1611 } |
1611 | 1612 |
1612 void RenderStyle::getImageVerticalOutsets(const NinePieceImage& image, LayoutUni
t& top, LayoutUnit& bottom) const | 1613 void RenderStyle::getImageVerticalOutsets(const NinePieceImage& image, LayoutUni
t& top, LayoutUnit& bottom) const |
1613 { | 1614 { |
1614 top = NinePieceImage::computeOutset(image.outset().top(), borderTopWidth()); | 1615 top = NinePieceImage::computeOutset(image.outset().top(), borderTopWidth()); |
1615 bottom = NinePieceImage::computeOutset(image.outset().bottom(), borderBottom
Width()); | 1616 bottom = NinePieceImage::computeOutset(image.outset().bottom(), borderBottom
Width()); |
1616 } | 1617 } |
1617 | 1618 |
1618 } // namespace WebCore | 1619 } // namespace WebCore |
OLD | NEW |