CSSQuirkPrimitiveValue.h revision d8543bb6618c17b12da906afa77d216f58cf4058
1/* 2 * This file is part of the DOM implementation for KDE. 3 * 4 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 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#ifndef CSSQuirkPrimitiveValue_h 24#define CSSQuirkPrimitiveValue_h 25 26#include "CSSPrimitiveValue.h" 27 28namespace WebCore { 29 30// This value is used to handle quirky margins in reflow roots (body, td, and th) like WinIE. 31// The basic idea is that a stylesheet can use the value __qem (for quirky em) instead of em 32// in a stylesheet. When the quirky value is used, if you're in quirks mode, the margin will 33// collapse away inside a table cell. 34class CSSQuirkPrimitiveValue : public CSSPrimitiveValue { 35public: 36 CSSQuirkPrimitiveValue(double num, UnitTypes type) 37 : CSSPrimitiveValue(num, type) 38 { 39 } 40 41 virtual bool isQuirkValue() { return true; } 42}; 43 44} // namespace WebCore 45 46#endif // CSSQuirkPrimitiveValue_h 47