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

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

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

Powered by Google App Engine
This is Rietveld 408576698