summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/dom/PseudoElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/dom/PseudoElement.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/dom/PseudoElement.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/chromium/third_party/WebKit/Source/core/dom/PseudoElement.h b/chromium/third_party/WebKit/Source/core/dom/PseudoElement.h
index 6f109333e08..184eb9c537b 100644
--- a/chromium/third_party/WebKit/Source/core/dom/PseudoElement.h
+++ b/chromium/third_party/WebKit/Source/core/dom/PseudoElement.h
@@ -29,25 +29,20 @@
#include "core/dom/Element.h"
#include "core/rendering/style/RenderStyle.h"
-#include "wtf/Forward.h"
namespace WebCore {
class PseudoElement FINAL : public Element {
public:
- static PassRefPtr<PseudoElement> create(Element* parent, PseudoId pseudoId)
+ static PassRefPtrWillBeRawPtr<PseudoElement> create(Element* parent, PseudoId pseudoId)
{
- return adoptRef(new PseudoElement(parent, pseudoId));
+ return adoptRefWillBeNoop(new PseudoElement(parent, pseudoId));
}
virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE;
- // As per http://dev.w3.org/csswg/css3-regions/#flow-into, pseudo-elements such as ::first-line, ::first-letter, ::before or ::after
- // cannot be directly collected into a named flow.
- virtual bool shouldMoveToFlowThread(RenderStyle*) const OVERRIDE { return false; }
-
virtual bool canStartSelection() const OVERRIDE { return false; }
virtual bool canContainRangeEndPoint() const OVERRIDE { return false; }
@@ -68,10 +63,10 @@ const QualifiedName& pseudoElementTagName();
inline bool pseudoElementRendererIsNeeded(const RenderStyle* style)
{
- return style && style->display() != NONE && (style->styleType() == BACKDROP || style->contentData() || style->hasFlowFrom());
+ return style && style->display() != NONE && (style->styleType() == BACKDROP || style->contentData());
}
-DEFINE_NODE_TYPE_CASTS(PseudoElement, isPseudoElement());
+DEFINE_ELEMENT_TYPE_CASTS(PseudoElement, isPseudoElement());
} // namespace