// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_FIND_PAINT_OFFSET_NEEDING_UPDATE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_FIND_PAINT_OFFSET_NEEDING_UPDATE_H_ #include "base/dcheck_is_on.h" #if DCHECK_IS_ON() #include <optional> #include "base/check_op.h" #include "third_party/blink/renderer/core/layout/layout_object.h" #include "third_party/blink/renderer/core/paint/fragment_data.h" #include "third_party/blink/renderer/platform/wtf/allocator/allocator.h" #include "ui/gfx/geometry/vector2d_f.h" namespace blink { // FindPaintOffsetNeedingUpdateScope catches cases where paint offset needed // an update but was not marked as such. If paint offset will change, the // object must be marked as such by // LayoutObject::SetShouldCheckLayoutForPaintInvalidation() // (which is a private function called by several public paint-invalidation-flag // setting functions). class FindPaintOffsetNeedingUpdateScope { … }; } // namespace blink #endif // DCHECK_IS_ON() #endif // THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_FIND_PAINT_OFFSET_NEEDING_UPDATE_H_