summaryrefslogtreecommitdiff
path: root/core/fxcrt/css/cfx_cssstylerule.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/css/cfx_cssstylerule.h')
-rw-r--r--core/fxcrt/css/cfx_cssstylerule.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/core/fxcrt/css/cfx_cssstylerule.h b/core/fxcrt/css/cfx_cssstylerule.h
new file mode 100644
index 0000000000..bba1fc53c8
--- /dev/null
+++ b/core/fxcrt/css/cfx_cssstylerule.h
@@ -0,0 +1,32 @@
+// 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. http://www.foxitsoftware.com
+
+#ifndef CORE_FXCRT_CSS_CFX_CSSSTYLERULE_H_
+#define CORE_FXCRT_CSS_CFX_CSSSTYLERULE_H_
+
+#include <memory>
+#include <vector>
+
+#include "core/fxcrt/css/cfx_cssdeclaration.h"
+#include "core/fxcrt/css/cfx_cssselector.h"
+
+class CFX_CSSStyleRule {
+ public:
+ CFX_CSSStyleRule();
+ ~CFX_CSSStyleRule();
+
+ size_t CountSelectorLists() const;
+ CFX_CSSSelector* GetSelectorList(int32_t index) const;
+ CFX_CSSDeclaration* GetDeclaration();
+
+ void SetSelector(std::vector<std::unique_ptr<CFX_CSSSelector>>* list);
+
+ private:
+ CFX_CSSDeclaration m_Declaration;
+ std::vector<std::unique_ptr<CFX_CSSSelector>> m_ppSelector;
+};
+
+#endif // CORE_FXCRT_CSS_CFX_CSSSTYLERULE_H_