| Summary: | Ambiguous naming: Do not call replacedContentRect()'s return value paint rect. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> | ||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | commit-queue, esprehn+autocc, glenn, kondapallykalyan, sabouhallawa, simon.fraser | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
zalan
2015-01-31 15:05:29 PST
Created attachment 245802 [details]
Patch
Comment on attachment 245802 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=245802&action=review > Source/WebCore/rendering/RenderHTMLCanvas.cpp:73 > + LayoutRect contentBoxRect = this->contentBoxRect(); > + contentBoxRect.moveBy(paintOffset); > + LayoutRect contentRect = replacedContentRect(intrinsicSize()); I'm not sure "contentBoxRect" vs "contentRect" is much clearer. Maybe "contentRect" could be "imageDestinationRect"? (In reply to comment #2) > Comment on attachment 245802 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=245802&action=review > > > Source/WebCore/rendering/RenderHTMLCanvas.cpp:73 > > + LayoutRect contentBoxRect = this->contentBoxRect(); > > + contentBoxRect.moveBy(paintOffset); > > + LayoutRect contentRect = replacedContentRect(intrinsicSize()); > > I'm not sure "contentBoxRect" vs "contentRect" is much clearer. > > Maybe "contentRect" could be "imageDestinationRect"? Ok, but imageDestinationRect sounds too specific. This is a replaced element term where the content box rect is extended/shrunk/fit based on the object-fit property value. How about we just call it "replacedContentRect"? Created attachment 245889 [details]
Patch
Comment on attachment 245889 [details] Patch Clearing flags on attachment: 245889 Committed r179488: <http://trac.webkit.org/changeset/179488> All reviewed patches have been landed. Closing bug. |