1 // Copyright 2017 PDFium Authors. All rights reserved. 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 "xfa/fde/css/cfde_cssvaluelist.h" 8 9 #include <utility> 10 11 #include "xfa/fde/css/fde_css.h" 12 CFDE_CSSValueList(std::vector<CFX_RetainPtr<CFDE_CSSValue>> & list)13CFDE_CSSValueList::CFDE_CSSValueList( 14 std::vector<CFX_RetainPtr<CFDE_CSSValue>>& list) 15 : CFDE_CSSValue(FDE_CSSPrimitiveType::List), m_ppList(std::move(list)) {} 16 ~CFDE_CSSValueList()17CFDE_CSSValueList::~CFDE_CSSValueList() {} 18 CountValues() const19int32_t CFDE_CSSValueList::CountValues() const { 20 return m_ppList.size(); 21 } 22 GetValue(int32_t index) const23CFX_RetainPtr<CFDE_CSSValue> CFDE_CSSValueList::GetValue(int32_t index) const { 24 return m_ppList[index]; 25 } 26