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

Side by Side Diff: Source/core/html/HTMLDocument.cpp

Issue 23890025: WIP (Introduce WTF::NonNullPtr<T>.) (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/HTMLDataListElement.cpp ('k') | Source/core/html/HTMLElement.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 mode = on; 104 mode = on;
105 else if (equalIgnoringCase(value, "off")) 105 else if (equalIgnoringCase(value, "off"))
106 mode = off; 106 mode = off;
107 else 107 else
108 mode = inherit; 108 mode = inherit;
109 Document::setDesignMode(mode); 109 Document::setDesignMode(mode);
110 } 110 }
111 111
112 Element* HTMLDocument::activeElement() 112 Element* HTMLDocument::activeElement()
113 { 113 {
114 if (Element* element = treeScope().adjustedFocusedElement()) 114 if (Element* element = treeScope()->adjustedFocusedElement())
115 return element; 115 return element;
116 return body(); 116 return body();
117 } 117 }
118 118
119 bool HTMLDocument::hasFocus() 119 bool HTMLDocument::hasFocus()
120 { 120 {
121 Page* page = this->page(); 121 Page* page = this->page();
122 if (!page) 122 if (!page)
123 return false; 123 return false;
124 if (!page->focusController().isActive() || !page->focusController().isFocuse d()) 124 if (!page->focusController().isActive() || !page->focusController().isFocuse d())
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 } 326 }
327 327
328 void HTMLDocument::clear() 328 void HTMLDocument::clear()
329 { 329 {
330 // FIXME: This does nothing, and that seems unlikely to be correct. 330 // FIXME: This does nothing, and that seems unlikely to be correct.
331 // We've long had a comment saying that IE doesn't support this. 331 // We've long had a comment saying that IE doesn't support this.
332 // But I do see it in the documentation for Mozilla. 332 // But I do see it in the documentation for Mozilla.
333 } 333 }
334 334
335 } 335 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDataListElement.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698