| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 319 |
| 320 if (imageObserver()) | 320 if (imageObserver()) |
| 321 imageObserver()->didDraw(this); | 321 imageObserver()->didDraw(this); |
| 322 | 322 |
| 323 // Start any (SMIL) animations if needed. This will restart or continue | 323 // Start any (SMIL) animations if needed. This will restart or continue |
| 324 // animations if preceded by calls to resetAnimation or stopAnimation | 324 // animations if preceded by calls to resetAnimation or stopAnimation |
| 325 // respectively. | 325 // respectively. |
| 326 startAnimation(); | 326 startAnimation(); |
| 327 } | 327 } |
| 328 | 328 |
| 329 RenderBox* SVGImage::embeddedContentBox() const | 329 LayoutBox* SVGImage::embeddedContentBox() const |
| 330 { | 330 { |
| 331 SVGSVGElement* rootElement = svgRootElement(m_page.get()); | 331 SVGSVGElement* rootElement = svgRootElement(m_page.get()); |
| 332 if (!rootElement) | 332 if (!rootElement) |
| 333 return 0; | 333 return 0; |
| 334 return toRenderBox(rootElement->renderer()); | 334 return toLayoutBox(rootElement->renderer()); |
| 335 } | 335 } |
| 336 | 336 |
| 337 FrameView* SVGImage::frameView() const | 337 FrameView* SVGImage::frameView() const |
| 338 { | 338 { |
| 339 if (!m_page) | 339 if (!m_page) |
| 340 return 0; | 340 return 0; |
| 341 | 341 |
| 342 return toLocalFrame(m_page->mainFrame())->view(); | 342 return toLocalFrame(m_page->mainFrame())->view(); |
| 343 } | 343 } |
| 344 | 344 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 | 460 |
| 461 return m_page; | 461 return m_page; |
| 462 } | 462 } |
| 463 | 463 |
| 464 String SVGImage::filenameExtension() const | 464 String SVGImage::filenameExtension() const |
| 465 { | 465 { |
| 466 return "svg"; | 466 return "svg"; |
| 467 } | 467 } |
| 468 | 468 |
| 469 } | 469 } |
| OLD | NEW |