~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/rendering/RenderHTMLCanvas.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
 
2
 * Copyright (C) 2004, 2006, 2007, 2009 Apple Inc. All rights reserved.
3
3
 *
4
4
 * Redistribution and use in source and binary forms, with or without
5
5
 * modification, are permitted provided that the following conditions
36
36
public:
37
37
    RenderHTMLCanvas(HTMLCanvasElement*);
38
38
 
39
 
    virtual const char* renderName() const { return "RenderHTMLCanvas"; }
40
 
 
41
 
    virtual void paintReplaced(PaintInfo& paintInfo, int tx, int ty);
 
39
    virtual bool isCanvas() const { return true; }
 
40
    virtual bool requiresLayer() const;
42
41
 
43
42
    void canvasSizeChanged();
44
43
    
45
 
protected:
 
44
private:
 
45
    virtual const char* renderName() const { return "RenderHTMLCanvas"; }
 
46
    virtual void paintReplaced(PaintInfo&, int tx, int ty);
46
47
    virtual void intrinsicSizeChanged() { canvasSizeChanged(); }
47
 
 
48
48
};
49
49
 
 
50
inline RenderHTMLCanvas* toRenderHTMLCanvas(RenderObject* object)
 
51
{
 
52
    ASSERT(!object || !strcmp(object->renderName(), "RenderHTMLCanvas"));
 
53
    return static_cast<RenderHTMLCanvas*>(object);
 
54
}
 
55
 
 
56
// This will catch anyone doing an unnecessary cast.
 
57
void toRenderHTMLCanvas(const RenderHTMLCanvas*);
 
58
 
50
59
} // namespace WebCore
51
60
 
52
61
#endif // RenderHTMLCanvas_h