| OLD | NEW | 
|---|
| 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 23 matching lines...) Expand all  Loading... | 
| 34 namespace WebCore { | 34 namespace WebCore { | 
| 35 | 35 | 
| 36 class PseudoElement FINAL : public Element { | 36 class PseudoElement FINAL : public Element { | 
| 37 public: | 37 public: | 
| 38     static PassRefPtr<PseudoElement> create(Element* parent, PseudoId pseudoId) | 38     static PassRefPtr<PseudoElement> create(Element* parent, PseudoId pseudoId) | 
| 39     { | 39     { | 
| 40         return adoptRef(new PseudoElement(parent, pseudoId)); | 40         return adoptRef(new PseudoElement(parent, pseudoId)); | 
| 41     } | 41     } | 
| 42 | 42 | 
| 43     virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; | 43     virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; | 
| 44     virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 44     virtual void createRenderTree(const AttachContext& = AttachContext()) OVERRI
    DE; | 
| 45     virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; | 45     virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; | 
| 46 | 46 | 
| 47     // As per http://dev.w3.org/csswg/css3-regions/#flow-into, pseudo-elements s
    uch as ::first-line, ::first-letter, ::before or ::after | 47     // As per http://dev.w3.org/csswg/css3-regions/#flow-into, pseudo-elements s
    uch as ::first-line, ::first-letter, ::before or ::after | 
| 48     // cannot be directly collected into a named flow. | 48     // cannot be directly collected into a named flow. | 
| 49     virtual bool shouldMoveToFlowThread(RenderStyle*) const OVERRIDE { return fa
    lse; } | 49     virtual bool shouldMoveToFlowThread(RenderStyle*) const OVERRIDE { return fa
    lse; } | 
| 50 | 50 | 
| 51     virtual bool canStartSelection() const OVERRIDE { return false; } | 51     virtual bool canStartSelection() const OVERRIDE { return false; } | 
| 52     virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } | 52     virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } | 
| 53 | 53 | 
| 54     static String pseudoElementNameForEvents(PseudoId); | 54     static String pseudoElementNameForEvents(PseudoId); | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
| 80     ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isPseudoElement()); | 80     ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isPseudoElement()); | 
| 81     return static_cast<const PseudoElement*>(node); | 81     return static_cast<const PseudoElement*>(node); | 
| 82 } | 82 } | 
| 83 | 83 | 
| 84 // This will catch anyone doing an unnecessary cast. | 84 // This will catch anyone doing an unnecessary cast. | 
| 85 void toPseudoElement(const PseudoElement*); | 85 void toPseudoElement(const PseudoElement*); | 
| 86 | 86 | 
| 87 } // namespace | 87 } // namespace | 
| 88 | 88 | 
| 89 #endif | 89 #endif | 
| OLD | NEW | 
|---|