Bug 1671598 [wpt PR 26128] - [AspectRatio] Fix divide by zero with a small float...
[gecko.git] / parser / nsCharsetSource.h
blob562eb4a818c50121a4adcfa8f7b14d37ff6498ef
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef nsCharsetSource_h_
6 #define nsCharsetSource_h_
8 // note: the value order defines the priority; higher numbers take priority
9 enum {
10 kCharsetUninitialized,
11 kCharsetFromFallback,
12 kCharsetFromTopLevelDomain,
13 kCharsetFromFileURLGuess,
14 kCharsetFromDocTypeDefault, // This and up confident for XHR
15 kCharsetFromCache,
16 kCharsetFromInitialAutoDetection,
17 kCharsetFromFinalAutoDetection,
18 kCharsetFromParentFrame, // Same-origin parent takes precedence over detector
19 // to avoid breaking tests. (Also, the HTML spec
20 // says so.)
21 kCharsetFromMetaPrescan, // this one and smaller: HTML5 Tentative
22 kCharsetFromMetaTag, // this one and greater: HTML5 Confident
23 kCharsetFromIrreversibleAutoDetection,
24 kCharsetFromChannel,
25 kCharsetFromOtherComponent,
26 kCharsetFromUserForced, // propagates to child frames
27 kCharsetFromUserForcedAutoDetection,
28 kCharsetFromByteOrderMark,
29 kCharsetFromUtf8OnlyMime, // For JSON, WebVTT and such
30 kCharsetFromBuiltIn, // resource: URLs
33 #endif /* nsCharsetSource_h_ */