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

Side by Side Diff: Source/core/layout/LayoutBlockFlow.cpp

Issue 1164933006: Create LineLayout api (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: non-working version without const_cast Created 5 years, 6 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
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 29 matching lines...) Expand all
40 #include "core/layout/LayoutAnalyzer.h" 40 #include "core/layout/LayoutAnalyzer.h"
41 #include "core/layout/LayoutFlowThread.h" 41 #include "core/layout/LayoutFlowThread.h"
42 #include "core/layout/LayoutMultiColumnFlowThread.h" 42 #include "core/layout/LayoutMultiColumnFlowThread.h"
43 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" 43 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h"
44 #include "core/layout/LayoutPagedFlowThread.h" 44 #include "core/layout/LayoutPagedFlowThread.h"
45 #include "core/layout/LayoutText.h" 45 #include "core/layout/LayoutText.h"
46 #include "core/layout/LayoutView.h" 46 #include "core/layout/LayoutView.h"
47 #include "core/layout/TextAutosizer.h" 47 #include "core/layout/TextAutosizer.h"
48 #include "core/layout/line/LineBreaker.h" 48 #include "core/layout/line/LineBreaker.h"
49 #include "core/layout/line/LineWidth.h" 49 #include "core/layout/line/LineWidth.h"
50 #include "core/layout/shapes/ShapeOutsideInfo.h"
50 #include "core/paint/BlockFlowPainter.h" 51 #include "core/paint/BlockFlowPainter.h"
51 #include "core/paint/ClipScope.h" 52 #include "core/paint/ClipScope.h"
52 #include "core/paint/DeprecatedPaintLayer.h" 53 #include "core/paint/DeprecatedPaintLayer.h"
53 #include "core/paint/LayoutObjectDrawingRecorder.h" 54 #include "core/paint/LayoutObjectDrawingRecorder.h"
54 #include "core/paint/PaintInfo.h" 55 #include "core/paint/PaintInfo.h"
55 #include "platform/RuntimeEnabledFeatures.h" 56 #include "platform/RuntimeEnabledFeatures.h"
56 #include "platform/geometry/TransformState.h" 57 #include "platform/geometry/TransformState.h"
57 #include "platform/text/BidiTextRun.h" 58 #include "platform/text/BidiTextRun.h"
58 59
59 namespace blink { 60 namespace blink {
(...skipping 3018 matching lines...) Expand 10 before | Expand all | Expand 10 after
3078 FrameView* frameView = document().view(); 3079 FrameView* frameView = document().view();
3079 LayoutUnit top = (style()->position() == FixedPosition) ? 0 : frameView->scr ollOffset().height(); 3080 LayoutUnit top = (style()->position() == FixedPosition) ? 0 : frameView->scr ollOffset().height();
3080 int visibleHeight = frameView->visibleContentRect(IncludeScrollbars).height( ); 3081 int visibleHeight = frameView->visibleContentRect(IncludeScrollbars).height( );
3081 if (size().height() < visibleHeight) 3082 if (size().height() < visibleHeight)
3082 top += (visibleHeight - size().height()) / 2; 3083 top += (visibleHeight - size().height()) / 2;
3083 setY(top); 3084 setY(top);
3084 dialog->setCentered(top); 3085 dialog->setCentered(top);
3085 } 3086 }
3086 3087
3087 } // namespace blink 3088 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698