OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. |
7 * All rights reserved. | 7 * All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
13 * | 13 * |
14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
18 * | 18 * |
19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
23 * | 23 * |
24 */ | 24 */ |
25 | 25 |
26 #ifndef LayoutImage_h | 26 #ifndef LayoutImage_h |
27 #define LayoutImage_h | 27 #define LayoutImage_h |
28 | 28 |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "core/fetch/ResourceClient.h" | |
31 #include "core/layout/LayoutImageResource.h" | 30 #include "core/layout/LayoutImageResource.h" |
32 #include "core/layout/LayoutReplaced.h" | 31 #include "core/layout/LayoutReplaced.h" |
| 32 #include "platform/loader/fetch/ResourceClient.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class HTMLAreaElement; | 36 class HTMLAreaElement; |
37 class HTMLMapElement; | 37 class HTMLMapElement; |
38 | 38 |
39 // LayoutImage is used to display any image type. | 39 // LayoutImage is used to display any image type. |
40 // | 40 // |
41 // There is 2 types of images: | 41 // There is 2 types of images: |
42 // * normal images, e.g. <image>, <picture>. | 42 // * normal images, e.g. <image>, <picture>. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // This field stores whether this image is generated with 'content'. | 141 // This field stores whether this image is generated with 'content'. |
142 bool m_isGeneratedContent; | 142 bool m_isGeneratedContent; |
143 float m_imageDevicePixelRatio; | 143 float m_imageDevicePixelRatio; |
144 }; | 144 }; |
145 | 145 |
146 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); | 146 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); |
147 | 147 |
148 } // namespace blink | 148 } // namespace blink |
149 | 149 |
150 #endif // LayoutImage_h | 150 #endif // LayoutImage_h |
OLD | NEW |