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

Side by Side Diff: Source/core/dom/Element.h

Issue 197873022: Drop Element::isHTMLFrameElementBase() virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take tkent's feedback into consideration Created 6 years, 9 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/css/SelectorChecker.cpp ('k') | Source/core/dom/Element.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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved.
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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 virtual bool isFormControlElement() const { return false; } 451 virtual bool isFormControlElement() const { return false; }
452 virtual bool isSpinButtonElement() const { return false; } 452 virtual bool isSpinButtonElement() const { return false; }
453 virtual bool isTextFormControl() const { return false; } 453 virtual bool isTextFormControl() const { return false; }
454 virtual bool isOptionalFormControl() const { return false; } 454 virtual bool isOptionalFormControl() const { return false; }
455 virtual bool isRequiredFormControl() const { return false; } 455 virtual bool isRequiredFormControl() const { return false; }
456 virtual bool isDefaultButtonForForm() const { return false; } 456 virtual bool isDefaultButtonForForm() const { return false; }
457 virtual bool willValidate() const { return false; } 457 virtual bool willValidate() const { return false; }
458 virtual bool isValidFormControlElement() { return false; } 458 virtual bool isValidFormControlElement() { return false; }
459 virtual bool isInRange() const { return false; } 459 virtual bool isInRange() const { return false; }
460 virtual bool isOutOfRange() const { return false; } 460 virtual bool isOutOfRange() const { return false; }
461 virtual bool isFrameElementBase() const { return false; }
462 virtual bool isPasswordGeneratorButtonElement() const { return false; } 461 virtual bool isPasswordGeneratorButtonElement() const { return false; }
463 virtual bool isClearButtonElement() const { return false; } 462 virtual bool isClearButtonElement() const { return false; }
464 463
465 virtual bool canContainRangeEndPoint() const OVERRIDE { return true; } 464 virtual bool canContainRangeEndPoint() const OVERRIDE { return true; }
466 465
467 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched 466 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched
468 // to event listeners, and prevents DOMActivate events from being sent at al l. 467 // to event listeners, and prevents DOMActivate events from being sent at al l.
469 virtual bool isDisabledFormControl() const { return false; } 468 virtual bool isDisabledFormControl() const { return false; }
470 469
471 bool hasPendingResources() const; 470 bool hasPendingResources() const;
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return element.predicate; } \ 891 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return element.predicate; } \
893 DEFINE_NODE_TYPE_CASTS(thisType, predicate) 892 DEFINE_NODE_TYPE_CASTS(thisType, predicate)
894 893
895 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ 894 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \
896 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return is##thisType(element); } \ 895 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return is##thisType(element); } \
897 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) 896 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType)
898 897
899 } // namespace 898 } // namespace
900 899
901 #endif 900 #endif
OLDNEW
« no previous file with comments | « Source/core/css/SelectorChecker.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698