Index: third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.cpp |
diff --git a/third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.cpp b/third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.cpp |
index 7431d1176b3fe0d5ec14f158b6ee2b4f09a2244d..c50b400893bf635f379d592009faa5e3f7dbf5c9 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/CSSLazyPropertyParserImpl.cpp |
@@ -9,19 +9,14 @@ |
namespace blink { |
-CSSLazyPropertyParserImpl::CSSLazyPropertyParserImpl(CSSParserTokenRange block, |
+CSSLazyPropertyParserImpl::CSSLazyPropertyParserImpl(size_t startOffset, |
CSSLazyParsingState* state) |
- : CSSLazyPropertyParser(), m_lazyState(state) { |
- // Reserve capacity to minimize heap bloat. |
- size_t length = block.end() - block.begin(); |
- m_tokens.reserveCapacity(length); |
- m_tokens.append(block.begin(), length); |
-} |
+ : CSSLazyPropertyParser(), m_startOffset(startOffset), m_lazyState(state) {} |
StylePropertySet* CSSLazyPropertyParserImpl::parseProperties() { |
m_lazyState->countRuleParsed(); |
return CSSParserImpl::parseDeclarationListForLazyStyle( |
- m_tokens, m_lazyState->context()); |
+ m_lazyState->sheetText(), m_startOffset, m_lazyState->context()); |
} |
} // namespace blink |