Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: Source/core/html/parser/HTMLElementStack.h

Issue 635793002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // NOTE: The HTML5 spec uses a backwards (grows downward) stack. We're using 43 // NOTE: The HTML5 spec uses a backwards (grows downward) stack. We're using
44 // more standard (grows upwards) stack terminology here. 44 // more standard (grows upwards) stack terminology here.
45 class HTMLElementStack { 45 class HTMLElementStack {
46 WTF_MAKE_NONCOPYABLE(HTMLElementStack); 46 WTF_MAKE_NONCOPYABLE(HTMLElementStack);
47 DISALLOW_ALLOCATION(); 47 DISALLOW_ALLOCATION();
48 public: 48 public:
49 HTMLElementStack(); 49 HTMLElementStack();
50 ~HTMLElementStack(); 50 ~HTMLElementStack();
51 51
52 class ElementRecord FINAL : public NoBaseWillBeGarbageCollected<ElementRecor d> { 52 class ElementRecord final : public NoBaseWillBeGarbageCollected<ElementRecor d> {
53 WTF_MAKE_NONCOPYABLE(ElementRecord); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REM OVED; 53 WTF_MAKE_NONCOPYABLE(ElementRecord); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REM OVED;
54 public: 54 public:
55 #if !ENABLE(OILPAN) 55 #if !ENABLE(OILPAN)
56 ~ElementRecord(); // Public for ~PassOwnPtr() 56 ~ElementRecord(); // Public for ~PassOwnPtr()
57 #endif 57 #endif
58 58
59 Element* element() const { return m_item->element(); } 59 Element* element() const { return m_item->element(); }
60 ContainerNode* node() const { return m_item->node(); } 60 ContainerNode* node() const { return m_item->node(); }
61 const AtomicString& namespaceURI() const { return m_item->namespaceURI() ; } 61 const AtomicString& namespaceURI() const { return m_item->namespaceURI() ; }
62 PassRefPtrWillBeRawPtr<HTMLStackItem> stackItem() const { return m_item; } 62 PassRefPtrWillBeRawPtr<HTMLStackItem> stackItem() const { return m_item; }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // way down through createElement, etc. 184 // way down through createElement, etc.
185 RawPtrWillBeMember<ContainerNode> m_rootNode; 185 RawPtrWillBeMember<ContainerNode> m_rootNode;
186 RawPtrWillBeMember<Element> m_headElement; 186 RawPtrWillBeMember<Element> m_headElement;
187 RawPtrWillBeMember<Element> m_bodyElement; 187 RawPtrWillBeMember<Element> m_bodyElement;
188 unsigned m_stackDepth; 188 unsigned m_stackDepth;
189 }; 189 };
190 190
191 } // namespace blink 191 } // namespace blink
192 192
193 #endif // HTMLElementStack_h 193 #endif // HTMLElementStack_h
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.cpp ('k') | Source/core/html/parser/HTMLResourcePreloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698