@@ -60,7 +60,7 @@ Pagination::Mode paginationModeForRenderStyle(RenderStyle*);
6060
6161typedef unsigned long long DOMTimeStamp;
6262
63- class FrameView : public ScrollView {
63+ class FrameView FINAL : public ScrollView {
6464public:
6565 friend class RenderView ;
6666 friend class Internals ;
@@ -70,13 +70,13 @@ class FrameView : public ScrollView {
7070
7171 virtual ~FrameView ();
7272
73- virtual HostWindow* hostWindow () const ;
73+ virtual HostWindow* hostWindow () const OVERRIDE ;
7474
75- virtual void invalidateRect (const IntRect&);
76- virtual void setFrameRect (const IntRect&);
75+ virtual void invalidateRect (const IntRect&) OVERRIDE ;
76+ virtual void setFrameRect (const IntRect&) OVERRIDE ;
7777
7878#if ENABLE(REQUEST_ANIMATION_FRAME)
79- virtual bool scheduleAnimation ();
79+ virtual bool scheduleAnimation () OVERRIDE ;
8080#endif
8181
8282 Frame& frame () const { return *m_frame; }
@@ -91,14 +91,14 @@ class FrameView : public ScrollView {
9191 void setMarginWidth (LayoutUnit);
9292 void setMarginHeight (LayoutUnit);
9393
94- virtual void setCanHaveScrollbars (bool );
94+ virtual void setCanHaveScrollbars (bool ) OVERRIDE ;
9595 void updateCanHaveScrollbars ();
9696
97- virtual PassRefPtr<Scrollbar> createScrollbar (ScrollbarOrientation);
97+ virtual PassRefPtr<Scrollbar> createScrollbar (ScrollbarOrientation) OVERRIDE ;
9898
99- virtual bool avoidScrollbarCreation () const ;
99+ virtual bool avoidScrollbarCreation () const OVERRIDE ;
100100
101- virtual void setContentsSize (const IntSize&);
101+ virtual void setContentsSize (const IntSize&) OVERRIDE ;
102102
103103 void layout (bool allowSubtree = true );
104104 bool didFirstLayout () const ;
@@ -164,7 +164,7 @@ class FrameView : public ScrollView {
164164 void resetScrollbarsAndClearContentsSize ();
165165 void prepareForDetach ();
166166 void detachCustomScrollbars ();
167- virtual void recalculateScrollbarOverlayStyle ();
167+ void recalculateScrollbarOverlayStyle ();
168168
169169 void clear ();
170170
@@ -184,19 +184,19 @@ class FrameView : public ScrollView {
184184
185185 void adjustViewSize ();
186186
187- virtual IntRect windowClipRect (bool clipToContents = true ) const ;
187+ virtual IntRect windowClipRect (bool clipToContents = true ) const OVERRIDE ;
188188 IntRect windowClipRectForFrameOwner (const HTMLFrameOwnerElement*, bool clipToLayerContents) const ;
189189
190- virtual IntRect windowResizerRect () const ;
190+ virtual IntRect windowResizerRect () const OVERRIDE ;
191191
192192 virtual float visibleContentScaleFactor () const OVERRIDE;
193193
194194 virtual void setFixedVisibleContentRect (const IntRect&) OVERRIDE;
195195 virtual void setScrollPosition (const IntPoint&) OVERRIDE;
196196 void scrollPositionChangedViaPlatformWidget ();
197- virtual void repaintFixedElementsAfterScrolling ();
198- virtual void updateFixedElementsAfterScrolling ();
199- virtual bool shouldRubberBandInDirection (ScrollDirection) const ;
197+ virtual void repaintFixedElementsAfterScrolling () OVERRIDE ;
198+ virtual void updateFixedElementsAfterScrolling () OVERRIDE ;
199+ virtual bool shouldRubberBandInDirection (ScrollDirection) const OVERRIDE ;
200200 virtual bool requestScrollPositionUpdate (const IntPoint&) OVERRIDE;
201201 virtual bool isRubberBandInProgress () const OVERRIDE;
202202 virtual IntPoint minimumScrollPosition () const OVERRIDE;
@@ -271,7 +271,7 @@ class FrameView : public ScrollView {
271271 void addWidgetToUpdate (RenderObject*);
272272 void removeWidgetToUpdate (RenderObject*);
273273
274- virtual void paintContents (GraphicsContext*, const IntRect& damageRect);
274+ virtual void paintContents (GraphicsContext*, const IntRect& damageRect) OVERRIDE ;
275275 void setPaintBehavior (PaintBehavior);
276276 PaintBehavior paintBehavior () const ;
277277 bool isPainting () const ;
@@ -283,8 +283,8 @@ class FrameView : public ScrollView {
283283 enum CoordinateSpaceForSnapshot { DocumentCoordinates, ViewCoordinates };
284284 void paintContentsForSnapshot (GraphicsContext*, const IntRect& imageRect, SelectionInSnapshot shouldPaintSelection, CoordinateSpaceForSnapshot);
285285
286- virtual void paintOverhangAreas (GraphicsContext*, const IntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect);
287- virtual void paintScrollCorner (GraphicsContext*, const IntRect& cornerRect);
286+ virtual void paintOverhangAreas (GraphicsContext*, const IntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect) OVERRIDE ;
287+ virtual void paintScrollCorner (GraphicsContext*, const IntRect& cornerRect) OVERRIDE ;
288288 virtual void paintScrollbar (GraphicsContext*, Scrollbar*, const IntRect&) OVERRIDE;
289289
290290 Color documentBackgroundColor () const ;
@@ -330,10 +330,10 @@ class FrameView : public ScrollView {
330330 void scrollElementToRect (Element*, const IntRect&);
331331
332332 // Methods to convert points and rects between the coordinate space of the renderer, and this view.
333- virtual IntRect convertFromRenderer (const RenderObject*, const IntRect&) const ;
334- virtual IntRect convertToRenderer (const RenderObject*, const IntRect&) const ;
335- virtual IntPoint convertFromRenderer (const RenderObject*, const IntPoint&) const ;
336- virtual IntPoint convertToRenderer (const RenderObject*, const IntPoint&) const ;
333+ IntRect convertFromRenderer (const RenderObject*, const IntRect&) const ;
334+ IntRect convertToRenderer (const RenderObject*, const IntRect&) const ;
335+ IntPoint convertFromRenderer (const RenderObject*, const IntPoint&) const ;
336+ IntPoint convertToRenderer (const RenderObject*, const IntPoint&) const ;
337337
338338 bool isFrameViewScrollCorner (RenderScrollbarPart* scrollCorner) const { return m_scrollCorner == scrollCorner; }
339339
@@ -351,7 +351,7 @@ class FrameView : public ScrollView {
351351 // On each repaint the delay increses by this amount
352352 static void setRepaintThrottlingDeferredRepaintDelayIncrementDuringLoading (double p);
353353
354- virtual IntPoint lastKnownMousePosition () const ;
354+ virtual IntPoint lastKnownMousePosition () const OVERRIDE ;
355355 virtual bool isHandlingWheelEvent () const OVERRIDE;
356356 bool shouldSetCursor () const ;
357357
@@ -360,8 +360,8 @@ class FrameView : public ScrollView {
360360 // FIXME: Remove this method once plugin loading is decoupled from layout.
361361 void flushAnyPendingPostLayoutTasks ();
362362
363- virtual bool shouldSuspendScrollAnimations () const ;
364- virtual void scrollbarStyleChanged (int newStyle, bool forceUpdate);
363+ virtual bool shouldSuspendScrollAnimations () const OVERRIDE ;
364+ virtual void scrollbarStyleChanged (int newStyle, bool forceUpdate) OVERRIDE ;
365365
366366 void setAnimatorsAreActive ();
367367
@@ -442,13 +442,13 @@ class FrameView : public ScrollView {
442442 void setScrollPinningBehavior (ScrollPinningBehavior);
443443
444444protected:
445- virtual bool scrollContentsFastPath (const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect);
446- virtual void scrollContentsSlowPath (const IntRect& updateRect);
445+ virtual bool scrollContentsFastPath (const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect) OVERRIDE ;
446+ virtual void scrollContentsSlowPath (const IntRect& updateRect) OVERRIDE ;
447447
448448 void repaintSlowRepaintObjects ();
449449
450- virtual bool isVerticalDocument () const ;
451- virtual bool isFlippedDocument () const ;
450+ virtual bool isVerticalDocument () const OVERRIDE ;
451+ virtual bool isFlippedDocument () const OVERRIDE ;
452452
453453private:
454454 explicit FrameView (Frame&);
@@ -479,12 +479,12 @@ class FrameView : public ScrollView {
479479 void performPostLayoutTasks ();
480480 void autoSizeIfEnabled ();
481481
482- virtual void repaintContentRectangle (const IntRect&, bool immediate);
482+ virtual void repaintContentRectangle (const IntRect&, bool immediate) OVERRIDE ;
483483 virtual void contentsResized () OVERRIDE;
484- virtual void visibleContentsResized ();
484+ virtual void visibleContentsResized () OVERRIDE ;
485485 virtual void fixedLayoutSizeChanged () OVERRIDE;
486486
487- virtual void delegatesScrollingDidChange ();
487+ virtual void delegatesScrollingDidChange () OVERRIDE ;
488488
489489 // Override ScrollView methods to do point conversion via renderers, in order to
490490 // take transforms into account.
@@ -535,7 +535,7 @@ class FrameView : public ScrollView {
535535
536536 bool hasCustomScrollbars () const ;
537537
538- virtual void updateScrollCorner ();
538+ virtual void updateScrollCorner () OVERRIDE ;
539539
540540 FrameView* parentFrameView () const ;
541541
@@ -545,7 +545,7 @@ class FrameView : public ScrollView {
545545
546546 bool qualifiesAsVisuallyNonEmpty () const ;
547547
548- virtual AXObjectCache* axObjectCache () const ;
548+ AXObjectCache* axObjectCache () const ;
549549 void notifyWidgetsInAllFrames (WidgetNotification);
550550 void removeFromAXObjectCache ();
551551
0 commit comments