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

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

Issue 23654013: Cleanup, added a helper to FrameView, isMainFrame(). No behavior change (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Style fix Created 7 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 | « no previous file | Source/core/page/FrameView.cpp » ('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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 419
420 bool hasCustomScrollbars() const; 420 bool hasCustomScrollbars() const;
421 421
422 virtual void updateScrollCorner(); 422 virtual void updateScrollCorner();
423 423
424 FrameView* parentFrameView() const; 424 FrameView* parentFrameView() const;
425 425
426 virtual AXObjectCache* axObjectCache() const; 426 virtual AXObjectCache* axObjectCache() const;
427 void removeFromAXObjectCache(); 427 void removeFromAXObjectCache();
428 428
429 bool isMainFrame() const;
430
429 static double s_currentFrameTimeStamp; // used for detecting decoded resourc e thrash in the cache 431 static double s_currentFrameTimeStamp; // used for detecting decoded resourc e thrash in the cache
430 static bool s_inPaintContents; 432 static bool s_inPaintContents;
431 433
432 LayoutSize m_size; 434 LayoutSize m_size;
433 LayoutSize m_margins; 435 LayoutSize m_margins;
434 436
435 typedef HashSet<RenderObject*> RenderObjectSet; 437 typedef HashSet<RenderObject*> RenderObjectSet;
436 OwnPtr<RenderObjectSet> m_widgetUpdateSet; 438 OwnPtr<RenderObjectSet> m_widgetUpdateSet;
437 RefPtr<Frame> m_frame; 439 RefPtr<Frame> m_frame;
438 440
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 ASSERT(!widget || widget->isFrameView()); 574 ASSERT(!widget || widget->isFrameView());
573 return static_cast<const FrameView*>(widget); 575 return static_cast<const FrameView*>(widget);
574 } 576 }
575 577
576 // This will catch anyone doing an unnecessary cast. 578 // This will catch anyone doing an unnecessary cast.
577 void toFrameView(const FrameView*); 579 void toFrameView(const FrameView*);
578 580
579 } // namespace WebCore 581 } // namespace WebCore
580 582
581 #endif // FrameView_h 583 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698