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

Unified Diff: Source/core/css/CSSCanvasValue.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/css/CSSAnimations.cpp ('k') | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSCanvasValue.cpp
diff --git a/Source/core/css/CSSCanvasValue.cpp b/Source/core/css/CSSCanvasValue.cpp
index 73fbfed443085b58834616c635d816ab500fdb6a..ca89a8771b747cc906e15a705f6dd479e806650e 100644
--- a/Source/core/css/CSSCanvasValue.cpp
+++ b/Source/core/css/CSSCanvasValue.cpp
@@ -69,7 +69,7 @@ void CSSCanvasValue::canvasDestroyed(HTMLCanvasElement* element)
IntSize CSSCanvasValue::fixedSize(const RenderObject* renderer)
{
- if (HTMLCanvasElement* elt = element(renderer->document()))
+ if (HTMLCanvasElement* elt = element(&renderer->document()))
return IntSize(elt->width(), elt->height());
return IntSize();
}
@@ -88,7 +88,7 @@ HTMLCanvasElement* CSSCanvasValue::element(Document* document)
PassRefPtr<Image> CSSCanvasValue::image(RenderObject* renderer, const IntSize& /*size*/)
{
ASSERT(clients().contains(renderer));
- HTMLCanvasElement* elt = element(renderer->document());
+ HTMLCanvasElement* elt = element(&renderer->document());
if (!elt || !elt->buffer())
return 0;
return elt->copiedImage();
« no previous file with comments | « Source/core/animation/css/CSSAnimations.cpp ('k') | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698