Replace FWL_STYLE_WGT defines with WidgetStyle enum and Mask [pdfium : main]

1 view
Skip to first unread message

Aryan Krishnan (Gerrit)

unread,
May 31, 2026, 1:27:19 PMMay 31
to Helmut Januschka, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Helmut Januschka

Aryan Krishnan added 2 comments

Commit Message
Line 9, Patchset 1 (Latest):Convert the base FWL widget style bitmask from preprocessor macros to a scoped enum used with fxcrt::Mask, matching the pattern established for PWL widgets in CL 145410.
Aryan Krishnan . unresolved

Line 9 seems to overflow 72 chars.

File xfa/fwl/cfwl_edit.cpp
Line 720, Patchset 1 (Latest): FWL_STYLEEXT_SCB_Vert,
Aryan Krishnan . unresolved

Can you double check if this bit has been formatted, seems a bit off that this would come to the next line when the formatted could have put it in the previous line.

Open in Gerrit

Related details

Attention is currently required from:
  • Helmut Januschka
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: Id77640ac2eb9013be0c9c93d975e1e8fc955faa8
Gerrit-Change-Number: 148812
Gerrit-PatchSet: 1
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
Gerrit-Comment-Date: Sun, 31 May 2026 17:27:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Helmut Januschka (Gerrit)

unread,
Jun 7, 2026, 3:53:59 PMJun 7
to Lei Zhang, Aryan Krishnan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
Attention needed from Aryan Krishnan and Lei Zhang

Helmut Januschka added 2 comments

Commit Message
Line 9, Patchset 1:Convert the base FWL widget style bitmask from preprocessor macros to a scoped enum used with fxcrt::Mask, matching the pattern established for PWL widgets in CL 145410.
Aryan Krishnan . resolved

Line 9 seems to overflow 72 chars.

Helmut Januschka

Done

File xfa/fwl/cfwl_edit.cpp
Line 720, Patchset 1: FWL_STYLEEXT_SCB_Vert,
Aryan Krishnan . resolved

Can you double check if this bit has been formatted, seems a bit off that this would come to the next line when the formatted could have put it in the previous line.

Helmut Januschka

Double-checked with `git cl format` , no changes. clang-format breaks the aggregate-init list onto one element per line once the first field is `{}` rather than a bare `0`, which is why `FWL_STYLEEXT_SCB_Vert` moves to the next line.

Open in Gerrit

Related details

Attention is currently required from:
  • Aryan Krishnan
  • Lei Zhang
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: Id77640ac2eb9013be0c9c93d975e1e8fc955faa8
    Gerrit-Change-Number: 148812
    Gerrit-PatchSet: 2
    Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
    Gerrit-Comment-Date: Sun, 07 Jun 2026 19:53:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Aryan Krishnan <aryankr...@gmail.com>
    unsatisfied_requirement
    open
    diffy

    Lei Zhang (Gerrit)

    unread,
    Jun 10, 2026, 6:27:02 PMJun 10
    to Helmut Januschka, Lei Zhang, Aryan Krishnan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
    Attention needed from Aryan Krishnan and Helmut Januschka

    Lei Zhang added 3 comments

    File xfa/fwl/cfwl_widget.h
    Line 140, Patchset 2 (Latest): Mask<WidgetStyle> styles_removed);
    Lei Zhang . unresolved

    All the callers pass in 0xFFFFFFFF here, so just remove this parameter and simplify the method?

    Line 39, Patchset 2 (Latest): kWindowTypeMask = 3L << 0,
    Lei Zhang . unresolved

    This mask should be separate from the enum, and it can be built up from the 2 values above.

    File xfa/fwl/cfwl_widget.cpp
    Line 99, Patchset 2 (Latest): properties_.styles_ &= ~styles_removed;
    Lei Zhang . resolved

    As-is: Can call Clear() here, but see other comment about simplifying.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Aryan Krishnan
    • Helmut Januschka
    Submit Requirements:
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: pdfium
      Gerrit-Branch: main
      Gerrit-Change-Id: Id77640ac2eb9013be0c9c93d975e1e8fc955faa8
      Gerrit-Change-Number: 148812
      Gerrit-PatchSet: 2
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
      Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
      Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
      Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
      Gerrit-Comment-Date: Wed, 10 Jun 2026 22:27:00 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      unsatisfied_requirement
      open
      diffy

      Helmut Januschka (Gerrit)

      unread,
      Jun 14, 2026, 3:07:51 AM (11 days ago) Jun 14
      to Lei Zhang, Aryan Krishnan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
      Attention needed from Aryan Krishnan and Lei Zhang

      Helmut Januschka added 2 comments

      File xfa/fwl/cfwl_widget.h
      Line 140, Patchset 2: Mask<WidgetStyle> styles_removed);
      Lei Zhang . resolved

      All the callers pass in 0xFFFFFFFF here, so just remove this parameter and simplify the method?

      Helmut Januschka

      Done

      Line 39, Patchset 2: kWindowTypeMask = 3L << 0,
      Lei Zhang . resolved

      This mask should be separate from the enum, and it can be built up from the 2 values above.

      Helmut Januschka

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Aryan Krishnan
      • Lei Zhang
      Submit Requirements:
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: pdfium
        Gerrit-Branch: main
        Gerrit-Change-Id: Id77640ac2eb9013be0c9c93d975e1e8fc955faa8
        Gerrit-Change-Number: 148812
        Gerrit-PatchSet: 3
        Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
        Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
        Gerrit-Attention: Lei Zhang <the...@chromium.org>
        Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
        Gerrit-Comment-Date: Sun, 14 Jun 2026 07:07:47 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Lei Zhang <the...@chromium.org>
        unsatisfied_requirement
        open
        diffy

        Lei Zhang (Gerrit)

        unread,
        Jun 24, 2026, 6:10:05 PM (12 hours ago) Jun 24
        to Helmut Januschka, Lei Zhang, Aryan Krishnan, pdfium...@luci-project-accounts.iam.gserviceaccount.com, pdfium-...@googlegroups.com
        Attention needed from Aryan Krishnan and Helmut Januschka

        Lei Zhang voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Aryan Krishnan
        • Helmut Januschka
        Submit Requirements:
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: pdfium
        Gerrit-Branch: main
        Gerrit-Change-Id: Id77640ac2eb9013be0c9c93d975e1e8fc955faa8
        Gerrit-Change-Number: 148812
        Gerrit-PatchSet: 3
        Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
        Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
        Gerrit-CC: Aryan Krishnan <aryankr...@gmail.com>
        Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
        Gerrit-Attention: Aryan Krishnan <aryankr...@gmail.com>
        Gerrit-Comment-Date: Wed, 24 Jun 2026 22:10:00 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages