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

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

Issue 2520873002: [css-ui] Add support for caret-color property (Closed)
Patch Set: Patch for landing applying suggested changes Created 4 years 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 2ee781a0144d73908be32b0099d7b765d2edeae9..2a96d42799af2a5459ba23e4fa4bbf73ad4c0b5a 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -2490,6 +2490,11 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
SET_VAR(m_rareInheritedData, userSelect, s);
}
+ // caret-color
+ void setCaretColor(const StyleAutoColor& c) {
+ SET_VAR_WITH_SETTER(m_rareInheritedData, caretColor, setCaretColor, c);
+ }
+
// Font properties.
const Font& font() const;
void setFont(const Font&);
@@ -3872,6 +3877,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;
@@ -3920,6 +3929,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();
@@ -3936,6 +3948,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;
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698