Issue #80 - De-unify layout/PITA... I mean layout/generic

This commit is contained in:
Moonchild 2020-04-29 16:55:02 +00:00 committed by Roy Tam
commit aaa7be1091
14 changed files with 21 additions and 8 deletions

View file

@ -9,6 +9,7 @@
#define mozilla_CSSAlignUtils_h
#include "mozilla/WritingModes.h"
#include "ReflowInput.h"
namespace mozilla {

View file

@ -8,6 +8,8 @@
#include "mozilla/ReflowOutput.h"
#include "mozilla/ReflowInput.h"
using namespace mozilla;
void
nsOverflowAreas::UnionWith(const nsOverflowAreas& aOther)
{

View file

@ -10,6 +10,7 @@
#include "nsTArray.h"
#include "nsGkAtoms.h"
#include "nsCSSAnonBoxes.h"
#include "nsIFrame.h"
#define RTC_ARRAY_SIZE 1

View file

@ -6,6 +6,8 @@
#ifndef mozilla_layout_ScrollSnap_h_
#define mozilla_layout_ScrollSnap_h_
#include "nsIScrollableFrame.h"
namespace mozilla {
namespace layers {

View file

@ -123,7 +123,7 @@ EXPORTS.mozilla.layout += [
'FrameChildList.h',
]
UNIFIED_SOURCES += [
SOURCES += [
'AsyncScrollBase.cpp',
'BlockReflowInput.cpp',
'CSSAlignUtils.cpp',
@ -157,9 +157,11 @@ UNIFIED_SOURCES += [
'nsIntervalSet.cpp',
'nsLeafFrame.cpp',
'nsLineBox.cpp',
'nsLineLayout.cpp',
'nsPageContentFrame.cpp',
'nsPageFrame.cpp',
'nsPlaceholderFrame.cpp',
'nsPluginFrame.cpp',
'nsRubyBaseContainerFrame.cpp',
'nsRubyBaseFrame.cpp',
'nsRubyContentFrame.cpp',
@ -185,13 +187,6 @@ UNIFIED_SOURCES += [
'TextOverflow.cpp',
]
# nsLineLayout.cpp needs to be built separately because it uses plarena.h.
# nsPluginFrame.cpp needs to be built separately because of name clashes in the OS X headers.
SOURCES += [
'nsLineLayout.cpp',
'nsPluginFrame.cpp',
]
include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'

View file

@ -18,6 +18,7 @@
#include "nsPresContext.h"
#include "nsCSSFrameConstructor.h"
#include "nsGridContainerFrame.h"
#include "nsPlaceholderFrame.h"
#include "mozilla/Sprintf.h"

View file

@ -6,6 +6,7 @@
/* rendering object for HTML <br> elements */
#include "nsCOMPtr.h"
#include "nsContainerframe.h"
#include "nsFontMetrics.h"
#include "nsFrame.h"
#include "nsPresContext.h"

View file

@ -29,10 +29,12 @@
#include "nsBoxLayoutState.h"
#include "nsCSSFrameConstructor.h"
#include "nsBlockFrame.h"
#include "nsBulletFrame.h"
#include "nsPlaceholderFrame.h"
#include "mozilla/AutoRestore.h"
#include "nsIFrameInlines.h"
#include "nsPrintfCString.h"
#include "nsAttrValueInlines.h"
#include <algorithm>
using namespace mozilla;

View file

@ -53,6 +53,7 @@
#include "nsGkAtoms.h"
#include "nsHtml5Atoms.h"
#include "nsCSSAnonBoxes.h"
#include "nsGenericHTMLElement.h"
#include "nsFrameTraversal.h"
#include "nsRange.h"

View file

@ -22,6 +22,7 @@
#include "RubyUtils.h"
using namespace mozilla;
using namespace mozilla::gfx;
//----------------------------------------------------------------------

View file

@ -13,6 +13,8 @@
#include "nsUnicharUtils.h"
#include <algorithm>
using namespace mozilla;
static bool IsDiscardable(char16_t ch, uint32_t* aFlags)
{
// Unlike IS_DISCARDABLE, we don't discard \r. \r will be ignored by gfxTextRun

View file

@ -20,6 +20,7 @@
#include "IrishCasing.h"
using namespace mozilla;
using namespace mozilla::gfx;
// Unicode characters needing special casing treatment in tr/az languages
#define LATIN_CAPITAL_LETTER_I_WITH_DOT_ABOVE 0x0130

View file

@ -12,6 +12,8 @@
#include "gfxTextRun.h"
#include "nsStyleContext.h"
using namespace mozilla;
class nsTransformedTextRun;
struct nsTransformedCharStyle final {

View file

@ -16,6 +16,7 @@
#include "nsAbsoluteContainingBlock.h"
#include "GeckoProfiler.h"
#include "nsIMozBrowserFrame.h"
#include "nsPlaceholderFrame.h"
using namespace mozilla;
typedef nsAbsoluteContainingBlock::AbsPosReflowFlags AbsPosReflowFlags;