Commit ac048386 authored by Zhuoyu Qian's avatar Zhuoyu Qian Committed by Commit Bot

Rename SVGPathParser namepsace to svg_path_parser

https://google.github.io/styleguide/cppguide.html#Namespace_Names
> Namespace names are all lower-case.

This CL has no behavior changes.

Bug: 889726
Change-Id: Ifda60c8845e352ca8eec4a282525be09b8ffd64a
Reviewed-on: https://chromium-review.googlesource.com/c/1304116Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Zhuoyu Qian <zhuoyu.qian@samsung.com>
Cr-Commit-Position: refs/heads/master@{#603432}
parent eb519f87
......@@ -203,7 +203,7 @@ std::unique_ptr<SVGPathByteStream> PathInterpolationFunctions::AppliedValue(
*ToInterpolableList(interpolable_value).Get(kPathArgsIndex)),
ToSVGPathNonInterpolableValue(non_interpolable_value)->PathSegTypes());
SVGPathByteStreamBuilder builder(*path_byte_stream);
SVGPathParser::ParsePath(source, builder);
svg_path_parser::ParsePath(source, builder);
return path_byte_stream;
}
......
......@@ -33,7 +33,7 @@ namespace blink {
class SVGPathConsumer;
namespace SVGPathParser {
namespace svg_path_parser {
template <typename SourceType, typename ConsumerType>
inline bool ParsePath(SourceType& source, ConsumerType& consumer) {
......@@ -47,7 +47,7 @@ inline bool ParsePath(SourceType& source, ConsumerType& consumer) {
return true;
}
} // namespace SVGPathParser
} // namespace svg_path_parser
class SVGPathNormalizer {
STACK_ALLOCATED();
......
......@@ -16,7 +16,7 @@ bool ParsePath(const char* input, String& output) {
String input_string(input);
SVGPathStringSource source(input_string);
SVGPathStringBuilder builder;
bool had_error = SVGPathParser::ParsePath(source, builder);
bool had_error = svg_path_parser::ParsePath(source, builder);
output = builder.Result();
// Coerce a null result to empty.
if (output.IsNull())
......@@ -160,7 +160,7 @@ SVGParsingError ParsePathWithError(const char* input) {
String input_string(input);
SVGPathStringSource source(input_string);
SVGPathStringBuilder builder;
SVGPathParser::ParsePath(source, builder);
svg_path_parser::ParsePath(source, builder);
return source.ParseError();
}
......
......@@ -34,7 +34,7 @@ bool BuildPathFromString(const String& d, Path& result) {
SVGPathBuilder builder(result);
SVGPathStringSource source(d);
return SVGPathParser::ParsePath(source, builder);
return svg_path_parser::ParsePath(source, builder);
}
bool BuildPathFromByteStream(const SVGPathByteStream& stream, Path& result) {
......@@ -43,7 +43,7 @@ bool BuildPathFromByteStream(const SVGPathByteStream& stream, Path& result) {
SVGPathBuilder builder(result);
SVGPathByteStreamSource source(stream);
return SVGPathParser::ParsePath(source, builder);
return svg_path_parser::ParsePath(source, builder);
}
String BuildStringFromByteStream(const SVGPathByteStream& stream,
......@@ -55,9 +55,9 @@ String BuildStringFromByteStream(const SVGPathByteStream& stream,
SVGPathByteStreamSource source(stream);
if (format == kTransformToAbsolute) {
SVGPathAbsolutizer absolutizer(&builder);
SVGPathParser::ParsePath(source, absolutizer);
svg_path_parser::ParsePath(source, absolutizer);
} else {
SVGPathParser::ParsePath(source, builder);
svg_path_parser::ParsePath(source, builder);
}
return builder.Result();
}
......@@ -74,7 +74,7 @@ SVGParsingError BuildByteStreamFromString(const String& d,
SVGPathByteStreamBuilder builder(result);
SVGPathStringSource source(d);
SVGPathParser::ParsePath(source, builder);
svg_path_parser::ParsePath(source, builder);
result.ShrinkToFit();
return source.ParseError();
}
......
......@@ -233,6 +233,7 @@ _CONFIG = [
'root_scroller_util::.+',
'scheduler::.+',
'style_change_reason::.+',
'svg_path_parser::.+',
'touch_action_util::.+',
'vector_math::.+',
'web_core_test_support::.+',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment