Make StyleRuleBase::Clone() always clone [chromium/src : main]

0 views
Skip to first unread message

Anders Hartvoll Ruud (Gerrit)

unread,
Apr 13, 2026, 9:06:14 AM (yesterday) Apr 13
to Steinar H Gunderson, Menard, Alexis, chromium...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org
Attention needed from Steinar H Gunderson

Anders Hartvoll Ruud voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Steinar H Gunderson
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I17f1e5cda0981f5cc29e38bd7d65ec060f0b3e7c
Gerrit-Change-Number: 7755161
Gerrit-PatchSet: 1
Gerrit-Owner: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
Gerrit-Reviewer: Steinar H Gunderson <se...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-Attention: Steinar H Gunderson <se...@chromium.org>
Gerrit-Comment-Date: Mon, 13 Apr 2026 13:06:00 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Steinar H Gunderson (Gerrit)

unread,
Apr 13, 2026, 9:34:18 AM (yesterday) Apr 13
to Anders Hartvoll Ruud, chromiu...@luci-project-accounts.iam.gserviceaccount.com, Menard, Alexis, chromium...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org
Attention needed from Anders Hartvoll Ruud

Steinar H Gunderson added 1 comment

File third_party/blink/renderer/core/css/style_rule.cc
Line 709, Patchset 1 (Parent): if (!old_inner_rule || !old_inner_rule->ChildRules()) {
Steinar H Gunderson . unresolved

I don't think this is right. Why do you need this for kContents and kApplyMixin? Their contents is always cloned in RuleSet::AddChildRules(), so why do you need to clone them again here?

Open in Gerrit

Related details

Attention is currently required from:
  • Anders Hartvoll Ruud
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I17f1e5cda0981f5cc29e38bd7d65ec060f0b3e7c
    Gerrit-Change-Number: 7755161
    Gerrit-PatchSet: 1
    Gerrit-Owner: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Reviewer: Steinar H Gunderson <se...@chromium.org>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Comment-Date: Mon, 13 Apr 2026 13:34:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Anders Hartvoll Ruud (Gerrit)

    unread,
    4:37 AM (7 hours ago) 4:37 AM
    to chromiu...@luci-project-accounts.iam.gserviceaccount.com, Steinar H Gunderson, Menard, Alexis, chromium...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org
    Attention needed from Steinar H Gunderson

    Anders Hartvoll Ruud added 1 comment

    File third_party/blink/renderer/core/css/style_rule.cc
    Line 709, Patchset 1 (Parent): if (!old_inner_rule || !old_inner_rule->ChildRules()) {
    Steinar H Gunderson . resolved

    I don't think this is right. Why do you need this for kContents and kApplyMixin? Their contents is always cloned in RuleSet::AddChildRules(), so why do you need to clone them again here?

    Anders Hartvoll Ruud

    `Clone()` needs to actually clone due to `StyleSheetContents` unsharing. What `AddChildRules()` does isn't really relevant.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Steinar H Gunderson
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I17f1e5cda0981f5cc29e38bd7d65ec060f0b3e7c
      Gerrit-Change-Number: 7755161
      Gerrit-PatchSet: 1
      Gerrit-Owner: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Steinar H Gunderson <se...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-Attention: Steinar H Gunderson <se...@chromium.org>
      Gerrit-Comment-Date: Tue, 14 Apr 2026 08:36:48 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Steinar H Gunderson <se...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages