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

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

Issue 2727853002: [css-display] Support display: contents pseudo-elements.
Patch Set: [css-display] Support display: contents pseudos. Created 3 years, 8 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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 void beginParsingChildren() { setIsFinishedParsingChildren(false); } 625 void beginParsingChildren() { setIsFinishedParsingChildren(false); }
626 626
627 PseudoElement* pseudoElement(PseudoId) const; 627 PseudoElement* pseudoElement(PseudoId) const;
628 LayoutObject* pseudoElementLayoutObject(PseudoId) const; 628 LayoutObject* pseudoElementLayoutObject(PseudoId) const;
629 629
630 ComputedStyle* pseudoStyle(const PseudoStyleRequest&, 630 ComputedStyle* pseudoStyle(const PseudoStyleRequest&,
631 const ComputedStyle* parentStyle = nullptr); 631 const ComputedStyle* parentStyle = nullptr);
632 PassRefPtr<ComputedStyle> getUncachedPseudoStyle( 632 PassRefPtr<ComputedStyle> getUncachedPseudoStyle(
633 const PseudoStyleRequest&, 633 const PseudoStyleRequest&,
634 const ComputedStyle* parentStyle = nullptr); 634 const ComputedStyle* parentStyle = nullptr);
635 bool canHaveGeneratedPseudo(PseudoId) const;
635 636
636 virtual bool matchesDefaultPseudoClass() const { return false; } 637 virtual bool matchesDefaultPseudoClass() const { return false; }
637 virtual bool matchesEnabledPseudoClass() const { return false; } 638 virtual bool matchesEnabledPseudoClass() const { return false; }
638 virtual bool matchesReadOnlyPseudoClass() const { return false; } 639 virtual bool matchesReadOnlyPseudoClass() const { return false; }
639 virtual bool matchesReadWritePseudoClass() const { return false; } 640 virtual bool matchesReadWritePseudoClass() const { return false; }
640 virtual bool matchesValidityPseudoClasses() const { return false; } 641 virtual bool matchesValidityPseudoClasses() const { return false; }
641 642
642 // https://dom.spec.whatwg.org/#dom-element-matches 643 // https://dom.spec.whatwg.org/#dom-element-matches
643 bool matches(const AtomicString& selectors, 644 bool matches(const AtomicString& selectors,
644 ExceptionState& = ASSERT_NO_EXCEPTION); 645 ExceptionState& = ASSERT_NO_EXCEPTION);
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1222 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1222 static T* create(const QualifiedName&, Document&) 1223 static T* create(const QualifiedName&, Document&)
1223 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1224 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1224 T* T::create(const QualifiedName& tagName, Document& document) { \ 1225 T* T::create(const QualifiedName& tagName, Document& document) { \
1225 return new T(tagName, document); \ 1226 return new T(tagName, document); \
1226 } 1227 }
1227 1228
1228 } // namespace blink 1229 } // namespace blink
1229 1230
1230 #endif // Element_h 1231 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698