OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MarkerPseudoElement_h |
| 6 #define MarkerPseudoElement_h |
| 7 |
| 8 #include "core/dom/PseudoElement.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class RenderBlockFlow; |
| 13 class RenderListMarker; |
| 14 |
| 15 class MarkerPseudoElement final : public PseudoElement { |
| 16 WTF_MAKE_NONCOPYABLE(MarkerPseudoElement); |
| 17 public: |
| 18 static PassRefPtrWillBeRawPtr<MarkerPseudoElement> create(Element* parent) |
| 19 { |
| 20 return adoptRefWillBeNoop(new MarkerPseudoElement(parent)); |
| 21 } |
| 22 |
| 23 virtual ~MarkerPseudoElement(); |
| 24 |
| 25 virtual void attach(const AttachContext& = AttachContext()) override; |
| 26 virtual RenderObject* createRenderer(RenderStyle* style) override; |
| 27 |
| 28 // FIXME: Make these private and file static when old code is removed. |
| 29 static RenderObject* getParentOfFirstLineBox(RenderBlockFlow* curr, const Re
nderObject* marker); |
| 30 static RenderObject* firstNonMarkerChild(RenderObject* parent); |
| 31 |
| 32 private: |
| 33 explicit MarkerPseudoElement(Element*); |
| 34 |
| 35 virtual void didRecalcStyle(StyleRecalcChange) override; |
| 36 |
| 37 void attachListMarkerRenderer(); |
| 38 }; |
| 39 |
| 40 DEFINE_ELEMENT_TYPE_CASTS(MarkerPseudoElement, isMarkerPseudoElement()); |
| 41 |
| 42 } // namespace blink |
| 43 |
| 44 #endif // MarkerPseudoElement_h |
OLD | NEW |