Index: third_party/WebKit/Source/core/style/ComputedStyle.h |
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h |
index bda342f8f6f20f026bcd18f3065d44959dbc9161..7730ee9b3523a89b8dfb60ac6101efda816bef00 100644 |
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h |
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h |
@@ -417,21 +417,21 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase, |
// background-color |
static Color InitialBackgroundColor() { return Color::kTransparent; } |
void SetBackgroundColor(const StyleColor& v) { |
- SET_VAR(background_data_, color_, v); |
+ SET_VAR(background_data_, background_color_, v); |
} |
// background-image |
bool HasBackgroundImage() const { |
- return background_data_->Background().HasImage(); |
+ return background_data_->background_.HasImage(); |
} |
bool HasFixedBackgroundImage() const { |
- return background_data_->Background().HasFixedImage(); |
+ return background_data_->background_.HasFixedImage(); |
} |
bool HasEntirelyFixedBackground() const; |
// background-clip |
EFillBox BackgroundClip() const { |
- return static_cast<EFillBox>(background_data_->Background().Clip()); |
+ return static_cast<EFillBox>(background_data_->background_.Clip()); |
} |
// Border properties. |
@@ -3361,7 +3361,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase, |
return background_data_.Access()->background_; |
} |
const FillLayer& BackgroundLayers() const { |
- return background_data_->Background(); |
+ return background_data_->background_; |
} |
void AdjustBackgroundLayers() { |
if (BackgroundLayers().Next()) { |
@@ -3496,7 +3496,9 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase, |
StyleColor BorderBottomColor() const { |
return surround_data_->border_.Bottom().GetColor(); |
} |
- StyleColor BackgroundColor() const { return background_data_->GetColor(); } |
+ StyleColor BackgroundColor() const { |
+ return background_data_->background_color_; |
+ } |
StyleAutoColor CaretColor() const { |
return rare_inherited_data_->CaretColor(); |
} |