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

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

Issue 15027005: [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: Integrates all feedback. One of the tests causes an ASSERT in ContentShell because of Region Ranges. Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * Copyright (C) 2011 Google Inc. All rights reserved. 7 * Copyright (C) 2011 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 RenderObject* previousRenderer() const; 61 RenderObject* previousRenderer() const;
62 InsertionPoint* insertionPoint() const; 62 InsertionPoint* insertionPoint() const;
63 63
64 const RenderStyle* style() const; 64 const RenderStyle* style() const;
65 65
66 bool isOnUpperEncapsulationBoundary() const; 66 bool isOnUpperEncapsulationBoundary() const;
67 bool isOnEncapsulationBoundary() const; 67 bool isOnEncapsulationBoundary() const;
68 68
69 private: 69 private:
70 bool shouldCreateRenderer() const; 70 bool shouldCreateRenderer() const;
71 bool shouldMoveToFlowThread() const;
72 void moveToFlowThread();
71 void moveToFlowThreadIfNeeded(); 73 void moveToFlowThreadIfNeeded();
74 PassRefPtr<RenderStyle> getStyleForRenderer() const;
esprehn 2013/06/17 21:41:02 styleForRenderer(). Methods shouldn't be prefixed
72 75
73 Node* m_node; 76 Node* m_node;
74 ContainerNode* m_renderingParent; 77 ContainerNode* m_renderingParent;
75 NodeRenderingTraversal::ParentDetails m_parentDetails; 78 NodeRenderingTraversal::ParentDetails m_parentDetails;
76 RefPtr<RenderStyle> m_style; 79 mutable RefPtr<RenderStyle> m_style; // Cache of node's styleForRenderer.
77 RenderNamedFlowThread* m_parentFlowRenderer; 80 RenderNamedFlowThread* m_parentFlowRenderer;
78 AtomicString m_flowThread;
79 }; 81 };
80 82
81 inline Node* NodeRenderingContext::node() const 83 inline Node* NodeRenderingContext::node() const
82 { 84 {
83 return m_node; 85 return m_node;
84 } 86 }
85 87
86 inline ContainerNode* NodeRenderingContext::parentNodeForRenderingAndStyle() con st 88 inline ContainerNode* NodeRenderingContext::parentNodeForRenderingAndStyle() con st
87 { 89 {
88 return m_renderingParent; 90 return m_renderingParent;
(...skipping 10 matching lines...) Expand all
99 } 101 }
100 102
101 inline InsertionPoint* NodeRenderingContext::insertionPoint() const 103 inline InsertionPoint* NodeRenderingContext::insertionPoint() const
102 { 104 {
103 return m_parentDetails.insertionPoint(); 105 return m_parentDetails.insertionPoint();
104 } 106 }
105 107
106 } // namespace WebCore 108 } // namespace WebCore
107 109
108 #endif 110 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698