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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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/web/ValidationMessageClientImpl.cpp ('k') | Source/web/WebMediaPlayerClientImpl.cpp » ('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) 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 return WebString(constUnwrap<Element>()->computeInheritedLanguage()); 145 return WebString(constUnwrap<Element>()->computeInheritedLanguage());
146 } 146 }
147 147
148 void WebElement::requestFullScreen() 148 void WebElement::requestFullScreen()
149 { 149 {
150 unwrap<Element>()->webkitRequestFullScreen(Element::ALLOW_KEYBOARD_INPUT); 150 unwrap<Element>()->webkitRequestFullScreen(Element::ALLOW_KEYBOARD_INPUT);
151 } 151 }
152 152
153 WebDocument WebElement::document() const 153 WebDocument WebElement::document() const
154 { 154 {
155 return WebDocument(constUnwrap<Element>()->document()); 155 return WebDocument(&constUnwrap<Element>()->document());
156 } 156 }
157 157
158 WebRect WebElement::boundsInViewportSpace() 158 WebRect WebElement::boundsInViewportSpace()
159 { 159 {
160 return unwrap<Element>()->boundsInRootViewSpace(); 160 return unwrap<Element>()->boundsInRootViewSpace();
161 } 161 }
162 162
163 WebImage WebElement::imageContents() 163 WebImage WebElement::imageContents()
164 { 164 {
165 if (isNull()) 165 if (isNull())
(...skipping 20 matching lines...) Expand all
186 m_private = elem; 186 m_private = elem;
187 return *this; 187 return *this;
188 } 188 }
189 189
190 WebElement::operator PassRefPtr<Element>() const 190 WebElement::operator PassRefPtr<Element>() const
191 { 191 {
192 return toElement(m_private.get()); 192 return toElement(m_private.get());
193 } 193 }
194 194
195 } // namespace WebKit 195 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/web/ValidationMessageClientImpl.cpp ('k') | Source/web/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698