blob: 818aa214d5d472c94b7fb69a99e0617f185d66fd [file] [log] [blame]
// Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc.
#include "core/fxcrt/css/cfx_cssstylerule.h"
#include "third_party/base/check.h"
CFX_CSSStyleRule::CFX_CSSStyleRule() = default;
CFX_CSSStyleRule::~CFX_CSSStyleRule() = default;
size_t CFX_CSSStyleRule::CountSelectorLists() const {
return m_ppSelector.size();
CFX_CSSSelector* CFX_CSSStyleRule::GetSelectorList(size_t index) const {
return m_ppSelector[index].get();
CFX_CSSDeclaration* CFX_CSSStyleRule::GetDeclaration() {
return &m_Declaration;
void CFX_CSSStyleRule::SetSelector(
std::vector<std::unique_ptr<CFX_CSSSelector>>* list) {