OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2015 Google Inc. All rights reserved. | 2 * Copyright (C) 2015 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 clearDistribution(); | 210 clearDistribution(); |
211 | 211 |
212 if (root == insertionPoint->treeScope().rootNode()) | 212 if (root == insertionPoint->treeScope().rootNode()) |
213 root->didRemoveSlot(); | 213 root->didRemoveSlot(); |
214 | 214 |
215 HTMLElement::removedFrom(insertionPoint); | 215 HTMLElement::removedFrom(insertionPoint); |
216 } | 216 } |
217 | 217 |
218 void HTMLSlotElement::willRecalcStyle(StyleRecalcChange change) | 218 void HTMLSlotElement::willRecalcStyle(StyleRecalcChange change) |
219 { | 219 { |
220 if (change < Inherit && styleChangeType() < SubtreeStyleChange) | 220 if (change < Inherit && getStyleChangeType() < SubtreeStyleChange) |
221 return; | 221 return; |
222 | 222 |
223 for (auto& node : m_distributedNodes) | 223 for (auto& node : m_distributedNodes) |
224 node->setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing:
:create(StyleChangeReason::PropagateInheritChangeToDistributedNodes)); | 224 node->setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing:
:create(StyleChangeReason::PropagateInheritChangeToDistributedNodes)); |
225 } | 225 } |
226 | 226 |
227 void HTMLSlotElement::updateDistributedNodesWithFallback() | 227 void HTMLSlotElement::updateDistributedNodesWithFallback() |
228 { | 228 { |
229 if (!m_distributedNodes.isEmpty()) | 229 if (!m_distributedNodes.isEmpty()) |
230 return; | 230 return; |
(...skipping 24 matching lines...) Expand all Loading... |
255 #if ENABLE(OILPAN) | 255 #if ENABLE(OILPAN) |
256 visitor->trace(m_assignedNodes); | 256 visitor->trace(m_assignedNodes); |
257 visitor->trace(m_distributedNodes); | 257 visitor->trace(m_distributedNodes); |
258 visitor->trace(m_distributedIndices); | 258 visitor->trace(m_distributedIndices); |
259 visitor->trace(m_oldDistributedNodes); | 259 visitor->trace(m_oldDistributedNodes); |
260 #endif | 260 #endif |
261 HTMLElement::trace(visitor); | 261 HTMLElement::trace(visitor); |
262 } | 262 } |
263 | 263 |
264 } // namespace blink | 264 } // namespace blink |
OLD | NEW |