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

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: Incorporated Julien Chaffraix's feedback to avoid a style resolution for all. Created 7 years, 7 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 RenderObject* previousRenderer() const; 60 RenderObject* previousRenderer() const;
61 InsertionPoint* insertionPoint() const; 61 InsertionPoint* insertionPoint() const;
62 62
63 const RenderStyle* style() const; 63 const RenderStyle* style() const;
64 64
65 bool isOnUpperEncapsulationBoundary() const; 65 bool isOnUpperEncapsulationBoundary() const;
66 bool isOnEncapsulationBoundary() const; 66 bool isOnEncapsulationBoundary() const;
67 67
68 private: 68 private:
69 bool shouldCreateRenderer() const; 69 bool shouldCreateRenderer() const;
70 bool shouldMoveToFlowThread() const;
71 void moveToFlowThread();
70 void moveToFlowThreadIfNeeded(); 72 void moveToFlowThreadIfNeeded();
71 73
72 Node* m_node; 74 Node* m_node;
73 ContainerNode* m_renderingParent; 75 ContainerNode* m_renderingParent;
74 NodeRenderingTraversal::ParentDetails m_parentDetails; 76 NodeRenderingTraversal::ParentDetails m_parentDetails;
75 RefPtr<RenderStyle> m_style; 77 mutable RefPtr<RenderStyle> m_style; // Cache of node's styleForRenderer.
76 RenderNamedFlowThread* m_parentFlowRenderer; 78 RenderNamedFlowThread* m_parentFlowRenderer;
77 AtomicString m_flowThread;
78 }; 79 };
79 80
80 inline Node* NodeRenderingContext::node() const 81 inline Node* NodeRenderingContext::node() const
81 { 82 {
82 return m_node; 83 return m_node;
83 } 84 }
84 85
85 inline ContainerNode* NodeRenderingContext::parentNodeForRenderingAndStyle() con st 86 inline ContainerNode* NodeRenderingContext::parentNodeForRenderingAndStyle() con st
86 { 87 {
87 return m_renderingParent; 88 return m_renderingParent;
(...skipping 10 matching lines...) Expand all
98 } 99 }
99 100
100 inline InsertionPoint* NodeRenderingContext::insertionPoint() const 101 inline InsertionPoint* NodeRenderingContext::insertionPoint() const
101 { 102 {
102 return m_parentDetails.insertionPoint(); 103 return m_parentDetails.insertionPoint();
103 } 104 }
104 105
105 } // namespace WebCore 106 } // namespace WebCore
106 107
107 #endif 108 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698