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

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

Issue 2753013004: Apply SVG styles paint-order, stroke-linejoin, and stroke-linecap on DOM text
Patch Set: Apply SVG styles paint-order, stroke-linejoin, and stroke-linecap on DOM text Created 3 years, 9 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/StyleRareInheritedData.h
diff --git a/third_party/WebKit/Source/core/style/StyleRareInheritedData.h b/third_party/WebKit/Source/core/style/StyleRareInheritedData.h
index 0bde7eb7a7389858d72def9cabeca9aff1146526..e40d24541f5fde5337f8c0ffe21d1e292154922a 100644
--- a/third_party/WebKit/Source/core/style/StyleRareInheritedData.h
+++ b/third_party/WebKit/Source/core/style/StyleRareInheritedData.h
@@ -50,6 +50,27 @@ class StyleInheritedVariables;
typedef RefVector<AppliedTextDecoration> AppliedTextDecorationList;
typedef HeapVector<CursorData> CursorList;
+class UnzoomedLength {
+ DISALLOW_NEW();
+
+ public:
+ explicit UnzoomedLength(const Length& length) : m_length(length) {}
+
+ bool isZero() const { return m_length.isZero(); }
+
+ bool operator==(const UnzoomedLength& other) const {
+ return m_length == other.m_length;
+ }
+ bool operator!=(const UnzoomedLength& other) const {
+ return !operator==(other);
+ }
+
+ const Length& length() const { return m_length; }
+
+ private:
+ Length m_length;
+};
+
// This struct is for rarely used inherited CSS3, CSS2, and WebKit-specific
// properties. By grouping them together, we save space, and only allocate this
// object when someone actually uses one of these properties.
@@ -220,6 +241,11 @@ class CORE_EXPORT StyleRareInheritedData
unsigned m_respectImageOrientation : 1;
+ unsigned paintOrder : 3; // EPaintOrder
+ unsigned capStyle : 2; // LineCap
+ unsigned joinStyle : 2; // LineJoin
+ UnzoomedLength strokeWidth;
+
AtomicString hyphenationString;
short hyphenationLimitBefore;
short hyphenationLimitAfter;

Powered by Google App Engine
This is Rietveld 408576698