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

Unified Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 775153002: Implement unset value handling (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 6 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
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolver.cpp
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
index 1d39ce659c8397fab8cfaae8213e400f299e4443..2125d545b93fdfa362c9a7f4408efce3cfb87e42 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -1367,6 +1367,14 @@ void StyleResolver::applyProperties(StyleResolverState& state, const StyleProper
if (!isPropertyForPass<pass>(property))
continue;
+ if (current.value()->isUnsetValue()) {
+ if (CSSPropertyMetadata::isInheritedProperty(property))
+ StyleBuilder::applyProperty(property, state, cssValuePool().createInheritedValue().get());
+ else
+ StyleBuilder::applyProperty(property, state, cssValuePool().createExplicitInitialValue().get());
+ continue;
+ }
+
StyleBuilder::applyProperty(current.id(), state, current.value());
}
}
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698