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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 class FragmentParsingContext { | 221 class FragmentParsingContext { |
222 WTF_MAKE_NONCOPYABLE(FragmentParsingContext); | 222 WTF_MAKE_NONCOPYABLE(FragmentParsingContext); |
223 DISALLOW_NEW(); | 223 DISALLOW_NEW(); |
224 | 224 |
225 public: | 225 public: |
226 FragmentParsingContext() = default; | 226 FragmentParsingContext() = default; |
227 void init(DocumentFragment*, Element* contextElement); | 227 void init(DocumentFragment*, Element* contextElement); |
228 | 228 |
229 DocumentFragment* fragment() const { return m_fragment; } | 229 DocumentFragment* fragment() const { return m_fragment; } |
230 Element* contextElement() const { | 230 Element* contextElement() const { |
231 ASSERT(m_fragment); | 231 DCHECK(m_fragment); |
232 return m_contextElementStackItem->element(); | 232 return m_contextElementStackItem->element(); |
233 } | 233 } |
234 HTMLStackItem* contextElementStackItem() const { | 234 HTMLStackItem* contextElementStackItem() const { |
235 ASSERT(m_fragment); | 235 DCHECK(m_fragment); |
236 return m_contextElementStackItem.get(); | 236 return m_contextElementStackItem.get(); |
237 } | 237 } |
238 | 238 |
239 DECLARE_TRACE(); | 239 DECLARE_TRACE(); |
240 | 240 |
241 private: | 241 private: |
242 Member<DocumentFragment> m_fragment; | 242 Member<DocumentFragment> m_fragment; |
243 Member<HTMLStackItem> m_contextElementStackItem; | 243 Member<HTMLStackItem> m_contextElementStackItem; |
244 }; | 244 }; |
245 | 245 |
(...skipping 28 matching lines...) Expand all Loading... |
274 | 274 |
275 // Starting line number of the script tag needing processing. | 275 // Starting line number of the script tag needing processing. |
276 TextPosition m_scriptToProcessStartPosition; | 276 TextPosition m_scriptToProcessStartPosition; |
277 | 277 |
278 HTMLParserOptions m_options; | 278 HTMLParserOptions m_options; |
279 }; | 279 }; |
280 | 280 |
281 } // namespace blink | 281 } // namespace blink |
282 | 282 |
283 #endif | 283 #endif |
OLD | NEW |