| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |