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

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

Issue 2887433005: Remove references to surround_data_ in ComputedStyle. (Closed)
Patch Set: Created 3 years, 7 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 | no next file » | 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 1c7035340a3e14fca53571c65699951383eda71e..d4bdec529ae71fbbfe53abddf8ce3e07197b2c62 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -483,7 +483,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
kBorderWidthDenominator;
}
void SetBorderTopWidth(float v) {
- surround_data_.Access()->border_top_width_ = WidthToFixedPoint(v);
+ SetBorderTopWidthInternal(WidthToFixedPoint(v));
}
// border-bottom-width
@@ -495,7 +495,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
kBorderWidthDenominator;
}
void SetBorderBottomWidth(float v) {
- surround_data_.Access()->border_bottom_width_ = WidthToFixedPoint(v);
+ SetBorderBottomWidthInternal(WidthToFixedPoint(v));
}
// border-left-width
@@ -507,7 +507,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
kBorderWidthDenominator;
}
void SetBorderLeftWidth(float v) {
- surround_data_.Access()->border_left_width_ = WidthToFixedPoint(v);
+ SetBorderLeftWidthInternal(WidthToFixedPoint(v));
}
// border-right-width
@@ -519,7 +519,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
kBorderWidthDenominator;
}
void SetBorderRightWidth(float v) {
- surround_data_.Access()->border_right_width_ = WidthToFixedPoint(v);
+ SetBorderRightWidthInternal(WidthToFixedPoint(v));
}
// Border style properties.
@@ -2790,16 +2790,16 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
!PaddingTop().IsZero() || !PaddingBottom().IsZero();
}
void ResetPadding() {
- SET_VAR(surround_data_, padding_top_, kFixed);
- SET_VAR(surround_data_, padding_bottom_, kFixed);
- SET_VAR(surround_data_, padding_left_, kFixed);
- SET_VAR(surround_data_, padding_right_, kFixed);
+ SetPaddingTop(kFixed);
+ SetPaddingBottom(kFixed);
+ SetPaddingLeft(kFixed);
+ SetPaddingRight(kFixed);
}
void SetPadding(const LengthBox& b) {
- SET_VAR(surround_data_, padding_top_, b.top_);
- SET_VAR(surround_data_, padding_bottom_, b.bottom_);
- SET_VAR(surround_data_, padding_left_, b.left_);
- SET_VAR(surround_data_, padding_right_, b.right_);
+ SetPaddingTop(b.top_);
+ SetPaddingBottom(b.bottom_);
+ SetPaddingLeft(b.left_);
+ SetPaddingRight(b.right_);
}
bool PaddingEqual(const ComputedStyle& other) const {
return PaddingTop() == other.PaddingTop() &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698