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