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

Side by Side Diff: Source/core/rendering/RenderBlockFlow.cpp

Issue 945803004: Merge back LayoutLayerModelObject into RenderBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better rebasing. Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderBlockFlow.h ('k') | Source/core/rendering/RenderBox.h » ('j') | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 2673 matching lines...) Expand 10 before | Expand all | Expand 10 after
2684 } 2684 }
2685 2685
2686 LayoutUnit RenderBlockFlow::logicalRightFloatOffsetForLine(LayoutUnit logicalTop , LayoutUnit fixedOffset, LayoutUnit logicalHeight) const 2686 LayoutUnit RenderBlockFlow::logicalRightFloatOffsetForLine(LayoutUnit logicalTop , LayoutUnit fixedOffset, LayoutUnit logicalHeight) const
2687 { 2687 {
2688 if (m_floatingObjects && m_floatingObjects->hasRightObjects()) 2688 if (m_floatingObjects && m_floatingObjects->hasRightObjects())
2689 return m_floatingObjects->logicalRightOffset(fixedOffset, logicalTop, lo gicalHeight); 2689 return m_floatingObjects->logicalRightOffset(fixedOffset, logicalTop, lo gicalHeight);
2690 2690
2691 return fixedOffset; 2691 return fixedOffset;
2692 } 2692 }
2693 2693
2694 LayoutRect RenderBlockFlow::selectionRectForPaintInvalidation(const LayoutLayerM odelObject* paintInvalidationContainer) const 2694 LayoutRect RenderBlockFlow::selectionRectForPaintInvalidation(const LayoutBoxMod elObject* paintInvalidationContainer) const
2695 { 2695 {
2696 LayoutRect rect = selectionGapRectsForPaintInvalidation(paintInvalidationCon tainer); 2696 LayoutRect rect = selectionGapRectsForPaintInvalidation(paintInvalidationCon tainer);
2697 // FIXME: groupedMapping() leaks the squashing abstraction. 2697 // FIXME: groupedMapping() leaks the squashing abstraction.
2698 if (paintInvalidationContainer->layer()->groupedMapping()) 2698 if (paintInvalidationContainer->layer()->groupedMapping())
2699 Layer::mapRectToPaintBackingCoordinates(paintInvalidationContainer, rect ); 2699 Layer::mapRectToPaintBackingCoordinates(paintInvalidationContainer, rect );
2700 return rect; 2700 return rect;
2701 } 2701 }
2702 2702
2703 GapRects RenderBlockFlow::selectionGapRectsForPaintInvalidation(const LayoutLaye rModelObject* paintInvalidationContainer) const 2703 GapRects RenderBlockFlow::selectionGapRectsForPaintInvalidation(const LayoutBoxM odelObject* paintInvalidationContainer) const
2704 { 2704 {
2705 ASSERT(!needsLayout()); 2705 ASSERT(!needsLayout());
2706 2706
2707 if (!shouldPaintSelectionGaps()) 2707 if (!shouldPaintSelectionGaps())
2708 return GapRects(); 2708 return GapRects();
2709 2709
2710 TransformState transformState(TransformState::ApplyTransformDirection, Float Point()); 2710 TransformState transformState(TransformState::ApplyTransformDirection, Float Point());
2711 mapLocalToContainer(paintInvalidationContainer, transformState, ApplyContain erFlip | UseTransforms); 2711 mapLocalToContainer(paintInvalidationContainer, transformState, ApplyContain erFlip | UseTransforms);
2712 LayoutPoint offsetFromPaintInvalidationContainer = roundedLayoutPoint(transf ormState.mappedPoint()); 2712 LayoutPoint offsetFromPaintInvalidationContainer = roundedLayoutPoint(transf ormState.mappedPoint());
2713 2713
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
3134 FrameView* frameView = document().view(); 3134 FrameView* frameView = document().view();
3135 LayoutUnit top = (style()->position() == FixedPosition) ? 0 : frameView->scr ollOffset().height(); 3135 LayoutUnit top = (style()->position() == FixedPosition) ? 0 : frameView->scr ollOffset().height();
3136 int visibleHeight = frameView->visibleContentRect(IncludeScrollbars).height( ); 3136 int visibleHeight = frameView->visibleContentRect(IncludeScrollbars).height( );
3137 if (size().height() < visibleHeight) 3137 if (size().height() < visibleHeight)
3138 top += (visibleHeight - size().height()) / 2; 3138 top += (visibleHeight - size().height()) / 2;
3139 setY(top); 3139 setY(top);
3140 dialog->setCentered(top); 3140 dialog->setCentered(top);
3141 } 3141 }
3142 3142
3143 } // namespace blink 3143 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlockFlow.h ('k') | Source/core/rendering/RenderBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698