gecko-dev/layout/forms/nsGfxCheckboxControlFrame.cpp

50 строки
1.3 KiB
C++
Исходник Обычный вид История

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2012-05-21 15:12:37 +04:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
1999-08-06 09:13:07 +04:00
#include "nsGfxCheckboxControlFrame.h"
#include "gfxUtils.h"
#include "mozilla/gfx/2D.h"
1999-08-06 09:13:07 +04:00
#include "nsIContent.h"
#include "nsCOMPtr.h"
#include "nsLayoutUtils.h"
#include "nsRenderingContext.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsDisplayList.h"
#include <algorithm>
using namespace mozilla;
using namespace mozilla::gfx;
//------------------------------------------------------------
nsIFrame*
NS_NewGfxCheckboxControlFrame(nsIPresShell* aPresShell,
nsStyleContext* aContext)
1999-08-06 09:13:07 +04:00
{
return new (aPresShell) nsGfxCheckboxControlFrame(aContext);
1999-08-06 09:13:07 +04:00
}
NS_IMPL_FRAMEARENA_HELPERS(nsGfxCheckboxControlFrame)
//------------------------------------------------------------
// Initialize GFX-rendered state
nsGfxCheckboxControlFrame::nsGfxCheckboxControlFrame(nsStyleContext* aContext)
: nsFormControlFrame(aContext)
1999-08-06 09:13:07 +04:00
{
}
nsGfxCheckboxControlFrame::~nsGfxCheckboxControlFrame()
{
}
2009-04-02 14:03:52 +04:00
#ifdef ACCESSIBILITY
a11y::AccType
nsGfxCheckboxControlFrame::AccessibleType()
{
return a11y::eHTMLCheckboxType;
}
2001-08-17 07:13:07 +04:00
#endif