[webkit-changes] [WebKit/WebKit] 5b848d: Refactor m_offset to align with Webkit styling in ...

Ahmad Saleem noreply at github.com
Mon Dec 12 00:33:54 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5b848d9183ab8c666ae5ca856b5c753fa67f3d70
      https://github.com/WebKit/WebKit/commit/5b848d9183ab8c666ae5ca856b5c753fa67f3d70
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  Date:   2022-12-12 (Mon, 12 Dec 2022)

  Changed paths:
    M Source/WebCore/dom/Position.cpp

  Log Message:
  -----------
  Refactor m_offset to align with Webkit styling in Position.cpp

Refactor m_offset to align with Webkit styling in Position.cpp
https://bugs.webkit.org/show_bug.cgi?id=249090

Reviewed by Ryosuke Niwa.

This patch is to refactor code around 'negative offset' by changing it to Webkit Styling
to use negation (!) rather than (==) or (>) etc.

* Source/WebCore/dom/Position.cpp:
(Position::parentAnchorEquivalent): Update m_offset
(Position::atFirstEditingPositionForNode): Ditto
(Position::atStartOfTree): Ditto

Canonical link: https://commits.webkit.org/257717@main




More information about the webkit-changes mailing list