| 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 SVGSVGElement* rootElement = svgRootElement(m_page.get()); | 381 SVGSVGElement* rootElement = svgRootElement(m_page.get()); |
| 382 if (!rootElement) | 382 if (!rootElement) |
| 383 return false; | 383 return false; |
| 384 return rootElement->timeContainer()->hasAnimations() || toLocalFrame(m_page-
>mainFrame())->document()->timeline().hasPendingUpdates(); | 384 return rootElement->timeContainer()->hasAnimations() || toLocalFrame(m_page-
>mainFrame())->document()->timeline().hasPendingUpdates(); |
| 385 } | 385 } |
| 386 | 386 |
| 387 void SVGImage::updateUseCounters(Document& document) const | 387 void SVGImage::updateUseCounters(Document& document) const |
| 388 { | 388 { |
| 389 if (SVGSVGElement* rootElement = svgRootElement(m_page.get())) { | 389 if (SVGSVGElement* rootElement = svgRootElement(m_page.get())) { |
| 390 if (rootElement->timeContainer()->hasAnimations()) | 390 if (rootElement->timeContainer()->hasAnimations()) |
| 391 UseCounter::count(document, UseCounter::SVGSMILAnimationInImageRegar
dlessOfCache); | 391 UseCounter::countDeprecation(document, UseCounter::SVGSMILAnimationI
nImageRegardlessOfCache); |
| 392 } | 392 } |
| 393 } | 393 } |
| 394 | 394 |
| 395 bool SVGImage::dataChanged(bool allDataReceived) | 395 bool SVGImage::dataChanged(bool allDataReceived) |
| 396 { | 396 { |
| 397 TRACE_EVENT0("blink", "SVGImage::dataChanged"); | 397 TRACE_EVENT0("blink", "SVGImage::dataChanged"); |
| 398 | 398 |
| 399 // Don't do anything if is an empty image. | 399 // Don't do anything if is an empty image. |
| 400 if (!data()->size()) | 400 if (!data()->size()) |
| 401 return true; | 401 return true; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 456 |
| 457 return m_page; | 457 return m_page; |
| 458 } | 458 } |
| 459 | 459 |
| 460 String SVGImage::filenameExtension() const | 460 String SVGImage::filenameExtension() const |
| 461 { | 461 { |
| 462 return "svg"; | 462 return "svg"; |
| 463 } | 463 } |
| 464 | 464 |
| 465 } | 465 } |
| OLD | NEW |