We have a fair number of files that have a particular stale version of the MPL boilerplate. (It was probably originally correct, and then the official boilerplate changed, and the stale MPL boilerplate continued to propagate via copypasting from neighboring files into newly-added files.) This patch updates this stale MPL text (and *only* the MPL text) to the latest version, which can be found at https://www.mozilla.org/en-US/MPL/headers/ and https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line MozReview-Commit-ID: 8WeBb8b0uRo
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
/* rendering object for CSS "display: ruby-base" */
|
|
|
|
#include "nsRubyBaseFrame.h"
|
|
|
|
#include "mozilla/WritingModes.h"
|
|
#include "nsLineLayout.h"
|
|
#include "nsPresContext.h"
|
|
#include "nsStyleContext.h"
|
|
|
|
using namespace mozilla;
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// Frame class boilerplate
|
|
// =======================
|
|
|
|
NS_QUERYFRAME_HEAD(nsRubyBaseFrame)
|
|
NS_QUERYFRAME_ENTRY(nsRubyBaseFrame)
|
|
NS_QUERYFRAME_TAIL_INHERITING(nsRubyContentFrame)
|
|
|
|
NS_IMPL_FRAMEARENA_HELPERS(nsRubyBaseFrame)
|
|
|
|
nsContainerFrame*
|
|
NS_NewRubyBaseFrame(nsIPresShell* aPresShell,
|
|
nsStyleContext* aContext)
|
|
{
|
|
return new (aPresShell) nsRubyBaseFrame(aContext);
|
|
}
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// nsRubyBaseFrame Method Implementations
|
|
// ======================================
|
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
|
nsresult
|
|
nsRubyBaseFrame::GetFrameName(nsAString& aResult) const
|
|
{
|
|
return MakeFrameName(NS_LITERAL_STRING("RubyBase"), aResult);
|
|
}
|
|
#endif
|