Backed out changeset 1593dfc4cf04 (bug 1405359)

This commit is contained in:
Sebastian Hengst 2017-10-25 00:16:37 +02:00
Родитель d3632a713b
Коммит 5a6323a88c
1 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -12,9 +12,6 @@
#include "nsDisplayList.h"
#include "UnitTransforms.h"
#define SLH_LOG(...)
//#define SLH_LOG(...) printf_stderr("SLH: " __VA_ARGS__)
namespace mozilla {
namespace layers {
@ -58,15 +55,12 @@ void
ScrollingLayersHelper::BeginItem(nsDisplayItem* aItem,
const StackingContextHelper& aStackingContext)
{
SLH_LOG("processing item %p\n", aItem);
ItemClips clips(aItem->GetActiveScrolledRoot(), aItem->GetClipChain());
MOZ_ASSERT(!mItemClipStack.empty());
if (clips.HasSameInputs(mItemClipStack.back())) {
// Early-exit because if the clips are the same then we don't need to do
// do the work of popping the old stuff and then pushing it right back on
// for the new item.
SLH_LOG("early-exit for %p\n", aItem);
return;
}
mItemClipStack.back().Unapply(mBuilder);
@ -136,8 +130,6 @@ ScrollingLayersHelper::BeginItem(nsDisplayItem* aItem,
clips.Apply(mBuilder);
mItemClipStack.push_back(clips);
SLH_LOG("done setup for %p\n", aItem);
}
std::pair<Maybe<FrameMetrics::ViewID>, Maybe<wr::WrClipId>>