Commit 4a259e95 authored by weinig@apple.com's avatar weinig@apple.com

Modernize CanvasObserverProxy

https://bugs.webkit.org/show_bug.cgi?id=124106

Reviewed by Anders Carlsson.

* css/CSSCanvasValue.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f8108ef5
2013-11-09 Sam Weinig <sam@webkit.org>
Modernize CanvasObserverProxy
https://bugs.webkit.org/show_bug.cgi?id=124106
Reviewed by Anders Carlsson.
* css/CSSCanvasValue.h:
2013-11-09 Patrick Gansterer <paroga@webkit.org>
Move RunLoop from WebCore to WTF
......
......@@ -60,29 +60,31 @@ private:
// NOTE: We put the CanvasObserver in a member instead of inheriting from it
// to avoid adding a vptr to CSSCanvasValue.
class CanvasObserverProxy : public CanvasObserver {
class CanvasObserverProxy FINAL : public CanvasObserver {
public:
CanvasObserverProxy(CSSCanvasValue& ownerValue)
explicit CanvasObserverProxy(CSSCanvasValue& ownerValue)
: m_ownerValue(ownerValue)
{
}
virtual ~CanvasObserverProxy()
{
}
virtual void canvasChanged(HTMLCanvasElement& canvas, const FloatRect& changedRect)
private:
virtual void canvasChanged(HTMLCanvasElement& canvas, const FloatRect& changedRect) OVERRIDE
{
m_ownerValue.canvasChanged(canvas, changedRect);
}
virtual void canvasResized(HTMLCanvasElement& canvas)
virtual void canvasResized(HTMLCanvasElement& canvas) OVERRIDE
{
m_ownerValue.canvasResized(canvas);
}
virtual void canvasDestroyed(HTMLCanvasElement& canvas)
virtual void canvasDestroyed(HTMLCanvasElement& canvas) OVERRIDE
{
m_ownerValue.canvasDestroyed(canvas);
}
private:
CSSCanvasValue& m_ownerValue;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment