| 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 | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 4 * reserved. | 4 * 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 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 * | 20 * |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 #include "core/style/ContentData.h" | 23 #include "core/style/ContentData.h" |
| 24 | 24 |
| 25 #include <memory> |
| 25 #include "core/layout/LayoutCounter.h" | 26 #include "core/layout/LayoutCounter.h" |
| 26 #include "core/layout/LayoutImage.h" | 27 #include "core/layout/LayoutImage.h" |
| 27 #include "core/layout/LayoutImageResource.h" | 28 #include "core/layout/LayoutImageResource.h" |
| 28 #include "core/layout/LayoutImageResourceStyleImage.h" | 29 #include "core/layout/LayoutImageResourceStyleImage.h" |
| 29 #include "core/layout/LayoutQuote.h" | 30 #include "core/layout/LayoutQuote.h" |
| 30 #include "core/layout/LayoutTextFragment.h" | 31 #include "core/layout/LayoutTextFragment.h" |
| 31 #include "core/style/ComputedStyle.h" | 32 #include "core/style/ComputedStyle.h" |
| 32 #include <memory> | |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 ContentData* ContentData::create(StyleImage* image) { | 36 ContentData* ContentData::create(StyleImage* image) { |
| 37 return new ImageContentData(image); | 37 return new ImageContentData(image); |
| 38 } | 38 } |
| 39 | 39 |
| 40 ContentData* ContentData::create(const String& text) { | 40 ContentData* ContentData::create(const String& text) { |
| 41 return new TextContentData(text); | 41 return new TextContentData(text); |
| 42 } | 42 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 LayoutObject* QuoteContentData::createLayoutObject( | 104 LayoutObject* QuoteContentData::createLayoutObject( |
| 105 Document& doc, | 105 Document& doc, |
| 106 ComputedStyle& pseudoStyle) const { | 106 ComputedStyle& pseudoStyle) const { |
| 107 LayoutObject* layoutObject = new LayoutQuote(&doc, m_quote); | 107 LayoutObject* layoutObject = new LayoutQuote(&doc, m_quote); |
| 108 layoutObject->setPseudoStyle(&pseudoStyle); | 108 layoutObject->setPseudoStyle(&pseudoStyle); |
| 109 return layoutObject; | 109 return layoutObject; |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace blink | 112 } // namespace blink |
| OLD | NEW |