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

Side by Side Diff: Source/WebCore/rendering/RenderBox.h

Issue 7506003: Merge 91386 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 5 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 virtual int firstLineBoxBaseline() const { return -1; } 379 virtual int firstLineBoxBaseline() const { return -1; }
380 virtual int lastLineBoxBaseline() const { return -1; } 380 virtual int lastLineBoxBaseline() const { return -1; }
381 381
382 bool shrinkToAvoidFloats() const; 382 bool shrinkToAvoidFloats() const;
383 virtual bool avoidsFloats() const; 383 virtual bool avoidsFloats() const;
384 384
385 virtual void markForPaginationRelayoutIfNeeded() { } 385 virtual void markForPaginationRelayoutIfNeeded() { }
386 386
387 bool isWritingModeRoot() const { return !parent() || parent()->style()->writ ingMode() != style()->writingMode(); } 387 bool isWritingModeRoot() const { return !parent() || parent()->style()->writ ingMode() != style()->writingMode(); }
388
389 bool isDeprecatedFlexItem() const { return !isInline() && !isFloatingOrPosit ioned() && parent() && parent()->isFlexibleBox(); }
388 390
389 virtual int lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const; 391 virtual int lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const;
390 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const; 392 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const;
391 393
392 enum FlippingAdjustment { ChildToParentFlippingAdjustment, ParentToChildFlip pingAdjustment }; 394 enum FlippingAdjustment { ChildToParentFlippingAdjustment, ParentToChildFlip pingAdjustment };
393 IntPoint flipForWritingMode(const RenderBox* child, const IntPoint&, Flippin gAdjustment) const; 395 IntPoint flipForWritingMode(const RenderBox* child, const IntPoint&, Flippin gAdjustment) const;
394 int flipForWritingMode(int position) const; // The offset is in the block di rection (y for horizontal writing modes, x for vertical writing modes). 396 int flipForWritingMode(int position) const; // The offset is in the block di rection (y for horizontal writing modes, x for vertical writing modes).
395 IntPoint flipForWritingMode(const IntPoint&) const; 397 IntPoint flipForWritingMode(const IntPoint&) const;
396 IntPoint flipForWritingModeIncludingColumns(const IntPoint&) const; 398 IntPoint flipForWritingModeIncludingColumns(const IntPoint&) const;
397 IntSize flipForWritingMode(const IntSize&) const; 399 IntSize flipForWritingMode(const IntSize&) const;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 } 526 }
525 527
526 inline RenderBox* RenderBox::lastChildBox() const 528 inline RenderBox* RenderBox::lastChildBox() const
527 { 529 {
528 return toRenderBox(lastChild()); 530 return toRenderBox(lastChild());
529 } 531 }
530 532
531 } // namespace WebCore 533 } // namespace WebCore
532 534
533 #endif // RenderBox_h 535 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/flexbox/horizontal-box-float-crash-expected.txt ('k') | Source/WebCore/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698