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

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

Issue 2520873002: [css-ui] Add support for caret-color property (Closed)
Patch Set: Add new baselines for Mac and Windows Created 4 years, 1 month 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 dc7f23d61b54a35324c0e935bac9e9d41ad7b8be..841e3f48a30555d9c0f3db5d0d18ac610e1a1053 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -2500,6 +2500,11 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
SET_VAR(m_rareInheritedData, userSelect, s);
}
+ // caret-color
+ void setCaretColor(const StyleAutoColor& c) {
Timothy Loh 2016/11/28 03:11:21 Is there somewhere in this file with lots of other
Manuel Rego 2016/11/28 10:47:55 I didn't find it, in this file they're quite mixed
+ SET_VAR_WITH_SETTER(m_rareInheritedData, caretColor, setCaretColor, c);
+ }
+
// Font properties.
const Font& font() const;
void setFont(const Font&);
@@ -3882,6 +3887,10 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
SET_VAR_WITH_SETTER(m_rareInheritedData, visitedLinkTextStrokeColor,
setVisitedLinkTextStrokeColor, v);
}
+ void setVisitedLinkCaretColor(const StyleAutoColor& v) {
+ SET_VAR_WITH_SETTER(m_rareInheritedData, visitedLinkCaretColor,
+ setVisitedLinkCaretColor, v);
+ }
void inheritUnicodeBidiFrom(const ComputedStyle& parent) {
m_nonInheritedData.m_unicodeBidi = parent.m_nonInheritedData.m_unicodeBidi;
@@ -3929,6 +3938,9 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
return m_surround->border.bottom().color();
}
StyleColor backgroundColor() const { return m_background->color(); }
+ StyleAutoColor caretColor() const {
+ return m_rareInheritedData->caretColor();
+ }
Color color() const;
StyleColor columnRuleColor() const {
return m_rareNonInheritedData->m_multiCol->m_rule.color();
@@ -3945,6 +3957,9 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
StyleColor textStrokeColor() const {
return m_rareInheritedData->textStrokeColor();
}
+ StyleAutoColor visitedLinkCaretColor() const {
+ return m_rareInheritedData->visitedLinkCaretColor();
+ }
Color visitedLinkColor() const;
StyleColor visitedLinkBackgroundColor() const {
return m_rareNonInheritedData->m_visitedLinkBackgroundColor;

Powered by Google App Engine
This is Rietveld 408576698