Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp

Issue 2352193004: Document* -> Document& for loadSubimages and friends. (Closed)
Patch Set: Added constness Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/svg/graphics/SVGImage.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 m_page->animator().serviceScriptedAnimations(rootElement->getCurrentTime ()); 477 m_page->animator().serviceScriptedAnimations(rootElement->getCurrentTime ());
478 getImageObserver()->animationAdvanced(this); 478 getImageObserver()->animationAdvanced(this);
479 } 479 }
480 } 480 }
481 481
482 SVGImageChromeClient& SVGImage::chromeClientForTesting() 482 SVGImageChromeClient& SVGImage::chromeClientForTesting()
483 { 483 {
484 return *m_chromeClient; 484 return *m_chromeClient;
485 } 485 }
486 486
487 void SVGImage::updateUseCounters(Document& document) const 487 void SVGImage::updateUseCounters(const Document& document) const
488 { 488 {
489 if (SVGSVGElement* rootElement = svgRootElement(m_page.get())) { 489 if (SVGSVGElement* rootElement = svgRootElement(m_page.get())) {
490 if (rootElement->timeContainer()->hasAnimations()) 490 if (rootElement->timeContainer()->hasAnimations())
491 UseCounter::count(document, UseCounter::SVGSMILAnimationInImageRegar dlessOfCache); 491 UseCounter::count(document, UseCounter::SVGSMILAnimationInImageRegar dlessOfCache);
492 } 492 }
493 } 493 }
494 494
495 Image::SizeAvailability SVGImage::dataChanged(bool allDataReceived) 495 Image::SizeAvailability SVGImage::dataChanged(bool allDataReceived)
496 { 496 {
497 TRACE_EVENT0("blink", "SVGImage::dataChanged"); 497 TRACE_EVENT0("blink", "SVGImage::dataChanged");
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 574
575 return m_page ? SizeAvailable : SizeUnavailable; 575 return m_page ? SizeAvailable : SizeUnavailable;
576 } 576 }
577 577
578 String SVGImage::filenameExtension() const 578 String SVGImage::filenameExtension() const
579 { 579 {
580 return "svg"; 580 return "svg";
581 } 581 }
582 582
583 } // namespace blink 583 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/graphics/SVGImage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698