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

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.h

Issue 2306643004: Check the next chain of a slotchange event correctly on a slotchange at a fallback slot (Closed)
Patch Set: Fix a test Created 4 years, 3 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 638
639 StaticNodeList* getDestinationInsertionPoints(); 639 StaticNodeList* getDestinationInsertionPoints();
640 HTMLSlotElement* assignedSlot() const; 640 HTMLSlotElement* assignedSlot() const;
641 HTMLSlotElement* assignedSlotForBinding(); 641 HTMLSlotElement* assignedSlotForBinding();
642 642
643 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); } 643 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); }
644 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } 644 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); }
645 645
646 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); } 646 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); }
647 647
648 void checkSlotChange();
648 void checkSlotChangeAfterInserted() { checkSlotChange(); } 649 void checkSlotChangeAfterInserted() { checkSlotChange(); }
649 void checkSlotChangeBeforeRemoved() { checkSlotChange(); } 650 void checkSlotChangeBeforeRemoved() { checkSlotChange(); }
650 651
651 DECLARE_VIRTUAL_TRACE(); 652 DECLARE_VIRTUAL_TRACE();
652 653
653 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 654 DECLARE_VIRTUAL_TRACE_WRAPPERS();
654 655
655 unsigned lengthOfContents() const; 656 unsigned lengthOfContents() const;
656 657
657 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) override; 658 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) override;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 void setIsFinishedParsingChildren(bool value) { setFlag(value, IsFinishedPar singChildrenFlag); } 763 void setIsFinishedParsingChildren(bool value) { setFlag(value, IsFinishedPar singChildrenFlag); }
763 764
764 private: 765 private:
765 // Gets nodeName without caching AtomicStrings. Used by 766 // Gets nodeName without caching AtomicStrings. Used by
766 // debugName. Compositor may call debugName from the "impl" thread 767 // debugName. Compositor may call debugName from the "impl" thread
767 // during "commit". The main thread is stopped at that time, but 768 // during "commit". The main thread is stopped at that time, but
768 // it is not safe to cache AtomicStrings because those are 769 // it is not safe to cache AtomicStrings because those are
769 // per-thread. 770 // per-thread.
770 virtual String debugNodeName() const; 771 virtual String debugNodeName() const;
771 772
772 void checkSlotChange();
773 773
774 bool isUserActionElementActive() const; 774 bool isUserActionElementActive() const;
775 bool isUserActionElementInActiveChain() const; 775 bool isUserActionElementInActiveChain() const;
776 bool isUserActionElementDragged() const; 776 bool isUserActionElementDragged() const;
777 bool isUserActionElementHovered() const; 777 bool isUserActionElementHovered() const;
778 bool isUserActionElementFocused() const; 778 bool isUserActionElementFocused() const;
779 779
780 void recalcDistribution(); 780 void recalcDistribution();
781 781
782 void setStyleChange(StyleChangeType); 782 void setStyleChange(StyleChangeType);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 } // namespace blink 884 } // namespace blink
885 885
886 #ifndef NDEBUG 886 #ifndef NDEBUG
887 // Outside the WebCore namespace for ease of invocation from gdb. 887 // Outside the WebCore namespace for ease of invocation from gdb.
888 void showNode(const blink::Node*); 888 void showNode(const blink::Node*);
889 void showTree(const blink::Node*); 889 void showTree(const blink::Node*);
890 void showNodePath(const blink::Node*); 890 void showNodePath(const blink::Node*);
891 #endif 891 #endif
892 892
893 #endif // Node_h 893 #endif // Node_h
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/slotchange.html ('k') | third_party/WebKit/Source/core/html/HTMLSlotElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698