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

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

Issue 1645043002: Don't give 'order' semantic errors special treatment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 ExpectedArcFlag, 42 ExpectedArcFlag,
43 ExpectedBoolean, 43 ExpectedBoolean,
44 ExpectedEnumeration, 44 ExpectedEnumeration,
45 ExpectedLength, 45 ExpectedLength,
46 ExpectedMoveToCommand, 46 ExpectedMoveToCommand,
47 ExpectedNumber, 47 ExpectedNumber,
48 ExpectedPathCommand, 48 ExpectedPathCommand,
49 49
50 // Semantic errors 50 // Semantic errors
51 NegativeValue, 51 NegativeValue,
52 ZeroValue,
52 53
53 // Generic error 54 // Generic error
54 ParsingFailed, 55 ParsingFailed,
55 }; 56 };
56 57
57 class SVGParsingError { 58 class SVGParsingError {
58 STACK_ALLOCATED(); 59 STACK_ALLOCATED();
59 public: 60 public:
60 SVGParsingError(SVGParseStatus status = SVGParseStatus::NoError, size_t locu s = 0) 61 SVGParsingError(SVGParseStatus status = SVGParseStatus::NoError, size_t locu s = 0)
61 : m_status(static_cast<unsigned>(status)) 62 : m_status(static_cast<unsigned>(status))
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 97
97 inline bool operator==(const SVGParsingError& error, SVGParseStatus status) 98 inline bool operator==(const SVGParsingError& error, SVGParseStatus status)
98 { 99 {
99 return error.status() == status; 100 return error.status() == status;
100 } 101 }
101 inline bool operator!=(const SVGParsingError& error, SVGParseStatus status) { re turn !(error == status); } 102 inline bool operator!=(const SVGParsingError& error, SVGParseStatus status) { re turn !(error == status); }
102 103
103 } // namespace blink 104 } // namespace blink
104 105
105 #endif // SVGParsingError_h 106 #endif // SVGParsingError_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698