2001-09-29 00:14:13 +04:00
|
|
|
/* -*- 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"
|
2014-10-17 18:06:34 +04:00
|
|
|
|
2014-10-17 18:36:18 +04:00
|
|
|
#include "gfxUtils.h"
|
2014-10-17 18:06:34 +04:00
|
|
|
#include "mozilla/gfx/2D.h"
|
1999-08-06 09:13:07 +04:00
|
|
|
#include "nsIContent.h"
|
2006-07-13 09:05:54 +04:00
|
|
|
#include "nsCOMPtr.h"
|
2014-10-17 18:06:34 +04:00
|
|
|
#include "nsLayoutUtils.h"
|
2011-04-08 05:04:40 +04:00
|
|
|
#include "nsRenderingContext.h"
|
2002-06-04 04:44:04 +04:00
|
|
|
#include "nsIDOMHTMLInputElement.h"
|
2006-01-26 05:29:17 +03:00
|
|
|
#include "nsDisplayList.h"
|
2013-01-15 16:22:03 +04:00
|
|
|
#include <algorithm>
|
2006-07-06 14:43:51 +04:00
|
|
|
|
2012-09-29 01:53:44 +04:00
|
|
|
using namespace mozilla;
|
2014-10-17 18:06:34 +04:00
|
|
|
using namespace mozilla::gfx;
|
2012-09-29 01:53:44 +04:00
|
|
|
|
2000-02-09 22:34:39 +03:00
|
|
|
//------------------------------------------------------------
|
2005-11-04 05:38:33 +03:00
|
|
|
nsIFrame*
|
2009-04-03 12:45:17 +04:00
|
|
|
NS_NewGfxCheckboxControlFrame(nsIPresShell* aPresShell,
|
|
|
|
nsStyleContext* aContext)
|
1999-08-06 09:13:07 +04:00
|
|
|
{
|
2006-03-27 01:30:36 +04:00
|
|
|
return new (aPresShell) nsGfxCheckboxControlFrame(aContext);
|
1999-08-06 09:13:07 +04:00
|
|
|
}
|
|
|
|
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_IMPL_FRAMEARENA_HELPERS(nsGfxCheckboxControlFrame)
|
|
|
|
|
1999-08-11 08:45:49 +04:00
|
|
|
|
2000-02-09 22:34:39 +03:00
|
|
|
//------------------------------------------------------------
|
1999-08-11 08:45:49 +04:00
|
|
|
// Initialize GFX-rendered state
|
2006-03-27 01:30:36 +04:00
|
|
|
nsGfxCheckboxControlFrame::nsGfxCheckboxControlFrame(nsStyleContext* aContext)
|
2006-07-13 09:05:54 +04:00
|
|
|
: nsFormControlFrame(aContext)
|
1999-08-06 09:13:07 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2000-03-24 18:02:02 +03:00
|
|
|
nsGfxCheckboxControlFrame::~nsGfxCheckboxControlFrame()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-04-02 14:03:52 +04:00
|
|
|
#ifdef ACCESSIBILITY
|
2012-09-29 01:53:44 +04:00
|
|
|
a11y::AccType
|
|
|
|
nsGfxCheckboxControlFrame::AccessibleType()
|
2001-05-18 03:52:32 +04:00
|
|
|
{
|
2012-12-18 05:25:52 +04:00
|
|
|
return a11y::eHTMLCheckboxType;
|
2001-05-18 03:52:32 +04:00
|
|
|
}
|
2001-08-17 07:13:07 +04:00
|
|
|
#endif
|