WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
73703
StyledElement: Simplify addCSSColor().
https://bugs.webkit.org/show_bug.cgi?id=73703
Summary
StyledElement: Simplify addCSSColor().
Andreas Kling
Reported
2011-12-02 14:18:00 PST
StyledElement: Simplify addCSSColor().
Attachments
Patch
(2.75 KB, patch)
2011-12-02 14:19 PST
,
Andreas Kling
darin
: review+
kling
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2011-12-02 14:19:06 PST
Created
attachment 117689
[details]
Patch
Darin Adler
Comment 2
2011-12-02 14:32:01 PST
Comment on
attachment 117689
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=117689&action=review
> Source/WebCore/dom/StyledElement.cpp:374 > + // An empty string doesn't apply a color. (Only whitespace does, which is why this check occurs before trimming.)
This wording (and the old wording) is terribly confusing. The phrase “only whitespace applies a color” is not what we mean here. What we mean is “A string containing only whitespace applies a color”. So we need to word it that way: “A string containing only”, “One containing only”, “A string with only”, or “One with only”. The term “trimming” is confusing, since the function called below is stripWhiteSpace, and does not use the word “trim”.
> Source/WebCore/dom/StyledElement.cpp:388 > + Color color(colorString);
I think I’d call this local variable parsedColor.
Andreas Kling
Comment 3
2011-12-02 15:48:55 PST
Committed
r101870
: <
http://trac.webkit.org/changeset/101870
>
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