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

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

Issue 1952763002: Move showLineTreeAndMark() to LayoutBlockFlow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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. 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 LayoutUnit logicalRightOffsetForContent() const { return logicalLeftOffsetFo rContent() + availableLogicalWidth(); } 249 LayoutUnit logicalRightOffsetForContent() const { return logicalLeftOffsetFo rContent() + availableLogicalWidth(); }
250 LayoutUnit startOffsetForContent() const { return style()->isLeftToRightDire ction() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetFor Content(); } 250 LayoutUnit startOffsetForContent() const { return style()->isLeftToRightDire ction() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetFor Content(); }
251 LayoutUnit endOffsetForContent() const { return !style()->isLeftToRightDirec tion() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetForC ontent(); } 251 LayoutUnit endOffsetForContent() const { return !style()->isLeftToRightDirec tion() ? logicalLeftOffsetForContent() : logicalWidth() - logicalRightOffsetForC ontent(); }
252 252
253 virtual LayoutUnit logicalLeftSelectionOffset(const LayoutBlock* rootBlock, LayoutUnit position) const; 253 virtual LayoutUnit logicalLeftSelectionOffset(const LayoutBlock* rootBlock, LayoutUnit position) const;
254 virtual LayoutUnit logicalRightSelectionOffset(const LayoutBlock* rootBlock, LayoutUnit position) const; 254 virtual LayoutUnit logicalRightSelectionOffset(const LayoutBlock* rootBlock, LayoutUnit position) const;
255 255
256 #if ENABLE(ASSERT) 256 #if ENABLE(ASSERT)
257 void checkPositionedObjectsNeedLayout(); 257 void checkPositionedObjectsNeedLayout();
258 #endif 258 #endif
259 #ifndef NDEBUG
260 void showLineTreeAndMark(const InlineBox* = nullptr, const char* = nullptr, const InlineBox* = nullptr, const char* = nullptr, const LayoutObject* = nullptr ) const;
261 #endif
262 259
263 protected: 260 protected:
264 bool recalcNormalFlowChildOverflowIfNeeded(LayoutObject*); 261 bool recalcNormalFlowChildOverflowIfNeeded(LayoutObject*);
265 public: 262 public:
266 virtual bool recalcChildOverflowAfterStyleChange(); 263 virtual bool recalcChildOverflowAfterStyleChange();
267 bool recalcOverflowAfterStyleChange(); 264 bool recalcOverflowAfterStyleChange();
268 265
269 // An example explaining layout tree structure about first-line style: 266 // An example explaining layout tree structure about first-line style:
270 // <style> 267 // <style>
271 // #enclosingFirstLineStyleBlock::first-line { ... } 268 // #enclosingFirstLineStyleBlock::first-line { ... }
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // FIXME: This is temporary as we move code that accesses block flow 505 // FIXME: This is temporary as we move code that accesses block flow
509 // member variables out of LayoutBlock and into LayoutBlockFlow. 506 // member variables out of LayoutBlock and into LayoutBlockFlow.
510 friend class LayoutBlockFlow; 507 friend class LayoutBlockFlow;
511 }; 508 };
512 509
513 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); 510 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock());
514 511
515 } // namespace blink 512 } // namespace blink
516 513
517 #endif // LayoutBlock_h 514 #endif // LayoutBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698