OLD | NEW |
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 Loading... |
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 |
OLD | NEW |