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

Unified Diff: third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp

Issue 2941533002: Break StyleImage dependency on LayoutObject (Closed)
Patch Set: Address reviewer comments Created 3 years, 6 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 | « third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp b/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp
index 66fa48ddb0e420116566fa6a02cbe0b930a24061..c1e316d4b57c2833eddd83c0984a19e7317059db 100644
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp
@@ -13,9 +13,10 @@
namespace blink {
-CSSPaintImageGenerator* CSSPaintImageGeneratorImpl::Create(const String& name,
- Document& document,
- Observer* observer) {
+CSSPaintImageGenerator* CSSPaintImageGeneratorImpl::Create(
+ const String& name,
+ const Document& document,
+ Observer* observer) {
LocalDOMWindow* dom_window = document.domWindow();
PaintWorklet* paint_worklet =
WindowPaintWorklet::From(*dom_window).paintWorklet();
@@ -50,10 +51,10 @@ void CSSPaintImageGeneratorImpl::SetDefinition(CSSPaintDefinition* definition) {
}
PassRefPtr<Image> CSSPaintImageGeneratorImpl::Paint(
- const LayoutObject& layout_object,
+ const ImageResourceObserver& observer,
const IntSize& size,
const CSSStyleValueVector* data) {
- return definition_ ? definition_->Paint(layout_object, size, data) : nullptr;
+ return definition_ ? definition_->Paint(observer, size, data) : nullptr;
}
const Vector<CSSPropertyID>&
« no previous file with comments | « third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698