| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2013 Google, Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 class DoctypeData { | 36 class DoctypeData { |
| 37 WTF_MAKE_NONCOPYABLE(DoctypeData); | 37 WTF_MAKE_NONCOPYABLE(DoctypeData); |
| 38 public: | 38 public: |
| 39 DoctypeData() | 39 DoctypeData() |
| 40 : m_hasPublicIdentifier(false) | 40 : m_hasPublicIdentifier(false) |
| 41 , m_hasSystemIdentifier(false) | 41 , m_hasSystemIdentifier(false) |
| 42 , m_forceQuirks(false) | 42 , m_forceQuirks(false) |
| 43 { | 43 { |
| 44 } | 44 } |
| 45 | 45 |
| 46 // FIXME: This should use String instead of Vector<UChar>. | |
| 47 bool m_hasPublicIdentifier; | 46 bool m_hasPublicIdentifier; |
| 48 bool m_hasSystemIdentifier; | 47 bool m_hasSystemIdentifier; |
| 49 WTF::Vector<UChar> m_publicIdentifier; | 48 WTF::Vector<UChar> m_publicIdentifier; |
| 50 WTF::Vector<UChar> m_systemIdentifier; | 49 WTF::Vector<UChar> m_systemIdentifier; |
| 51 bool m_forceQuirks; | 50 bool m_forceQuirks; |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 static inline Attribute* findAttributeInVector(Vector<Attribute>& attributes, co
nst QualifiedName& name) | 53 static inline Attribute* findAttributeInVector(Vector<Attribute>& attributes, co
nst QualifiedName& name) |
| 55 { | 54 { |
| 56 for (unsigned i = 0; i < attributes.size(); ++i) { | 55 for (unsigned i = 0; i < attributes.size(); ++i) { |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 // A pointer into m_attributes used during lexing. | 449 // A pointer into m_attributes used during lexing. |
| 451 Attribute* m_currentAttribute; | 450 Attribute* m_currentAttribute; |
| 452 | 451 |
| 453 // For DOCTYPE | 452 // For DOCTYPE |
| 454 OwnPtr<DoctypeData> m_doctypeData; | 453 OwnPtr<DoctypeData> m_doctypeData; |
| 455 }; | 454 }; |
| 456 | 455 |
| 457 } | 456 } |
| 458 | 457 |
| 459 #endif | 458 #endif |
| OLD | NEW |