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

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

Issue 2553133002: Better isPageLogicalHeightKnown() implementation. (Closed)
Patch Set: Created 4 years 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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 bool isInlineBoxWrapperActuallyChild() const; 500 bool isInlineBoxWrapperActuallyChild() const;
501 501
502 Position positionForBox(InlineBox*, bool start = true) const; 502 Position positionForBox(InlineBox*, bool start = true) const;
503 503
504 // End helper functions and structs used by layoutBlockChildren. 504 // End helper functions and structs used by layoutBlockChildren.
505 505
506 void removeFromGlobalMaps(); 506 void removeFromGlobalMaps();
507 bool widthAvailableToChildrenHasChanged(); 507 bool widthAvailableToChildrenHasChanged();
508 508
509 protected: 509 protected:
510 bool isPageLogicalHeightKnown() const {
511 return pageLogicalHeightForOffset(LayoutUnit());
512 }
513
514 // Paginated content inside this block was laid out. 510 // Paginated content inside this block was laid out.
515 // |logicalBottomOffsetAfterPagination| is the logical bottom offset of the 511 // |logicalBottomOffsetAfterPagination| is the logical bottom offset of the
516 // child content after applying any forced or unforced breaks as needed. 512 // child content after applying any forced or unforced breaks as needed.
517 void paginatedContentWasLaidOut( 513 void paginatedContentWasLaidOut(
518 LayoutUnit logicalBottomOffsetAfterPagination); 514 LayoutUnit logicalBottomOffsetAfterPagination);
519 515
520 // Adjust from painting offsets to the local coords of this layoutObject 516 // Adjust from painting offsets to the local coords of this layoutObject
521 void offsetForContents(LayoutPoint&) const; 517 void offsetForContents(LayoutPoint&) const;
522 518
523 PositionWithAffinity positionForPointRespectingEditingBoundaries( 519 PositionWithAffinity positionForPointRespectingEditingBoundaries(
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 // TODO(lunalu): Temporary in order to ensure compatibility with existing 561 // TODO(lunalu): Temporary in order to ensure compatibility with existing
566 // layout test results. 562 // layout test results.
567 virtual void adjustChildDebugRect(LayoutRect&) const {} 563 virtual void adjustChildDebugRect(LayoutRect&) const {}
568 }; 564 };
569 565
570 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); 566 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock());
571 567
572 } // namespace blink 568 } // namespace blink
573 569
574 #endif // LayoutBlock_h 570 #endif // LayoutBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698