зеркало из https://github.com/mozilla/gecko-dev.git
Bug 694213. Make various display items return bounds in the correct coordinate space. r=roc
This commit is contained in:
Родитель
295e005c86
Коммит
5fd981457f
|
@ -114,7 +114,7 @@ private:
|
|||
|
||||
nsRect
|
||||
nsDisplayButtonBoxShadowOuter::GetBounds(nsDisplayListBuilder* aBuilder) {
|
||||
return mFrame->GetVisualOverflowRect() + ToReferenceFrame();
|
||||
return mFrame->GetVisualOverflowRectRelativeToSelf() + ToReferenceFrame();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -153,7 +153,7 @@ public:
|
|||
// override bounds because the list item focus ring may extend outside
|
||||
// the nsSelectsAreaFrame
|
||||
nsListControlFrame* listFrame = GetEnclosingListFrame(GetUnderlyingFrame());
|
||||
return listFrame->GetVisualOverflowRect() +
|
||||
return listFrame->GetVisualOverflowRectRelativeToSelf() +
|
||||
aBuilder->ToReferenceFrame(listFrame);
|
||||
}
|
||||
virtual void Paint(nsDisplayListBuilder* aBuilder,
|
||||
|
|
|
@ -226,7 +226,7 @@ public:
|
|||
|
||||
virtual nsRect GetBounds(nsDisplayListBuilder* aBuilder)
|
||||
{
|
||||
return mFrame->GetVisualOverflowRect() + ToReferenceFrame();
|
||||
return mFrame->GetVisualOverflowRectRelativeToSelf() + ToReferenceFrame();
|
||||
}
|
||||
virtual void HitTest(nsDisplayListBuilder* aBuilder, const nsRect& aRect,
|
||||
HitTestState* aState, nsTArray<nsIFrame*> *aOutFrames) {
|
||||
|
|
|
@ -4137,7 +4137,7 @@ public:
|
|||
#endif
|
||||
|
||||
virtual nsRect GetBounds(nsDisplayListBuilder* aBuilder) {
|
||||
return mFrame->GetVisualOverflowRect() + ToReferenceFrame();
|
||||
return mFrame->GetVisualOverflowRectRelativeToSelf() + ToReferenceFrame();
|
||||
}
|
||||
virtual void HitTest(nsDisplayListBuilder* aBuilder, const nsRect& aRect,
|
||||
HitTestState* aState, nsTArray<nsIFrame*> *aOutFrames) {
|
||||
|
|
|
@ -379,7 +379,7 @@ nsDisplayXULTextBox::PaintTextToContext(nsRenderingContext* aCtx,
|
|||
|
||||
nsRect
|
||||
nsDisplayXULTextBox::GetBounds(nsDisplayListBuilder* aBuilder) {
|
||||
return mFrame->GetVisualOverflowRect() + ToReferenceFrame();
|
||||
return mFrame->GetVisualOverflowRectRelativeToSelf() + ToReferenceFrame();
|
||||
}
|
||||
|
||||
nsRect
|
||||
|
|
Загрузка…
Ссылка в новой задаче