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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2738943004: Fix position of composited, paginated inlines. (Closed)
Patch Set: none Created 3 years, 9 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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 LayoutPoint&) const; 371 LayoutPoint&) const;
372 void convertToLayerCoords(const PaintLayer* ancestorLayer, LayoutRect&) const; 372 void convertToLayerCoords(const PaintLayer* ancestorLayer, LayoutRect&) const;
373 373
374 // Does the same as convertToLayerCoords() when not in multicol. For multicol, 374 // Does the same as convertToLayerCoords() when not in multicol. For multicol,
375 // however, convertToLayerCoords() calculates the offset in flow-thread 375 // however, convertToLayerCoords() calculates the offset in flow-thread
376 // coordinates (what the layout engine uses internally), while this method 376 // coordinates (what the layout engine uses internally), while this method
377 // calculates the visual coordinates; i.e. it figures out which column the 377 // calculates the visual coordinates; i.e. it figures out which column the
378 // layer starts in and adds in the offset. See 378 // layer starts in and adds in the offset. See
379 // http://www.chromium.org/developers/design-documents/multi-column-layout for 379 // http://www.chromium.org/developers/design-documents/multi-column-layout for
380 // more info. 380 // more info.
381 LayoutPoint visualOffsetFromAncestor(const PaintLayer* ancestorLayer) const; 381 LayoutPoint visualOffsetFromAncestor(
382 const PaintLayer* ancestorLayer,
383 LayoutPoint offset = LayoutPoint()) const;
382 384
383 // Convert a bounding box from flow thread coordinates, relative to |this|, to 385 // Convert a bounding box from flow thread coordinates, relative to |this|, to
384 // visual coordinates, relative to |ancestorLayer|. 386 // visual coordinates, relative to |ancestorLayer|.
385 // See http://www.chromium.org/developers/design-documents/multi-column-layout 387 // See http://www.chromium.org/developers/design-documents/multi-column-layout
386 // for more info on these coordinate types. This method requires this layer 388 // for more info on these coordinate types. This method requires this layer
387 // to be paginated; i.e. it must have an enclosingPaginationLayer(). 389 // to be paginated; i.e. it must have an enclosingPaginationLayer().
388 void convertFromFlowThreadToVisualBoundingBoxInAncestor( 390 void convertFromFlowThreadToVisualBoundingBoxInAncestor(
389 const PaintLayer* ancestorLayer, 391 const PaintLayer* ancestorLayer,
390 LayoutRect&) const; 392 LayoutRect&) const;
391 393
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 1256
1255 } // namespace blink 1257 } // namespace blink
1256 1258
1257 #ifndef NDEBUG 1259 #ifndef NDEBUG
1258 // Outside the WebCore namespace for ease of invocation from gdb. 1260 // Outside the WebCore namespace for ease of invocation from gdb.
1259 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1261 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1260 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1262 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1261 #endif 1263 #endif
1262 1264
1263 #endif // Layer_h 1265 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698