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

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

Issue 222203007: Conversion of more places in Blink to use WebLocalFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebDOMFileSystem.cpp ('k') | Source/web/WebEmbeddedWorkerImpl.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) 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 WebString WebDocument::referrer() const 95 WebString WebDocument::referrer() const
96 { 96 {
97 return constUnwrap<Document>()->referrer(); 97 return constUnwrap<Document>()->referrer();
98 } 98 }
99 99
100 WebURL WebDocument::openSearchDescriptionURL() const 100 WebURL WebDocument::openSearchDescriptionURL() const
101 { 101 {
102 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription URL(); 102 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription URL();
103 } 103 }
104 104
105 WebFrame* WebDocument::frame() const 105 WebLocalFrame* WebDocument::frame() const
106 { 106 {
107 return WebFrameImpl::fromFrame(constUnwrap<Document>()->frame()); 107 return WebFrameImpl::fromFrame(constUnwrap<Document>()->frame());
108 } 108 }
109 109
110 bool WebDocument::isHTMLDocument() const 110 bool WebDocument::isHTMLDocument() const
111 { 111 {
112 return constUnwrap<Document>()->isHTMLDocument(); 112 return constUnwrap<Document>()->isHTMLDocument();
113 } 113 }
114 114
115 bool WebDocument::isXHTMLDocument() const 115 bool WebDocument::isXHTMLDocument() const
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 m_private = elem; 310 m_private = elem;
311 return *this; 311 return *this;
312 } 312 }
313 313
314 WebDocument::operator PassRefPtr<Document>() const 314 WebDocument::operator PassRefPtr<Document>() const
315 { 315 {
316 return toDocument(m_private.get()); 316 return toDocument(m_private.get());
317 } 317 }
318 318
319 } // namespace blink 319 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebDOMFileSystem.cpp ('k') | Source/web/WebEmbeddedWorkerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698