Index: third_party/WebKit/Source/core/css/MediaValuesCached.h |
diff --git a/third_party/WebKit/Source/core/css/MediaValuesCached.h b/third_party/WebKit/Source/core/css/MediaValuesCached.h |
index fa042b4edfb67595e0ae6d286df59fd7fa7f1f19..6455212fff4d087f42eaeed7f4d8f063fc146599 100644 |
--- a/third_party/WebKit/Source/core/css/MediaValuesCached.h |
+++ b/third_party/WebKit/Source/core/css/MediaValuesCached.h |
@@ -8,6 +8,7 @@ |
#include "core/CoreExport.h" |
#include "core/css/MediaValues.h" |
#include "platform/CrossThreadCopier.h" |
+#include "platform/graphics/ColorSpace.h" |
namespace blink { |
@@ -34,25 +35,9 @@ class CORE_EXPORT MediaValuesCached final : public MediaValues { |
String mediaType; |
WebDisplayMode displayMode; |
DisplayShape displayShape; |
+ ColorSpaceGamut colorGamut; |
- MediaValuesCachedData() |
- : viewportWidth(0), |
- viewportHeight(0), |
- deviceWidth(0), |
- deviceHeight(0), |
- devicePixelRatio(1.0), |
- colorBitsPerComponent(24), |
- monochromeBitsPerComponent(0), |
- primaryPointerType(PointerTypeNone), |
- availablePointerTypes(PointerTypeNone), |
- primaryHoverType(HoverTypeNone), |
- availableHoverTypes(HoverTypeNone), |
- defaultFontSize(16), |
- threeDEnabled(false), |
- strictMode(true), |
- displayMode(WebDisplayModeBrowser), |
- displayShape(DisplayShapeRect) {} |
- |
+ MediaValuesCachedData(); |
explicit MediaValuesCachedData(Document&); |
MediaValuesCachedData deepCopy() const { |
@@ -74,6 +59,7 @@ class CORE_EXPORT MediaValuesCached final : public MediaValues { |
data.mediaType = mediaType.isolatedCopy(); |
data.displayMode = displayMode; |
data.displayShape = displayShape; |
+ data.colorGamut = colorGamut; |
return data; |
} |
}; |
@@ -106,6 +92,7 @@ class CORE_EXPORT MediaValuesCached final : public MediaValues { |
const String mediaType() const override; |
WebDisplayMode displayMode() const override; |
DisplayShape displayShape() const override; |
+ ColorSpaceGamut colorGamut() const override; |
void overrideViewportDimensions(double width, double height) override; |