WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
208625
Make m_viewportConstrainedObjects into a WeakHashSet
https://bugs.webkit.org/show_bug.cgi?id=208625
Summary
Make m_viewportConstrainedObjects into a WeakHashSet
Simon Fraser (smfr)
Reported
2020-03-04 22:00:16 PST
Make m_viewportConstrainedObjects into a WeakHashSet
Attachments
Patch
(10.51 KB, patch)
2020-03-04 22:00 PST
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
Patch
(10.88 KB, patch)
2020-03-05 09:08 PST
,
Simon Fraser (smfr)
koivisto
: review+
Details
Formatted Diff
Diff
Patch
(11.48 KB, patch)
2020-03-05 09:19 PST
,
Simon Fraser (smfr)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2020-03-04 22:00:45 PST
Created
attachment 392535
[details]
Patch
Ryosuke Niwa
Comment 2
2020-03-04 22:05:27 PST
Comment on
attachment 392535
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392535&action=review
> Source/WebCore/page/FrameView.h:301 > - bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObjects && m_viewportConstrainedObjects->size() > 0; } > + bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObjects && m_viewportConstrainedObjects->computeSize(); }
Use !m_viewportConstrainedObjects->computeEmpty() instead. computeSize() will iterate over the entire map.
Simon Fraser (smfr)
Comment 3
2020-03-05 09:08:59 PST
Created
attachment 392580
[details]
Patch
Antti Koivisto
Comment 4
2020-03-05 09:11:38 PST
Comment on
attachment 392580
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=392580&action=review
> Source/WebCore/page/FrameView.h:299 > + typedef WeakHashSet<RenderLayerModelObject> ViewportConstrainedObjectSet;
using ViewportConstrainedObjectSet = WeakHashSet<RenderLayerModelObject>; reads better though I'm not sure this is needed in the first place.
Simon Fraser (smfr)
Comment 5
2020-03-05 09:19:04 PST
Created
attachment 392583
[details]
Patch
WebKit Commit Bot
Comment 6
2020-03-05 11:06:24 PST
Comment on
attachment 392583
[details]
Patch Clearing flags on attachment: 392583 Committed
r257933
: <
https://trac.webkit.org/changeset/257933
>
Radar WebKit Bug Importer
Comment 7
2020-03-05 11:45:16 PST
<
rdar://problem/60093382
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug