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

Side by Side Diff: Source/WebCore/rendering/RenderWidget.h

Issue 13679002: Add StyleChangeState to get rid of a bunch of static state in the render tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 RenderArena* ref() { ++m_refCount; return renderArena(); } 72 RenderArena* ref() { ++m_refCount; return renderArena(); }
73 void deref(RenderArena*); 73 void deref(RenderArena*);
74 74
75 protected: 75 protected:
76 RenderWidget(Element*); 76 RenderWidget(Element*);
77 77
78 FrameView* frameView() const { return m_frameView; } 78 FrameView* frameView() const { return m_frameView; }
79 79
80 void clearWidget(); 80 void clearWidget();
81 81
82 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 82 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle, co nst StyleChangeState&) OVERRIDE;
83 virtual void layout(); 83 virtual void layout();
84 virtual void paint(PaintInfo&, const LayoutPoint&); 84 virtual void paint(PaintInfo&, const LayoutPoint&);
85 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const; 85 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const;
86 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE; 86 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE;
87 87
88 virtual void paintContents(PaintInfo&, const LayoutPoint&); 88 virtual void paintContents(PaintInfo&, const LayoutPoint&);
89 89
90 private: 90 private:
91 virtual bool isWidget() const { return true; } 91 virtual bool isWidget() const { return true; }
92 92
(...skipping 22 matching lines...) Expand all
115 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isWidget()); 115 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isWidget());
116 return static_cast<const RenderWidget*>(object); 116 return static_cast<const RenderWidget*>(object);
117 } 117 }
118 118
119 // This will catch anyone doing an unnecessary cast. 119 // This will catch anyone doing an unnecessary cast.
120 void toRenderWidget(const RenderWidget*); 120 void toRenderWidget(const RenderWidget*);
121 121
122 } // namespace WebCore 122 } // namespace WebCore
123 123
124 #endif // RenderWidget_h 124 #endif // RenderWidget_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698