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

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

Issue 2935813002: "Find" scrolling should be smoothly animated. (Closed)
Patch Set: Rebase and set ScrollRectToVisibleRecursive() to private. Created 3 years, 6 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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 const LayoutBoxModelObject* container_block, 1568 const LayoutBoxModelObject* container_block,
1569 LayoutUnit container_logical_height, 1569 LayoutUnit container_logical_height,
1570 LayoutUnit borders_plus_padding, 1570 LayoutUnit borders_plus_padding,
1571 LayoutUnit logical_height, 1571 LayoutUnit logical_height,
1572 const Length& logical_top, 1572 const Length& logical_top,
1573 const Length& logical_bottom, 1573 const Length& logical_bottom,
1574 const Length& margin_logical_top, 1574 const Length& margin_logical_top,
1575 const Length& margin_logical_bottom, 1575 const Length& margin_logical_bottom,
1576 LogicalExtentComputedValues&) const; 1576 LogicalExtentComputedValues&) const;
1577 1577
1578 void ScrollRectToVisibleRecursive(const LayoutRect&,
1579 const ScrollAlignment& align_x,
1580 const ScrollAlignment& align_y,
1581 ScrollType = kProgrammaticScroll,
1582 bool make_visible_in_visual_viewport = true,
1583 ScrollBehavior = kScrollBehaviorAuto);
1584
1578 LayoutUnit FillAvailableMeasure(LayoutUnit available_logical_width) const; 1585 LayoutUnit FillAvailableMeasure(LayoutUnit available_logical_width) const;
1579 LayoutUnit FillAvailableMeasure(LayoutUnit available_logical_width, 1586 LayoutUnit FillAvailableMeasure(LayoutUnit available_logical_width,
1580 LayoutUnit& margin_start, 1587 LayoutUnit& margin_start,
1581 LayoutUnit& margin_end) const; 1588 LayoutUnit& margin_end) const;
1582 1589
1583 // Calculates the intrinsic(https://drafts.csswg.org/css-sizing-3/#intrinsic) 1590 // Calculates the intrinsic(https://drafts.csswg.org/css-sizing-3/#intrinsic)
1584 // logical widths for this layout box. 1591 // logical widths for this layout box.
1585 // 1592 //
1586 // intrinsicWidth is defined as: 1593 // intrinsicWidth is defined as:
1587 // intrinsic size of content (without our border and padding) + 1594 // intrinsic size of content (without our border and padding) +
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 break_value == EBreakBetween::kLeft || 1763 break_value == EBreakBetween::kLeft ||
1757 break_value == EBreakBetween::kPage || 1764 break_value == EBreakBetween::kPage ||
1758 break_value == EBreakBetween::kRecto || 1765 break_value == EBreakBetween::kRecto ||
1759 break_value == EBreakBetween::kRight || 1766 break_value == EBreakBetween::kRight ||
1760 break_value == EBreakBetween::kVerso; 1767 break_value == EBreakBetween::kVerso;
1761 } 1768 }
1762 1769
1763 } // namespace blink 1770 } // namespace blink
1764 1771
1765 #endif // LayoutBox_h 1772 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698