Summary: | Fix some encapsulation issues of RuleSet | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Benjamin Poulain <benjamin> | ||||
Component: | CSS | Assignee: | Benjamin Poulain <benjamin> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | allan.jensen, commit-queue, darin, esprehn+autocc, glenn, macpherson, menard | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Benjamin Poulain
2013-08-16 22:47:06 PDT
Created attachment 208979 [details]
Patch
Comment on attachment 208979 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=208979&action=review > Source/WebCore/css/RuleSet.h:111 > + RuleSetSelectorPair(const RuleSetSelectorPair& rs) : selector(rs.selector), ruleSet(const_cast<RuleSetSelectorPair*>(&rs)->ruleSet.release()) { } I think the word “pair” would be better than “rs” for this variable name. I think it’s awkward to write this as a copy constructor instead of a move constructor. Looks like you are just moving this code, though. Committed r154299: <http://trac.webkit.org/changeset/154299> |