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

Unified Diff: Source/web/ResizeViewportAnchor.h

Issue 1003323004: Turn ViewportAnchors into stack allocated objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/web/ResizeViewportAnchor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ResizeViewportAnchor.h
diff --git a/Source/web/ResizeViewportAnchor.h b/Source/web/ResizeViewportAnchor.h
index 40652326741c37fe6d9de78b53970605352666fd..0e4bab0c95b1e18faee4c2199855c431fdaec8c2 100644
--- a/Source/web/ResizeViewportAnchor.h
+++ b/Source/web/ResizeViewportAnchor.h
@@ -18,12 +18,10 @@ class PinchViewport;
// restores to that scroll offset so that document location appears exactly
// unchanged to the user.
class ResizeViewportAnchor : public ViewportAnchor {
+ STACK_ALLOCATED();
public:
ResizeViewportAnchor(FrameView& rootFrameView, PinchViewport&);
- virtual ~ResizeViewportAnchor() { }
-
- virtual void setAnchor();
- virtual void restoreToAnchor();
+ ~ResizeViewportAnchor();
private:
// Inner viewport origin in the reference frame of the root document, in CSS
@@ -33,4 +31,4 @@ private:
} // namespace blink
-#endif
+#endif // ResizeViewportAnchor_h
« no previous file with comments | « no previous file | Source/web/ResizeViewportAnchor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698