| Index: third_party/WebKit/Source/web/tests/WebDocumentTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/WebDocumentTest.cpp b/third_party/WebKit/Source/web/tests/WebDocumentTest.cpp
|
| index b5b63ea26895cd2ec6d6494d87346ac2e7334936..ad1f545fe3f71494687463136db4a89094b45e8c 100644
|
| --- a/third_party/WebKit/Source/web/tests/WebDocumentTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/WebDocumentTest.cpp
|
| @@ -67,11 +67,13 @@ TEST_F(WebDocumentTest, InsertStyleSheet)
|
| WebDocument webDoc = topWebDocument();
|
| Document* coreDoc = topDocument();
|
|
|
| + unsigned startCount = coreDoc->styleEngine().styleForElementCount();
|
| +
|
| webDoc.insertStyleSheet("body { color: green }");
|
|
|
| // Check insertStyleSheet did not cause a synchronous style recalc.
|
| - unsigned accessCount = coreDoc->styleEngine().resolverAccessCount();
|
| - ASSERT_EQ(0U, accessCount);
|
| + unsigned elementCount = coreDoc->styleEngine().styleForElementCount() - startCount;
|
| + ASSERT_EQ(0U, elementCount);
|
|
|
| HTMLElement* bodyElement = coreDoc->body();
|
| ASSERT(bodyElement);
|
|
|