blob: 9082507340c77d21f184994792b5c625daf06ab5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright 2015 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 "public/web/WebCSSParser.h"
#include "core/css/parser/CSSParser.h"
#include "public/platform/WebString.h"
namespace blink {
bool WebCSSParser::parseColor(WebColor* webColor, const WebString& colorString)
{
Color color = Color(*webColor);
bool success = CSSParser::parseColor(color, colorString, true);
*webColor = color.rgb();
return success;
}
} // namespace blink
|