| 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 396     SVGSVGElement* rootElement = svgRootElement(m_page.get()); | 396     SVGSVGElement* rootElement = svgRootElement(m_page.get()); | 
| 397     if (!rootElement) | 397     if (!rootElement) | 
| 398         return false; | 398         return false; | 
| 399     return rootElement->timeContainer()->hasAnimations() || toLocalFrame(m_page-
     >mainFrame())->document()->timeline().hasPendingUpdates(); | 399     return rootElement->timeContainer()->hasAnimations() || toLocalFrame(m_page-
     >mainFrame())->document()->timeline().hasPendingUpdates(); | 
| 400 } | 400 } | 
| 401 | 401 | 
| 402 void SVGImage::updateUseCounters(Document& document) const | 402 void SVGImage::updateUseCounters(Document& document) const | 
| 403 { | 403 { | 
| 404     if (SVGSVGElement* rootElement = svgRootElement(m_page.get())) { | 404     if (SVGSVGElement* rootElement = svgRootElement(m_page.get())) { | 
| 405         if (rootElement->timeContainer()->hasAnimations()) | 405         if (rootElement->timeContainer()->hasAnimations()) | 
| 406             UseCounter::count(document, UseCounter::SVGSMILAnimationInImageRegar
     dlessOfCache); | 406             UseCounter::countDeprecation(document, UseCounter::SVGSMILAnimationI
     nImageRegardlessOfCache); | 
| 407     } | 407     } | 
| 408 } | 408 } | 
| 409 | 409 | 
| 410 bool SVGImage::dataChanged(bool allDataReceived) | 410 bool SVGImage::dataChanged(bool allDataReceived) | 
| 411 { | 411 { | 
| 412     TRACE_EVENT0("blink", "SVGImage::dataChanged"); | 412     TRACE_EVENT0("blink", "SVGImage::dataChanged"); | 
| 413 | 413 | 
| 414     // Don't do anything if is an empty image. | 414     // Don't do anything if is an empty image. | 
| 415     if (!data()->size()) | 415     if (!data()->size()) | 
| 416         return true; | 416         return true; | 
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 483 | 483 | 
| 484     return m_page; | 484     return m_page; | 
| 485 } | 485 } | 
| 486 | 486 | 
| 487 String SVGImage::filenameExtension() const | 487 String SVGImage::filenameExtension() const | 
| 488 { | 488 { | 
| 489     return "svg"; | 489     return "svg"; | 
| 490 } | 490 } | 
| 491 | 491 | 
| 492 } | 492 } | 
| OLD | NEW | 
|---|