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

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

Issue 468083003: Cleanup namespace usage in Source/web/Web[A-H]*.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing Created 6 years, 4 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 | « Source/web/WebFontImpl.cpp ('k') | Source/web/WebFormElement.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 22 matching lines...) Expand all
33 33
34 #include "core/dom/NodeRenderStyle.h" 34 #include "core/dom/NodeRenderStyle.h"
35 #include "core/html/HTMLFormControlElement.h" 35 #include "core/html/HTMLFormControlElement.h"
36 #include "core/html/HTMLFormElement.h" 36 #include "core/html/HTMLFormElement.h"
37 #include "core/html/HTMLInputElement.h" 37 #include "core/html/HTMLInputElement.h"
38 #include "core/html/HTMLSelectElement.h" 38 #include "core/html/HTMLSelectElement.h"
39 #include "core/html/HTMLTextAreaElement.h" 39 #include "core/html/HTMLTextAreaElement.h"
40 40
41 #include "wtf/PassRefPtr.h" 41 #include "wtf/PassRefPtr.h"
42 42
43 using namespace blink;
44
45 namespace blink { 43 namespace blink {
46 44
47 bool WebFormControlElement::isEnabled() const 45 bool WebFormControlElement::isEnabled() const
48 { 46 {
49 return !constUnwrap<HTMLFormControlElement>()->isDisabledFormControl(); 47 return !constUnwrap<HTMLFormControlElement>()->isDisabledFormControl();
50 } 48 }
51 49
52 bool WebFormControlElement::isReadOnly() const 50 bool WebFormControlElement::isReadOnly() const
53 { 51 {
54 return constUnwrap<HTMLFormControlElement>()->isReadOnly(); 52 return constUnwrap<HTMLFormControlElement>()->isReadOnly();
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 m_private = elem; 195 m_private = elem;
198 return *this; 196 return *this;
199 } 197 }
200 198
201 WebFormControlElement::operator PassRefPtrWillBeRawPtr<HTMLFormControlElement>() const 199 WebFormControlElement::operator PassRefPtrWillBeRawPtr<HTMLFormControlElement>() const
202 { 200 {
203 return toHTMLFormControlElement(m_private.get()); 201 return toHTMLFormControlElement(m_private.get());
204 } 202 }
205 203
206 } // namespace blink 204 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebFontImpl.cpp ('k') | Source/web/WebFormElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698