Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfx_cssstylerule.cpp
Go to the documentation of this file.
1
// Copyright 2017 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
include
"core/fxcrt/css/cfx_cssstylerule.h"
8
9
#
include
"third_party/base/check.h"
10
11
CFX_CSSStyleRule
::
CFX_CSSStyleRule
() =
default
;
12
13
CFX_CSSStyleRule
::~
CFX_CSSStyleRule
() =
default
;
14
15
size_t
CFX_CSSStyleRule
::
CountSelectorLists
()
const
{
16
return
m_ppSelector.size();
17
}
18
19
CFX_CSSSelector
*
CFX_CSSStyleRule
::
GetSelectorList
(size_t index)
const
{
20
return
m_ppSelector[index].get();
21
}
22
23
CFX_CSSDeclaration
*
CFX_CSSStyleRule
::
GetDeclaration
() {
24
return
&m_Declaration;
25
}
26
27
void
CFX_CSSStyleRule
::
SetSelector
(
28
std::vector<std::unique_ptr<CFX_CSSSelector>>* list) {
29
DCHECK(m_ppSelector.empty());
30
m_ppSelector.swap(*list);
31
}
CFX_CSSDeclaration
Definition
cfx_cssdeclaration.h:19
CFX_CSSSelector
Definition
cfx_cssselector.h:14
CFX_CSSStyleRule
Definition
cfx_cssstylerule.h:16
CFX_CSSStyleRule::GetDeclaration
CFX_CSSDeclaration * GetDeclaration()
Definition
cfx_cssstylerule.cpp:23
CFX_CSSStyleRule::GetSelectorList
CFX_CSSSelector * GetSelectorList(size_t index) const
Definition
cfx_cssstylerule.cpp:19
CFX_CSSStyleRule::CountSelectorLists
size_t CountSelectorLists() const
Definition
cfx_cssstylerule.cpp:15
CFX_CSSStyleRule::CFX_CSSStyleRule
CFX_CSSStyleRule()
CFX_CSSStyleRule::~CFX_CSSStyleRule
~CFX_CSSStyleRule()
CFX_CSSStyleRule::SetSelector
void SetSelector(std::vector< std::unique_ptr< CFX_CSSSelector > > *list)
Definition
cfx_cssstylerule.cpp:27
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcrt
css
cfx_cssstylerule.cpp
Generated on Sat Sep 21 2024 00:55:15 for Qt by
1.12.0