Closed Bug 1323606 Opened 9 years ago Closed 9 years ago

implement the pref layout.show_previous_page for e10s

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

Details

Attachments

(1 file)

Turns out this is easy once I remembered where the code was.
Attached patch patchSplinter Review
Attachment #8818735 - Flags: review?(gwright)
Comment on attachment 8818735 [details] [diff] [review] patch Review of attachment 8818735 [details] [diff] [review]: ----------------------------------------------------------------- lgtm, nice catch. I'm not a peer for view/ though, so maybe someone else will need to review this. ::: view/nsView.cpp @@ +38,5 @@ > mViewManager = aViewManager; > mDirtyRegion = nullptr; > mWidgetIsTopLevel = false; > + > + static bool addedShowPreviousPage = false; nit: I think the convention is normally sShowPreviousPageInitialized?
Attachment #8818735 - Flags: review?(gwright) → review+
(In reply to George Wright (:gw280) (:gwright) from comment #2) > nit: I think the convention is normally sShowPreviousPageInitialized? Changed it.
Attachment #8818735 - Flags: review?(mats)
Comment on attachment 8818735 [details] [diff] [review] patch >- return mFrame ? mFrame->PresContext()->PresShell()->IsPaintingSuppressed() : false; >+ return sShowPreviousPage && mFrame ? mFrame->PresContext()->PresShell()->IsPaintingSuppressed() : false; While we're here we might as well simplify this expression. "a ? b : false" is equivalent to "a && b", so the above can be written as: return sShowPreviousPage && mFrame && mFrame->PresContext()->PresShell()->IsPaintingSuppressed(); Also, I can't seem to find any documentation for what the pref "layout.show_previous_page" is supposed to do. Can you document the exact semantics either here or in nsSubDocumentFrame.cpp, please?
Attachment #8818735 - Flags: review?(mats) → review+
Done.
Pushed by tnikkel@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/cf9d3767e4e8 Implement the pref layout.show_previous_page for e10s. r=gw280 r=mats
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: