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

Unified Diff: third_party/WebKit/Source/core/html/ImageData.h

Issue 2788373003: Convert colorSettings attribute in ImageData.idl to a getter method (Closed)
Patch Set: Addressing comments Created 3 years, 9 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/core/html/ImageData.h
diff --git a/third_party/WebKit/Source/core/html/ImageData.h b/third_party/WebKit/Source/core/html/ImageData.h
index 547003996aa480f67e6a5830f4481999e6d424a3..87eab79a0285a1a54c36f1fc373159ed246e1b47 100644
--- a/third_party/WebKit/Source/core/html/ImageData.h
+++ b/third_party/WebKit/Source/core/html/ImageData.h
@@ -99,6 +99,10 @@ class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>,
ImageDataColorSettings&,
ExceptionState&);
+ void getColorSettings(ImageDataColorSettings& result) {
+ result = m_colorSettings;
+ }
+
static ImageData* createForTest(const IntSize&);
static ImageData* createForTest(const IntSize&,
DOMArrayBufferView*,
@@ -125,12 +129,6 @@ class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>,
ImageDataArray& dataUnion() { return m_dataUnion; }
const ImageDataArray& dataUnion() const { return m_dataUnion; }
void dataUnion(ImageDataArray& result) { result = m_dataUnion; };
- const ImageDataColorSettings& colorSettings() const {
- return m_colorSettings;
- }
- void colorSettings(ImageDataColorSettings& result) {
- result = m_colorSettings;
- };
sk_sp<SkColorSpace> skColorSpace();
bool imageDataInCanvasColorSettings(const CanvasColorSpace&,

Powered by Google App Engine
This is Rietveld 408576698