| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |