blob: 2d9670e3b0a77e468eb6c4e23c4e86ad45c03782 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_PARSER_CSS_LAZY_PROPERTY_PARSER_IMPL_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_PARSER_CSS_LAZY_PROPERTY_PARSER_IMPL_H_
#include "third_party/blink/renderer/core/css/css_property_value_set.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_token_range.h"
#include "third_party/blink/renderer/core/css/parser/css_tokenizer.h"
namespace blink {
class CSSLazyParsingState;
// This class is responsible for lazily parsing a single CSS declaration list.
class CSSLazyPropertyParserImpl : public CSSLazyPropertyParser {
public:
CSSLazyPropertyParserImpl(wtf_size_t offset, CSSLazyParsingState*);
// CSSLazyPropertyParser:
CSSPropertyValueSet* ParseProperties() override;
void Trace(blink::Visitor* visitor) override {
visitor->Trace(lazy_state_);
CSSLazyPropertyParser::Trace(visitor);
}
private:
wtf_size_t offset_;
Member<CSSLazyParsingState> lazy_state_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_CSS_PARSER_CSS_LAZY_PROPERTY_PARSER_IMPL_H_