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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 : RenderReplaced(element, IntSize()) | 56 : RenderReplaced(element, IntSize()) |
57 , m_needsToSetSizeForAltText(false) | 57 , m_needsToSetSizeForAltText(false) |
58 , m_didIncrementVisuallyNonEmptyPixelCount(false) | 58 , m_didIncrementVisuallyNonEmptyPixelCount(false) |
59 , m_isGeneratedContent(false) | 59 , m_isGeneratedContent(false) |
60 { | 60 { |
61 updateAltText(); | 61 updateAltText(); |
62 } | 62 } |
63 | 63 |
64 RenderImage* RenderImage::createAnonymous(Document* document) | 64 RenderImage* RenderImage::createAnonymous(Document* document) |
65 { | 65 { |
66 RenderImage* image = new (document->renderArena()) RenderImage(0); | 66 RenderImage* image = new RenderImage(0); |
67 image->setDocumentForAnonymous(document); | 67 image->setDocumentForAnonymous(document); |
68 return image; | 68 return image; |
69 } | 69 } |
70 | 70 |
71 RenderImage::~RenderImage() | 71 RenderImage::~RenderImage() |
72 { | 72 { |
73 ASSERT(m_imageResource); | 73 ASSERT(m_imageResource); |
74 m_imageResource->shutdown(); | 74 m_imageResource->shutdown(); |
75 } | 75 } |
76 | 76 |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 return 0; | 575 return 0; |
576 | 576 |
577 CachedImage* cachedImage = m_imageResource->cachedImage(); | 577 CachedImage* cachedImage = m_imageResource->cachedImage(); |
578 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage(
)) | 578 if (cachedImage && cachedImage->image() && cachedImage->image()->isSVGImage(
)) |
579 return static_cast<SVGImage*>(cachedImage->image())->embeddedContentBox(
); | 579 return static_cast<SVGImage*>(cachedImage->image())->embeddedContentBox(
); |
580 | 580 |
581 return 0; | 581 return 0; |
582 } | 582 } |
583 | 583 |
584 } // namespace WebCore | 584 } // namespace WebCore |
OLD | NEW |