| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 #include "bindings/core/v8/Microtask.h" | 33 #include "bindings/core/v8/Microtask.h" |
| 34 #include "core/HTMLNames.h" | 34 #include "core/HTMLNames.h" |
| 35 #include "core/dom/NodeTraversal.h" | 35 #include "core/dom/NodeTraversal.h" |
| 36 #include "core/dom/StyleChangeReason.h" | 36 #include "core/dom/StyleChangeReason.h" |
| 37 #include "core/dom/StyleEngine.h" | 37 #include "core/dom/StyleEngine.h" |
| 38 #include "core/dom/shadow/ElementShadow.h" | 38 #include "core/dom/shadow/ElementShadow.h" |
| 39 #include "core/dom/shadow/InsertionPoint.h" | 39 #include "core/dom/shadow/InsertionPoint.h" |
| 40 #include "core/dom/shadow/SlotAssignment.h" | 40 #include "core/dom/shadow/SlotAssignment.h" |
| 41 #include "core/events/Event.h" | 41 #include "core/events/Event.h" |
| 42 #include "core/frame/UseCounter.h" |
| 42 #include "core/html/AssignedNodesOptions.h" | 43 #include "core/html/AssignedNodesOptions.h" |
| 43 #include "core/probe/CoreProbes.h" | 44 #include "core/probe/CoreProbes.h" |
| 44 | 45 |
| 45 namespace blink { | 46 namespace blink { |
| 46 | 47 |
| 47 using namespace HTMLNames; | 48 using namespace HTMLNames; |
| 48 | 49 |
| 49 inline HTMLSlotElement::HTMLSlotElement(Document& document) | 50 inline HTMLSlotElement::HTMLSlotElement(Document& document) |
| 50 : HTMLElement(slotTag, document) { | 51 : HTMLElement(slotTag, document) { |
| 52 UseCounter::count(document, UseCounter::HTMLSlotElement); |
| 51 setHasCustomStyleCallbacks(); | 53 setHasCustomStyleCallbacks(); |
| 52 } | 54 } |
| 53 | 55 |
| 54 DEFINE_NODE_FACTORY(HTMLSlotElement); | 56 DEFINE_NODE_FACTORY(HTMLSlotElement); |
| 55 | 57 |
| 56 // static | 58 // static |
| 57 AtomicString HTMLSlotElement::normalizeSlotName(const AtomicString& name) { | 59 AtomicString HTMLSlotElement::normalizeSlotName(const AtomicString& name) { |
| 58 return (name.isNull() || name.isEmpty()) ? emptyAtom : name; | 60 return (name.isNull() || name.isEmpty()) ? emptyAtom : name; |
| 59 } | 61 } |
| 60 | 62 |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 360 |
| 359 DEFINE_TRACE(HTMLSlotElement) { | 361 DEFINE_TRACE(HTMLSlotElement) { |
| 360 visitor->trace(m_assignedNodes); | 362 visitor->trace(m_assignedNodes); |
| 361 visitor->trace(m_distributedNodes); | 363 visitor->trace(m_distributedNodes); |
| 362 visitor->trace(m_oldDistributedNodes); | 364 visitor->trace(m_oldDistributedNodes); |
| 363 visitor->trace(m_distributedIndices); | 365 visitor->trace(m_distributedIndices); |
| 364 HTMLElement::trace(visitor); | 366 HTMLElement::trace(visitor); |
| 365 } | 367 } |
| 366 | 368 |
| 367 } // namespace blink | 369 } // namespace blink |
| OLD | NEW |