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

Side by Side Diff: Source/core/html/HTMLFrameOwnerElement.h

Issue 23680013: Add const versions of some toHTMLFooElement(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLFormControlElement.h ('k') | Source/core/html/HTMLMetaElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 Frame* m_contentFrame; 76 Frame* m_contentFrame;
77 SandboxFlags m_sandboxFlags; 77 SandboxFlags m_sandboxFlags;
78 }; 78 };
79 79
80 inline HTMLFrameOwnerElement* toHTMLFrameOwnerElement(Node* node) 80 inline HTMLFrameOwnerElement* toHTMLFrameOwnerElement(Node* node)
81 { 81 {
82 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isFrameOwnerElement()); 82 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isFrameOwnerElement());
83 return static_cast<HTMLFrameOwnerElement*>(node); 83 return static_cast<HTMLFrameOwnerElement*>(node);
84 } 84 }
85 85
86 inline const HTMLFrameOwnerElement* toHTMLFrameOwnerElement(const Node* node)
87 {
88 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isFrameOwnerElement());
89 return static_cast<const HTMLFrameOwnerElement*>(node);
90 }
91
86 class SubframeLoadingDisabler { 92 class SubframeLoadingDisabler {
87 public: 93 public:
88 explicit SubframeLoadingDisabler(Node* root) 94 explicit SubframeLoadingDisabler(Node* root)
89 : m_root(root) 95 : m_root(root)
90 { 96 {
91 disabledSubtreeRoots().add(m_root); 97 disabledSubtreeRoots().add(m_root);
92 } 98 }
93 99
94 ~SubframeLoadingDisabler() 100 ~SubframeLoadingDisabler()
95 { 101 {
(...skipping 15 matching lines...) Expand all
111 DEFINE_STATIC_LOCAL(HashCountedSet<Node*>, nodes, ()); 117 DEFINE_STATIC_LOCAL(HashCountedSet<Node*>, nodes, ());
112 return nodes; 118 return nodes;
113 } 119 }
114 120
115 Node* m_root; 121 Node* m_root;
116 }; 122 };
117 123
118 } // namespace WebCore 124 } // namespace WebCore
119 125
120 #endif // HTMLFrameOwnerElement_h 126 #endif // HTMLFrameOwnerElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormControlElement.h ('k') | Source/core/html/HTMLMetaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698