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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2854183003: Clean up StyleBackgroundData. (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleBackgroundData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleBackgroundData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698