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 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "config.h" | 22 #include "config.h" |
23 #include "core/rendering/style/ContentData.h" | 23 #include "core/rendering/style/ContentData.h" |
24 | 24 |
25 #include "core/rendering/RenderCounter.h" | 25 #include "core/rendering/RenderCounter.h" |
26 #include "core/rendering/RenderImage.h" | 26 #include "core/rendering/RenderImage.h" |
27 #include "core/rendering/RenderImageResource.h" | 27 #include "core/rendering/RenderImageResource.h" |
28 #include "core/rendering/RenderImageResourceStyleImage.h" | 28 #include "core/rendering/RenderImageResourceStyleImage.h" |
29 #include "core/rendering/RenderQuote.h" | 29 #include "core/rendering/RenderQuote.h" |
30 #include "core/rendering/RenderTextFragment.h" | 30 #include "core/rendering/RenderTextFragment.h" |
31 #include "core/rendering/style/RenderStyle.h" | 31 #include "core/rendering/style/RenderStyle.h" |
32 #include "core/rendering/style/StyleInheritedData.h" | |
33 | 32 |
34 namespace WebCore { | 33 namespace WebCore { |
35 | 34 |
36 PassOwnPtr<ContentData> ContentData::create(PassRefPtr<StyleImage> image) | 35 PassOwnPtr<ContentData> ContentData::create(PassRefPtr<StyleImage> image) |
37 { | 36 { |
38 return adoptPtr(new ImageContentData(image)); | 37 return adoptPtr(new ImageContentData(image)); |
39 } | 38 } |
40 | 39 |
41 PassOwnPtr<ContentData> ContentData::create(const String& text) | 40 PassOwnPtr<ContentData> ContentData::create(const String& text) |
42 { | 41 { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 } | 92 } |
94 | 93 |
95 RenderObject* QuoteContentData::createRenderer(Document* doc, RenderStyle* pseud
oStyle) const | 94 RenderObject* QuoteContentData::createRenderer(Document* doc, RenderStyle* pseud
oStyle) const |
96 { | 95 { |
97 RenderObject* renderer = new (doc->renderArena()) RenderQuote(doc, m_quote); | 96 RenderObject* renderer = new (doc->renderArena()) RenderQuote(doc, m_quote); |
98 renderer->setPseudoStyle(pseudoStyle); | 97 renderer->setPseudoStyle(pseudoStyle); |
99 return renderer; | 98 return renderer; |
100 } | 99 } |
101 | 100 |
102 } // namespace WebCore | 101 } // namespace WebCore |
OLD | NEW |