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

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

Issue 2370283002: Revert of Rendering text to a canvas in a frame-less document. (Closed)
Patch Set: Manual patch revert. Created 4 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/StyleResolverState.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp
index 761d4673df44b862e593b5abb26c0ec635f52423..8728235c44987740da1457abe2ff27f63a87465d 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp
@@ -46,6 +46,8 @@ StyleResolverState::StyleResolverState(Document& document, const ElementResolveC
// TODO(jchaffraix): We should make m_parentStyle const (https://crbug.com/468152)
m_parentStyle = const_cast<ComputedStyle*>(m_elementContext.parentStyle());
}
+
+ DCHECK(document.isActive());
}
StyleResolverState::StyleResolverState(Document& document, Element* element, const ComputedStyle* parentStyle)
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp ('k') | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698