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

Side by Side Diff: third_party/WebKit/Source/web/WebElement.cpp

Issue 1865813002: Remove RawPtr from Source/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 } 151 }
152 152
153 WebImage WebElement::imageContents() 153 WebImage WebElement::imageContents()
154 { 154 {
155 if (isNull()) 155 if (isNull())
156 return WebImage(); 156 return WebImage();
157 157
158 return WebImage(unwrap<Element>()->imageContents()); 158 return WebImage(unwrap<Element>()->imageContents());
159 } 159 }
160 160
161 WebElement::WebElement(const RawPtr<Element>& elem) 161 WebElement::WebElement(Element* elem)
162 : WebNode(elem) 162 : WebNode(elem)
163 { 163 {
164 } 164 }
165 165
166 DEFINE_WEB_NODE_TYPE_CASTS(WebElement, isElementNode()); 166 DEFINE_WEB_NODE_TYPE_CASTS(WebElement, isElementNode());
167 167
168 WebElement& WebElement::operator=(const RawPtr<Element>& elem) 168 WebElement& WebElement::operator=(Element* elem)
169 { 169 {
170 m_private = elem; 170 m_private = elem;
171 return *this; 171 return *this;
172 } 172 }
173 173
174 WebElement::operator RawPtr<Element>() const 174 WebElement::operator Element*() const
175 { 175 {
176 return toElement(m_private.get()); 176 return toElement(m_private.get());
177 } 177 }
178 178
179 } // namespace blink 179 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDocument.cpp ('k') | third_party/WebKit/Source/web/WebElementCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698