Bug 231923 - r284315 can cause build break.
Summary: r284315 can cause build break.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Local Build
Hardware: All All
: P2 Minor
Assignee: Jigen Zhou
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-18 17:05 PDT by Jigen Zhou
Modified: 2021-10-19 20:05 PDT (History)
5 users (show)

See Also:


Attachments
Patch to fix build break. (1.55 KB, patch)
2021-10-18 18:04 PDT, Jigen Zhou
no flags Details | Formatted Diff | Diff
Patch to fix build break. (1.60 KB, patch)
2021-10-19 09:41 PDT, Jigen Zhou
no flags Details | Formatted Diff | Diff
Patch to fix build break. (1.54 KB, patch)
2021-10-19 18:28 PDT, Jigen Zhou
no flags Details | Formatted Diff | Diff
Patch for landing (1.67 KB, patch)
2021-10-19 18:55 PDT, Michael Catanzaro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jigen Zhou 2021-10-18 17:05:32 PDT
Commit ecbb6e69c1bda8ac90a08f7e857207596b9b9c5 (2021-10-16 12:39 Use inline iterator for SVG reverse BiDI reordering) causes build break in our local build:

In file included from WebCore/DerivedSources/unified-sources/UnifiedSource-4babe430-7.cpp:1:
In file included from C:/work/webkit/jenkins/neko/Source/WebCore\Modules/highlight/AppHighlightStorage.cpp:46:
In file included from C:/work/webkit/jenkins/neko/Source/WebCore/editing\TextIterator.h:30:
C:/work/webkit/jenkins/neko/Source/WebCore/layout/integration\InlineIteratorLogicalOrderTraversal.h:76:32: error: member access into incomplete type 'const WebCore::RenderBlockFlow'
    if (line->containingBlock().style().rtlOrdering() == Order::Visual)
                               ^
C:/work/webkit/jenkins/neko/Source/WebCore/page/FrameViewLayoutContext.h:39:7: note: forward declaration of 'WebCore::RenderBlockFlow'
class RenderBlockFlow;
      ^
1 error generated.
Comment 1 Jigen Zhou 2021-10-18 18:04:06 PDT
Created attachment 441667 [details]
Patch to fix build break.
Comment 2 Jigen Zhou 2021-10-19 09:41:33 PDT
Created attachment 441742 [details]
Patch to fix build break.
Comment 3 Fujii Hironori 2021-10-19 13:59:30 PDT
Comment on attachment 441742 [details]
Patch to fix build break.

View in context: https://bugs.webkit.org/attachment.cgi?id=441742&action=review

> Source/WebCore/ChangeLog:11
> +        ecbb6e69c1bda8ac90a08f7e857207596b9b9c5 has access to RenderBlockFLow's method

WebKit doesn't have such commit.
https://github.com/WebKit/WebKit/commit/ecbb6e69c1bda8ac90a08f7e857207596b9b9c5

No one uses Git hash to point revision. 
Use Identifiers (243111@main), or SVN revision (r284315).
https://github.com/WebKit/WebKit/wiki/Source-Control#identifiers

> Source/WebCore/layout/integration/InlineIteratorLogicalOrderTraversal.h:30
> +#include "RenderBlockFlow.h"

This file doesn't use RenderBlockFlow. I think this is wrong fix.
Comment 4 Fujii Hironori 2021-10-19 14:07:52 PDT
Comment on attachment 441742 [details]
Patch to fix build break.

View in context: https://bugs.webkit.org/attachment.cgi?id=441742&action=review

>> Source/WebCore/layout/integration/InlineIteratorLogicalOrderTraversal.h:30
>> +#include "RenderBlockFlow.h"
> 
> This file doesn't use RenderBlockFlow. I think this is wrong fix.

May bad. This fix looks good.
Comment 5 Jigen Zhou 2021-10-19 18:28:35 PDT
Created attachment 441831 [details]
Patch to fix build break.
Comment 6 Michael Catanzaro 2021-10-19 18:54:11 PDT
I'm not sure how you generated this patch, but it seems to be malformed. I'll reupload this manually.
Comment 7 Myles C. Maxfield 2021-10-19 18:55:19 PDT
Looks like the boys are having trouble applying the patch
Comment 8 Michael Catanzaro 2021-10-19 18:55:37 PDT
Created attachment 441835 [details]
Patch for landing
Comment 9 Myles C. Maxfield 2021-10-19 18:55:48 PDT
*bots
Comment 10 Jigen Zhou 2021-10-19 19:04:03 PDT
(In reply to Michael Catanzaro from comment #8)
> Created attachment 441835 [details]
> Patch for landing

Thanks. I broke my previous patch with a manual modification (to use svn revison as reference as Fujii-san suggested).
Comment 11 EWS 2021-10-19 20:04:08 PDT
Committed r284515 (243258@main): <https://commits.webkit.org/243258@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 441835 [details].
Comment 12 Radar WebKit Bug Importer 2021-10-19 20:05:18 PDT
<rdar://problem/84445380>