Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/gfx/BaseRect.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef MOZILLA_GFX_BASERECT_H_
8
#define MOZILLA_GFX_BASERECT_H_
9
10
#include <algorithm>
11
#include <cmath>
12
#include <ostream>
13
14
#include "mozilla/Assertions.h"
15
#include "mozilla/FloatingPoint.h"
16
#include "mozilla/TypeTraits.h"
17
#include "Types.h"
18
19
namespace mozilla {
20
namespace gfx {
21
22
/**
23
 * Rectangles have two interpretations: a set of (zero-size) points,
24
 * and a rectangular area of the plane. Most rectangle operations behave
25
 * the same no matter what interpretation is being used, but some operations
26
 * differ:
27
 * -- Equality tests behave differently. When a rectangle represents an area,
28
 * all zero-width and zero-height rectangles are equal to each other since they
29
 * represent the empty area. But when a rectangle represents a set of
30
 * mathematical points, zero-width and zero-height rectangles can be unequal.
31
 * -- The union operation can behave differently. When rectangles represent
32
 * areas, taking the union of a zero-width or zero-height rectangle with
33
 * another rectangle can just ignore the empty rectangle. But when rectangles
34
 * represent sets of mathematical points, we may need to extend the latter
35
 * rectangle to include the points of a zero-width or zero-height rectangle.
36
 *
37
 * To ensure that these interpretations are explicitly disambiguated, we
38
 * deny access to the == and != operators and require use of IsEqualEdges and
39
 * IsEqualInterior instead. Similarly we provide separate Union and UnionEdges
40
 * methods.
41
 *
42
 * Do not use this class directly. Subclass it, pass that subclass as the
43
 * Sub parameter, and only use that subclass.
44
 */
45
template <class T, class Sub, class Point, class SizeT, class MarginT>
46
struct BaseRect {
47
  T x, y, width, height;
48
49
  // Constructors
50
3
  BaseRect() : x(0), y(0), width(0), height(0) {}
mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::BaseRect()
Line
Count
Source
50
3
  BaseRect() : x(0), y(0), width(0), height(0) {}
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ImagePixel>, mozilla::gfx::IntPointTyped<mozilla::ImagePixel>, mozilla::gfx::IntSizeTyped<mozilla::ImagePixel>, mozilla::gfx::IntMarginTyped<mozilla::ImagePixel> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::BaseRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::BaseRect()
51
  BaseRect(const Point& aOrigin, const SizeT &aSize) :
52
      x(aOrigin.x), y(aOrigin.y), width(aSize.width), height(aSize.height)
53
0
  {
54
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::BaseRect(mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits> const&, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::BaseRect(mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::BaseRect(mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel> const&, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::BaseRect(mozilla::gfx::IntPointTyped<mozilla::LayerPixel> const&, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::BaseRect(mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel> const&, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::BaseRect(mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::BaseRect(mozilla::gfx::PointTyped<mozilla::LayerPixel, float> const&, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::BaseRect(nsPoint const&, nsSize const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::BaseRect(mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float> const&, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::BaseRect(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double> const&, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double> const&)
55
  BaseRect(T aX, T aY, T aWidth, T aHeight) :
56
      x(aX), y(aY), width(aWidth), height(aHeight)
57
3
  {
58
3
  }
mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::BaseRect(int, int, int, int)
Line
Count
Source
57
3
  {
58
3
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::BaseRect(float, float, float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::BaseRect(float, float, float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::BaseRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::BaseRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::BaseRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::BaseRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::BaseRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::BaseRect(float, float, float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::PointTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::SizeTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::MarginTyped<mozilla::RenderTargetPixel, float> >::BaseRect(float, float, float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::BaseRect(float, float, float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ImagePixel>, mozilla::gfx::IntPointTyped<mozilla::ImagePixel>, mozilla::gfx::IntSizeTyped<mozilla::ImagePixel>, mozilla::gfx::IntMarginTyped<mozilla::ImagePixel> >::BaseRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::BaseRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::DesktopPixel, float>, mozilla::gfx::PointTyped<mozilla::DesktopPixel, float>, mozilla::gfx::SizeTyped<mozilla::DesktopPixel, float>, mozilla::gfx::MarginTyped<mozilla::DesktopPixel, float> >::BaseRect(float, float, float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ScreenPixel>, mozilla::gfx::IntPointTyped<mozilla::ScreenPixel>, mozilla::gfx::IntSizeTyped<mozilla::ScreenPixel>, mozilla::gfx::IntMarginTyped<mozilla::ScreenPixel> >::BaseRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::BaseRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ScreenPixel, float>, mozilla::gfx::PointTyped<mozilla::ScreenPixel, float>, mozilla::gfx::SizeTyped<mozilla::ScreenPixel, float>, mozilla::gfx::MarginTyped<mozilla::ScreenPixel, float> >::BaseRect(float, float, float, float)
59
60
  // Emptiness. An empty rect is one that has no area, i.e. its height or width
61
  // is <= 0.  Zero rect is the one with height and width set to zero.  Note
62
  // that SetEmpty() may change a rectangle that identified as IsEmpty().
63
0
  MOZ_ALWAYS_INLINE bool IsZeroArea() const { return height == 0 || width == 0; }
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::IsZeroArea() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::IsZeroArea() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::IsZeroArea() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::IsZeroArea() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::IsZeroArea() const
64
0
  MOZ_ALWAYS_INLINE bool IsEmpty() const { return height <= 0 || width <= 0; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::IsEmpty() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::IsEmpty() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::IsEmpty() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::IsEmpty() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::IsEmpty() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::IsEmpty() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::IsEmpty() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::IsEmpty() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::IsEmpty() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::IsEmpty() const
65
0
  void SetEmpty() { width = height = 0; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::SetEmpty()
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetEmpty()
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetEmpty()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::SetEmpty()
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SetEmpty()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SetEmpty()
66
67
  // "Finite" means not inf and not NaN
68
  bool IsFinite() const
69
0
  {
70
0
    typedef typename mozilla::Conditional<mozilla::IsSame<T, float>::value, float, double>::Type FloatType;
71
0
    return (mozilla::IsFinite(FloatType(x)) &&
72
0
            mozilla::IsFinite(FloatType(y)) &&
73
0
            mozilla::IsFinite(FloatType(width)) &&
74
0
            mozilla::IsFinite(FloatType(height)));
75
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::IsFinite() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::IsFinite() const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::IsFinite() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::IsFinite() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::IsFinite() const
76
77
  // Returns true if this rectangle contains the interior of aRect. Always
78
  // returns true if aRect is empty, and always returns false is aRect is
79
  // nonempty but this rect is empty.
80
  bool Contains(const Sub& aRect) const
81
0
  {
82
0
    return aRect.IsEmpty() ||
83
0
           (x <= aRect.x && aRect.XMost() <= XMost() &&
84
0
            y <= aRect.y && aRect.YMost() <= YMost());
85
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::Contains(mozilla::gfx::RectTyped<mozilla::CSSPixel, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::Contains(mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Contains(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Contains(nsRect const&) const
86
  // Returns true if this rectangle contains the point. Points are considered
87
  // in the rectangle if they are on the left or top edge, but outside if they
88
  // are on the right or bottom edge.
89
  MOZ_ALWAYS_INLINE bool Contains(T aX, T aY) const
90
0
  {
91
0
    return x <= aX && aX < XMost() &&
92
0
           y <= aY && aY < YMost();
93
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Contains(int, int) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::Contains(int, int) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::Contains(int, int) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Contains(int, int) const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Contains(double, double) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Contains(float, float) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::Contains(int, int) const
94
  MOZ_ALWAYS_INLINE bool ContainsX(T aX) const
95
0
  {
96
0
    return x <= aX && aX < XMost();
97
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::ContainsX(int) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::ContainsX(int) const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::ContainsX(double) const
98
  MOZ_ALWAYS_INLINE bool ContainsY(T aY) const
99
0
  {
100
0
    return y <= aY && aY < YMost();
101
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::ContainsY(int) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::ContainsY(int) const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::ContainsY(double) const
102
  // Returns true if this rectangle contains the point. Points are considered
103
  // in the rectangle if they are on the left or top edge, but outside if they
104
  // are on the right or bottom edge.
105
0
  bool Contains(const Point& aPoint) const { return Contains(aPoint.x, aPoint.y); }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Contains(mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::Contains(mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::Contains(mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Contains(nsPoint const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Contains(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Contains(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::Contains(mozilla::gfx::IntPointTyped<mozilla::CSSPixel> const&) const
106
107
  // Intersection. Returns TRUE if the receiver's area has non-empty
108
  // intersection with aRect's area, and FALSE otherwise.
109
  // Always returns false if aRect is empty or 'this' is empty.
110
  bool Intersects(const Sub& aRect) const
111
0
  {
112
0
    return !IsEmpty() && !aRect.IsEmpty() &&
113
0
           x < aRect.XMost() && aRect.x < XMost() &&
114
0
           y < aRect.YMost() && aRect.y < YMost();
115
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Intersects(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Intersects(mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Intersects(nsRect const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Intersects(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::Intersects(mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel> const&) const
116
  // Returns the rectangle containing the intersection of the points
117
  // (including edges) of *this and aRect. If there are no points in that
118
  // intersection, returns an empty rectangle with x/y set to the std::max of the x/y
119
  // of *this and aRect.
120
  MOZ_MUST_USE Sub Intersect(const Sub& aRect) const
121
0
  {
122
0
    Sub result;
123
0
    result.x = std::max<T>(x, aRect.x);
124
0
    result.y = std::max<T>(y, aRect.y);
125
0
    result.width = std::min<T>(x - result.x + width, aRect.x - result.x + aRect.width);
126
0
    result.height = std::min<T>(y - result.y + height, aRect.y - result.y + aRect.height);
127
0
    // See bug 1457110, this function expects to -only- size to 0,0 if the width/height
128
0
    // is explicitly negative.
129
0
    if (result.width < 0 || result.height < 0) {
130
0
      result.SizeTo(0, 0);
131
0
    }
132
0
    return result;
133
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Intersect(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::Intersect(mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::Intersect(mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::Intersect(mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Intersect(nsRect const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::Intersect(mozilla::gfx::RectTyped<mozilla::CSSPixel, float> const&) const
134
  // Sets *this to be the rectangle containing the intersection of the points
135
  // (including edges) of *this and aRect. If there are no points in that
136
  // intersection, sets *this to be an empty rectangle with x/y set to the std::max
137
  // of the x/y of *this and aRect.
138
  //
139
  // 'this' can be the same object as either aRect1 or aRect2
140
  bool IntersectRect(const Sub& aRect1, const Sub& aRect2)
141
0
  {
142
0
    T newX = std::max<T>(aRect1.x, aRect2.x);
143
0
    T newY = std::max<T>(aRect1.y, aRect2.y);
144
0
    width = std::min<T>(aRect1.x - newX + aRect1.width, aRect2.x - newX + aRect2.width);
145
0
    height = std::min<T>(aRect1.y - newY + aRect1.height, aRect2.y - newY + aRect2.height);
146
0
    x = newX;
147
0
    y = newY;
148
0
    if (width <= 0 || height <= 0) {
149
0
      SizeTo(0, 0);
150
0
      return false;
151
0
    }
152
0
    return true;
153
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::IntersectRect(nsRect const&, nsRect const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::IntersectRect(mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::IntersectRect(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::IntersectRect(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::IntersectRect(mozilla::gfx::IntRectTyped<mozilla::DesktopPixel> const&, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::IntersectRect(mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel> const&, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel> const&)
154
155
  // Returns the smallest rectangle that contains both the area of both
156
  // this and aRect2.
157
  // Thus, empty input rectangles are ignored.
158
  // If both rectangles are empty, returns this.
159
  // WARNING! This is not safe against overflow, prefer using SafeUnion instead
160
  // when dealing with int-based rects.
161
  MOZ_MUST_USE Sub Union(const Sub& aRect) const
162
0
  {
163
0
    if (IsEmpty()) {
164
0
      return aRect;
165
0
    } else if (aRect.IsEmpty()) {
166
0
      return *static_cast<const Sub*>(this);
167
0
    } else {
168
0
      return UnionEdges(aRect);
169
0
    }
170
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Union(nsRect const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Union(mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::Union(mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Union(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Union(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::Union(mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float> const&) const
171
  // Returns the smallest rectangle that contains both the points (including
172
  // edges) of both aRect1 and aRect2.
173
  // Thus, empty input rectangles are allowed to affect the result.
174
  // WARNING! This is not safe against overflow, prefer using SafeUnionEdges
175
  // instead when dealing with int-based rects.
176
  MOZ_MUST_USE Sub UnionEdges(const Sub& aRect) const
177
0
  {
178
0
    Sub result;
179
0
    result.x = std::min(x, aRect.x);
180
0
    result.y = std::min(y, aRect.y);
181
0
    result.width = std::max(XMost(), aRect.XMost()) - result.x;
182
0
    result.height = std::max(YMost(), aRect.YMost()) - result.y;
183
0
    return result;
184
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::UnionEdges(nsRect const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::UnionEdges(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::UnionEdges(mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::UnionEdges(mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::UnionEdges(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::UnionEdges(mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float> const&) const
185
  // Computes the smallest rectangle that contains both the area of both
186
  // aRect1 and aRect2, and fills 'this' with the result.
187
  // Thus, empty input rectangles are ignored.
188
  // If both rectangles are empty, sets 'this' to aRect2.
189
  //
190
  // 'this' can be the same object as either aRect1 or aRect2
191
  void UnionRect(const Sub& aRect1, const Sub& aRect2)
192
0
  {
193
0
    *static_cast<Sub*>(this) = aRect1.Union(aRect2);
194
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::UnionRect(mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::UnionRect(mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel> const&, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::UnionRect(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::UnionRect(nsRect const&, nsRect const&)
195
196
  void OrWith(const Sub& aRect1)
197
0
  {
198
0
    UnionRect(*static_cast<Sub*>(this), aRect1);
199
0
  }
200
201
  // Computes the smallest rectangle that contains both the points (including
202
  // edges) of both aRect1 and aRect2.
203
  // Thus, empty input rectangles are allowed to affect the result.
204
  //
205
  // 'this' can be the same object as either aRect1 or aRect2
206
  void UnionRectEdges(const Sub& aRect1, const Sub& aRect2)
207
  {
208
    *static_cast<Sub*>(this) = aRect1.UnionEdges(aRect2);
209
  }
210
211
  // Expands the rect to include the point
212
  void ExpandToEnclose(const Point& aPoint)
213
0
  {
214
0
    if (aPoint.x < x) {
215
0
      width = XMost() - aPoint.x;
216
0
      x = aPoint.x;
217
0
    } else if (aPoint.x > XMost()) {
218
0
      width = aPoint.x - x;
219
0
    }
220
0
    if (aPoint.y < y) {
221
0
      height = YMost() - aPoint.y;
222
0
      y = aPoint.y;
223
0
    } else if (aPoint.y > YMost()) {
224
0
      height = aPoint.y - y;
225
0
    }
226
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::ExpandToEnclose(mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::ExpandToEnclose(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float> const&)
227
228
  MOZ_ALWAYS_INLINE void SetRect(T aX, T aY, T aWidth, T aHeight)
229
0
  {
230
0
    x = aX; y = aY; width = aWidth; height = aHeight;
231
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SetRect(float, float, float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SetRect(double, double, double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::SetRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::SetRect(float, float, float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::SetRect(float, float, float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::SetRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::SetRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::SetRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::SetRect(float, float, float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ImagePixel>, mozilla::gfx::IntPointTyped<mozilla::ImagePixel>, mozilla::gfx::IntSizeTyped<mozilla::ImagePixel>, mozilla::gfx::IntMarginTyped<mozilla::ImagePixel> >::SetRect(int, int, int, int)
232
  MOZ_ALWAYS_INLINE void SetRectX(T aX, T aWidth)
233
0
  {
234
0
    x = aX; width = aWidth;
235
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::SetRectX(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetRectX(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SetRectX(double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetRectX(int, int)
236
  MOZ_ALWAYS_INLINE void SetRectY(T aY, T aHeight)
237
0
  {
238
0
    y = aY; height = aHeight;
239
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::SetRectY(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetRectY(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SetRectY(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SetRectY(double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetRectY(int, int)
240
  MOZ_ALWAYS_INLINE void SetBox(T aX, T aY, T aXMost, T aYMost)
241
0
  {
242
0
    x = aX; y = aY; width = aXMost - aX; height = aYMost - aY;
243
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetBox(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetBox(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SetBox(double, double, double, double)
244
  MOZ_ALWAYS_INLINE void SetNonEmptyBox(T aX, T aY, T aXMost, T aYMost)
245
0
  {
246
0
    x = aX; y = aY;
247
0
    width = std::max(0,aXMost - aX);
248
0
    height = std::max(0,aYMost - aY);
249
0
  }
250
  MOZ_ALWAYS_INLINE void SetBoxX(T aX, T aXMost)
251
0
  {
252
0
    x = aX; width = aXMost - aX;
253
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SetBoxX(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SetBoxX(double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetBoxX(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetBoxX(int, int)
254
  MOZ_ALWAYS_INLINE void SetBoxY(T aY, T aYMost)
255
0
  {
256
0
    y = aY; height = aYMost - aY;
257
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SetBoxY(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetBoxY(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetBoxY(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SetBoxY(double, double)
258
  void SetRect(const Point& aPt, const SizeT& aSize)
259
0
  {
260
0
    SetRect(aPt.x, aPt.y, aSize.width, aSize.height);
261
0
  }
262
  MOZ_ALWAYS_INLINE void GetRect(T* aX, T* aY, T* aWidth, T* aHeight) const
263
0
  {
264
0
    *aX = x; *aY = y; *aWidth = width; *aHeight = height;
265
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::GetRect(int*, int*, int*, int*) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::GetRect(int*, int*, int*, int*) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::GetRect(int*, int*, int*, int*) const
266
267
0
  MOZ_ALWAYS_INLINE void MoveTo(T aX, T aY) { x = aX; y = aY; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::MoveTo(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::MoveTo(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::MoveTo(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::MoveTo(double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::MoveTo(float, float)
268
0
  MOZ_ALWAYS_INLINE void MoveToX(T aX) { x = aX; }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::MoveToX(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::MoveToX(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::MoveToX(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::MoveToX(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::MoveToX(int)
269
0
  MOZ_ALWAYS_INLINE void MoveToY(T aY) { y = aY; }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::MoveToY(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::MoveToY(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::MoveToY(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::MoveToY(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::MoveToY(int)
270
0
  MOZ_ALWAYS_INLINE void MoveTo(const Point& aPoint) { x = aPoint.x; y = aPoint.y; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::MoveTo(nsPoint const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::MoveTo(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::MoveTo(mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::MoveTo(mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::MoveTo(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::MoveTo(mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::MoveTo(mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)
271
0
  MOZ_ALWAYS_INLINE void MoveBy(T aDx, T aDy) { x += aDx; y += aDy; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::MoveBy(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::MoveBy(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::MoveBy(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::MoveBy(double, double)
272
0
  MOZ_ALWAYS_INLINE void MoveByX(T aDx) { x += aDx; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::MoveByX(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::MoveByX(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::MoveByX(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::MoveByX(int)
273
0
  MOZ_ALWAYS_INLINE void MoveByY(T aDy) { y += aDy; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::MoveByY(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::MoveByY(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::MoveByY(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::MoveByY(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::MoveByY(int)
274
0
  MOZ_ALWAYS_INLINE void MoveBy(const Point& aPoint) { x += aPoint.x; y += aPoint.y; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::MoveBy(nsPoint const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::MoveBy(mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::MoveBy(mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::MoveBy(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::MoveBy(mozilla::gfx::PointTyped<mozilla::LayerPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::MoveBy(mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::MoveBy(mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::MoveBy(mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::MoveBy(mozilla::gfx::IntPointTyped<mozilla::CSSPixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ScreenPixel, float>, mozilla::gfx::PointTyped<mozilla::ScreenPixel, float>, mozilla::gfx::SizeTyped<mozilla::ScreenPixel, float>, mozilla::gfx::MarginTyped<mozilla::ScreenPixel, float> >::MoveBy(mozilla::gfx::PointTyped<mozilla::ScreenPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::MoveBy(mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::MoveBy(mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel> const&)
275
0
  MOZ_ALWAYS_INLINE void SizeTo(T aWidth, T aHeight) { width = aWidth; height = aHeight; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SizeTo(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SizeTo(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::SizeTo(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::SizeTo(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::SizeTo(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::SizeTo(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::SizeTo(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::SizeTo(int, int)
276
0
  MOZ_ALWAYS_INLINE void SizeTo(const SizeT& aSize) { width = aSize.width; height = aSize.height; }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SizeTo(mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SizeTo(mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::SizeTo(mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SizeTo(mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::SizeTo(mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::SizeTo(mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SizeTo(nsSize const&)
277
278
0
  void Inflate(T aD) { Inflate(aD, aD); }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Inflate(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Inflate(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Inflate(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::Inflate(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Inflate(float)
279
  void Inflate(T aDx, T aDy)
280
0
  {
281
0
    x -= aDx;
282
0
    y -= aDy;
283
0
    width += 2 * aDx;
284
0
    height += 2 * aDy;
285
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Inflate(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Inflate(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::Inflate(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Inflate(double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::Inflate(float, float)
286
  void Inflate(const MarginT& aMargin)
287
0
  {
288
0
    x -= aMargin.left;
289
0
    y -= aMargin.top;
290
0
    width += aMargin.LeftRight();
291
0
    height += aMargin.TopBottom();
292
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Inflate(mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Inflate(nsMargin const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::Inflate(mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ScreenPixel, float>, mozilla::gfx::PointTyped<mozilla::ScreenPixel, float>, mozilla::gfx::SizeTyped<mozilla::ScreenPixel, float>, mozilla::gfx::MarginTyped<mozilla::ScreenPixel, float> >::Inflate(mozilla::gfx::MarginTyped<mozilla::ScreenPixel, float> const&)
293
0
  void Inflate(const SizeT& aSize) { Inflate(aSize.width, aSize.height); }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Inflate(mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Inflate(mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::Inflate(mozilla::gfx::SizeTyped<mozilla::CSSPixel, float> const&)
294
295
0
  void Deflate(T aD) { Deflate(aD, aD); }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Deflate(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Deflate(float)
296
  void Deflate(T aDx, T aDy)
297
0
  {
298
0
    x += aDx;
299
0
    y += aDy;
300
0
    width = std::max(T(0), width - 2 * aDx);
301
0
    height = std::max(T(0), height - 2 * aDy);
302
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Deflate(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Deflate(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Deflate(int, int)
303
  void Deflate(const MarginT& aMargin)
304
0
  {
305
0
    x += aMargin.left;
306
0
    y += aMargin.top;
307
0
    width = std::max(T(0), width - aMargin.LeftRight());
308
0
    height = std::max(T(0), height - aMargin.TopBottom());
309
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Deflate(mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::Deflate(mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Deflate(nsMargin const&)
310
0
  void Deflate(const SizeT& aSize) { Deflate(aSize.width, aSize.height); }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Deflate(mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Deflate(mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> const&)
311
312
  // Return true if the rectangles contain the same set of points, including
313
  // points on the edges.
314
  // Use when we care about the exact x/y/width/height values being
315
  // equal (i.e. we care about differences in empty rectangles).
316
  bool IsEqualEdges(const Sub& aRect) const
317
0
  {
318
0
    return x == aRect.x && y == aRect.y &&
319
0
           width == aRect.width && height == aRect.height;
320
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::IsEqualEdges(nsRect const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::IsEqualEdges(mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::IsEqualEdges(mozilla::gfx::RectTyped<mozilla::CSSPixel, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::IsEqualEdges(mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::IsEqualEdges(mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::IsEqualEdges(mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::IsEqualEdges(mozilla::gfx::IntRectTyped<mozilla::DesktopPixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::IsEqualEdges(mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ImagePixel>, mozilla::gfx::IntPointTyped<mozilla::ImagePixel>, mozilla::gfx::IntSizeTyped<mozilla::ImagePixel>, mozilla::gfx::IntMarginTyped<mozilla::ImagePixel> >::IsEqualEdges(mozilla::gfx::IntRectTyped<mozilla::ImagePixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::IsEqualEdges(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::IsEqualEdges(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::IsEqualEdges(mozilla::gfx::RectTyped<mozilla::LayerPixel, float> const&) const
321
  MOZ_ALWAYS_INLINE bool IsEqualRect(T aX, T aY, T aW, T aH)
322
0
  {
323
0
    return x == aX && y == aY && width == aW && height == aH;
324
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::IsEqualRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::IsEqualRect(int, int, int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::IsEqualRect(double, double, double, double)
325
  MOZ_ALWAYS_INLINE bool IsEqualXY(T aX, T aY)
326
0
  {
327
0
    return x == aX && y == aY;
328
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::IsEqualXY(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::IsEqualXY(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::IsEqualXY(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::IsEqualXY(double, double)
329
330
  MOZ_ALWAYS_INLINE bool IsEqualSize(T aW, T aH)
331
0
  {
332
0
    return width == aW && height == aH;
333
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::IsEqualSize(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::IsEqualSize(int, int)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::IsEqualSize(double, double)
334
335
  // Return true if the rectangles contain the same area of the plane.
336
  // Use when we do not care about differences in empty rectangles.
337
  bool IsEqualInterior(const Sub& aRect) const
338
0
  {
339
0
    return IsEqualEdges(aRect) || (IsEmpty() && aRect.IsEmpty());
340
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::IsEqualInterior(nsRect const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::IsEqualInterior(mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::IsEqualInterior(mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::IsEqualInterior(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::IsEqualInterior(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&) const
341
342
  friend Sub operator+(Sub aSub, const Point& aPoint)
343
0
  {
344
0
    aSub += aPoint;
345
0
    return aSub;
346
0
  }
Unexecuted instantiation: mozilla::gfx::operator+(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float> const&)
Unexecuted instantiation: mozilla::gfx::operator+(mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::operator+(nsRect, nsPoint const&)
Unexecuted instantiation: mozilla::gfx::operator+(mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::operator+(mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::operator+(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double> const&)
Unexecuted instantiation: mozilla::gfx::operator+(mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel> const&)
347
  friend Sub operator-(Sub aSub, const Point& aPoint)
348
0
  {
349
0
    aSub -= aPoint;
350
0
    return aSub;
351
0
  }
Unexecuted instantiation: mozilla::gfx::operator-(mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::operator-(nsRect, nsPoint const&)
Unexecuted instantiation: mozilla::gfx::operator-(mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::operator-(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double> const&)
Unexecuted instantiation: mozilla::gfx::operator-(mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel> const&)
352
  friend Sub operator+(Sub aSub, const SizeT& aSize)
353
  {
354
    aSub += aSize;
355
    return aSub;
356
  }
357
  friend Sub operator-(Sub aSub, const SizeT& aSize)
358
0
  {
359
0
    aSub -= aSize;
360
0
    return aSub;
361
0
  }
362
  Sub& operator+=(const Point& aPoint)
363
0
  {
364
0
    MoveBy(aPoint);
365
0
    return *static_cast<Sub*>(this);
366
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::operator+=(nsPoint const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::operator+=(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::operator+=(mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::operator+=(mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::operator+=(mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::operator+=(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::operator+=(mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ScreenPixel, float>, mozilla::gfx::PointTyped<mozilla::ScreenPixel, float>, mozilla::gfx::SizeTyped<mozilla::ScreenPixel, float>, mozilla::gfx::MarginTyped<mozilla::ScreenPixel, float> >::operator+=(mozilla::gfx::PointTyped<mozilla::ScreenPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::operator+=(mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&)
367
  Sub& operator-=(const Point& aPoint)
368
0
  {
369
0
    MoveBy(-aPoint);
370
0
    return *static_cast<Sub*>(this);
371
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::operator-=(mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::operator-=(nsPoint const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::operator-=(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::operator-=(mozilla::gfx::PointTyped<mozilla::LayerPixel, float> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::operator-=(mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel> const&)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ScreenPixel, float>, mozilla::gfx::PointTyped<mozilla::ScreenPixel, float>, mozilla::gfx::SizeTyped<mozilla::ScreenPixel, float>, mozilla::gfx::MarginTyped<mozilla::ScreenPixel, float> >::operator-=(mozilla::gfx::PointTyped<mozilla::ScreenPixel, float> const&)
372
  Sub& operator+=(const SizeT& aSize)
373
  {
374
    width += aSize.width;
375
    height += aSize.height;
376
    return *static_cast<Sub*>(this);
377
  }
378
  Sub& operator-=(const SizeT& aSize)
379
0
  {
380
0
    width -= aSize.width;
381
0
    height -= aSize.height;
382
0
    return *static_cast<Sub*>(this);
383
0
  }
384
  // Find difference as a Margin
385
  MarginT operator-(const Sub& aRect) const
386
0
  {
387
0
    return MarginT(aRect.y - y,
388
0
                   XMost() - aRect.XMost(),
389
0
                   YMost() - aRect.YMost(),
390
0
                   aRect.x - x);
391
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::operator-(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::operator-(nsRect const&) const
392
393
  // Helpers for accessing the vertices
394
0
  Point TopLeft() const { return Point(x, y); }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::TopLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::TopLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::TopLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::TopLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::TopLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::TopLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::TopLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::TopLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::TopLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::TopLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::TopLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::TopLeft() const
395
0
  Point TopRight() const { return Point(XMost(), y); }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::TopRight() const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::TopRight() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::TopRight() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::TopRight() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::TopRight() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::TopRight() const
396
0
  Point BottomLeft() const { return Point(x, YMost()); }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::BottomLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::BottomLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::BottomLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::BottomLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::BottomLeft() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::BottomLeft() const
397
0
  Point BottomRight() const { return Point(XMost(), YMost()); }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::BottomRight() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::BottomRight() const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::BottomRight() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::BottomRight() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::BottomRight() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::BottomRight() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::BottomRight() const
398
0
  Point AtCorner(Corner aCorner) const {
399
0
    switch (aCorner) {
400
0
      case eCornerTopLeft: return TopLeft();
401
0
      case eCornerTopRight: return TopRight();
402
0
      case eCornerBottomRight: return BottomRight();
403
0
      case eCornerBottomLeft: return BottomLeft();
404
0
    }
405
0
    MOZ_CRASH("GFX: Incomplete switch");
406
0
  }
407
0
  Point CCWCorner(mozilla::Side side) const {
408
0
    switch (side) {
409
0
      case eSideTop: return TopLeft();
410
0
      case eSideRight: return TopRight();
411
0
      case eSideBottom: return BottomRight();
412
0
      case eSideLeft: return BottomLeft();
413
0
    }
414
0
    MOZ_CRASH("GFX: Incomplete switch");
415
0
  }
416
0
  Point CWCorner(mozilla::Side side) const {
417
0
    switch (side) {
418
0
      case eSideTop: return TopRight();
419
0
      case eSideRight: return BottomRight();
420
0
      case eSideBottom: return BottomLeft();
421
0
      case eSideLeft: return TopLeft();
422
0
    }
423
0
    MOZ_CRASH("GFX: Incomplete switch");
424
0
  }
425
0
  Point Center() const { return Point(x, y) + Point(width, height)/2; }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Center() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Center() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::Center() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Center() const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Center() const
426
0
  SizeT Size() const { return SizeT(width, height); }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::Size() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::Size() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Size() const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Size() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::Size() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::Size() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::Size() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::Size() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Size() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::Size() const
427
428
0
  T Area() const { return width * height; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Area() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::Area() const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Area() const
429
430
  // Helper methods for computing the extents
431
0
  MOZ_ALWAYS_INLINE T X() const { return x; }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ImagePixel>, mozilla::gfx::IntPointTyped<mozilla::ImagePixel>, mozilla::gfx::IntSizeTyped<mozilla::ImagePixel>, mozilla::gfx::IntMarginTyped<mozilla::ImagePixel> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::PointTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::SizeTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::MarginTyped<mozilla::RenderTargetPixel, float> >::X() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::DesktopPixel, float>, mozilla::gfx::PointTyped<mozilla::DesktopPixel, float>, mozilla::gfx::SizeTyped<mozilla::DesktopPixel, float>, mozilla::gfx::MarginTyped<mozilla::DesktopPixel, float> >::X() const
432
0
  MOZ_ALWAYS_INLINE T Y() const { return y; }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ImagePixel>, mozilla::gfx::IntPointTyped<mozilla::ImagePixel>, mozilla::gfx::IntSizeTyped<mozilla::ImagePixel>, mozilla::gfx::IntMarginTyped<mozilla::ImagePixel> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::PointTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::SizeTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::MarginTyped<mozilla::RenderTargetPixel, float> >::Y() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::DesktopPixel, float>, mozilla::gfx::PointTyped<mozilla::DesktopPixel, float>, mozilla::gfx::SizeTyped<mozilla::DesktopPixel, float>, mozilla::gfx::MarginTyped<mozilla::DesktopPixel, float> >::Y() const
433
0
  MOZ_ALWAYS_INLINE T Width() const { return width; }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ImagePixel>, mozilla::gfx::IntPointTyped<mozilla::ImagePixel>, mozilla::gfx::IntSizeTyped<mozilla::ImagePixel>, mozilla::gfx::IntMarginTyped<mozilla::ImagePixel> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::PointTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::SizeTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::MarginTyped<mozilla::RenderTargetPixel, float> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::DesktopPixel, float>, mozilla::gfx::PointTyped<mozilla::DesktopPixel, float>, mozilla::gfx::SizeTyped<mozilla::DesktopPixel, float>, mozilla::gfx::MarginTyped<mozilla::DesktopPixel, float> >::Width() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ScreenPixel, float>, mozilla::gfx::PointTyped<mozilla::ScreenPixel, float>, mozilla::gfx::SizeTyped<mozilla::ScreenPixel, float>, mozilla::gfx::MarginTyped<mozilla::ScreenPixel, float> >::Width() const
434
0
  MOZ_ALWAYS_INLINE T Height() const { return height; }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::DesktopPixel>, mozilla::gfx::IntPointTyped<mozilla::DesktopPixel>, mozilla::gfx::IntSizeTyped<mozilla::DesktopPixel>, mozilla::gfx::IntMarginTyped<mozilla::DesktopPixel> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ImagePixel>, mozilla::gfx::IntPointTyped<mozilla::ImagePixel>, mozilla::gfx::IntSizeTyped<mozilla::ImagePixel>, mozilla::gfx::IntMarginTyped<mozilla::ImagePixel> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntPointTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntSizeTyped<mozilla::RenderTargetPixel>, mozilla::gfx::IntMarginTyped<mozilla::RenderTargetPixel> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::PointTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::SizeTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::MarginTyped<mozilla::RenderTargetPixel, float> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::DesktopPixel, float>, mozilla::gfx::PointTyped<mozilla::DesktopPixel, float>, mozilla::gfx::SizeTyped<mozilla::DesktopPixel, float>, mozilla::gfx::MarginTyped<mozilla::DesktopPixel, float> >::Height() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ScreenPixel, float>, mozilla::gfx::PointTyped<mozilla::ScreenPixel, float>, mozilla::gfx::SizeTyped<mozilla::ScreenPixel, float>, mozilla::gfx::MarginTyped<mozilla::ScreenPixel, float> >::Height() const
435
0
  MOZ_ALWAYS_INLINE T XMost() const { return x + width; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::XMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::XMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::XMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::XMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::XMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::XMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::XMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::XMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::XMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::PointTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::SizeTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::MarginTyped<mozilla::RenderTargetPixel, float> >::XMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::DesktopPixel, float>, mozilla::gfx::PointTyped<mozilla::DesktopPixel, float>, mozilla::gfx::SizeTyped<mozilla::DesktopPixel, float>, mozilla::gfx::MarginTyped<mozilla::DesktopPixel, float> >::XMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::XMost() const
436
0
  MOZ_ALWAYS_INLINE T YMost() const { return y + height; }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::YMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::YMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::YMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::YMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayerPixel>, mozilla::gfx::IntPointTyped<mozilla::LayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::LayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::LayerPixel> >::YMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::YMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntPointTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntSizeTyped<mozilla::ParentLayerPixel>, mozilla::gfx::IntMarginTyped<mozilla::ParentLayerPixel> >::YMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::YMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::YMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::PointTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::SizeTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::MarginTyped<mozilla::RenderTargetPixel, float> >::YMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::DesktopPixel, float>, mozilla::gfx::PointTyped<mozilla::DesktopPixel, float>, mozilla::gfx::SizeTyped<mozilla::DesktopPixel, float>, mozilla::gfx::MarginTyped<mozilla::DesktopPixel, float> >::YMost() const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::CSSPixel>, mozilla::gfx::IntPointTyped<mozilla::CSSPixel>, mozilla::gfx::IntSizeTyped<mozilla::CSSPixel>, mozilla::gfx::IntMarginTyped<mozilla::CSSPixel> >::YMost() const
437
438
  // Set width and height. SizeTo() sets them together.
439
0
  MOZ_ALWAYS_INLINE void SetWidth(T aWidth) { width = aWidth; }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::SetWidth(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetWidth(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SetWidth(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SetWidth(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetWidth(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::SetWidth(int)
440
0
  MOZ_ALWAYS_INLINE void SetHeight(T aHeight) { height = aHeight; }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::SetHeight(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetHeight(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SetHeight(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SetHeight(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetHeight(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::SetHeight(int)
441
442
  // Get the coordinate of the edge on the given side.
443
  T Edge(mozilla::Side aSide) const
444
0
  {
445
0
    switch (aSide) {
446
0
      case eSideTop: return Y();
447
0
      case eSideRight: return XMost();
448
0
      case eSideBottom: return YMost();
449
0
      case eSideLeft: return X();
450
0
    }
451
0
    MOZ_CRASH("GFX: Incomplete switch");
452
0
  }
453
454
  // Moves one edge of the rect without moving the opposite edge.
455
0
  void SetLeftEdge(T aX) {
456
0
    width = XMost() - aX;
457
0
    x = aX;
458
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetLeftEdge(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SetLeftEdge(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetLeftEdge(int)
459
0
  void SetRightEdge(T aXMost) {
460
0
    width = aXMost - x;
461
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SetRightEdge(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetRightEdge(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SetRightEdge(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetRightEdge(int)
462
0
  void SetTopEdge(T aY) {
463
0
    height = YMost() - aY;
464
0
    y = aY;
465
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetTopEdge(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SetTopEdge(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetTopEdge(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntPointTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntSizeTyped<mozilla::LayoutDevicePixel>, mozilla::gfx::IntMarginTyped<mozilla::LayoutDevicePixel> >::SetTopEdge(int)
466
0
  void SetBottomEdge(T aYMost) {
467
0
    height = aYMost - y;
468
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::SetBottomEdge(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::SetBottomEdge(int)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::SetBottomEdge(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::SetBottomEdge(int)
469
0
  void Swap() {
470
0
    std::swap(x, y);
471
0
    std::swap(width, height);
472
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Swap()
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::Swap()
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Swap()
473
474
  // Round the rectangle edges to integer coordinates, such that the rounded
475
  // rectangle has the same set of pixel centers as the original rectangle.
476
  // Edges at offset 0.5 round up.
477
  // Suitable for most places where integral device coordinates
478
  // are needed, but note that any translation should be applied first to
479
  // avoid pixel rounding errors.
480
  // Note that this is *not* rounding to nearest integer if the values are negative.
481
  // They are always rounding as floor(n + 0.5).
482
  // See https://bugzilla.mozilla.org/show_bug.cgi?id=410748#c14
483
  // If you need similar method which is using NS_round(), you should create
484
  // new |RoundAwayFromZero()| method.
485
  void Round()
486
0
  {
487
0
    T x0 = static_cast<T>(std::floor(T(X()) + 0.5f));
488
0
    T y0 = static_cast<T>(std::floor(T(Y()) + 0.5f));
489
0
    T x1 = static_cast<T>(std::floor(T(XMost()) + 0.5f));
490
0
    T y1 = static_cast<T>(std::floor(T(YMost()) + 0.5f));
491
0
492
0
    x = x0;
493
0
    y = y0;
494
0
495
0
    width = x1 - x0;
496
0
    height = y1 - y0;
497
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::Round()
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Round()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::Round()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::Round()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::Round()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::PointTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::SizeTyped<mozilla::RenderTargetPixel, float>, mozilla::gfx::MarginTyped<mozilla::RenderTargetPixel, float> >::Round()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::DesktopPixel, float>, mozilla::gfx::PointTyped<mozilla::DesktopPixel, float>, mozilla::gfx::SizeTyped<mozilla::DesktopPixel, float>, mozilla::gfx::MarginTyped<mozilla::DesktopPixel, float> >::Round()
498
499
  // Snap the rectangle edges to integer coordinates, such that the
500
  // original rectangle contains the resulting rectangle.
501
  void RoundIn()
502
0
  {
503
0
    T x0 = static_cast<T>(std::ceil(T(X())));
504
0
    T y0 = static_cast<T>(std::ceil(T(Y())));
505
0
    T x1 = static_cast<T>(std::floor(T(XMost())));
506
0
    T y1 = static_cast<T>(std::floor(T(YMost())));
507
0
508
0
    x = x0;
509
0
    y = y0;
510
0
511
0
    width = x1 - x0;
512
0
    height = y1 - y0;
513
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::RoundIn()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::RoundIn()
514
515
  // Snap the rectangle edges to integer coordinates, such that the
516
  // resulting rectangle contains the original rectangle.
517
  void RoundOut()
518
0
  {
519
0
    T x0 = static_cast<T>(std::floor(T(X())));
520
0
    T y0 = static_cast<T>(std::floor(T(Y())));
521
0
    T x1 = static_cast<T>(std::ceil(T(XMost())));
522
0
    T y1 = static_cast<T>(std::ceil(T(YMost())));
523
0
524
0
    x = x0;
525
0
    y = y0;
526
0
527
0
    width = x1 - x0;
528
0
    height = y1 - y0;
529
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::RoundOut()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::RoundOut()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::RoundOut()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> >::RoundOut()
530
531
  // Scale 'this' by aScale without doing any rounding.
532
0
  void Scale(T aScale) { Scale(aScale, aScale); }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::Scale(float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Scale(double)
533
  // Scale 'this' by aXScale and aYScale, without doing any rounding.
534
  void Scale(T aXScale, T aYScale)
535
0
  {
536
0
    T right = XMost() * aXScale;
537
0
    T bottom = YMost() * aYScale;
538
0
    x = x * aXScale;
539
0
    y = y * aYScale;
540
0
    width = right - x;
541
0
    height = bottom - y;
542
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::Scale(float, float)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::Scale(double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::Scale(int, int)
543
  // Scale 'this' by aScale, converting coordinates to integers so that the result is
544
  // the smallest integer-coordinate rectangle containing the unrounded result.
545
  // Note: this can turn an empty rectangle into a non-empty rectangle
546
0
  void ScaleRoundOut(double aScale) { ScaleRoundOut(aScale, aScale); }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::ScaleRoundOut(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::ScaleRoundOut(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::ScaleRoundOut(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::ScaleRoundOut(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::ScaleRoundOut(double)
547
  // Scale 'this' by aXScale and aYScale, converting coordinates to integers so
548
  // that the result is the smallest integer-coordinate rectangle containing the
549
  // unrounded result.
550
  // Note: this can turn an empty rectangle into a non-empty rectangle
551
  void ScaleRoundOut(double aXScale, double aYScale)
552
0
  {
553
0
    T right = static_cast<T>(ceil(double(XMost()) * aXScale));
554
0
    T bottom = static_cast<T>(ceil(double(YMost()) * aYScale));
555
0
    x = static_cast<T>(floor(double(x) * aXScale));
556
0
    y = static_cast<T>(floor(double(y) * aYScale));
557
0
    width = right - x;
558
0
    height = bottom - y;
559
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::ScaleRoundOut(double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::ScaleRoundOut(double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::ScaleRoundOut(double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::ScaleRoundOut(double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::SizeTyped<mozilla::LayoutDevicePixel, float>, mozilla::gfx::MarginTyped<mozilla::LayoutDevicePixel, float> >::ScaleRoundOut(double, double)
560
  // Scale 'this' by aScale, converting coordinates to integers so that the result is
561
  // the largest integer-coordinate rectangle contained by the unrounded result.
562
  void ScaleRoundIn(double aScale) { ScaleRoundIn(aScale, aScale); }
563
  // Scale 'this' by aXScale and aYScale, converting coordinates to integers so
564
  // that the result is the largest integer-coordinate rectangle contained by the
565
  // unrounded result.
566
  void ScaleRoundIn(double aXScale, double aYScale)
567
0
  {
568
0
    T right = static_cast<T>(floor(double(XMost()) * aXScale));
569
0
    T bottom = static_cast<T>(floor(double(YMost()) * aYScale));
570
0
    x = static_cast<T>(ceil(double(x) * aXScale));
571
0
    y = static_cast<T>(ceil(double(y) * aYScale));
572
0
    width = std::max<T>(0, right - x);
573
0
    height = std::max<T>(0, bottom - y);
574
0
  }
575
  // Scale 'this' by 1/aScale, converting coordinates to integers so that the result is
576
  // the smallest integer-coordinate rectangle containing the unrounded result.
577
  // Note: this can turn an empty rectangle into a non-empty rectangle
578
0
  void ScaleInverseRoundOut(double aScale) { ScaleInverseRoundOut(aScale, aScale); }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::ScaleInverseRoundOut(double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::ScaleInverseRoundOut(double)
579
  // Scale 'this' by 1/aXScale and 1/aYScale, converting coordinates to integers so
580
  // that the result is the smallest integer-coordinate rectangle containing the
581
  // unrounded result.
582
  // Note: this can turn an empty rectangle into a non-empty rectangle
583
  void ScaleInverseRoundOut(double aXScale, double aYScale)
584
0
  {
585
0
    T right = static_cast<T>(ceil(double(XMost()) / aXScale));
586
0
    T bottom = static_cast<T>(ceil(double(YMost()) / aYScale));
587
0
    x = static_cast<T>(floor(double(x) / aXScale));
588
0
    y = static_cast<T>(floor(double(y) / aYScale));
589
0
    width = right - x;
590
0
    height = bottom - y;
591
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::ScaleInverseRoundOut(double, double)
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::ScaleInverseRoundOut(double, double)
592
  // Scale 'this' by 1/aScale, converting coordinates to integers so that the result is
593
  // the largest integer-coordinate rectangle contained by the unrounded result.
594
0
  void ScaleInverseRoundIn(double aScale) { ScaleInverseRoundIn(aScale, aScale); }
595
  // Scale 'this' by 1/aXScale and 1/aYScale, converting coordinates to integers so
596
  // that the result is the largest integer-coordinate rectangle contained by the
597
  // unrounded result.
598
  void ScaleInverseRoundIn(double aXScale, double aYScale)
599
0
  {
600
0
    T right = static_cast<T>(floor(double(XMost()) / aXScale));
601
0
    T bottom = static_cast<T>(floor(double(YMost()) / aYScale));
602
0
    x = static_cast<T>(ceil(double(x) / aXScale));
603
0
    y = static_cast<T>(ceil(double(y) / aYScale));
604
0
    width = std::max<T>(0, right - x);
605
0
    height = std::max<T>(0, bottom - y);
606
0
  }
607
608
  /**
609
   * Clamp aPoint to this rectangle. It is allowed to end up on any
610
   * edge of the rectangle.
611
   */
612
  MOZ_MUST_USE Point ClampPoint(const Point& aPoint) const
613
0
  {
614
0
    return Point(std::max(x, std::min(XMost(), aPoint.x)),
615
0
                 std::max(y, std::min(YMost(), aPoint.y)));
616
0
  }
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> >::ClampPoint(mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::ClampPoint(mozilla::gfx::PointTyped<mozilla::LayerPixel, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<int, nsRect, nsPoint, nsSize, nsMargin>::ClampPoint(nsPoint const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::ClampPoint(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float> const&) const
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::ClampPoint(mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double> const&) const
617
618
  /**
619
   * Translate this rectangle to be inside aRect. If it doesn't fit inside
620
   * aRect then the dimensions that don't fit will be shrunk so that they
621
   * do fit. The resulting rect is returned.
622
   */
623
  MOZ_MUST_USE Sub MoveInsideAndClamp(const Sub& aRect) const
624
0
  {
625
0
    Sub rect(std::max(aRect.x, x),
626
0
             std::max(aRect.y, y),
627
0
             std::min(aRect.width, width),
628
0
             std::min(aRect.height, height));
629
0
    rect.x = std::min(rect.XMost(), aRect.XMost()) - rect.width;
630
0
    rect.y = std::min(rect.YMost(), aRect.YMost()) - rect.height;
631
0
    return rect;
632
0
  }
633
634
  // Returns the largest rectangle that can be represented with 32-bit
635
  // signed integers, centered around a point at 0,0.  As BaseRect's represent
636
  // the dimensions as a top-left point with a width and height, the width
637
  // and height will be the largest positive 32-bit value.  The top-left
638
  // position coordinate is divided by two to center the rectangle around a
639
  // point at 0,0.
640
  static Sub MaxIntRect()
641
0
  {
642
0
    return Sub(
643
0
      static_cast<T>(-std::numeric_limits<int32_t>::max() * 0.5),
644
0
      static_cast<T>(-std::numeric_limits<int32_t>::max() * 0.5),
645
0
      static_cast<T>(std::numeric_limits<int32_t>::max()),
646
0
      static_cast<T>(std::numeric_limits<int32_t>::max())
647
0
    );
648
0
  };
Unexecuted instantiation: mozilla::gfx::BaseRect<double, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, double>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, double> >::MaxIntRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> >::MaxIntRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> >::MaxIntRect()
Unexecuted instantiation: mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::LayerPixel, float>, mozilla::gfx::PointTyped<mozilla::LayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::LayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::LayerPixel, float> >::MaxIntRect()
649
650
  // Returns a point representing the distance, along each dimension, of the
651
  // given point from this rectangle. The distance along a dimension is defined
652
  // as zero if the point is within the bounds of the rectangle in that
653
  // dimension; otherwise, it's the distance to the closer endpoint of the
654
  // rectangle in that dimension.
655
  Point DistanceTo(const Point& aPoint) const
656
0
  {
657
0
    return {DistanceFromInterval(aPoint.x, x, XMost()),
658
0
            DistanceFromInterval(aPoint.y, y, YMost())};
659
0
  }
660
661
  friend std::ostream& operator<<(std::ostream& stream,
662
0
      const BaseRect<T, Sub, Point, SizeT, MarginT>& aRect) {
663
0
    return stream << '(' << aRect.x << ',' << aRect.y << ','
664
0
                  << aRect.width << ',' << aRect.height << ')';
665
0
  }
Unexecuted instantiation: mozilla::gfx::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::PointTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::SizeTyped<mozilla::gfx::UnknownUnits, float>, mozilla::gfx::MarginTyped<mozilla::gfx::UnknownUnits, float> > const&)
Unexecuted instantiation: mozilla::gfx::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, mozilla::gfx::BaseRect<int, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntPointTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, mozilla::gfx::IntMarginTyped<mozilla::gfx::UnknownUnits> > const&)
Unexecuted instantiation: mozilla::gfx::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::PointTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::SizeTyped<mozilla::ParentLayerPixel, float>, mozilla::gfx::MarginTyped<mozilla::ParentLayerPixel, float> > const&)
Unexecuted instantiation: mozilla::gfx::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, mozilla::gfx::BaseRect<float, mozilla::gfx::RectTyped<mozilla::CSSPixel, float>, mozilla::gfx::PointTyped<mozilla::CSSPixel, float>, mozilla::gfx::SizeTyped<mozilla::CSSPixel, float>, mozilla::gfx::MarginTyped<mozilla::CSSPixel, float> > const&)
666
667
private:
668
  // Do not use the default operator== or operator!= !
669
  // Use IsEqualEdges or IsEqualInterior explicitly.
670
  bool operator==(const Sub& aRect) const { return false; }
671
  bool operator!=(const Sub& aRect) const { return false; }
672
673
  // Helper function for DistanceTo() that computes the distance of a
674
  // coordinate along one dimension from an interval in that dimension.
675
  static T DistanceFromInterval(T aCoord, T aIntervalStart, T aIntervalEnd)
676
0
  {
677
0
    if (aCoord < aIntervalStart) {
678
0
      return aIntervalStart - aCoord;
679
0
    }
680
0
    if (aCoord > aIntervalEnd) {
681
0
      return aCoord - aIntervalEnd;
682
0
    }
683
0
    return 0;
684
0
  }
685
};
686
687
} // namespace gfx
688
} // namespace mozilla
689
690
#endif /* MOZILLA_GFX_BASERECT_H_ */