| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> |
| 3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. |
| 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 378 |
| 379 if (getImageObserver()) | 379 if (getImageObserver()) |
| 380 getImageObserver()->didDraw(this); | 380 getImageObserver()->didDraw(this); |
| 381 | 381 |
| 382 // Start any (SMIL) animations if needed. This will restart or continue | 382 // Start any (SMIL) animations if needed. This will restart or continue |
| 383 // animations if preceded by calls to resetAnimation or stopAnimation | 383 // animations if preceded by calls to resetAnimation or stopAnimation |
| 384 // respectively. | 384 // respectively. |
| 385 startAnimation(); | 385 startAnimation(); |
| 386 } | 386 } |
| 387 | 387 |
| 388 LayoutBox* SVGImage::embeddedContentBox() const | 388 LayoutReplaced* SVGImage::embeddedReplacedContent() const |
| 389 { | 389 { |
| 390 SVGSVGElement* rootElement = svgRootElement(m_page.get()); | 390 SVGSVGElement* rootElement = svgRootElement(m_page.get()); |
| 391 if (!rootElement) | 391 if (!rootElement) |
| 392 return nullptr; | 392 return nullptr; |
| 393 return toLayoutBox(rootElement->layoutObject()); | 393 return toLayoutSVGRoot(rootElement->layoutObject()); |
| 394 } | 394 } |
| 395 | 395 |
| 396 FrameView* SVGImage::frameView() const | 396 FrameView* SVGImage::frameView() const |
| 397 { | 397 { |
| 398 if (!m_page) | 398 if (!m_page) |
| 399 return nullptr; | 399 return nullptr; |
| 400 | 400 |
| 401 return toLocalFrame(m_page->mainFrame())->view(); | 401 return toLocalFrame(m_page->mainFrame())->view(); |
| 402 } | 402 } |
| 403 | 403 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 | 539 |
| 540 return m_page; | 540 return m_page; |
| 541 } | 541 } |
| 542 | 542 |
| 543 String SVGImage::filenameExtension() const | 543 String SVGImage::filenameExtension() const |
| 544 { | 544 { |
| 545 return "svg"; | 545 return "svg"; |
| 546 } | 546 } |
| 547 | 547 |
| 548 } // namespace blink | 548 } // namespace blink |
| OLD | NEW |