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..cb33d5562f5122cb442ebea8f01c8e3f85784922 100644 |
--- a/third_party/WebKit/Source/core/css/MediaValuesCached.h |
+++ b/third_party/WebKit/Source/core/css/MediaValuesCached.h |
@@ -13,7 +13,7 @@ namespace blink { |
class CORE_EXPORT MediaValuesCached final : public MediaValues { |
public: |
- struct MediaValuesCachedData final { |
+ struct CORE_EXPORT MediaValuesCachedData final { |
DISALLOW_NEW(); |
// Members variables must be thread safe, since they're copied to the parser |
// thread |
@@ -34,25 +34,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 +58,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 +91,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; |