のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

inherited

    37 class StyleInheritedData : public RefCounted<StyleInheritedData> {
     38 public:
     39     static PassRefPtr<StyleInheritedData> create() { return adoptRef(new StyleInheritedData); }
     40     PassRefPtr<StyleInheritedData> copy() const { return adoptRef(new StyleInheritedData(*this)); }
     41     ~StyleInheritedData();
     42 
     43     bool operator==(const StyleInheritedData& o) const;
     44     bool operator!=(const StyleInheritedData& o) const
     45     {
     46         return !(*this == o);
     47     }
     48 
     49     short horizontal_border_spacing;
     50     short vertical_border_spacing;
     51 
     52     // could be packed in a short but doesn't
     53     // make a difference currently because of padding
     54     Length line_height;
     55 
     56     Font font;                 <==ここに実態がある。
     57     StyleColor color;
     58     StyleColor visitedLinkColor;
     59 
     60 private:
     61     StyleInheritedData();
     62     StyleInheritedData(const StyleInheritedData&);
     63 };