WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
74435
inline setting m_regionForStyling since region is rarely set
https://bugs.webkit.org/show_bug.cgi?id=74435
Summary
inline setting m_regionForStyling since region is rarely set
Tony Chang
Reported
2011-12-13 12:05:32 PST
inline setting m_regionForStyling since region is rarely set
Attachments
Patch
(2.36 KB, patch)
2011-12-13 12:06 PST
,
Tony Chang
kling
: review+
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tony Chang
Comment 1
2011-12-13 12:06:08 PST
Created
attachment 119059
[details]
Patch
WebKit Review Bot
Comment 2
2011-12-13 13:51:54 PST
Comment on
attachment 119059
[details]
Patch
Attachment 119059
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/10844442
New failing tests: media/event-attributes.html
Tony Chang
Comment 3
2011-12-13 15:38:24 PST
Committed
r102712
: <
http://trac.webkit.org/changeset/102712
>
Darin Adler
Comment 4
2011-12-13 15:40:46 PST
What does “since region is rarely set” mean? This change is opaque to me.
Tony Chang
Comment 5
2011-12-13 15:42:22 PST
(In reply to
comment #4
)
> What does “since region is rarely set” mean? This change is opaque to me.
Region is NULL unless there are CSS Regions in the page. Do you want me to rewrite the ChangeLog entry?
Darin Adler
Comment 6
2011-12-13 15:46:17 PST
(In reply to
comment #5
)
> (In reply to
comment #4
) > > What does “since region is rarely set” mean? This change is opaque to me. > > Region is NULL unless there are CSS Regions in the page. Do you want me to rewrite the ChangeLog entry?
Probably not worth it now, but there’s just too much left unsaid in that note. A good comment would be more like: Inline all of initForRegionStyling except for the rarely used part for non-null regions.
Andreas Kling
Comment 7
2011-12-13 15:50:11 PST
(In reply to
comment #6
)
> (In reply to
comment #5
) > > (In reply to
comment #4
) > > > What does “since region is rarely set” mean? This change is opaque to me. > > > > Region is NULL unless there are CSS Regions in the page. Do you want me to rewrite the ChangeLog entry? > > Probably not worth it now, but there’s just too much left unsaid in that note. A good comment would be more like: > > Inline all of initForRegionStyling except for the rarely used part for non-null regions.
/me makes a mental note to increase his standards for ChangeLog entries. Given the code change, I thought this was fairly straightforward, but that comment is indeed more clear.
Tony Chang
Comment 8
2011-12-13 15:51:31 PST
ChangeLog updated in
http://trac.webkit.org/changeset/102714
.
Darin Adler
Comment 9
2011-12-13 15:53:25 PST
A comment to an even higher standard would say why the inlining is good. Such as “sped things up measurably” or “I am sure this is faster because the function is called in only one place” or whatever. Anyway, no need to try to polish this more.
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