| 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 21 matching lines...) Expand all Loading... |
| 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 ExpectedAngle, |
| 42 ExpectedArcFlag, | 43 ExpectedArcFlag, |
| 43 ExpectedBoolean, | 44 ExpectedBoolean, |
| 44 ExpectedEndOfArguments, | 45 ExpectedEndOfArguments, |
| 45 ExpectedEnumeration, | 46 ExpectedEnumeration, |
| 46 ExpectedInteger, | 47 ExpectedInteger, |
| 47 ExpectedLength, | 48 ExpectedLength, |
| 48 ExpectedMoveToCommand, | 49 ExpectedMoveToCommand, |
| 49 ExpectedNumber, | 50 ExpectedNumber, |
| 50 ExpectedPathCommand, | 51 ExpectedPathCommand, |
| 51 ExpectedStartOfArguments, | 52 ExpectedStartOfArguments, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 102 |
| 102 inline bool operator==(const SVGParsingError& error, SVGParseStatus status) | 103 inline bool operator==(const SVGParsingError& error, SVGParseStatus status) |
| 103 { | 104 { |
| 104 return error.status() == status; | 105 return error.status() == status; |
| 105 } | 106 } |
| 106 inline bool operator!=(const SVGParsingError& error, SVGParseStatus status) { re
turn !(error == status); } | 107 inline bool operator!=(const SVGParsingError& error, SVGParseStatus status) { re
turn !(error == status); } |
| 107 | 108 |
| 108 } // namespace blink | 109 } // namespace blink |
| 109 | 110 |
| 110 #endif // SVGParsingError_h | 111 #endif // SVGParsingError_h |
| OLD | NEW |