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

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

Issue 1186823007: Code cleanup in core/html/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/DOMFormData.h ('k') | Source/core/html/HTMLAnchorElement.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 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 bool FormAssociatedElement::isFormControlElementWithState() const 307 bool FormAssociatedElement::isFormControlElementWithState() const
308 { 308 {
309 return false; 309 return false;
310 } 310 }
311 311
312 const HTMLElement& toHTMLElement(const FormAssociatedElement& associatedElement) 312 const HTMLElement& toHTMLElement(const FormAssociatedElement& associatedElement)
313 { 313 {
314 if (associatedElement.isFormControlElement()) 314 if (associatedElement.isFormControlElement())
315 return toHTMLFormControlElement(associatedElement); 315 return toHTMLFormControlElement(associatedElement);
316 else if (associatedElement.isLabelElement()) 316 if (associatedElement.isLabelElement())
317 return toHTMLLabelElement(associatedElement); 317 return toHTMLLabelElement(associatedElement);
318 else 318 return toHTMLObjectElement(associatedElement);
319 return toHTMLObjectElement(associatedElement);
320 } 319 }
321 320
322 const HTMLElement* toHTMLElement(const FormAssociatedElement* associatedElement) 321 const HTMLElement* toHTMLElement(const FormAssociatedElement* associatedElement)
323 { 322 {
324 ASSERT(associatedElement); 323 ASSERT(associatedElement);
325 return &toHTMLElement(*associatedElement); 324 return &toHTMLElement(*associatedElement);
326 } 325 }
327 326
328 HTMLElement* toHTMLElement(FormAssociatedElement* associatedElement) 327 HTMLElement* toHTMLElement(FormAssociatedElement* associatedElement)
329 { 328 {
(...skipping 21 matching lines...) Expand all
351 visitor->trace(m_element); 350 visitor->trace(m_element);
352 IdTargetObserver::trace(visitor); 351 IdTargetObserver::trace(visitor);
353 } 352 }
354 353
355 void FormAttributeTargetObserver::idTargetChanged() 354 void FormAttributeTargetObserver::idTargetChanged()
356 { 355 {
357 m_element->formAttributeTargetChanged(); 356 m_element->formAttributeTargetChanged();
358 } 357 }
359 358
360 } // namespace blink 359 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/DOMFormData.h ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698