Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlock.h

Issue 2851453005: Mark some non-spinvalidation methods deprecated, and update paint/README.md (Closed)
Patch Set: - Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 public: 488 public:
489 bool ShouldPaintCursorCaret() const; 489 bool ShouldPaintCursorCaret() const;
490 bool ShouldPaintDragCaret() const; 490 bool ShouldPaintDragCaret() const;
491 bool ShouldPaintCarets() const { 491 bool ShouldPaintCarets() const {
492 return ShouldPaintCursorCaret() || ShouldPaintDragCaret(); 492 return ShouldPaintCursorCaret() || ShouldPaintDragCaret();
493 } 493 }
494 494
495 protected: 495 protected:
496 PaintInvalidationReason InvalidatePaint( 496 PaintInvalidationReason InvalidatePaint(
497 const PaintInvalidationState&) override;
498 PaintInvalidationReason InvalidatePaint(
499 const PaintInvalidatorContext&) const override; 497 const PaintInvalidatorContext&) const override;
500 498
501 void ClearPreviousVisualRects() override; 499 void ClearPreviousVisualRects() override;
502 500
503 private: 501 private:
504 LayoutRect LocalCaretRect( 502 LayoutRect LocalCaretRect(
505 InlineBox*, 503 InlineBox*,
506 int caret_offset, 504 int caret_offset,
507 LayoutUnit* extra_width_to_end_of_line = nullptr) final; 505 LayoutUnit* extra_width_to_end_of_line = nullptr) final;
508 bool IsInlineBoxWrapperActuallyChild() const; 506 bool IsInlineBoxWrapperActuallyChild() const;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 // TODO(lunalu): Temporary in order to ensure compatibility with existing 568 // TODO(lunalu): Temporary in order to ensure compatibility with existing
571 // layout test results. 569 // layout test results.
572 virtual void AdjustChildDebugRect(LayoutRect&) const {} 570 virtual void AdjustChildDebugRect(LayoutRect&) const {}
573 }; 571 };
574 572
575 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, IsLayoutBlock()); 573 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, IsLayoutBlock());
576 574
577 } // namespace blink 575 } // namespace blink
578 576
579 #endif // LayoutBlock_h 577 #endif // LayoutBlock_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698