Summary: | selectionHasStyle and selectionStartHasStyle should use EditingStyle | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||||
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Enhancement | CC: | darin, enrica, eric, ojan, tony | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 54932, 55904 | ||||||||
Attachments: |
|
Description
Ryosuke Niwa
2011-03-07 13:41:01 PST
Created attachment 84993 [details]
cleanup
Created attachment 84994 [details]
cleanup 2
Comment on attachment 84993 [details] cleanup View in context: https://bugs.webkit.org/attachment.cgi?id=84993&action=review > Source/WebCore/page/ContextMenuController.cpp:41 > +#include "EditingStyle.h" I got rid of this line but two patches are identical otherwise. Comment on attachment 84994 [details] cleanup 2 View in context: https://bugs.webkit.org/attachment.cgi?id=84994&action=review > Source/WebCore/editing/EditingStyle.cpp:516 > +// CSS properties that only has a visual difference when applied to text. Verb agreement problem here. Should be “have” instead of “has”. But I think the verb “create” is better. > Source/WebCore/editing/EditingStyle.cpp:527 > + RefPtr<CSSMutableStyleDeclaration> diff = getPropertiesNotIn(m_mutableStyle.get(), styleToCompare); Even though diff is a “term of art”, I would use the word “difference” here in this code you moved. Thanks for the review as always! Will fix both before landing the patch. (In reply to comment #4) > (From update of attachment 84994 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=84994&action=review > > > Source/WebCore/editing/EditingStyle.cpp:516 > > +// CSS properties that only has a visual difference when applied to text. > > Verb agreement problem here. Should be “have” instead of “has”. > > But I think the verb “create” is better. > > > Source/WebCore/editing/EditingStyle.cpp:527 > > + RefPtr<CSSMutableStyleDeclaration> diff = getPropertiesNotIn(m_mutableStyle.get(), styleToCompare); > > Even though diff is a “term of art”, I would use the word “difference” here in this code you moved. Committed r80528: <http://trac.webkit.org/changeset/80528> |