author Emilio Cobos Álvarez <>
Fri, 24 Sep 2021 05:45:33 +0000
changeset 593121 64bfebfc3f6c63388d8a27b2a0c91020dc859666
parent 573550 c991ad5e4a43704cf812e833ab2debc9eb39dc9d
permissions -rw-r--r--
Bug 1732267 - Make textarea::placeholder honor white-space. r=layout-reviewers,jfkthame This comes from, and was done because of implementation limitations which don't apply anymore ( * white-space changes don't reframe anymore, they only reflow. * We fixed reframing of native-anonymous content to do the right thing. This aligns <textarea> and <input>, so I think it should be uncontroversial. See for the discussion that prompted this. Differential Revision:

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */


#include "nsTArray.h"
#include "gfxPattern.h"
#include "mozilla/gfx/2D.h"

namespace mozilla {
namespace gfx {

class gfxGradientCache {
  static void Init();

  static already_AddRefed<gfx::GradientStops> GetOrCreateGradientStops(
      const gfx::DrawTarget* aDT, nsTArray<gfx::GradientStop>& aStops,
      gfx::ExtendMode aExtend);

  static void PurgeAllCaches();
  static void Shutdown();

}  // namespace gfx
}  // namespace mozilla