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

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

Issue 1876383003: Introduce infrastructure for tracing ScriptWrappables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate Haraken's wonderful comments Created 4 years, 8 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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 HTMLSlotElement* assignedSlot() const; 676 HTMLSlotElement* assignedSlot() const;
677 HTMLSlotElement* assignedSlotForBinding(); 677 HTMLSlotElement* assignedSlotForBinding();
678 678
679 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); } 679 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl ag); }
680 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } 680 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); }
681 681
682 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); } 682 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi ldrenFlag); }
683 683
684 DECLARE_VIRTUAL_TRACE(); 684 DECLARE_VIRTUAL_TRACE();
685 685
686 OVERRIDE_TRACE_WRAPPERS();
687
686 unsigned lengthOfContents() const; 688 unsigned lengthOfContents() const;
687 689
688 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) override; 690 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) override;
689 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn fo*, v8::Local<v8::Object> wrapper) override WARN_UNUSED_RETURN; 691 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn fo*, v8::Local<v8::Object> wrapper) override WARN_UNUSED_RETURN;
690 692
691 private: 693 private:
692 enum NodeFlags { 694 enum NodeFlags {
693 HasRareDataFlag = 1, 695 HasRareDataFlag = 1,
694 696
695 // Node type flags. These never change once created. 697 // Node type flags. These never change once created.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 771
770 static void reattachWhitespaceSiblingsIfNeeded(Text* start); 772 static void reattachWhitespaceSiblingsIfNeeded(Text* start);
771 773
772 #if !ENABLE(OILPAN) 774 #if !ENABLE(OILPAN)
773 void willBeDeletedFromDocument(); 775 void willBeDeletedFromDocument();
774 #endif 776 #endif
775 777
776 bool hasRareData() const { return getFlag(HasRareDataFlag); } 778 bool hasRareData() const { return getFlag(HasRareDataFlag); }
777 779
778 NodeRareData* rareData() const; 780 NodeRareData* rareData() const;
781 NodeRareData* maybeRareData() const;
779 NodeRareData& ensureRareData(); 782 NodeRareData& ensureRareData();
780 #if !ENABLE(OILPAN) 783 #if !ENABLE(OILPAN)
781 void clearRareData(); 784 void clearRareData();
782 785
783 void clearEventTargetData(); 786 void clearEventTargetData();
784 #endif 787 #endif
785 788
786 void setHasCustomStyleCallbacks() { setFlag(true, HasCustomStyleCallbacksFla g); } 789 void setHasCustomStyleCallbacks() { setFlag(true, HasCustomStyleCallbacksFla g); }
787 790
788 void setTreeScope(TreeScope* scope) { m_treeScope = scope; } 791 void setTreeScope(TreeScope* scope) { m_treeScope = scope; }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 } // namespace blink 933 } // namespace blink
931 934
932 #ifndef NDEBUG 935 #ifndef NDEBUG
933 // Outside the WebCore namespace for ease of invocation from gdb. 936 // Outside the WebCore namespace for ease of invocation from gdb.
934 void showNode(const blink::Node*); 937 void showNode(const blink::Node*);
935 void showTree(const blink::Node*); 938 void showTree(const blink::Node*);
936 void showNodePath(const blink::Node*); 939 void showNodePath(const blink::Node*);
937 #endif 940 #endif
938 941
939 #endif // Node_h 942 #endif // Node_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698