Closed Bug 334547 Opened 19 years ago Closed 19 years ago

Get rid of weird scrollframe code in nsCSSFrameConstructor::ConstructDocElementFrame

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sharparrow1, Assigned: sharparrow1)

Details

Attachments

(1 file)

There's a significant amount of code in ConstructDocElementFrame that executes only if isScrollable is true. However, isScrollable is never true. If IsScrollableOverflow() is true and the document isn't paginated, PropagateScrollToViewport() will return the root content element, so propagatedScrollToViewport will be true, so !propagatedScrollToViewport will be false. Therefore, isScrollable is false in all cases. Because isScrollable is always false, we should get rid of it.
Attached patch PatchSplinter Review
Assignee: nobody → sharparrow1
Status: NEW → ASSIGNED
Attachment #218931 - Flags: review?(roc)
Note: accidentally checked bug 334699 (dealing with widget code) referencing this bug.
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
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

Creator:
Created:
Updated:
Size: