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

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

Issue 1367743002: Fix assert when resolving font on canvas with dirty shadow distribution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/css/resolver/StyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
index a458301f00cc6e5abc97587a93b11bd14aa07d44..71bf96ea8ac9e1b5c93c32921f727cd7f4d19600 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -1449,7 +1449,7 @@ void StyleResolver::computeFont(ComputedStyle* style, const StylePropertySet& pr
};
// TODO(timloh): This is weird, the style is being used as its own parent
rune 2015/09/23 22:55:42 This seems to be because style object already has
- StyleResolverState state(document(), document().documentElement(), style);
+ StyleResolverState state(document(), nullptr, style);
state.setStyle(style);
for (CSSPropertyID property : properties) {

Powered by Google App Engine
This is Rietveld 408576698