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

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

Issue 2661323002: Implement CSSPaintValue and add a layout test. (Closed)
Patch Set: fix indent Created 3 years, 10 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
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 6b488a17c85bf29c77c269dc39b9e4d85af0e686..98f41edc633e3726f587200e253b257e781597fc 100644
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp
@@ -4,6 +4,7 @@
#include "modules/csspaint/CSSPaintImageGeneratorImpl.h"
+#include "core/css/CSSVariableData.h"
#include "core/dom/Document.h"
#include "core/frame/LocalDOMWindow.h"
#include "modules/csspaint/CSSPaintDefinition.h"
@@ -52,8 +53,10 @@ void CSSPaintImageGeneratorImpl::setDefinition(CSSPaintDefinition* definition) {
PassRefPtr<Image> CSSPaintImageGeneratorImpl::paint(
const LayoutObject& layoutObject,
const IntSize& size,
- float zoom) {
- return m_definition ? m_definition->paint(layoutObject, size, zoom) : nullptr;
+ float zoom,
+ const Vector<RefPtr<CSSVariableData>>& data) {
+ return m_definition ? m_definition->paint(layoutObject, size, zoom, data)
+ : nullptr;
}
const Vector<CSSPropertyID>&

Powered by Google App Engine
This is Rietveld 408576698