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( ...@@ -203,7 +203,7 @@ std::unique_ptr<SVGPathByteStream> PathInterpolationFunctions::AppliedValue(
*ToInterpolableList(interpolable_value).Get(kPathArgsIndex)), *ToInterpolableList(interpolable_value).Get(kPathArgsIndex)),
ToSVGPathNonInterpolableValue(non_interpolable_value)->PathSegTypes()); ToSVGPathNonInterpolableValue(non_interpolable_value)->PathSegTypes());
SVGPathByteStreamBuilder builder(*path_byte_stream); SVGPathByteStreamBuilder builder(*path_byte_stream);
SVGPathParser::ParsePath(source, builder); svg_path_parser::ParsePath(source, builder);
return path_byte_stream; return path_byte_stream;
} }
......
...@@ -33,7 +33,7 @@ namespace blink { ...@@ -33,7 +33,7 @@ namespace blink {
class SVGPathConsumer; class SVGPathConsumer;
namespace SVGPathParser { namespace svg_path_parser {
template <typename SourceType, typename ConsumerType> template <typename SourceType, typename ConsumerType>
inline bool ParsePath(SourceType& source, ConsumerType& consumer) { inline bool ParsePath(SourceType& source, ConsumerType& consumer) {
...@@ -47,7 +47,7 @@ inline bool ParsePath(SourceType& source, ConsumerType& consumer) { ...@@ -47,7 +47,7 @@ inline bool ParsePath(SourceType& source, ConsumerType& consumer) {
return true; return true;
} }
} // namespace SVGPathParser } // namespace svg_path_parser
class SVGPathNormalizer { class SVGPathNormalizer {
STACK_ALLOCATED(); STACK_ALLOCATED();
......
...@@ -16,7 +16,7 @@ bool ParsePath(const char* input, String& output) { ...@@ -16,7 +16,7 @@ bool ParsePath(const char* input, String& output) {
String input_string(input); String input_string(input);
SVGPathStringSource source(input_string); SVGPathStringSource source(input_string);
SVGPathStringBuilder builder; SVGPathStringBuilder builder;
bool had_error = SVGPathParser::ParsePath(source, builder); bool had_error = svg_path_parser::ParsePath(source, builder);
output = builder.Result(); output = builder.Result();
// Coerce a null result to empty. // Coerce a null result to empty.
if (output.IsNull()) if (output.IsNull())
...@@ -160,7 +160,7 @@ SVGParsingError ParsePathWithError(const char* input) { ...@@ -160,7 +160,7 @@ SVGParsingError ParsePathWithError(const char* input) {
String input_string(input); String input_string(input);
SVGPathStringSource source(input_string); SVGPathStringSource source(input_string);
SVGPathStringBuilder builder; SVGPathStringBuilder builder;
SVGPathParser::ParsePath(source, builder); svg_path_parser::ParsePath(source, builder);
return source.ParseError(); return source.ParseError();
} }
......
...@@ -34,7 +34,7 @@ bool BuildPathFromString(const String& d, Path& result) { ...@@ -34,7 +34,7 @@ bool BuildPathFromString(const String& d, Path& result) {
SVGPathBuilder builder(result); SVGPathBuilder builder(result);
SVGPathStringSource source(d); SVGPathStringSource source(d);
return SVGPathParser::ParsePath(source, builder); return svg_path_parser::ParsePath(source, builder);
} }
bool BuildPathFromByteStream(const SVGPathByteStream& stream, Path& result) { bool BuildPathFromByteStream(const SVGPathByteStream& stream, Path& result) {
...@@ -43,7 +43,7 @@ bool BuildPathFromByteStream(const SVGPathByteStream& stream, Path& result) { ...@@ -43,7 +43,7 @@ bool BuildPathFromByteStream(const SVGPathByteStream& stream, Path& result) {
SVGPathBuilder builder(result); SVGPathBuilder builder(result);
SVGPathByteStreamSource source(stream); SVGPathByteStreamSource source(stream);
return SVGPathParser::ParsePath(source, builder); return svg_path_parser::ParsePath(source, builder);
} }
String BuildStringFromByteStream(const SVGPathByteStream& stream, String BuildStringFromByteStream(const SVGPathByteStream& stream,
...@@ -55,9 +55,9 @@ String BuildStringFromByteStream(const SVGPathByteStream& stream, ...@@ -55,9 +55,9 @@ String BuildStringFromByteStream(const SVGPathByteStream& stream,
SVGPathByteStreamSource source(stream); SVGPathByteStreamSource source(stream);
if (format == kTransformToAbsolute) { if (format == kTransformToAbsolute) {
SVGPathAbsolutizer absolutizer(&builder); SVGPathAbsolutizer absolutizer(&builder);
SVGPathParser::ParsePath(source, absolutizer); svg_path_parser::ParsePath(source, absolutizer);
} else { } else {
SVGPathParser::ParsePath(source, builder); svg_path_parser::ParsePath(source, builder);
} }
return builder.Result(); return builder.Result();
} }
...@@ -74,7 +74,7 @@ SVGParsingError BuildByteStreamFromString(const String& d, ...@@ -74,7 +74,7 @@ SVGParsingError BuildByteStreamFromString(const String& d,
SVGPathByteStreamBuilder builder(result); SVGPathByteStreamBuilder builder(result);
SVGPathStringSource source(d); SVGPathStringSource source(d);
SVGPathParser::ParsePath(source, builder); svg_path_parser::ParsePath(source, builder);
result.ShrinkToFit(); result.ShrinkToFit();
return source.ParseError(); return source.ParseError();
} }
......
...@@ -233,6 +233,7 @@ _CONFIG = [ ...@@ -233,6 +233,7 @@ _CONFIG = [
'root_scroller_util::.+', 'root_scroller_util::.+',
'scheduler::.+', 'scheduler::.+',
'style_change_reason::.+', 'style_change_reason::.+',
'svg_path_parser::.+',
'touch_action_util::.+', 'touch_action_util::.+',
'vector_math::.+', 'vector_math::.+',
'web_core_test_support::.+', '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