Home | History | Annotate | Download | only in css
      1 /**
      2  * (C) 1999-2003 Lars Knoll (knoll (at) kde.org)
      3  * (C) 2002-2003 Dirk Mueller (mueller (at) kde.org)
      4  * Copyright (C) 2002, 2005, 2006, 2012 Apple Computer, Inc.
      5  * Copyright (C) 2006 Samuel Weinig (sam (at) webkit.org)
      6  *
      7  * This library is free software; you can redistribute it and/or
      8  * modify it under the terms of the GNU Library General Public
      9  * License as published by the Free Software Foundation; either
     10  * version 2 of the License, or (at your option) any later version.
     11  *
     12  * This library is distributed in the hope that it will be useful,
     13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     15  * Library General Public License for more details.
     16  *
     17  * You should have received a copy of the GNU Library General Public License
     18  * along with this library; see the file COPYING.LIB.  If not, write to
     19  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
     20  * Boston, MA 02110-1301, USA.
     21  */
     22 
     23 #include "config.h"
     24 #include "core/css/CSSHostRule.h"
     25 
     26 #include "wtf/text/StringBuilder.h"
     27 
     28 namespace WebCore {
     29 
     30 CSSHostRule::CSSHostRule(StyleRuleHost* hostRule, CSSStyleSheet* parent)
     31     : CSSGroupingRule(hostRule, parent)
     32 {
     33 }
     34 
     35 String CSSHostRule::cssText() const
     36 {
     37     StringBuilder result;
     38     result.appendLiteral("@host { \n");
     39     appendCssTextForItems(result);
     40     result.append('}');
     41     return result.toString();
     42 }
     43 
     44 } // namespace WebCore
     45 
     46