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

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

Issue 2563753003: Moved pointer-events to be generated in ComputedStyleBase (Closed)
Patch Set: Corrected initial keyword to be auto. 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.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index a83f2f2f56f4c9d035a0d680131a294630494cf4..2f38e29d475148fb01285e35546ef45c88c7a92b 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -235,8 +235,6 @@ StyleRecalcChange ComputedStyle::stylePropagationDiff(
void ComputedStyle::propagateIndependentInheritedProperties(
const ComputedStyle& parentStyle) {
ComputedStyleBase::propagateIndependentInheritedProperties(parentStyle);
- if (m_nonInheritedData.m_isPointerEventsInherited)
- setPointerEvents(parentStyle.pointerEvents());
}
StyleSelfAlignmentData resolvedSelfAlignment(
@@ -418,11 +416,6 @@ void ComputedStyle::copyNonInheritedFromCached(const ComputedStyle& other) {
// m_nonInheritedData.m_affectedByDrag
// m_nonInheritedData.m_isLink
- // Any properties that are inherited on a style are also inherited on elements
- // that share this style.
- m_nonInheritedData.m_isPointerEventsInherited =
- other.m_nonInheritedData.m_isPointerEventsInherited;
-
if (m_svgStyle != other.m_svgStyle)
m_svgStyle.access()->copyNonInheritedFromCached(other.m_svgStyle.get());
DCHECK_EQ(zoom(), initialZoom());
@@ -501,8 +494,7 @@ bool ComputedStyle::inheritedEqual(const ComputedStyle& other) const {
bool ComputedStyle::independentInheritedEqual(
const ComputedStyle& other) const {
- return ComputedStyleBase::independentInheritedEqual(other) &&
- m_inheritedData.compareEqualIndependent(other.m_inheritedData);
+ return ComputedStyleBase::independentInheritedEqual(other);
}
bool ComputedStyle::nonIndependentInheritedEqual(

Powered by Google App Engine
This is Rietveld 408576698