Home | History | Annotate | Download | only in css
      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 
     13 CFX_CSSValueList::CFX_CSSValueList(std::vector<RetainPtr<CFX_CSSValue>>& list)
     14     : CFX_CSSValue(CFX_CSSPrimitiveType::List), m_ppList(std::move(list)) {}
     15 
     16 CFX_CSSValueList::~CFX_CSSValueList() {}
     17 
     18 int32_t CFX_CSSValueList::CountValues() const {
     19   return m_ppList.size();
     20 }
     21 
     22 RetainPtr<CFX_CSSValue> CFX_CSSValueList::GetValue(int32_t index) const {
     23   return m_ppList[index];
     24 }
     25