summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/style/fill_layer.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-18 16:35:47 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-18 15:45:54 +0000
commit32f5a1c56531e4210bc4cf8d8c7825d66e081888 (patch)
treeeeeec6822f4d738d8454525233fd0e2e3a659e6d /chromium/third_party/blink/renderer/core/style/fill_layer.cc
parent99677208ff3b216fdfec551fbe548da5520cd6fb (diff)
downloadqtwebengine-chromium-32f5a1c56531e4210bc4cf8d8c7825d66e081888.tar.gz
BASELINE: Update Chromium to 87.0.4280.67
Change-Id: Ib157360be8c2ffb2c73125751a89f60e049c1d54 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/style/fill_layer.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/style/fill_layer.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/style/fill_layer.cc b/chromium/third_party/blink/renderer/core/style/fill_layer.cc
index e200037e91b..2f27e0359ce 100644
--- a/chromium/third_party/blink/renderer/core/style/fill_layer.cc
+++ b/chromium/third_party/blink/renderer/core/style/fill_layer.cc
@@ -79,6 +79,7 @@ FillLayer::FillLayer(EFillLayerType type, bool use_initial_values)
layers_clip_max_(0),
any_layer_uses_content_box_(false),
any_layer_has_image_(false),
+ any_layer_has_url_image_(false),
any_layer_has_local_attachment_image_(false),
any_layer_has_fixed_attachment_image_(false),
any_layer_has_default_attachment_image_(false),
@@ -116,6 +117,7 @@ FillLayer::FillLayer(const FillLayer& o)
layers_clip_max_(0),
any_layer_uses_content_box_(false),
any_layer_has_image_(false),
+ any_layer_has_url_image_(false),
any_layer_has_local_attachment_image_(false),
any_layer_has_fixed_attachment_image_(false),
any_layer_has_default_attachment_image_(false),
@@ -346,6 +348,8 @@ void FillLayer::ComputeCachedProperties() const {
any_layer_uses_content_box_ =
Clip() == EFillBox::kContent || Origin() == EFillBox::kContent;
any_layer_has_image_ = !!GetImage();
+ any_layer_has_url_image_ =
+ any_layer_has_image_ && GetImage()->CssValue()->MayContainUrl();
any_layer_has_local_attachment_image_ =
any_layer_has_image_ && Attachment() == EFillAttachment::kLocal;
any_layer_has_fixed_attachment_image_ =
@@ -360,6 +364,7 @@ void FillLayer::ComputeCachedProperties() const {
EnclosingFillBox(LayersClipMax(), next_->LayersClipMax()));
any_layer_uses_content_box_ |= next_->any_layer_uses_content_box_;
any_layer_has_image_ |= next_->any_layer_has_image_;
+ any_layer_has_url_image_ |= next_->any_layer_has_url_image_;
any_layer_has_local_attachment_image_ |=
next_->any_layer_has_local_attachment_image_;
any_layer_has_fixed_attachment_image_ |=