Bug 231277 - [PlayStation] Fix build break after r283441
Summary: [PlayStation] Fix build break after r283441
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Basuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-05 21:51 PDT by Basuke Suzuki
Modified: 2021-10-25 19:05 PDT (History)
5 users (show)

See Also:


Attachments
PATCH (1.76 KB, patch)
2021-10-05 21:58 PDT, Basuke Suzuki
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Basuke Suzuki 2021-10-05 21:51:40 PDT
In file included from WebCore/DerivedSources/unified-sources/UnifiedSource-42f7b70e-2.cpp:6:
In file included from C:/PSDev/webkit/Source/WebCore\xml/XPathFunctions.cpp:31:
In file included from C:/PSDev/webkit/Source/WebCore/dom\Element.h:32:
In file included from C:/PSDev/webkit/Source/WebCore/rendering/style\RenderStyle.h:62:
In file included from C:/PSDev/webkit/Source/WebCore/rendering/style/StyleRareNonInheritedData.h:28:
In file included from C:/PSDev/webkit/Source/WebCore/rendering\ClipPathOperation.h:33:
C:/PSDev/webkit/Source/WebCore/platform/graphics\Path.h:140:58: error: expected ')'
    bool strokeContains(const FloatPoint&, const Function<void(GraphicsContext&)>& strokeStyleApplier) const;
                                                         ^
C:/PSDev/webkit/Source/WebCore/platform/graphics\Path.h:140:24: note: to match this '('
    bool strokeContains(const FloatPoint&, const Function<void(GraphicsContext&)>& strokeStyleApplier) const;
                       ^
C:/PSDev/webkit/Source/WebCore/platform/graphics\Path.h:146:48: error: expected ')'
    FloatRect strokeBoundingRect(const Function<void(GraphicsContext&)>& strokeStyleApplier = { }) const;
                                               ^
C:/PSDev/webkit/Source/WebCore/platform/graphics\Path.h:146:33: note: to match this '('
    FloatRect strokeBoundingRect(const Function<void(GraphicsContext&)>& strokeStyleApplier = { }) const;
                                ^
2 errors generated.
Comment 1 Basuke Suzuki 2021-10-05 21:58:23 PDT
Created attachment 440329 [details]
PATCH
Comment 2 EWS 2021-10-05 23:14:43 PDT
Committed r283602 (242554@main): <https://commits.webkit.org/242554@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 440329 [details].
Comment 3 Radar WebKit Bug Importer 2021-10-05 23:15:20 PDT
<rdar://problem/83920199>
Comment 4 Fujii Hironori 2021-10-05 23:33:07 PDT
Comment on attachment 440329 [details]
PATCH

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

> Source/WebCore/platform/graphics/Path.h:140
> +    bool strokeContains(const FloatPoint&, const WTF::Function<void(GraphicsContext&)>& strokeStyleApplier) const;

This is not a right fix.
Path.h includes <wtf/Forward.h>, it has "using WTF::Function;"
You should remove all "using namespace XPath;".
Comment 5 Basuke Suzuki 2021-10-06 00:04:50 PDT
(In reply to Fujii Hironori from comment #4)
> Comment on attachment 440329 [details]
> PATCH
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=440329&action=review
> 
> > Source/WebCore/platform/graphics/Path.h:140
> > +    bool strokeContains(const FloatPoint&, const WTF::Function<void(GraphicsContext&)>& strokeStyleApplier) const;
> 
> This is not a right fix.
> Path.h includes <wtf/Forward.h>, it has "using WTF::Function;"
> You should remove all "using namespace XPath;".

We tried for days to fix that, but I gave up to fix like that. Actually in line 109, WTF prefix is already used so why not this isn't accepted?

Source\WebCore\platform\graphics\Path.h:109
> using PathApplierFunction = WTF::Function<void(const PathElement&)>;

But of course this is a build fix. Feel free to change like that but please don't revert this commit with such a reason. PlayStation port has been broken for days. We need to make it green.
Comment 6 Darin Adler 2021-10-06 08:28:10 PDT
Comment on attachment 440329 [details]
PATCH

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

>>> Source/WebCore/platform/graphics/Path.h:140
>>> +    bool strokeContains(const FloatPoint&, const WTF::Function<void(GraphicsContext&)>& strokeStyleApplier) const;
>> 
>> This is not a right fix.
>> Path.h includes <wtf/Forward.h>, it has "using WTF::Function;"
>> You should remove all "using namespace XPath;".
> 
> We tried for days to fix that, but I gave up to fix like that. Actually in line 109, WTF prefix is already used so why not this isn't accepted?
> 
> Source\WebCore\platform\graphics\Path.h:109

I agree with the comment. Removing "using namespace XPath" is the correct direction. Adding WTF prefixes is not our intended solution, the one in line 109 should be removed.
Comment 7 Basuke Suzuki 2021-10-06 10:52:58 PDT
> I agree with the comment. Removing "using namespace XPath" is the correct
> direction. Adding WTF prefixes is not our intended solution, the one in line
> 109 should be removed.

I believe Alex is already working on it.
https://bugs.webkit.org/show_bug.cgi?id=231186
Comment 8 Darin Adler 2021-10-06 11:09:10 PDT
(In reply to Basuke Suzuki from comment #7)
> I believe Alex is already working on it.
> https://bugs.webkit.org/show_bug.cgi?id=231186

I went a bit further in bug 231302.

Just curious: Could we now undo this WTF::Function change without re-breaking the PlayStation build?
Comment 9 Alex Christensen 2021-10-06 12:11:51 PDT
And https://bugs.webkit.org/show_bug.cgi?id=231318
Comment 10 Fujii Hironori 2021-10-25 19:05:17 PDT
(In reply to EWS from comment #2)
> Committed r283602 (242554@main): <https://commits.webkit.org/242554@main>

We no longer need this change. I'm going to revert it in Bug 232226.