blob: e8b2abbe6d032bc68b210bb2aef7c4e951a2be50 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#include "core/style/PathStyleMotionPath.h"
#include "core/svg/SVGPathUtilities.h"
namespace blink {
PathStyleMotionPath::PathStyleMotionPath(const String& pathString)
: m_pathString(pathString.stripWhiteSpace())
{
buildPathFromString(pathString, m_path);
m_length = m_path.length();
}
bool PathStyleMotionPath::isClosed() const
{
return m_pathString.endsWith("Z", TextCaseInsensitive);
}
} // namespace blink