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

Side by Side Diff: sky/engine/web/WebDocument.cpp

Issue 928393003: Remove the concept of document.documentElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/public/web/WebWidget.h ('k') | sky/engine/web/WebLocalFrameImpl.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 WebURL WebDocument::openSearchDescriptionURL() const 71 WebURL WebDocument::openSearchDescriptionURL() const
72 { 72 {
73 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription URL(); 73 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription URL();
74 } 74 }
75 75
76 WebLocalFrame* WebDocument::frame() const 76 WebLocalFrame* WebDocument::frame() const
77 { 77 {
78 return WebLocalFrameImpl::fromFrame(constUnwrap<Document>()->frame()); 78 return WebLocalFrameImpl::fromFrame(constUnwrap<Document>()->frame());
79 } 79 }
80 80
81 WebElement WebDocument::documentElement() const
82 {
83 return WebElement(constUnwrap<Document>()->documentElement());
84 }
85
86 WebString WebDocument::title() const 81 WebString WebDocument::title() const
87 { 82 {
88 return WebString(constUnwrap<Document>()->title()); 83 return WebString(constUnwrap<Document>()->title());
89 } 84 }
90 85
91 WebURL WebDocument::completeURL(const WebString& partialURL) const 86 WebURL WebDocument::completeURL(const WebString& partialURL) const
92 { 87 {
93 return constUnwrap<Document>()->completeURL(partialURL); 88 return constUnwrap<Document>()->completeURL(partialURL);
94 } 89 }
95 90
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 m_private = elem; 127 m_private = elem;
133 return *this; 128 return *this;
134 } 129 }
135 130
136 WebDocument::operator PassRefPtr<Document>() const 131 WebDocument::operator PassRefPtr<Document>() const
137 { 132 {
138 return toDocument(m_private.get()); 133 return toDocument(m_private.get());
139 } 134 }
140 135
141 } // namespace blink 136 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebWidget.h ('k') | sky/engine/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698