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/StyleRareInheritedData.cpp

Issue 1696373003: Add CSS parser support for the snap-height property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareInheritedData.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp b/third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp
index 1c11543fab8e653fbbe13a54edeab222d1b6b7a1..0681fce17eaff6bb2de7fc472980980b9120e9a9 100644
--- a/third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp
+++ b/third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp
@@ -51,6 +51,7 @@ struct SameSizeAsStyleRareInheritedData : public RefCounted<SameSizeAsStyleRareI
unsigned m_bitfields[2];
short pagedMediaShorts[2];
short hyphenationShorts[3];
+ uint8_t snapHeight;
Color touchColors;
TabSize tabSize;
@@ -96,9 +97,11 @@ StyleRareInheritedData::StyleRareInheritedData()
, m_subtreeWillChangeContents(false)
, m_selfOrAncestorHasDirAutoAttribute(false)
, m_respectImageOrientation(false)
+ , m_snapHeightPosition(0)
, hyphenationLimitBefore(-1)
, hyphenationLimitAfter(-1)
, hyphenationLimitLines(-1)
+ , m_snapHeightUnit(0)
, tapHighlightColor(ComputedStyle::initialTapHighlightColor())
, m_tabSize(ComputedStyle::initialTabSize())
{
@@ -151,10 +154,12 @@ StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o)
, m_subtreeWillChangeContents(o.m_subtreeWillChangeContents)
, m_selfOrAncestorHasDirAutoAttribute(o.m_selfOrAncestorHasDirAutoAttribute)
, m_respectImageOrientation(o.m_respectImageOrientation)
+ , m_snapHeightPosition(o.m_snapHeightPosition)
, hyphenationString(o.hyphenationString)
, hyphenationLimitBefore(o.hyphenationLimitBefore)
, hyphenationLimitAfter(o.hyphenationLimitAfter)
, hyphenationLimitLines(o.hyphenationLimitLines)
+ , m_snapHeightUnit(o.m_snapHeightUnit)
, textEmphasisCustomMark(o.textEmphasisCustomMark)
, tapHighlightColor(o.tapHighlightColor)
, appliedTextDecorations(o.appliedTextDecorations)
@@ -214,7 +219,9 @@ bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const
&& m_subtreeWillChangeContents == o.m_subtreeWillChangeContents
&& m_selfOrAncestorHasDirAutoAttribute == o.m_selfOrAncestorHasDirAutoAttribute
&& m_respectImageOrientation == o.m_respectImageOrientation
+ && m_snapHeightPosition == o.m_snapHeightPosition
&& hyphenationString == o.hyphenationString
+ && m_snapHeightUnit == o.m_snapHeightUnit
&& textEmphasisCustomMark == o.textEmphasisCustomMark
&& quotesDataEquivalent(o)
&& m_tabSize == o.m_tabSize
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareInheritedData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698