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

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

Issue 2904403002: Generate methods for TextEmphasis properties in ComputedStyleBase. (Closed)
Patch Set: Rebase 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
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 aec4bd46d6b9d3bdc12a756d13a7e73a06934c55..ef421dcb59d983699ffc31f64b67d8476216ff99 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1715,35 +1715,15 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
}
// Text emphasis properties.
- static TextEmphasisFill InitialTextEmphasisFill() {
- return TextEmphasisFill::kFilled;
- }
static TextEmphasisMark InitialTextEmphasisMark() {
return TextEmphasisMark::kNone;
}
- static const AtomicString& InitialTextEmphasisCustomMark() {
- return g_null_atom;
- }
- TextEmphasisFill GetTextEmphasisFill() const {
- return static_cast<TextEmphasisFill>(
- rare_inherited_data_->text_emphasis_fill_);
- }
TextEmphasisMark GetTextEmphasisMark() const;
- const AtomicString& TextEmphasisCustomMark() const {
- return rare_inherited_data_->text_emphasis_custom_mark_;
- }
- const AtomicString& TextEmphasisMarkString() const;
- void SetTextEmphasisFill(TextEmphasisFill fill) {
- SET_VAR(rare_inherited_data_, text_emphasis_fill_,
- static_cast<unsigned>(fill));
- }
void SetTextEmphasisMark(TextEmphasisMark mark) {
SET_VAR(rare_inherited_data_, text_emphasis_mark_,
static_cast<unsigned>(mark));
}
- void SetTextEmphasisCustomMark(const AtomicString& mark) {
- SET_VAR(rare_inherited_data_, text_emphasis_custom_mark_, mark);
- }
+ const AtomicString& TextEmphasisMarkString() const;
// -webkit-text-emphasis-color (aka -epub-text-emphasis-color)
void SetTextEmphasisColor(const StyleColor& color) {
@@ -1752,19 +1732,6 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
color.IsCurrentColor());
}
- // -webkit-text-emphasis-position
- static TextEmphasisPosition InitialTextEmphasisPosition() {
- return TextEmphasisPosition::kOver;
- }
- TextEmphasisPosition GetTextEmphasisPosition() const {
- return static_cast<TextEmphasisPosition>(
- rare_inherited_data_->text_emphasis_position_);
- }
- void SetTextEmphasisPosition(TextEmphasisPosition position) {
- SET_VAR(rare_inherited_data_, text_emphasis_position_,
- static_cast<unsigned>(position));
- }
-
// -webkit-line-clamp
static LineClampValue InitialLineClamp() { return LineClampValue(); }
const LineClampValue& LineClamp() const {

Powered by Google App Engine
This is Rietveld 408576698