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

Side by Side Diff: Source/core/dom/shadow/InsertionPoint.cpp

Issue 152623002: Make StyleChange parameter explicit in setNeedsStyleRecalc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/core/dom/shadow/ElementShadow.cpp ('k') | Source/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 } 245 }
246 246
247 HTMLElement::removedFrom(insertionPoint); 247 HTMLElement::removedFrom(insertionPoint);
248 } 248 }
249 249
250 void InsertionPoint::parseAttribute(const QualifiedName& name, const AtomicStrin g& value) 250 void InsertionPoint::parseAttribute(const QualifiedName& name, const AtomicStrin g& value)
251 { 251 {
252 if (name == reset_style_inheritanceAttr) { 252 if (name == reset_style_inheritanceAttr) {
253 if (!inDocument() || !isActive()) 253 if (!inDocument() || !isActive())
254 return; 254 return;
255 containingShadowRoot()->host()->setNeedsStyleRecalc(); 255 containingShadowRoot()->host()->setNeedsStyleRecalc(SubtreeStyleChange);
256 } else 256 } else
257 HTMLElement::parseAttribute(name, value); 257 HTMLElement::parseAttribute(name, value);
258 } 258 }
259 259
260 bool InsertionPoint::resetStyleInheritance() const 260 bool InsertionPoint::resetStyleInheritance() const
261 { 261 {
262 return fastHasAttribute(reset_style_inheritanceAttr); 262 return fastHasAttribute(reset_style_inheritanceAttr);
263 } 263 }
264 264
265 void InsertionPoint::setResetStyleInheritance(bool value) 265 void InsertionPoint::setResetStyleInheritance(bool value)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 if (!insertionPoints) 301 if (!insertionPoints)
302 return; 302 return;
303 for (size_t i = 0; i < insertionPoints->size(); ++i) 303 for (size_t i = 0; i < insertionPoints->size(); ++i)
304 results.append(insertionPoints->at(i).get()); 304 results.append(insertionPoints->at(i).get());
305 ASSERT(current != insertionPoints->last().get()); 305 ASSERT(current != insertionPoints->last().get());
306 current = insertionPoints->last().get(); 306 current = insertionPoints->last().get();
307 } 307 }
308 } 308 }
309 309
310 } // namespace WebCore 310 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/ElementShadow.cpp ('k') | Source/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698