author Fernando Jiménez <>
Sat, 07 Jun 2014 19:30:19 +0200
changeset 206648 e3dc24f425734635f3f6d663d2339c4234027d86
parent 204052 8aa36dab27656347b615b29223d26f4294b73e83
child 224484 9d4e083655b993f73ba3eca84e0f14cdd270bcda
permissions -rw-r--r--
Bug 988469 - MSISDN verification API for privileged apps. Part 4: Mobile ID service. r=markh, jedp

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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 */
#ifndef nsSelectsAreaFrame_h___
#define nsSelectsAreaFrame_h___

#include "mozilla/Attributes.h"
#include "nsBlockFrame.h"

class nsSelectsAreaFrame : public nsBlockFrame

  friend nsContainerFrame* NS_NewSelectsAreaFrame(nsIPresShell* aShell,
                                                  nsStyleContext* aContext,
                                                  nsFrameState aFlags);

  virtual void BuildDisplayList(nsDisplayListBuilder*   aBuilder,
                                const nsRect&           aDirtyRect,
                                const nsDisplayListSet& aLists) MOZ_OVERRIDE;

  void BuildDisplayListInternal(nsDisplayListBuilder*   aBuilder,
                                const nsRect&           aDirtyRect,
                                const nsDisplayListSet& aLists);

  virtual void Reflow(nsPresContext*           aCX,
                      nsHTMLReflowMetrics&     aDesiredSize,
                      const nsHTMLReflowState& aReflowState,
                      nsReflowStatus&          aStatus) MOZ_OVERRIDE;

  nscoord HeightOfARow() const { return mHeightOfARow; }
  nsSelectsAreaFrame(nsStyleContext* aContext) :

  // We cache the height of a single row so that changes to the "size"
  // attribute, padding, etc. can all be handled with only one reflow.  We'll
  // have to reflow twice if someone changes our font size or something like
  // that, so that the heights of our options will change.
  nscoord mHeightOfARow;

#endif /* nsSelectsAreaFrame_h___ */