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

Side by Side Diff: Source/core/rendering/svg/RenderSVGRoot.cpp

Issue 15820002: Page::chrome() should return a reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderMenuList.cpp ('k') | Source/core/svg/SVGAElement.cpp » ('j') | 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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 bool RenderSVGRoot::isEmbeddedThroughSVGImage() const 112 bool RenderSVGRoot::isEmbeddedThroughSVGImage() const
113 { 113 {
114 if (!node()) 114 if (!node())
115 return false; 115 return false;
116 116
117 Frame* frame = node()->document()->frame(); 117 Frame* frame = node()->document()->frame();
118 if (!frame) 118 if (!frame)
119 return false; 119 return false;
120 120
121 // Test whether we're embedded through an img. 121 // Test whether we're embedded through an img.
122 if (!frame->page() || !frame->page()->chrome()) 122 if (!frame->page())
123 return false; 123 return false;
124 124
125 ChromeClient* chromeClient = frame->page()->chrome()->client(); 125 ChromeClient* chromeClient = frame->page()->chrome().client();
126 if (!chromeClient || !chromeClient->isSVGImageChromeClient()) 126 if (!chromeClient || !chromeClient->isSVGImageChromeClient())
127 return false; 127 return false;
128 128
129 return true; 129 return true;
130 } 130 }
131 131
132 bool RenderSVGRoot::isEmbeddedThroughFrameContainingSVGDocument() const 132 bool RenderSVGRoot::isEmbeddedThroughFrameContainingSVGDocument() const
133 { 133 {
134 if (!node()) 134 if (!node())
135 return false; 135 return false;
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 { 488 {
489 RenderObject* svgRoot = resource->parent(); 489 RenderObject* svgRoot = resource->parent();
490 while (svgRoot && !svgRoot->isSVGRoot()) 490 while (svgRoot && !svgRoot->isSVGRoot())
491 svgRoot = svgRoot->parent(); 491 svgRoot = svgRoot->parent();
492 if (!svgRoot) 492 if (!svgRoot)
493 return; 493 return;
494 toRenderSVGRoot(svgRoot)->m_resourcesNeedingToInvalidateClients.add(resource ); 494 toRenderSVGRoot(svgRoot)->m_resourcesNeedingToInvalidateClients.add(resource );
495 } 495 }
496 496
497 } 497 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderMenuList.cpp ('k') | Source/core/svg/SVGAElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698