Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGParsingError.h

Issue 1642463004: Extended error reporting for SVG path parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "path flag" -> "arc flag" Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
3 * Copyright (C) 2011 Apple, Inc. All rights reserved. 3 * Copyright (C) 2011 Apple, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 21 matching lines...) Expand all
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class QualifiedName; 35 class QualifiedName;
36 36
37 enum class SVGParseStatus { 37 enum class SVGParseStatus {
38 NoError, 38 NoError,
39 39
40 // Syntax errors 40 // Syntax errors
41 TrailingGarbage, 41 TrailingGarbage,
42 ExpectedArcFlag,
42 ExpectedBoolean, 43 ExpectedBoolean,
43 ExpectedEnumeration, 44 ExpectedEnumeration,
44 ExpectedLength, 45 ExpectedLength,
46 ExpectedMoveToCommand,
45 ExpectedNumber, 47 ExpectedNumber,
48 ExpectedPathCommand,
46 49
47 // Semantic errors 50 // Semantic errors
48 NegativeValue, 51 NegativeValue,
49 52
50 // Generic error 53 // Generic error
51 ParsingFailed, 54 ParsingFailed,
52 }; 55 };
53 56
54 class SVGParsingError { 57 class SVGParsingError {
55 STACK_ALLOCATED(); 58 STACK_ALLOCATED();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 96
94 inline bool operator==(const SVGParsingError& error, SVGParseStatus status) 97 inline bool operator==(const SVGParsingError& error, SVGParseStatus status)
95 { 98 {
96 return error.status() == status; 99 return error.status() == status;
97 } 100 }
98 inline bool operator!=(const SVGParsingError& error, SVGParseStatus status) { re turn !(error == status); } 101 inline bool operator!=(const SVGParsingError& error, SVGParseStatus status) { re turn !(error == status); }
99 102
100 } // namespace blink 103 } // namespace blink
101 104
102 #endif // SVGParsingError_h 105 #endif // SVGParsingError_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGParserUtilities.cpp ('k') | third_party/WebKit/Source/core/svg/SVGParsingError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698