NS_IMETHODIMP
AccessibleCaretEventHub::ReflowInterruptible(DOMHighResTimeStamp aStart,
                                             DOMHighResTimeStamp aEnd)
{
  // Defer the error checking to Reflow().
  return Reflow(aStart, aEnd);
}
예제 #2
0
NS_IMETHODIMP
AccessibleCaretEventHub::ReflowInterruptible(DOMHighResTimeStamp aStart,
                                             DOMHighResTimeStamp aEnd)
{
  if (!mInitialized) {
    return NS_OK;
  }

  return Reflow(aStart, aEnd);
}
NS_IMETHODIMP
AccessibleCaretEventHub::ReflowInterruptible(DOMHighResTimeStamp aStart,
                                             DOMHighResTimeStamp aEnd)
{
  if (!mInitialized) {
    return NS_OK;
  }

  MOZ_ASSERT(mRefCnt.get() > 1, "Expect caller holds us as well!");

  return Reflow(aStart, aEnd);
}
예제 #4
0
void ResourcesPanel::Update( float t )
{
  // spent=200, diff=-200
  //    diff = 200 - 400;
  FCost diff = resources - displayedResources;
  diff *= 0.1f; // jump by 10%
  displayedResources += diff;
  Gold->Set( displayedResources.Gold );
  Lumber->Set( displayedResources.Lumber );
  Stone->Set( displayedResources.Stone );
  Reflow();
}
예제 #5
0
// re-flow after each add
void FlowPanel::PostAdd()
{
  HotSpot::PostAdd();
  Reflow();
}