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

Side by Side Diff: Source/core/layout/line/RootInlineBox.cpp

Issue 1324943004: Remove unused RootInlineBox::includesRootLineBoxFontOrLeading method. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/layout/line/RootInlineBox.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 } 808 }
809 809
810 810
811 bool RootInlineBox::fitsToGlyphs() const 811 bool RootInlineBox::fitsToGlyphs() const
812 { 812 {
813 // FIXME: We can't fit to glyphs yet for vertical text, since the bounds ret urned are garbage. 813 // FIXME: We can't fit to glyphs yet for vertical text, since the bounds ret urned are garbage.
814 LineBoxContain lineBoxContain = lineLayoutItem().style()->lineBoxContain(); 814 LineBoxContain lineBoxContain = lineLayoutItem().style()->lineBoxContain();
815 return isHorizontal() && (lineBoxContain & LineBoxContainGlyphs); 815 return isHorizontal() && (lineBoxContain & LineBoxContainGlyphs);
816 } 816 }
817 817
818 bool RootInlineBox::includesRootLineBoxFontOrLeading() const
819 {
820 LineBoxContain lineBoxContain = lineLayoutItem().style()->lineBoxContain();
821 return (lineBoxContain & LineBoxContainBlock) || (lineBoxContain & LineBoxCo ntainInline) || (lineBoxContain & LineBoxContainFont);
822 }
823
824 Node* RootInlineBox::getLogicalStartBoxWithNode(InlineBox*& startBox) const 818 Node* RootInlineBox::getLogicalStartBoxWithNode(InlineBox*& startBox) const
825 { 819 {
826 Vector<InlineBox*> leafBoxesInLogicalOrder; 820 Vector<InlineBox*> leafBoxesInLogicalOrder;
827 collectLeafBoxesInLogicalOrder(leafBoxesInLogicalOrder); 821 collectLeafBoxesInLogicalOrder(leafBoxesInLogicalOrder);
828 for (size_t i = 0; i < leafBoxesInLogicalOrder.size(); ++i) { 822 for (size_t i = 0; i < leafBoxesInLogicalOrder.size(); ++i) {
829 if (leafBoxesInLogicalOrder[i]->lineLayoutItem().nonPseudoNode()) { 823 if (leafBoxesInLogicalOrder[i]->lineLayoutItem().nonPseudoNode()) {
830 startBox = leafBoxesInLogicalOrder[i]; 824 startBox = leafBoxesInLogicalOrder[i];
831 return startBox->lineLayoutItem().nonPseudoNode(); 825 return startBox->lineLayoutItem().nonPseudoNode();
832 } 826 }
833 } 827 }
(...skipping 14 matching lines...) Expand all
848 endBox = nullptr; 842 endBox = nullptr;
849 return nullptr; 843 return nullptr;
850 } 844 }
851 845
852 const char* RootInlineBox::boxName() const 846 const char* RootInlineBox::boxName() const
853 { 847 {
854 return "RootInlineBox"; 848 return "RootInlineBox";
855 } 849 }
856 850
857 } // namespace blink 851 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/line/RootInlineBox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698