| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 | 423 |
| 424 frame->view()->setScrollbarsSuppressed(true); | 424 frame->view()->setScrollbarsSuppressed(true); |
| 425 frame->view()->setCanHaveScrollbars(false); // SVG Images will always sy
nthesize a viewBox, if it's not available, and thus never see scrollbars. | 425 frame->view()->setCanHaveScrollbars(false); // SVG Images will always sy
nthesize a viewBox, if it's not available, and thus never see scrollbars. |
| 426 frame->view()->setTransparent(true); // SVG Images are transparent. | 426 frame->view()->setTransparent(true); // SVG Images are transparent. |
| 427 | 427 |
| 428 m_page = page.release(); | 428 m_page = page.release(); |
| 429 | 429 |
| 430 TRACE_EVENT0("blink", "SVGImage::dataChanged::load"); | 430 TRACE_EVENT0("blink", "SVGImage::dataChanged::load"); |
| 431 loader.load(FrameLoadRequest(0, blankURL(), SubstituteData(data(), Atomi
cString("image/svg+xml", AtomicString::ConstructFromLiteral), | 431 loader.load(FrameLoadRequest(0, blankURL(), SubstituteData(data(), Atomi
cString("image/svg+xml", AtomicString::ConstructFromLiteral), |
| 432 AtomicString("UTF-8", AtomicString::ConstructFromLiteral), KURL(), F
orceSynchronousLoad))); | 432 AtomicString("UTF-8", AtomicString::ConstructFromLiteral), KURL(), F
orceSynchronousLoad))); |
| 433 |
| 434 SVGSVGElement* rootElement = svgRootElement(m_page.get()); |
| 435 if (rootElement && rootElement->timeContainer()->hasAnimations()) |
| 436 UseCounter::count(frame->document(), UseCounter::SVGSMILAnimationInI
mage); |
| 437 |
| 433 // Set the intrinsic size before a container size is available. | 438 // Set the intrinsic size before a container size is available. |
| 434 m_intrinsicSize = containerSize(); | 439 m_intrinsicSize = containerSize(); |
| 435 } | 440 } |
| 436 | 441 |
| 437 return m_page; | 442 return m_page; |
| 438 } | 443 } |
| 439 | 444 |
| 440 String SVGImage::filenameExtension() const | 445 String SVGImage::filenameExtension() const |
| 441 { | 446 { |
| 442 return "svg"; | 447 return "svg"; |
| 443 } | 448 } |
| 444 | 449 |
| 445 } | 450 } |
| OLD | NEW |