OLD | NEW |
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 23 matching lines...) Expand all Loading... |
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 ExpectedBoolean, | 42 ExpectedBoolean, |
43 ExpectedEnumeration, | 43 ExpectedEnumeration, |
| 44 ExpectedNumber, |
44 | 45 |
45 // Semantic errors | 46 // Semantic errors |
46 NegativeValue, | 47 NegativeValue, |
47 | 48 |
48 // Generic error | 49 // Generic error |
49 ParsingFailed, | 50 ParsingFailed, |
50 }; | 51 }; |
51 | 52 |
52 class SVGParsingError { | 53 class SVGParsingError { |
53 STACK_ALLOCATED(); | 54 STACK_ALLOCATED(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 89 |
89 inline bool operator==(const SVGParsingError& error, SVGParseStatus status) | 90 inline bool operator==(const SVGParsingError& error, SVGParseStatus status) |
90 { | 91 { |
91 return error.status() == status; | 92 return error.status() == status; |
92 } | 93 } |
93 inline bool operator!=(const SVGParsingError& error, SVGParseStatus status) { re
turn !(error == status); } | 94 inline bool operator!=(const SVGParsingError& error, SVGParseStatus status) { re
turn !(error == status); } |
94 | 95 |
95 } // namespace blink | 96 } // namespace blink |
96 | 97 |
97 #endif // SVGParsingError_h | 98 #endif // SVGParsingError_h |
OLD | NEW |