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

Unified Diff: Source/web/ViewportAnchor.h

Issue 395843002: Oilpan: make ViewportAnchor fully stack allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ViewportAnchor.h
diff --git a/Source/web/ViewportAnchor.h b/Source/web/ViewportAnchor.h
index 6348e0fa621f64838d0f43fbe41ee4e595c9cf7f..47167e657b9808c88491f23d51f0c7ddd51c36e6 100644
--- a/Source/web/ViewportAnchor.h
+++ b/Source/web/ViewportAnchor.h
@@ -54,7 +54,7 @@ namespace blink {
// its orientation relative to the node, and the viewport origin maintains its
// orientation relative to the anchor.
class ViewportAnchor {
- WTF_MAKE_NONCOPYABLE(ViewportAnchor);
+ STACK_ALLOCATED();
public:
explicit ViewportAnchor(WebCore::EventHandler* eventHandler);
@@ -63,11 +63,11 @@ public:
WebCore::IntPoint computeOrigin(const WebCore::IntSize& currentViewSize) const;
private:
- WebCore::EventHandler* m_eventHandler;
+ RawPtrWillBeMember<WebCore::EventHandler> m_eventHandler;
WebCore::IntRect m_viewRect;
- RefPtrWillBePersistent<WebCore::Node> m_anchorNode;
+ RefPtrWillBeMember<WebCore::Node> m_anchorNode;
WebCore::LayoutRect m_anchorNodeBounds;
WebCore::FloatSize m_anchorInViewCoords;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698