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

Side by Side Diff: Source/core/frame/FrameView.h

Issue 593583002: Assert that frame() derefs a non-null pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | « Source/core/frame/FrameConsole.h ('k') | Source/core/frame/RemoteFrameView.h » ('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) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 static PassRefPtr<FrameView> create(LocalFrame*); 65 static PassRefPtr<FrameView> create(LocalFrame*);
66 static PassRefPtr<FrameView> create(LocalFrame*, const IntSize& initialSize) ; 66 static PassRefPtr<FrameView> create(LocalFrame*, const IntSize& initialSize) ;
67 67
68 virtual ~FrameView(); 68 virtual ~FrameView();
69 69
70 virtual HostWindow* hostWindow() const OVERRIDE; 70 virtual HostWindow* hostWindow() const OVERRIDE;
71 71
72 virtual void invalidateRect(const IntRect&) OVERRIDE; 72 virtual void invalidateRect(const IntRect&) OVERRIDE;
73 virtual void setFrameRect(const IntRect&) OVERRIDE; 73 virtual void setFrameRect(const IntRect&) OVERRIDE;
74 74
75 LocalFrame& frame() const { return *m_frame; } 75 LocalFrame& frame() const
76 {
77 ASSERT(m_frame);
78 return *m_frame;
79 }
80
76 Page* page() const; 81 Page* page() const;
77 82
78 RenderView* renderView() const; 83 RenderView* renderView() const;
79 84
80 virtual void setCanHaveScrollbars(bool) OVERRIDE; 85 virtual void setCanHaveScrollbars(bool) OVERRIDE;
81 86
82 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation) OVERRIDE ; 87 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation) OVERRIDE ;
83 88
84 virtual void setContentsSize(const IntSize&) OVERRIDE; 89 virtual void setContentsSize(const IntSize&) OVERRIDE;
85 IntPoint clampOffsetAtScale(const IntPoint& offset, float scale) const; 90 IntPoint clampOffsetAtScale(const IntPoint& offset, float scale) const;
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); 550 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue);
546 } 551 }
547 private: 552 private:
548 FrameView* m_view; 553 FrameView* m_view;
549 bool m_originalValue; 554 bool m_originalValue;
550 }; 555 };
551 556
552 } // namespace blink 557 } // namespace blink
553 558
554 #endif // FrameView_h 559 #endif // FrameView_h
OLDNEW
« no previous file with comments | « Source/core/frame/FrameConsole.h ('k') | Source/core/frame/RemoteFrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698