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 "core/fxcrt/css/cfx_cssvaluelist.h" 8 9 #include <utility> 10 11 #include "core/fxcrt/css/cfx_css.h" 12 CFX_CSSValueList(std::vector<RetainPtr<CFX_CSSValue>> & list)13CFX_CSSValueList::CFX_CSSValueList(std::vector<RetainPtr<CFX_CSSValue>>& list) 14 : CFX_CSSValue(CFX_CSSPrimitiveType::List), m_ppList(std::move(list)) {} 15 ~CFX_CSSValueList()16CFX_CSSValueList::~CFX_CSSValueList() {} 17 CountValues() const18int32_t CFX_CSSValueList::CountValues() const { 19 return m_ppList.size(); 20 } 21 GetValue(int32_t index) const22RetainPtr<CFX_CSSValue> CFX_CSSValueList::GetValue(int32_t index) const { 23 return m_ppList[index]; 24 } 25