+2012-02-23 Shinya Kawanaka <shinyak@chromium.org>
+
+ NodeRenderingContext should have ShadowRootList instead of ShadowRoot.
+ https://bugs.webkit.org/show_bug.cgi?id=79079
+
+ Reviewed by Dimitri Glazkov.
+
+ Apparently NodeRenderingContext should have ShadowRootList instead of ShadowRoot.
+ This patch changes it.
+
+ No new tests. Simple refactoring.
+
+ * dom/NodeRenderingContext.cpp:
+ (WebCore::NodeRenderingContext::NodeRenderingContext):
+ (WebCore::NodeRenderingContext::hostChildrenChanged):
+ (WebCore::NodeRenderingContext::shouldCreateRenderer):
+ * dom/NodeRenderingContext.h:
+ (WebCore):
+
2012-02-23 Ian Vollick <vollick@chromium.org>
[chromium] Implement keyframed animations for the cc thread.
: m_phase(AttachingNotInTree)
, m_node(node)
, m_parentNodeForRenderingAndStyle(0)
- , m_visualParentShadowRoot(0)
+ , m_visualParentShadowRootList(0)
, m_insertionPoint(0)
, m_style(0)
, m_parentFlowRenderer(0)
}
if (parent->isElementNode()) {
- if (toElement(parent)->hasShadowRoot())
- m_visualParentShadowRoot = toElement(parent)->shadowRootList()->youngestShadowRoot();
-
- if (m_visualParentShadowRoot) {
- ShadowRootList* shadowRootList = m_visualParentShadowRoot->host()->shadowRootList();
- if ((m_insertionPoint = shadowRootList->insertionPointFor(m_node))
- && shadowRootList->isSelectorActive()) {
+ if (toElement(parent)->hasShadowRoot()) {
+ m_visualParentShadowRootList = toElement(parent)->shadowRootList();
+ if ((m_insertionPoint = m_visualParentShadowRootList->insertionPointFor(m_node))
+ && m_visualParentShadowRootList->isSelectorActive()) {
m_phase = AttachingDistributed;
m_parentNodeForRenderingAndStyle = NodeRenderingContext(m_insertionPoint).parentNodeForRenderingAndStyle();
return;
: m_phase(Calculating)
, m_node(node)
, m_parentNodeForRenderingAndStyle(0)
- , m_visualParentShadowRoot(0)
+ , m_visualParentShadowRootList(0)
, m_insertionPoint(0)
, m_style(style)
, m_parentFlowRenderer(0)
void NodeRenderingContext::hostChildrenChanged()
{
if (m_phase == AttachingNotDistributed)
- m_visualParentShadowRoot->host()->shadowRootList()->hostChildrenChanged();
+ m_visualParentShadowRootList->hostChildrenChanged();
}
bool NodeRenderingContext::shouldCreateRenderer() const
if (!parentRenderer->canHaveChildren())
return false;
- if (m_visualParentShadowRoot)
+ if (m_visualParentShadowRootList)
return false;
}
class RenderFlowThread;
class RenderObject;
class RenderStyle;
-class ShadowRoot;
+class ShadowRootList;
class NodeRenderingContext {
public:
AttachingPhase m_phase;
Node* m_node;
ContainerNode* m_parentNodeForRenderingAndStyle;
- ShadowRoot* m_visualParentShadowRoot;
+ ShadowRootList* m_visualParentShadowRootList;
InsertionPoint* m_insertionPoint;
RefPtr<RenderStyle> m_style;
RenderFlowThread* m_parentFlowRenderer;