зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1230075 - Allow perspective items in hittest() for preserve-3d cases. r=mattwoodrow
This commit is contained in:
Родитель
8701025836
Коммит
07d865de46
|
@ -1889,9 +1889,11 @@ void nsDisplayList::HitTest(nsDisplayListBuilder* aBuilder, const nsRect& aRect,
|
|||
if (aState->mInPreserves3D) {
|
||||
// Collect leaves of the current 3D rendering context.
|
||||
for (item = GetBottom(); item; item = item->GetAbove()) {
|
||||
MOZ_ASSERT(item->GetType() == nsDisplayTransform::TYPE_TRANSFORM);
|
||||
MOZ_ASSERT(item->GetType() == nsDisplayTransform::TYPE_TRANSFORM ||
|
||||
item->GetType() == nsDisplayTransform::TYPE_PERSPECTIVE);
|
||||
if (item->Frame()->Extend3DContext() &&
|
||||
!static_cast<nsDisplayTransform*>(item)->IsTransformSeparator()) {
|
||||
(item->GetType() == nsDisplayTransform::TYPE_PERSPECTIVE ||
|
||||
!static_cast<nsDisplayTransform*>(item)->IsTransformSeparator())) {
|
||||
item->HitTest(aBuilder, aRect, aState, aOutFrames);
|
||||
} else {
|
||||
// One of leaves in the current 3D rendering context.
|
||||
|
|
Загрузка…
Ссылка в новой задаче