зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset e5936d7c91ba (bug 1370682) for bustage: missing return statement at WebRenderTypes.h:361. r=backout on a CLOSED TREE
This commit is contained in:
Родитель
5d5e6ac39c
Коммит
015f8de9b5
|
@ -354,15 +354,8 @@ static inline wr::BorderRadius ToUniformBorderRadius(const mozilla::LayerSize& a
|
|||
return br;
|
||||
}
|
||||
|
||||
static inline wr::BorderRadius EmptyBorderRadius()
|
||||
{
|
||||
wr::BorderRadius br;
|
||||
memset(&br, 0, sizeof(br));
|
||||
}
|
||||
|
||||
template<class T>
|
||||
static inline wr::BorderRadius ToBorderRadius(const gfx::SizeTyped<T>& topLeft, const gfx::SizeTyped<T>& topRight,
|
||||
const gfx::SizeTyped<T>& bottomLeft, const gfx::SizeTyped<T>& bottomRight)
|
||||
static inline wr::BorderRadius ToBorderRadius(const mozilla::LayerSize& topLeft, const mozilla::LayerSize& topRight,
|
||||
const mozilla::LayerSize& bottomLeft, const mozilla::LayerSize& bottomRight)
|
||||
{
|
||||
wr::BorderRadius br;
|
||||
br.top_left = ToLayoutSize(topLeft);
|
||||
|
|
|
@ -7449,7 +7449,7 @@ BCBlockDirSeg::CreateWebRenderCommands(BCPaintBorderIterator& aIter,
|
|||
}
|
||||
wrSide[eSideLeft] = wr::ToBorderSide(ToDeviceColor(param->mBorderColor), param->mBorderStyle);
|
||||
|
||||
wr::BorderRadius borderRadii = wr::EmptyBorderRadius();
|
||||
wr::BorderRadius borderRadii = wr::ToBorderRadius( {0, 0}, {0, 0}, {0, 0}, {0, 0} );
|
||||
|
||||
// All border style is set to none except left side. So setting the widths of
|
||||
// each side to width of rect is fine.
|
||||
|
@ -7707,7 +7707,7 @@ BCInlineDirSeg::CreateWebRenderCommands(BCPaintBorderIterator& aIter,
|
|||
}
|
||||
wrSide[eSideTop] = wr::ToBorderSide(ToDeviceColor(param->mBorderColor), param->mBorderStyle);
|
||||
|
||||
wr::BorderRadius borderRadii = wr::EmptyBorderRadius();
|
||||
wr::BorderRadius borderRadii = wr::ToBorderRadius( {0, 0}, {0, 0}, {0, 0}, {0, 0} );
|
||||
|
||||
// All border style is set to none except top side. So setting the widths of
|
||||
// each side to height of rect is fine.
|
||||
|
|
Загрузка…
Ссылка в новой задаче