Bug 1277129 Part 5b - Rename nsHTMLReflowMetrics.h/cpp to ReflowOutput.h/cpp and fix #includes. r=dbaron

The modification to nsAbsoluteContainingBlock.h and nsBlockFrame.cpp are
needed to fix the build error due to the file order changed in the unified
build.

The #includes are fixed by the following script:

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "nsHTMLReflowMetrics\.h" "mozilla\/ReflowOutput\.h"

MozReview-Commit-ID: KWvcG3UtKNn

--HG--
rename : layout/generic/nsHTMLReflowMetrics.cpp => layout/generic/ReflowOutput.cpp
rename : layout/generic/nsHTMLReflowMetrics.h => layout/generic/ReflowOutput.h
extra : rebase_source : dc62fb3ad4d95e732e5985c7ab9f757a0e23abcb
This commit is contained in:
Ting-Yu Lin 2016-07-21 18:36:37 +08:00
parent 6f2f38fcd7
commit d432242ffc
8 changed files with 9 additions and 6 deletions

View File

@ -27,7 +27,7 @@
#include "mozilla/gfx/2D.h"
#include "Units.h"
#include "mozilla/ToString.h"
#include "nsHTMLReflowMetrics.h"
#include "mozilla/ReflowOutput.h"
#include "ImageContainer.h"
#include "gfx2DGlue.h"

View File

@ -5,7 +5,7 @@
/* struct containing the output from nsIFrame::Reflow */
#include "nsHTMLReflowMetrics.h"
#include "mozilla/ReflowOutput.h"
#include "mozilla/ReflowInput.h"
void

View File

@ -72,7 +72,6 @@ EXPORTS += [
'nsFrameState.h',
'nsFrameStateBits.h',
'nsHTMLParts.h',
'nsHTMLReflowMetrics.h',
'nsIAnonymousContentCreator.h',
'nsIFrame.h',
'nsIFrameInlines.h',
@ -102,6 +101,7 @@ EXPORTS += [
EXPORTS.mozilla += [
'ReflowInput.h',
'ReflowOutput.h',
'WritingModes.h',
]
@ -140,7 +140,6 @@ UNIFIED_SOURCES += [
'nsGfxScrollFrame.cpp',
'nsGridContainerFrame.cpp',
'nsHTMLCanvasFrame.cpp',
'nsHTMLReflowMetrics.cpp',
'nsImageFrame.cpp',
'nsImageMap.cpp',
'nsInlineFrame.cpp',
@ -166,6 +165,7 @@ UNIFIED_SOURCES += [
'nsVideoFrame.cpp',
'nsViewportFrame.cpp',
'ReflowInput.cpp',
'ReflowOutput.cpp',
'RubyUtils.cpp',
'ScrollbarActivity.cpp',
'ScrollSnap.cpp',

View File

@ -33,6 +33,8 @@ class nsPresContext;
*/
class nsAbsoluteContainingBlock
{
using ReflowInput = mozilla::ReflowInput;
public:
typedef nsIFrame::ChildListID ChildListID;

View File

@ -65,6 +65,7 @@ static const char16_t kDiscCharacter = 0x2022;
using namespace mozilla;
using namespace mozilla::css;
using namespace mozilla::dom;
using namespace mozilla::layout;
typedef nsAbsoluteContainingBlock::AbsPosReflowFlags AbsPosReflowFlags;

View File

@ -10,7 +10,7 @@
#define nsBlockReflowContext_h___
#include "nsIFrame.h"
#include "nsHTMLReflowMetrics.h"
#include "mozilla/ReflowOutput.h"
class nsLineBox;
class nsPresContext;

View File

@ -31,7 +31,7 @@
#include "nsDirection.h"
#include "nsFrameList.h"
#include "nsFrameState.h"
#include "nsHTMLReflowMetrics.h"
#include "mozilla/ReflowOutput.h"
#include "nsITheme.h"
#include "nsLayoutUtils.h"
#include "nsQueryFrame.h"