author | Ting-Yu Lin <tlin@mozilla.com> |
Wed, 30 Nov 2016 11:14:29 +0800 | |
changeset 324810 | 549da59b304f7f5a7aca4a27c4de7fcb53c93176 |
parent 324809 | 345db402d87c8e26df696a5ae6ef75d715493b67 |
child 324811 | 65c73bad7dc1e2f74873928bc2e954dade385c41 |
push id | 31018 |
push user | philringnalda@gmail.com |
push date | Thu, 01 Dec 2016 03:18:13 +0000 |
treeherder | mozilla-central@a183d5c5a8f7 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | dholbert |
bugs | 1304598 |
milestone | 53.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
layout/generic/BRFrame.cpp | file | annotate | diff | comparison | revisions | |
layout/generic/moz.build | file | annotate | diff | comparison | revisions | |
layout/generic/nsBRFrame.cpp | file | annotate | diff | comparison | revisions |
rename from layout/generic/nsBRFrame.cpp rename to layout/generic/BRFrame.cpp --- a/layout/generic/nsBRFrame.cpp +++ b/layout/generic/BRFrame.cpp @@ -17,21 +17,23 @@ #include "nsLayoutUtils.h" //FOR SELECTION #include "nsIContent.h" //END INCLUDES FOR SELECTION using namespace mozilla; +namespace mozilla { + class BRFrame : public nsFrame { public: NS_DECL_FRAMEARENA_HELPERS - friend nsIFrame* NS_NewBRFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); + friend nsIFrame* ::NS_NewBRFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); virtual ContentOffsets CalcContentOffsetsFromFramePoint(nsPoint aPoint) override; virtual FrameSearchResult PeekOffsetNoAmount(bool aForward, int32_t* aOffset) override; virtual FrameSearchResult PeekOffsetCharacter(bool aForward, int32_t* aOffset, bool aRespectClusters = true) override; virtual FrameSearchResult PeekOffsetWord(bool aForward, bool aWordSelectEatSpace, bool aIsKeyboardSelect, int32_t* aOffset, @@ -62,16 +64,18 @@ public: protected: explicit BRFrame(nsStyleContext* aContext) : nsFrame(aContext) {} virtual ~BRFrame(); nscoord mAscent; }; +} // namespace mozilla + nsIFrame* NS_NewBRFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) { return new (aPresShell) BRFrame(aContext); } NS_IMPL_FRAMEARENA_HELPERS(BRFrame)
--- a/layout/generic/moz.build +++ b/layout/generic/moz.build @@ -14,17 +14,17 @@ with Files('Block*'): with Files('nsLine*'): # Parts of these files are really Layout: Floats BUG_COMPONENT = ('Core', 'Layout: Block and Inline') with Files('nsInlineFrame.*'): BUG_COMPONENT = ('Core', 'Layout: Block and Inline') -with Files('nsBRFrame.*'): +with Files('BRFrame.*'): BUG_COMPONENT = ('Core', 'Layout: Block and Inline') with Files('nsBulletFrame.*'): BUG_COMPONENT = ('Core', 'Layout: Block and Inline') with Files('nsFirstLetterFrame.*'): BUG_COMPONENT = ('Core', 'Layout: Block and Inline') @@ -122,25 +122,25 @@ EXPORTS.mozilla.dom += [ EXPORTS.mozilla.layout += [ 'FrameChildList.h', ] UNIFIED_SOURCES += [ 'AsyncScrollBase.cpp', 'BlockReflowInput.cpp', + 'BRFrame.cpp', 'CSSAlignUtils.cpp', 'DetailsFrame.cpp', 'FrameChildList.cpp', 'MathMLTextRunFactory.cpp', 'nsAbsoluteContainingBlock.cpp', 'nsBackdropFrame.cpp', 'nsBlockFrame.cpp', 'nsBlockReflowContext.cpp', - 'nsBRFrame.cpp', 'nsBulletFrame.cpp', 'nsCanvasFrame.cpp', 'nsColumnSetFrame.cpp', 'nsContainerFrame.cpp', 'nsFirstLetterFrame.cpp', 'nsFlexContainerFrame.cpp', 'nsFloatManager.cpp', 'nsFontInflationData.cpp',