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

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

Issue 694703002: Remove lots of dead virtuals from Element. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/WebElement.h ('k') | no next file » | 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 26 matching lines...) Expand all
37 #include "core/dom/custom/CustomElementProcessingStack.h" 37 #include "core/dom/custom/CustomElementProcessingStack.h"
38 #include "core/dom/shadow/ShadowRoot.h" 38 #include "core/dom/shadow/ShadowRoot.h"
39 #include "core/rendering/RenderBoxModelObject.h" 39 #include "core/rendering/RenderBoxModelObject.h"
40 #include "core/rendering/RenderObject.h" 40 #include "core/rendering/RenderObject.h"
41 #include "public/platform/WebRect.h" 41 #include "public/platform/WebRect.h"
42 #include "public/web/WebDocument.h" 42 #include "public/web/WebDocument.h"
43 #include "wtf/PassRefPtr.h" 43 #include "wtf/PassRefPtr.h"
44 44
45 namespace blink { 45 namespace blink {
46 46
47 bool WebElement::isFormControlElement() const
48 {
49 return constUnwrap<Element>()->isFormControlElement();
50 }
51
52 bool WebElement::isTextFormControlElement() const
53 {
54 return false;
55 }
56
57 WebString WebElement::tagName() const 47 WebString WebElement::tagName() const
58 { 48 {
59 return constUnwrap<Element>()->tagName(); 49 return constUnwrap<Element>()->tagName();
60 } 50 }
61 51
62 bool WebElement::hasHTMLTagName(const WebString& tagName) const 52 bool WebElement::hasHTMLTagName(const WebString& tagName) const
63 { 53 {
64 // How to create class nodeName localName 54 // How to create class nodeName localName
65 // createElement('input') HTMLInputElement INPUT input 55 // createElement('input') HTMLInputElement INPUT input
66 // createElement('INPUT') HTMLInputElement INPUT input 56 // createElement('INPUT') HTMLInputElement INPUT input
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 m_private = elem; 158 m_private = elem;
169 return *this; 159 return *this;
170 } 160 }
171 161
172 WebElement::operator PassRefPtr<Element>() const 162 WebElement::operator PassRefPtr<Element>() const
173 { 163 {
174 return toElement(m_private.get()); 164 return toElement(m_private.get());
175 } 165 }
176 166
177 } // namespace blink 167 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698