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

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

Issue 1105103003: Update renderer in core/css. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | « no previous file | 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 ee9eb1fb66adc6f5ea8188f683d725fbcbd3daef..d2d91490f071f50c4b0c2e60c2e2a837f95de055 100644
--- a/Source/core/css/CSSCanvasValue.cpp
+++ b/Source/core/css/CSSCanvasValue.cpp
@@ -70,9 +70,9 @@ void CSSCanvasValue::canvasDestroyed(HTMLCanvasElement* element)
}
#endif
-IntSize CSSCanvasValue::fixedSize(const LayoutObject* renderer)
+IntSize CSSCanvasValue::fixedSize(const LayoutObject* layoutObject)
{
- if (HTMLCanvasElement* elt = element(&renderer->document()))
+ if (HTMLCanvasElement* elt = element(&layoutObject->document()))
return IntSize(elt->width(), elt->height());
return IntSize();
}
@@ -86,13 +86,13 @@ HTMLCanvasElement* CSSCanvasValue::element(Document* document)
return m_element;
}
-PassRefPtr<Image> CSSCanvasValue::image(LayoutObject* renderer, const IntSize& /*size*/)
+PassRefPtr<Image> CSSCanvasValue::image(LayoutObject* layoutObject, const IntSize& /*size*/)
{
- ASSERT(clients().contains(renderer));
- HTMLCanvasElement* elt = element(&renderer->document());
+ ASSERT(clients().contains(layoutObject));
+ HTMLCanvasElement* elt = element(&layoutObject->document());
if (!elt)
return nullptr;
- UseCounter::count(renderer->document(), UseCounter::WebkitCanvas);
+ UseCounter::count(layoutObject->document(), UseCounter::WebkitCanvas);
return elt->copiedImage(FrontBuffer);
}
« no previous file with comments | « no previous file | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698