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

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

Issue 324073002: Oilpan: Switch RefCountedGarbageCollected to GarbageCollectedFinalized for Node. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and update Node base class list Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ProcessingInstruction.cpp ('k') | Source/core/dom/StyleEngine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 18 matching lines...) Expand all
29 29
30 #include "core/dom/Element.h" 30 #include "core/dom/Element.h"
31 #include "core/rendering/style/RenderStyle.h" 31 #include "core/rendering/style/RenderStyle.h"
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 class PseudoElement FINAL : public Element { 35 class PseudoElement FINAL : public Element {
36 public: 36 public:
37 static PassRefPtrWillBeRawPtr<PseudoElement> create(Element* parent, PseudoI d pseudoId) 37 static PassRefPtrWillBeRawPtr<PseudoElement> create(Element* parent, PseudoI d pseudoId)
38 { 38 {
39 return adoptRefWillBeRefCountedGarbageCollected(new PseudoElement(parent , pseudoId)); 39 return adoptRefWillBeNoop(new PseudoElement(parent, pseudoId));
40 } 40 }
41 41
42 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; 42 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
43 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 43 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
44 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; 44 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE;
45 45
46 virtual bool canStartSelection() const OVERRIDE { return false; } 46 virtual bool canStartSelection() const OVERRIDE { return false; }
47 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } 47 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; }
48 48
49 static String pseudoElementNameForEvents(PseudoId); 49 static String pseudoElementNameForEvents(PseudoId);
(...skipping 14 matching lines...) Expand all
64 inline bool pseudoElementRendererIsNeeded(const RenderStyle* style) 64 inline bool pseudoElementRendererIsNeeded(const RenderStyle* style)
65 { 65 {
66 return style && style->display() != NONE && (style->styleType() == BACKDROP || style->contentData()); 66 return style && style->display() != NONE && (style->styleType() == BACKDROP || style->contentData());
67 } 67 }
68 68
69 DEFINE_ELEMENT_TYPE_CASTS(PseudoElement, isPseudoElement()); 69 DEFINE_ELEMENT_TYPE_CASTS(PseudoElement, isPseudoElement());
70 70
71 } // namespace 71 } // namespace
72 72
73 #endif 73 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ProcessingInstruction.cpp ('k') | Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698