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

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

Issue 18080016: [CSS Regions] Elements in a region should be assignable to a named flow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed failing test (fullscreen issue), added SVG test Created 7 years, 5 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
« no previous file with comments | « Source/core/dom/NodeRenderingContext.cpp ('k') | Source/core/rendering/FlowThreadController.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 27 matching lines...) Expand all
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 ~PseudoElement(); 42 ~PseudoElement();
43 43
44 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; 44 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
45 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 45 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
46 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE; 46 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE;
47 47
48 // As per http://dev.w3.org/csswg/css3-regions/#flow-into, pseudo-elements s uch as ::first-line, ::first-letter, ::before or ::after
49 // cannot be directly collected into a named flow.
50 virtual bool shouldMoveToFlowThread(RenderStyle*) const OVERRIDE { return fa lse; }
51
48 virtual bool canStartSelection() const OVERRIDE { return false; } 52 virtual bool canStartSelection() const OVERRIDE { return false; }
49 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } 53 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; }
50 54
51 static String pseudoElementNameForEvents(PseudoId); 55 static String pseudoElementNameForEvents(PseudoId);
52 56
53 private: 57 private:
54 PseudoElement(Element*, PseudoId); 58 PseudoElement(Element*, PseudoId);
55 59
56 virtual void didRecalcStyle(StyleChange) OVERRIDE; 60 virtual void didRecalcStyle(StyleChange) OVERRIDE;
57 virtual PseudoId customPseudoId() const OVERRIDE { return m_pseudoId; } 61 virtual PseudoId customPseudoId() const OVERRIDE { return m_pseudoId; }
58 62
59 PseudoId m_pseudoId; 63 PseudoId m_pseudoId;
60 }; 64 };
61 65
62 const QualifiedName& pseudoElementTagName(); 66 const QualifiedName& pseudoElementTagName();
63 67
64 inline bool pseudoElementRendererIsNeeded(const RenderStyle* style) 68 inline bool pseudoElementRendererIsNeeded(const RenderStyle* style)
65 { 69 {
66 return style && style->display() != NONE && (style->contentData() || !style- >regionThread().isEmpty()); 70 return style && style->display() != NONE && (style->contentData() || !style- >regionThread().isEmpty());
67 } 71 }
68 72
69 } // namespace 73 } // namespace
70 74
71 #endif 75 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/NodeRenderingContext.cpp ('k') | Source/core/rendering/FlowThreadController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698