| Index: third_party/WebKit/Source/core/editing/EditingStyle.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/EditingStyle.cpp b/third_party/WebKit/Source/core/editing/EditingStyle.cpp
|
| index 70589eceaab327bf6aa9a0be860ad286cc23bf83..07df7b93d047215335ec9eb04a3e32a6fa7416e4 100644
|
| --- a/third_party/WebKit/Source/core/editing/EditingStyle.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/EditingStyle.cpp
|
| @@ -1413,10 +1413,10 @@ void EditingStyle::removeStyleFromRulesAndContext(Element* element,
|
| if (!m_mutableStyle)
|
| return;
|
|
|
| - // TODO(yosin): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| - // needs to be audited. see http://crbug.com/590369 for more details.
|
| - element->document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(
|
| - element);
|
| + // StyleResolver requires clean style.
|
| + DCHECK_GE(element->document().lifecycle().state(),
|
| + DocumentLifecycle::StyleClean);
|
| + DCHECK(element->document().isActive());
|
|
|
| // 1. Remove style from matched rules because style remain without repeating
|
| // it in inline style declaration
|
|
|