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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLSlotElement.cpp

Issue 1738613002: Rename enums/functions that collide in chromium style in core/dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-3
Patch Set: get-names-4: Created 4 years, 9 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) 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698