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

Side by Side Diff: Source/core/rendering/HitTestResult.h

Issue 14677012: Made Blink tooltip ShadowDOM-aware (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // The hit-tested point in the coordinates of the innerNode frame, the frame containing innerNode. 74 // The hit-tested point in the coordinates of the innerNode frame, the frame containing innerNode.
75 const LayoutPoint& pointInInnerNodeFrame() const { return m_pointInInnerNode Frame; } 75 const LayoutPoint& pointInInnerNodeFrame() const { return m_pointInInnerNode Frame; }
76 IntPoint roundedPointInInnerNodeFrame() const { return roundedIntPoint(point InInnerNodeFrame()); } 76 IntPoint roundedPointInInnerNodeFrame() const { return roundedIntPoint(point InInnerNodeFrame()); }
77 Frame* innerNodeFrame() const; 77 Frame* innerNodeFrame() const;
78 78
79 // The hit-tested point in the coordinates of the inner node. 79 // The hit-tested point in the coordinates of the inner node.
80 const LayoutPoint& localPoint() const { return m_localPoint; } 80 const LayoutPoint& localPoint() const { return m_localPoint; }
81 void setLocalPoint(const LayoutPoint& p) { m_localPoint = p; } 81 void setLocalPoint(const LayoutPoint& p) { m_localPoint = p; }
82 82
83 void setToNonShadowAncestor(); 83 void setToNodesInDocumentTreeScope();
84 void setToShadowHostIfInUserAgentShadowRoot();
84 85
85 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; } 86 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; }
86 87
87 void setInnerNode(Node*); 88 void setInnerNode(Node*);
88 void setInnerNonSharedNode(Node*); 89 void setInnerNonSharedNode(Node*);
89 void setURLElement(Element*); 90 void setURLElement(Element*);
90 void setScrollbar(Scrollbar*); 91 void setScrollbar(Scrollbar*);
91 void setIsOverWidget(bool b) { m_isOverWidget = b; } 92 void setIsOverWidget(bool b) { m_isOverWidget = b; }
92 93
93 Frame* targetFrame() const; 94 Frame* targetFrame() const;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a RenderWidget for example). 149 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a RenderWidget for example).
149 150
150 mutable OwnPtr<NodeSet> m_rectBasedTestResult; 151 mutable OwnPtr<NodeSet> m_rectBasedTestResult;
151 }; 152 };
152 153
153 String displayString(const String&, const Node*); 154 String displayString(const String&, const Node*);
154 155
155 } // namespace WebCore 156 } // namespace WebCore
156 157
157 #endif // HitTestResult_h 158 #endif // HitTestResult_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698