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

Side by Side Diff: Source/core/rendering/RenderBlock.h

Issue 157553002: Remove the Pagination struct, clean up viewport scroll policy propagation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 // Adjust from painting offsets to the local coords of this renderer 560 // Adjust from painting offsets to the local coords of this renderer
561 void offsetForContents(LayoutPoint&) const; 561 void offsetForContents(LayoutPoint&) const;
562 562
563 // This function is called to test a line box that has moved in the block di rection to see if it has ended up in a new 563 // This function is called to test a line box that has moved in the block di rection to see if it has ended up in a new
564 // region/page/column that has a different available line width than the old one. Used to know when you have to dirty a 564 // region/page/column that has a different available line width than the old one. Used to know when you have to dirty a
565 // line, i.e., that it can't be re-used. 565 // line, i.e., that it can't be re-used.
566 bool lineWidthForPaginatedLineChanged(RootInlineBox*, LayoutUnit lineDelta, RenderFlowThread*) const; 566 bool lineWidthForPaginatedLineChanged(RootInlineBox*, LayoutUnit lineDelta, RenderFlowThread*) const;
567 567
568 bool logicalWidthChangedInRegions(RenderFlowThread*) const; 568 bool logicalWidthChangedInRegions(RenderFlowThread*) const;
569 569
570 virtual bool requiresColumns(int desiredColumnCount) const; 570 bool requiresColumns(int desiredColumnCount) const;
571 571
572 virtual bool updateLogicalWidthAndColumnWidth(); 572 virtual bool updateLogicalWidthAndColumnWidth();
573 573
574 virtual bool canCollapseAnonymousBlockChild() const { return true; } 574 virtual bool canCollapseAnonymousBlockChild() const { return true; }
575 575
576 public: 576 public:
577 virtual LayoutUnit offsetFromLogicalTopOfFirstPage() const OVERRIDE FINAL; 577 virtual LayoutUnit offsetFromLogicalTopOfFirstPage() const OVERRIDE FINAL;
578 RenderRegion* regionAtBlockOffset(LayoutUnit) const; 578 RenderRegion* regionAtBlockOffset(LayoutUnit) const;
579 RenderRegion* clampToStartAndEndRegions(RenderRegion*) const; 579 RenderRegion* clampToStartAndEndRegions(RenderRegion*) const;
580 580
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 return false; 637 return false;
638 } 638 }
639 return true; 639 return true;
640 } 640 }
641 641
642 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 642 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
643 643
644 } // namespace WebCore 644 } // namespace WebCore
645 645
646 #endif // RenderBlock_h 646 #endif // RenderBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698