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

Side by Side Diff: Source/core/dom/TreeScope.cpp

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All Rights Reserved. 2 * Copyright (C) 2011 Google Inc. All Rights Reserved.
3 * Copyright (C) 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 { 559 {
560 for (Element* element = ElementTraversal::firstWithin(rootNode()); element; element = ElementTraversal::nextIncludingPseudo(*element)) { 560 for (Element* element = ElementTraversal::firstWithin(rootNode()); element; element = ElementTraversal::nextIncludingPseudo(*element)) {
561 for (ShadowRoot* root = element->youngestShadowRoot(); root; root = root ->olderShadowRoot()) 561 for (ShadowRoot* root = element->youngestShadowRoot(); root; root = root ->olderShadowRoot())
562 root->setNeedsStyleRecalcForViewportUnits(); 562 root->setNeedsStyleRecalcForViewportUnits();
563 LayoutStyle* style = element->layoutStyle(); 563 LayoutStyle* style = element->layoutStyle();
564 if (style && style->hasViewportUnits()) 564 if (style && style->hasViewportUnits())
565 element->setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForT racing::create(StyleChangeReason::ViewportUnits)); 565 element->setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForT racing::create(StyleChangeReason::ViewportUnits));
566 } 566 }
567 } 567 }
568 568
569 void TreeScope::trace(Visitor* visitor) 569 DEFINE_TRACE(TreeScope)
570 { 570 {
571 visitor->trace(m_rootNode); 571 visitor->trace(m_rootNode);
572 visitor->trace(m_document); 572 visitor->trace(m_document);
573 visitor->trace(m_parentTreeScope); 573 visitor->trace(m_parentTreeScope);
574 visitor->trace(m_idTargetObserverRegistry); 574 visitor->trace(m_idTargetObserverRegistry);
575 visitor->trace(m_selection); 575 visitor->trace(m_selection);
576 visitor->trace(m_elementsById); 576 visitor->trace(m_elementsById);
577 visitor->trace(m_imageMapsByName); 577 visitor->trace(m_imageMapsByName);
578 visitor->trace(m_labelsByForAttribute); 578 visitor->trace(m_labelsByForAttribute);
579 visitor->trace(m_scopedStyleResolver); 579 visitor->trace(m_scopedStyleResolver);
580 } 580 }
581 581
582 } // namespace blink 582 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698