WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
64782
Possible unintentional early return in CSSStyleSelector::applyProperty() for CSSPropertyWebkitTextEmphasisStyle.
https://bugs.webkit.org/show_bug.cgi?id=64782
Summary
Possible unintentional early return in CSSStyleSelector::applyProperty() for ...
Luke Macpherson
Reported
2011-07-18 22:12:47 PDT
Just looking at CSSStyleSelector::applyProperty() for the CSSPropertyWebkitTextEmphasisStyle case, and I see: HANDLE_INHERIT_AND_INITIAL(textEmphasisFill, TextEmphasisFill) HANDLE_INHERIT_AND_INITIAL(textEmphasisMark, TextEmphasisMark) HANDLE_INHERIT_AND_INITIAL(textEmphasisCustomMark, TextEmphasisCustomMark) if (isInherit || isInitial) return; I wanted to check with mitz (svn blame owner) this was the intended behavior - though the more I look at it the more unlikely that seems. Currently the HANDLE_INHERIT_AND_INITIAL macro will return immediately in the TextEmphasisFill case when (isInherit || isInitial), so the subsequent code is unreachable. If you can confirm that the intended behavior was to call all three cases, I'll fix it up during an upcoming refactoring.
Attachments
Add attachment
proposed patch, testcase, etc.
Luke Macpherson
Comment 1
2011-07-18 22:19:44 PDT
Hmm, I notice the same logical error happens for CSSPropertyWebkitTransformOrigin and CSSPropertyWebkitPerspectiveOrigin have the same issue. Just goes to show how bad hiding a return statement inside a macro is.
mitz
Comment 2
2011-07-18 22:21:18 PDT
Thanks for noticing this!
Simon Fraser (smfr)
Comment 3
2011-07-18 22:26:58 PDT
I hate those macros!
Luke Macpherson
Comment 4
2011-07-18 22:36:17 PDT
Working on it, hopefully all those macros will be gone soon.
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