WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
98631
Rename RenderObject::firstLineStyleSlowCase() to a more appropriate cachedFirstLineStyle()
https://bugs.webkit.org/show_bug.cgi?id=98631
Summary
Rename RenderObject::firstLineStyleSlowCase() to a more appropriate cachedFir...
Arpita Bahuguna
Reported
2012-10-07 23:48:59 PDT
Contrary to its name, firstLineStyleSlowCase() actually picks up the cached styles. We should thus rename it to cachedFirstLineStyle() (in keeping with RenderObject::uncachedFirstLineStyle()).
Attachments
Patch
(3.04 KB, patch)
2012-10-08 06:25 PDT
,
Arpita Bahuguna
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Arpita Bahuguna
Comment 1
2012-10-08 06:25:35 PDT
Created
attachment 167531
[details]
Patch
Eric Seidel (no email)
Comment 2
2012-10-08 09:03:26 PDT
Comment on
attachment 167531
[details]
Patch It also fetches the first line style. m_style/style() is where it's cached. I don't think this change makes sense.
Elliott Sprehn
Comment 3
2012-10-08 09:45:46 PDT
(In reply to
comment #2
)
> (From update of
attachment 167531
[details]
) > It also fetches the first line style. m_style/style() is where it's cached. I don't think this change makes sense.
Can you explain what you mean? This is the same as getCachedPseudoStyle() and getUncachedPseudoStyle(). The naming right now doesn't make any sense to me because this isn't the slow case, it's just the default case when your document uses first line styles.
Elliott Sprehn
Comment 4
2012-10-08 09:47:12 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (From update of
attachment 167531
[details]
[details]) > > It also fetches the first line style. m_style/style() is where it's cached. I don't think this change makes sense. > > Can you explain what you mean? This is the same as getCachedPseudoStyle() and getUncachedPseudoStyle(). The naming right now doesn't make any sense to me because this isn't the slow case, it's just the default case when your document uses first line styles.
For reference, I requested this change because we have getUncached and getCached for pseudo styles, but first line has uncachedFirstLineStyle() and firstLineStyle() and firstLineStyleSlowCase of which the last one doesn't have a good name since it doesn't tell you what it's really doing. :)
Eric Seidel (no email)
Comment 5
2012-10-08 15:07:16 PDT
Comment on
attachment 167531
[details]
Patch OK.
WebKit Review Bot
Comment 6
2012-10-08 15:30:16 PDT
Comment on
attachment 167531
[details]
Patch Clearing flags on attachment: 167531 Committed
r130694
: <
http://trac.webkit.org/changeset/130694
>
WebKit Review Bot
Comment 7
2012-10-08 15:30:19 PDT
All reviewed patches have been landed. Closing bug.
Arpita Bahuguna
Comment 8
2012-10-09 04:08:30 PDT
Thanks Eric and Elliott for the review.
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