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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 | 323 |
324 void endAttributeValue(int offset) | 324 void endAttributeValue(int offset) |
325 { | 325 { |
326 m_currentAttribute->valueRange.end = offset - m_baseOffset; | 326 m_currentAttribute->valueRange.end = offset - m_baseOffset; |
327 } | 327 } |
328 | 328 |
329 void appendToAttributeName(UChar character) | 329 void appendToAttributeName(UChar character) |
330 { | 330 { |
331 ASSERT(character); | 331 ASSERT(character); |
332 ASSERT(m_type == StartTag || m_type == EndTag); | 332 ASSERT(m_type == StartTag || m_type == EndTag); |
333 // FIXME: We should be able to add the following ASSERT once we fix | 333 ASSERT(m_currentAttribute->nameRange.start); |
334 // https://bugs.webkit.org/show_bug.cgi?id=62971 | |
335 // ASSERT(m_currentAttribute->nameRange.start); | |
336 m_currentAttribute->name.append(character); | 334 m_currentAttribute->name.append(character); |
337 } | 335 } |
338 | 336 |
339 void appendToAttributeValue(UChar character) | 337 void appendToAttributeValue(UChar character) |
340 { | 338 { |
341 ASSERT(character); | 339 ASSERT(character); |
342 ASSERT(m_type == StartTag || m_type == EndTag); | 340 ASSERT(m_type == StartTag || m_type == EndTag); |
343 ASSERT(m_currentAttribute->valueRange.start); | 341 ASSERT(m_currentAttribute->valueRange.start); |
344 m_currentAttribute->value.append(character); | 342 m_currentAttribute->value.append(character); |
345 } | 343 } |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 // A pointer into m_attributes used during lexing. | 450 // A pointer into m_attributes used during lexing. |
453 Attribute* m_currentAttribute; | 451 Attribute* m_currentAttribute; |
454 | 452 |
455 // For DOCTYPE | 453 // For DOCTYPE |
456 OwnPtr<DoctypeData> m_doctypeData; | 454 OwnPtr<DoctypeData> m_doctypeData; |
457 }; | 455 }; |
458 | 456 |
459 } | 457 } |
460 | 458 |
461 #endif | 459 #endif |
OLD | NEW |