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

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

Issue 1708213002: Propagate inherited properties into slotted elements on recalc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 Node* distributedNodeNextTo(const Node&) const; 53 Node* distributedNodeNextTo(const Node&) const;
54 Node* distributedNodePreviousTo(const Node&) const; 54 Node* distributedNodePreviousTo(const Node&) const;
55 55
56 void appendAssignedNode(Node&); 56 void appendAssignedNode(Node&);
57 void appendDistributedNode(Node&); 57 void appendDistributedNode(Node&);
58 void appendDistributedNodesFrom(const HTMLSlotElement& other); 58 void appendDistributedNodesFrom(const HTMLSlotElement& other);
59 void clearDistribution(); 59 void clearDistribution();
60 60
61 void updateDistributedNodesWithFallback(); 61 void updateDistributedNodesWithFallback();
62 62
63 void attach(const AttachContext& = AttachContext()) override; 63 void attach(const AttachContext& = AttachContext()) final;
64 void detach(const AttachContext& = AttachContext()) override; 64 void detach(const AttachContext& = AttachContext()) final;
65 65
66 void attributeChanged(const QualifiedName&, const AtomicString& oldValue, co nst AtomicString& newValue, AttributeModificationReason = ModifiedDirectly) over ride; 66 void attributeChanged(const QualifiedName&, const AtomicString& oldValue, co nst AtomicString& newValue, AttributeModificationReason = ModifiedDirectly) fina l;
67 67
68 DECLARE_VIRTUAL_TRACE(); 68 DECLARE_VIRTUAL_TRACE();
69 69
70 private: 70 private:
71 HTMLSlotElement(Document&); 71 HTMLSlotElement(Document&);
72 72
73 void childrenChanged(const ChildrenChange&) override; 73 void childrenChanged(const ChildrenChange&) final;
74 InsertionNotificationRequest insertedInto(ContainerNode*) override; 74 InsertionNotificationRequest insertedInto(ContainerNode*) final;
75 void removedFrom(ContainerNode*) override; 75 void removedFrom(ContainerNode*) final;
76 void willRecalcStyle(StyleRecalcChange) final;
76 77
77 WillBeHeapVector<RefPtrWillBeMember<Node>> m_assignedNodes; 78 WillBeHeapVector<RefPtrWillBeMember<Node>> m_assignedNodes;
78 WillBeHeapVector<RefPtrWillBeMember<Node>> m_distributedNodes; 79 WillBeHeapVector<RefPtrWillBeMember<Node>> m_distributedNodes;
79 WillBeHeapHashMap<RawPtrWillBeMember<const Node>, size_t> m_distributedIndic es; 80 WillBeHeapHashMap<RawPtrWillBeMember<const Node>, size_t> m_distributedIndic es;
80 }; 81 };
81 82
82 } // namespace blink 83 } // namespace blink
83 84
84 #endif // HTMLSlotElement_h 85 #endif // HTMLSlotElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698