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

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

Issue 2739573005: Rename Document::widgetForElement to frameViewBaseForElement (Closed)
Patch Set: Move Document::widgetForElement to Node::frameViewBase Created 3 years, 9 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. 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 18 matching lines...) Expand all
29 #include "bindings/core/v8/ExceptionState.h" 29 #include "bindings/core/v8/ExceptionState.h"
30 #include "bindings/core/v8/NodeOrString.h" 30 #include "bindings/core/v8/NodeOrString.h"
31 #include "bindings/core/v8/TraceWrapperMember.h" 31 #include "bindings/core/v8/TraceWrapperMember.h"
32 #include "core/CoreExport.h" 32 #include "core/CoreExport.h"
33 #include "core/dom/MutationObserver.h" 33 #include "core/dom/MutationObserver.h"
34 #include "core/dom/SimulatedClickOptions.h" 34 #include "core/dom/SimulatedClickOptions.h"
35 #include "core/dom/TreeScope.h" 35 #include "core/dom/TreeScope.h"
36 #include "core/editing/EditingBoundary.h" 36 #include "core/editing/EditingBoundary.h"
37 #include "core/events/EventTarget.h" 37 #include "core/events/EventTarget.h"
38 #include "core/style/ComputedStyleConstants.h" 38 #include "core/style/ComputedStyleConstants.h"
39 #include "platform/FrameViewBase.h"
esprehn 2017/03/10 07:24:32 Node.h is included in nearly every file, so this i
39 #include "platform/geometry/LayoutRect.h" 40 #include "platform/geometry/LayoutRect.h"
40 41
41 // This needs to be here because Element.cpp also depends on it. 42 // This needs to be here because Element.cpp also depends on it.
42 #define DUMP_NODE_STATISTICS 0 43 #define DUMP_NODE_STATISTICS 0
43 44
44 namespace blink { 45 namespace blink {
45 46
46 class ContainerNode; 47 class ContainerNode;
47 class Document; 48 class Document;
48 class Element; 49 class Element;
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 if (hasRareData()) 570 if (hasRareData())
570 m_data.m_rareData->setLayoutObject(layoutObject); 571 m_data.m_rareData->setLayoutObject(layoutObject);
571 else 572 else
572 m_data.m_layoutObject = layoutObject; 573 m_data.m_layoutObject = layoutObject;
573 } 574 }
574 575
575 // Use these two methods with caution. 576 // Use these two methods with caution.
576 LayoutBox* layoutBox() const; 577 LayoutBox* layoutBox() const;
577 LayoutBoxModelObject* layoutBoxModelObject() const; 578 LayoutBoxModelObject* layoutBoxModelObject() const;
578 579
580 FrameViewBase* frameViewBase() const;
581
579 struct AttachContext { 582 struct AttachContext {
580 STACK_ALLOCATED(); 583 STACK_ALLOCATED();
581 ComputedStyle* resolvedStyle = nullptr; 584 ComputedStyle* resolvedStyle = nullptr;
582 bool performingReattach = false; 585 bool performingReattach = false;
583 bool clearInvalidation = false; 586 bool clearInvalidation = false;
584 587
585 AttachContext() {} 588 AttachContext() {}
586 }; 589 };
587 590
588 // Attaches this node to the layout tree. This calculates the style to be 591 // Attaches this node to the layout tree. This calculates the style to be
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 } // namespace blink 1022 } // namespace blink
1020 1023
1021 #ifndef NDEBUG 1024 #ifndef NDEBUG
1022 // Outside the WebCore namespace for ease of invocation from gdb. 1025 // Outside the WebCore namespace for ease of invocation from gdb.
1023 void showNode(const blink::Node*); 1026 void showNode(const blink::Node*);
1024 void showTree(const blink::Node*); 1027 void showTree(const blink::Node*);
1025 void showNodePath(const blink::Node*); 1028 void showNodePath(const blink::Node*);
1026 #endif 1029 #endif
1027 1030
1028 #endif // Node_h 1031 #endif // Node_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698