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

Unified Diff: third_party/WebKit/Source/core/dom/ElementData.cpp

Issue 1898403002: [WIP] Implement :dir() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase... other changes too probably Created 4 years, 7 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/dom/ElementData.cpp
diff --git a/third_party/WebKit/Source/core/dom/ElementData.cpp b/third_party/WebKit/Source/core/dom/ElementData.cpp
index 5a5a4579807a21683319398a8373a1e61508f3bb..acf99aea0036f1921dd46d9bf5d4ac54a2891429 100644
--- a/third_party/WebKit/Source/core/dom/ElementData.cpp
+++ b/third_party/WebKit/Source/core/dom/ElementData.cpp
@@ -52,6 +52,7 @@ static size_t sizeForShareableElementDataWithAttributeCount(unsigned count)
ElementData::ElementData()
: m_isUnique(true)
, m_arraySize(0)
+ , m_directionality(static_cast<int>(CachedTextDirection::NotAutoOrNotCached))
, m_presentationAttributeStyleIsDirty(false)
, m_styleAttributeIsDirty(false)
, m_animatedSVGAttributesAreDirty(false)
@@ -61,6 +62,7 @@ ElementData::ElementData()
ElementData::ElementData(unsigned arraySize)
: m_isUnique(false)
, m_arraySize(arraySize)
+ , m_directionality(static_cast<int>(CachedTextDirection::NotAutoOrNotCached))
, m_presentationAttributeStyleIsDirty(false)
, m_styleAttributeIsDirty(false)
, m_animatedSVGAttributesAreDirty(false)
@@ -70,6 +72,7 @@ ElementData::ElementData(unsigned arraySize)
ElementData::ElementData(const ElementData& other, bool isUnique)
: m_isUnique(isUnique)
, m_arraySize(isUnique ? 0 : other.attributes().size())
+ , m_directionality(other.m_directionality)
, m_presentationAttributeStyleIsDirty(other.m_presentationAttributeStyleIsDirty)
, m_styleAttributeIsDirty(other.m_styleAttributeIsDirty)
, m_animatedSVGAttributesAreDirty(other.m_animatedSVGAttributesAreDirty)

Powered by Google App Engine
This is Rietveld 408576698