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

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

Issue 646543004: Implement :valid and :invalid pseudoclass for <form> (resubmitting) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reorder matchesValidityPseudoClasses() Created 6 years, 2 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
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-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 // but making parsing a special case in this respect should be avoided if po ssible. 402 // but making parsing a special case in this respect should be avoided if po ssible.
403 virtual void finishParsingChildren(); 403 virtual void finishParsingChildren();
404 404
405 void beginParsingChildren() { setIsFinishedParsingChildren(false); } 405 void beginParsingChildren() { setIsFinishedParsingChildren(false); }
406 406
407 PseudoElement* pseudoElement(PseudoId) const; 407 PseudoElement* pseudoElement(PseudoId) const;
408 RenderObject* pseudoElementRenderer(PseudoId) const; 408 RenderObject* pseudoElementRenderer(PseudoId) const;
409 409
410 virtual bool matchesReadOnlyPseudoClass() const { return false; } 410 virtual bool matchesReadOnlyPseudoClass() const { return false; }
411 virtual bool matchesReadWritePseudoClass() const { return false; } 411 virtual bool matchesReadWritePseudoClass() const { return false; }
412 virtual bool matchesValidityPseudoClasses() const { return false; }
412 bool matches(const String& selectors, ExceptionState&); 413 bool matches(const String& selectors, ExceptionState&);
413 virtual bool shouldAppearIndeterminate() const { return false; } 414 virtual bool shouldAppearIndeterminate() const { return false; }
414 415
415 DOMTokenList& classList(); 416 DOMTokenList& classList();
416 417
417 DOMStringMap& dataset(); 418 DOMStringMap& dataset();
418 419
419 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 420 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
420 virtual bool isDateTimeEditElement() const { return false; } 421 virtual bool isDateTimeEditElement() const { return false; }
421 virtual bool isDateTimeFieldElement() const { return false; } 422 virtual bool isDateTimeFieldElement() const { return false; }
422 virtual bool isPickerIndicatorElement() const { return false; } 423 virtual bool isPickerIndicatorElement() const { return false; }
423 #endif 424 #endif
424 425
425 virtual bool isFormControlElement() const { return false; } 426 virtual bool isFormControlElement() const { return false; }
426 virtual bool isSpinButtonElement() const { return false; } 427 virtual bool isSpinButtonElement() const { return false; }
427 virtual bool isTextFormControl() const { return false; } 428 virtual bool isTextFormControl() const { return false; }
428 virtual bool isOptionalFormControl() const { return false; } 429 virtual bool isOptionalFormControl() const { return false; }
429 virtual bool isRequiredFormControl() const { return false; } 430 virtual bool isRequiredFormControl() const { return false; }
430 virtual bool isDefaultButtonForForm() const { return false; } 431 virtual bool isDefaultButtonForForm() const { return false; }
431 virtual bool willValidate() const { return false; } 432 virtual bool willValidate() const { return false; }
432 virtual bool isValidFormControlElement() { return false; } 433 virtual bool isValidElement() { return false; }
433 virtual bool isInRange() const { return false; } 434 virtual bool isInRange() const { return false; }
434 virtual bool isOutOfRange() const { return false; } 435 virtual bool isOutOfRange() const { return false; }
435 virtual bool isClearButtonElement() const { return false; } 436 virtual bool isClearButtonElement() const { return false; }
436 437
437 virtual bool canContainRangeEndPoint() const override { return true; } 438 virtual bool canContainRangeEndPoint() const override { return true; }
438 439
439 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched 440 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched
440 // to event listeners, and prevents DOMActivate events from being sent at al l. 441 // to event listeners, and prevents DOMActivate events from being sent at al l.
441 virtual bool isDisabledFormControl() const { return false; } 442 virtual bool isDisabledFormControl() const { return false; }
442 443
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 853 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
853 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 854 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
854 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 855 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
855 { \ 856 { \
856 return adoptRefWillBeNoop(new T(tagName, document)); \ 857 return adoptRefWillBeNoop(new T(tagName, document)); \
857 } 858 }
858 859
859 } // namespace 860 } // namespace
860 861
861 #endif // Element_h 862 #endif // Element_h
OLDNEW
« no previous file with comments | « Source/core/css/resolver/SharedStyleFinder.cpp ('k') | Source/core/html/HTMLFormControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698