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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 result = tempResult; | 519 result = tempResult; |
520 return inside; | 520 return inside; |
521 } | 521 } |
522 | 522 |
523 void RenderImage::updateAltText() | 523 void RenderImage::updateAltText() |
524 { | 524 { |
525 if (!node()) | 525 if (!node()) |
526 return; | 526 return; |
527 | 527 |
528 if (node()->hasTagName(inputTag)) | 528 if (node()->hasTagName(inputTag)) |
529 m_altText = static_cast<HTMLInputElement*>(node())->altText(); | 529 m_altText = toHTMLInputElement(node())->altText(); |
530 else if (node()->hasTagName(imgTag)) | 530 else if (node()->hasTagName(imgTag)) |
531 m_altText = static_cast<HTMLImageElement*>(node())->altText(); | 531 m_altText = static_cast<HTMLImageElement*>(node())->altText(); |
532 } | 532 } |
533 | 533 |
534 void RenderImage::layout() | 534 void RenderImage::layout() |
535 { | 535 { |
536 StackStats::LayoutCheckPoint layoutCheckPoint; | 536 StackStats::LayoutCheckPoint layoutCheckPoint; |
537 RenderReplaced::layout(); | 537 RenderReplaced::layout(); |
538 | 538 |
539 // Propagate container size to image resource. | 539 // Propagate container size to image resource. |
(...skipping 35 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 |