summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_graphstatedata.cpp
blob: 3bea0407939aabcbc7e3b89eeeb4b1db75764b19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2016 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

#include "core/fxge/cfx_graphstatedata.h"

CFX_GraphStateData::CFX_GraphStateData() = default;

CFX_GraphStateData::CFX_GraphStateData(const CFX_GraphStateData& src) {
  *this = src;
}

CFX_GraphStateData::~CFX_GraphStateData() = default;

CFX_GraphStateData& CFX_GraphStateData::operator=(
    const CFX_GraphStateData& that) {
  if (this != &that) {
    m_LineCap = that.m_LineCap;
    m_LineJoin = that.m_LineJoin;
    m_DashPhase = that.m_DashPhase;
    m_MiterLimit = that.m_MiterLimit;
    m_LineWidth = that.m_LineWidth;
    m_DashArray = that.m_DashArray;
  }
  return *this;
}