~ubuntu-branches/ubuntu/maverick/webkit/maverick

« back to all changes in this revision

Viewing changes to WebCore/css/Rect.h

  • Committer: Bazaar Package Importer
  • Author(s): Mike Hommey
  • Date: 2007-08-19 15:54:12 UTC
  • Revision ID: james.westby@ubuntu.com-20070819155412-uxxg1h9plpghmtbi
Tags: upstream-0~svn25144
ImportĀ upstreamĀ versionĀ 0~svn25144

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org)
 
3
 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Library General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * Library General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Library General Public License
 
16
 * along with this library; see the file COPYING.LIB.  If not, write to
 
17
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
 * Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef Rect_h
 
22
#define Rect_h
 
23
 
 
24
#include "CSSPrimitiveValue.h"
 
25
#include "Shared.h"
 
26
#include <wtf/PassRefPtr.h>
 
27
#include <wtf/RefPtr.h>
 
28
 
 
29
namespace WebCore {
 
30
 
 
31
    class Rect : public Shared<Rect> {
 
32
    public:
 
33
        virtual ~Rect() { }
 
34
 
 
35
        CSSPrimitiveValue* top() const { return m_top.get(); }
 
36
        CSSPrimitiveValue* right() const { return m_right.get(); }
 
37
        CSSPrimitiveValue* bottom() const { return m_bottom.get(); }
 
38
        CSSPrimitiveValue* left() const { return m_left.get(); }
 
39
 
 
40
        void setTop(PassRefPtr<CSSPrimitiveValue> top) { m_top = top; }
 
41
        void setRight(PassRefPtr<CSSPrimitiveValue> right) { m_right = right; }
 
42
        void setBottom(PassRefPtr<CSSPrimitiveValue> bottom) { m_bottom = bottom; }
 
43
        void setLeft(PassRefPtr<CSSPrimitiveValue> left) { m_left = left; }
 
44
 
 
45
    protected:
 
46
        RefPtr<CSSPrimitiveValue> m_top;
 
47
        RefPtr<CSSPrimitiveValue> m_right;
 
48
        RefPtr<CSSPrimitiveValue> m_bottom;
 
49
        RefPtr<CSSPrimitiveValue> m_left;
 
50
    };
 
51
 
 
52
} // namespace WebCore
 
53
 
 
54
#endif // Rect_h