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

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

Issue 2888203006: Move the logic to retrieve the WebPluginContainer to LocalFrame and Node. (Closed)
Patch Set: Ensure we have a valid PluginView before using it. Created 3 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
7 * (http://www.torchmobile.com/) 7 * (http://www.torchmobile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 class LayoutObject; 67 class LayoutObject;
68 class ComputedStyle; 68 class ComputedStyle;
69 class SVGQualifiedName; 69 class SVGQualifiedName;
70 class ShadowRoot; 70 class ShadowRoot;
71 template <typename NodeType> 71 template <typename NodeType>
72 class StaticNodeTypeList; 72 class StaticNodeTypeList;
73 using StaticNodeList = StaticNodeTypeList<Node>; 73 using StaticNodeList = StaticNodeTypeList<Node>;
74 class StyleChangeReasonForTracing; 74 class StyleChangeReasonForTracing;
75 class Text; 75 class Text;
76 class WebMouseEvent; 76 class WebMouseEvent;
77 class WebPluginContainerBase;
77 78
78 const int kNodeStyleChangeShift = 18; 79 const int kNodeStyleChangeShift = 18;
79 const int kNodeCustomElementShift = 20; 80 const int kNodeCustomElementShift = 20;
80 81
81 enum StyleChangeType { 82 enum StyleChangeType {
82 kNoStyleChange = 0, 83 kNoStyleChange = 0,
83 kLocalStyleChange = 1 << kNodeStyleChangeShift, 84 kLocalStyleChange = 1 << kNodeStyleChangeShift,
84 kSubtreeStyleChange = 2 << kNodeStyleChangeShift, 85 kSubtreeStyleChange = 2 << kNodeStyleChangeShift,
85 kNeedsReattachStyleChange = 3 << kNodeStyleChangeShift, 86 kNeedsReattachStyleChange = 3 << kNodeStyleChangeShift,
86 }; 87 };
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 } 823 }
823 824
824 void CheckSlotChange(SlotChangeType); 825 void CheckSlotChange(SlotChangeType);
825 void CheckSlotChangeAfterInserted() { 826 void CheckSlotChangeAfterInserted() {
826 CheckSlotChange(SlotChangeType::kInitial); 827 CheckSlotChange(SlotChangeType::kInitial);
827 } 828 }
828 void CheckSlotChangeBeforeRemoved() { 829 void CheckSlotChangeBeforeRemoved() {
829 CheckSlotChange(SlotChangeType::kInitial); 830 CheckSlotChange(SlotChangeType::kInitial);
830 } 831 }
831 832
833 // If the node is a plugin, then this returns its WebPluginContainerBase.
834 WebPluginContainerBase* GetWebPluginContainerBase() const;
835
832 DECLARE_VIRTUAL_TRACE(); 836 DECLARE_VIRTUAL_TRACE();
833 837
834 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 838 DECLARE_VIRTUAL_TRACE_WRAPPERS();
835 839
836 private: 840 private:
837 enum NodeFlags { 841 enum NodeFlags {
838 kHasRareDataFlag = 1, 842 kHasRareDataFlag = 1,
839 843
840 // Node type flags. These never change once created. 844 // Node type flags. These never change once created.
841 kIsTextFlag = 1 << 1, 845 kIsTextFlag = 1 << 1,
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 } // namespace blink 1052 } // namespace blink
1049 1053
1050 #ifndef NDEBUG 1054 #ifndef NDEBUG
1051 // Outside the WebCore namespace for ease of invocation from gdb. 1055 // Outside the WebCore namespace for ease of invocation from gdb.
1052 void showNode(const blink::Node*); 1056 void showNode(const blink::Node*);
1053 void showTree(const blink::Node*); 1057 void showTree(const blink::Node*);
1054 void showNodePath(const blink::Node*); 1058 void showNodePath(const blink::Node*);
1055 #endif 1059 #endif
1056 1060
1057 #endif // Node_h 1061 #endif // Node_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698