OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 return isScopeMarker(item) | 109 return isScopeMarker(item) |
110 || item->hasTagName(buttonTag); | 110 || item->hasTagName(buttonTag); |
111 } | 111 } |
112 | 112 |
113 inline bool isSelectScopeMarker(HTMLStackItem* item) | 113 inline bool isSelectScopeMarker(HTMLStackItem* item) |
114 { | 114 { |
115 return !item->hasTagName(optgroupTag) | 115 return !item->hasTagName(optgroupTag) |
116 && !item->hasTagName(optionTag); | 116 && !item->hasTagName(optionTag); |
117 } | 117 } |
118 | 118 |
119 } | 119 } // namespace |
120 | 120 |
121 HTMLElementStack::ElementRecord::ElementRecord(PassRefPtrWillBeRawPtr<HTMLStackI
tem> item, PassOwnPtrWillBeRawPtr<ElementRecord> next) | 121 HTMLElementStack::ElementRecord::ElementRecord(PassRefPtrWillBeRawPtr<HTMLStackI
tem> item, PassOwnPtrWillBeRawPtr<ElementRecord> next) |
122 : m_item(item) | 122 : m_item(item) |
123 , m_next(next) | 123 , m_next(next) |
124 { | 124 { |
125 ASSERT(m_item); | 125 ASSERT(m_item); |
126 } | 126 } |
127 | 127 |
128 #if !ENABLE(OILPAN) | 128 #if !ENABLE(OILPAN) |
129 HTMLElementStack::ElementRecord::~ElementRecord() | 129 HTMLElementStack::ElementRecord::~ElementRecord() |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 #ifndef NDEBUG | 626 #ifndef NDEBUG |
627 | 627 |
628 void HTMLElementStack::show() | 628 void HTMLElementStack::show() |
629 { | 629 { |
630 for (ElementRecord* record = m_top.get(); record; record = record->next()) | 630 for (ElementRecord* record = m_top.get(); record; record = record->next()) |
631 record->element()->showNode(); | 631 record->element()->showNode(); |
632 } | 632 } |
633 | 633 |
634 #endif | 634 #endif |
635 | 635 |
636 } | 636 } // namespace blink |
OLD | NEW |