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

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

Issue 2699393002: Place ellipsis correctly inside inline-blocks (Closed)
Patch Set: Created 3 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-2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2013 Google Inc. All rights reserved. 7 * Copyright (C) 2013 Google Inc. All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are 10 * modification, are permitted provided that the following conditions are
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 InlineIterator& cleanLineStart, 933 InlineIterator& cleanLineStart,
934 BidiStatus& cleanLineBidiStatus); 934 BidiStatus& cleanLineBidiStatus);
935 bool lineBoxHasBRWithClearance(RootInlineBox*); 935 bool lineBoxHasBRWithClearance(RootInlineBox*);
936 bool checkPaginationAndFloatsAtEndLine(LineLayoutState&); 936 bool checkPaginationAndFloatsAtEndLine(LineLayoutState&);
937 bool matchedEndLine(LineLayoutState&, 937 bool matchedEndLine(LineLayoutState&,
938 const InlineBidiResolver&, 938 const InlineBidiResolver&,
939 const InlineIterator& endLineStart, 939 const InlineIterator& endLineStart,
940 const BidiStatus& endLineStatus); 940 const BidiStatus& endLineStatus);
941 void deleteEllipsisLineBoxes(); 941 void deleteEllipsisLineBoxes();
942 void checkLinesForTextOverflow(); 942 void checkLinesForTextOverflow();
943 void tryPlacingEllipsisOnAtomicInlines(RootInlineBox*,
944 LayoutUnit blockRightEdge,
945 LayoutUnit blockLeftEdge,
946 LayoutUnit width,
947 const AtomicString&);
948 void placeEllipsis(RootInlineBox* curr,
949 LayoutUnit blockLeftEdge,
950 LayoutUnit blockRightEdge,
951 const AtomicString& selectedEllipsisStr,
952 LayoutUnit ellipsisWidth,
953 LayoutUnit logicalLeftOffset,
954 bool foundBox);
943 void markLinesDirtyInBlockRange(LayoutUnit logicalTop, 955 void markLinesDirtyInBlockRange(LayoutUnit logicalTop,
944 LayoutUnit logicalBottom, 956 LayoutUnit logicalBottom,
945 RootInlineBox* highest = nullptr); 957 RootInlineBox* highest = nullptr);
946 // Positions new floats and also adjust all floats encountered on the line if 958 // Positions new floats and also adjust all floats encountered on the line if
947 // any of them have to move to the next page/column. 959 // any of them have to move to the next page/column.
948 void positionDialog(); 960 void positionDialog();
949 961
950 // END METHODS DEFINED IN LayoutBlockFlowLine 962 // END METHODS DEFINED IN LayoutBlockFlowLine
951 }; 963 };
952 964
953 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); 965 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow());
954 966
955 } // namespace blink 967 } // namespace blink
956 968
957 #endif // LayoutBlockFlow_h 969 #endif // LayoutBlockFlow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698