Closed Bug 825692 Opened 12 years ago Closed 12 years ago

Avoid mShouldBuildLayer for textboxes on B2G

Categories

(Core :: Layout, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20
blocking-basecamp +
Tracking Status
firefox19 --- fixed
firefox20 --- fixed
b2g18 --- fixed

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

Details

Attachments

(1 file, 1 obsolete file)

"ShouldBuildLayer case should check mVScrollbarBox and mHScrollbarBox for null as well as styles.mHorizontal/mVertical for HIDDEN"
Blocks: 811509
OS: Mac OS X → Gonk (Firefox OS)
Comment on attachment 696809 [details] [diff] [review]
Avoid layerizing scrollframes that don't have scrollbar boxes

Review of attachment 696809 [details] [diff] [review]:
-----------------------------------------------------------------

::: layout/generic/nsGfxScrollFrame.cpp
@@ +2088,5 @@
>      ScrollbarStyles styles = GetScrollbarStylesFromFrame();
>      mShouldBuildLayer =
>         (styles.mHorizontal != NS_STYLE_OVERFLOW_HIDDEN ||
>          styles.mVertical != NS_STYLE_OVERFLOW_HIDDEN) &&
> +       (mVScrollbarBox || mHScrollbarBox) &&

Actually I think we should check styles.mHorizontal != HIDDEN && mHScrollbarBox etc. We need to have at least one scrollbar that's both present and has style != HIDDEN.
I'm happy with the stricter condition.
Attachment #696809 - Attachment is obsolete: true
Attachment #696809 - Flags: review?(roc)
Attachment #696824 - Flags: review?(roc)
https://hg.mozilla.org/integration/mozilla-inbound/rev/1004c01bb817

This fixes an unnecessary performance problem with input boxes and only impacts B2G
blocking-basecamp: --- → ?
blocking-basecamp: ? → +
Assignee: nobody → jmuizelaar
https://hg.mozilla.org/mozilla-central/rev/1004c01bb817
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Does this need to be uplifted?
(In reply to Andrew Overholt [:overholt] from comment #6)
> Does this need to be uplifted?

Yes.
Ryan - would you mind helping here?
Flags: needinfo?(ryanvm)
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: