Summary: | REGRESSION(r179706): Caused memory corruption on some tests | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | WebKit Commit Bot <commit-queue> | ||||||
Component: | Layout and Rendering | Assignee: | WebKit Commit Bot <commit-queue> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | esprehn+autocc, glenn, hyatt, kondapallykalyan, mjs, zalan | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 136544 | ||||||||
Attachments: |
|
Description
WebKit Commit Bot
2015-02-05 22:24:01 PST
Created attachment 246150 [details] ROLLOUT of r179706 Any committer can land this patch automatically by marking it commit-queue+. The commit-queue will build and test the patch before landing to ensure that the rollout will be successful. This process takes approximately 15 minutes. If you would like to land the rollout faster, you can use the following command: webkit-patch land-attachment ATTACHMENT_ID where ATTACHMENT_ID is the ID of this attachment. Created attachment 246152 [details]
Patch
Comment on attachment 246152 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=246152&action=review > Source/WebCore/rendering/RenderLineBoxList.cpp:390 > + if (auto prevBox = box->prevRootBox()) There are different opinions on this, however I find it much preferable to see which classes I'm dealing with (i.e., I'd write this as RootInlineBox* previousBox = box->prevRootBox()). > Source/WebCore/rendering/RenderLineBoxList.cpp:392 > + // FIXME: Always dirty the next line. This is only strictly necessary some of the time, This sounds like a command (as if we needed always dirty the next line, but didn't). > Source/WebCore/rendering/RenderLineBoxList.cpp:394 > + // but it's hard to safely and completely compute the conditions under which it's safe > + // not to. I'd omit this, as it doesn't explain what is hard about this, and is thus unhelpful to the reader. Ping? (In reply to comment #3) > Comment on attachment 246152 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=246152&action=review > > > Source/WebCore/rendering/RenderLineBoxList.cpp:390 > > + if (auto prevBox = box->prevRootBox()) > > There are different opinions on this, however I find it much preferable to > see which classes I'm dealing with (i.e., I'd write this as RootInlineBox* > previousBox = box->prevRootBox()). I am in favor of not over-using auto, but I think in this case auto is acceptable as the method (prev/nextRootBox()) hints that the return type is a root box. Hopefully the perf bots will catch if there's any inline layout performance impact of this change. Committed r179750: <http://trac.webkit.org/changeset/179750> |