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

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

Issue 1328283005: Add support for multiple text decorations with same line positioning (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 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/AppliedTextDecoration.h
diff --git a/third_party/WebKit/Source/core/style/AppliedTextDecoration.h b/third_party/WebKit/Source/core/style/AppliedTextDecoration.h
index 5fe4d0179530be011102d1aaa4c0b7b6134777b9..8100b120250fdc429b06c20920bae850eb734a18 100644
--- a/third_party/WebKit/Source/core/style/AppliedTextDecoration.h
+++ b/third_party/WebKit/Source/core/style/AppliedTextDecoration.h
@@ -5,8 +5,8 @@
#ifndef AppliedTextDecoration_h
#define AppliedTextDecoration_h
-#include "core/css/StyleColor.h"
#include "core/style/ComputedStyleConstants.h"
+#include "platform/graphics/Color.h"
#include "wtf/Allocator.h"
namespace blink {
@@ -14,20 +14,20 @@ namespace blink {
class AppliedTextDecoration {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
public:
- AppliedTextDecoration(TextDecoration, TextDecorationStyle, StyleColor);
- explicit AppliedTextDecoration(TextDecoration);
+ AppliedTextDecoration(TextDecoration, TextDecorationStyle, Color);
- TextDecoration line() const { return static_cast<TextDecoration>(m_line); }
+ TextDecoration lines() const { return static_cast<TextDecoration>(m_lines); }
TextDecorationStyle style() const { return static_cast<TextDecorationStyle>(m_style); }
+ Color color() const { return m_color; }
+ void setColor(Color color) { m_color = color; }
- bool isSimpleUnderline() const { return m_line == TextDecorationUnderline && m_style == TextDecorationStyleSolid && m_color.isCurrentColor(); }
bool operator==(const AppliedTextDecoration&) const;
bool operator!=(const AppliedTextDecoration& o) const { return !(*this == o); }
private:
- unsigned m_line : TextDecorationBits;
+ unsigned m_lines : TextDecorationBits;
unsigned m_style : 3; // TextDecorationStyle
- StyleColor m_color;
+ Color m_color;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698