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) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 6 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
9 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. | 9 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. |
10 * | 10 * |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "core/editing/FrameSelection.h" | 32 #include "core/editing/FrameSelection.h" |
33 #include "core/fetch/ImageResource.h" | 33 #include "core/fetch/ImageResource.h" |
34 #include "core/fetch/ResourceLoadPriorityOptimizer.h" | 34 #include "core/fetch/ResourceLoadPriorityOptimizer.h" |
35 #include "core/fetch/ResourceLoader.h" | 35 #include "core/fetch/ResourceLoader.h" |
36 #include "core/html/HTMLAreaElement.h" | 36 #include "core/html/HTMLAreaElement.h" |
37 #include "core/html/HTMLImageElement.h" | 37 #include "core/html/HTMLImageElement.h" |
38 #include "core/html/HTMLInputElement.h" | 38 #include "core/html/HTMLInputElement.h" |
39 #include "core/html/HTMLMapElement.h" | 39 #include "core/html/HTMLMapElement.h" |
40 #include "core/inspector/InspectorInstrumentation.h" | 40 #include "core/inspector/InspectorInstrumentation.h" |
41 #include "core/frame/Frame.h" | 41 #include "core/frame/Frame.h" |
42 #include "core/platform/graphics/Font.h" | |
43 #include "core/platform/graphics/FontCache.h" | |
44 #include "core/platform/graphics/GraphicsContext.h" | |
45 #include "core/platform/graphics/GraphicsContextStateSaver.h" | |
46 #include "core/rendering/HitTestResult.h" | 42 #include "core/rendering/HitTestResult.h" |
47 #include "core/rendering/LayoutRectRecorder.h" | 43 #include "core/rendering/LayoutRectRecorder.h" |
48 #include "core/rendering/PaintInfo.h" | 44 #include "core/rendering/PaintInfo.h" |
49 #include "core/rendering/RenderView.h" | 45 #include "core/rendering/RenderView.h" |
50 #include "core/svg/graphics/SVGImage.h" | 46 #include "core/svg/graphics/SVGImage.h" |
| 47 #include "platform/fonts/Font.h" |
| 48 #include "platform/fonts/FontCache.h" |
| 49 #include "platform/graphics/GraphicsContext.h" |
| 50 #include "platform/graphics/GraphicsContextStateSaver.h" |
51 #include "wtf/UnusedParam.h" | 51 #include "wtf/UnusedParam.h" |
52 | 52 |
53 using namespace std; | 53 using namespace std; |
54 | 54 |
55 namespace WebCore { | 55 namespace WebCore { |
56 | 56 |
57 using namespace HTMLNames; | 57 using namespace HTMLNames; |
58 | 58 |
59 RenderImage::RenderImage(Element* element) | 59 RenderImage::RenderImage(Element* element) |
60 : RenderReplaced(element, IntSize()) | 60 : RenderReplaced(element, IntSize()) |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 return 0; | 642 return 0; |
643 | 643 |
644 ImageResource* cachedImage = m_imageResource->cachedImage(); | 644 ImageResource* cachedImage = m_imageResource->cachedImage(); |
645 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage(
)) | 645 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage(
)) |
646 return toSVGImage(cachedImage->image())->embeddedContentBox(); | 646 return toSVGImage(cachedImage->image())->embeddedContentBox(); |
647 | 647 |
648 return 0; | 648 return 0; |
649 } | 649 } |
650 | 650 |
651 } // namespace WebCore | 651 } // namespace WebCore |
OLD | NEW |