| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 fullscreen_style->SetFontDescription(FontDescription()); | 102 fullscreen_style->SetFontDescription(FontDescription()); |
| 103 fullscreen_style->GetFont().Update(nullptr); | 103 fullscreen_style->GetFont().Update(nullptr); |
| 104 | 104 |
| 105 fullscreen_style->SetDisplay(EDisplay::kFlex); | 105 fullscreen_style->SetDisplay(EDisplay::kFlex); |
| 106 fullscreen_style->SetJustifyContentPosition(kContentPositionCenter); | 106 fullscreen_style->SetJustifyContentPosition(kContentPositionCenter); |
| 107 // TODO (lajava): Since the FullScrenn layout object is anonymous, its Default | 107 // TODO (lajava): Since the FullScrenn layout object is anonymous, its Default |
| 108 // Alignment (align-items) value can't be used to resolve its children Self | 108 // Alignment (align-items) value can't be used to resolve its children Self |
| 109 // Alignment 'auto' values. | 109 // Alignment 'auto' values. |
| 110 fullscreen_style->SetAlignItemsPosition(kItemPositionCenter); | 110 fullscreen_style->SetAlignItemsPosition(kItemPositionCenter); |
| 111 fullscreen_style->SetFlexDirection(kFlowColumn); | 111 fullscreen_style->SetFlexDirection(EFlexDirection::kColumn); |
| 112 | 112 |
| 113 fullscreen_style->SetPosition(EPosition::kFixed); | 113 fullscreen_style->SetPosition(EPosition::kFixed); |
| 114 fullscreen_style->SetLeft(Length(0, blink::kFixed)); | 114 fullscreen_style->SetLeft(Length(0, blink::kFixed)); |
| 115 fullscreen_style->SetTop(Length(0, blink::kFixed)); | 115 fullscreen_style->SetTop(Length(0, blink::kFixed)); |
| 116 IntSize viewport_size = GetDocument().GetPage()->GetVisualViewport().Size(); | 116 IntSize viewport_size = GetDocument().GetPage()->GetVisualViewport().Size(); |
| 117 fullscreen_style->SetWidth(Length(viewport_size.Width(), blink::kFixed)); | 117 fullscreen_style->SetWidth(Length(viewport_size.Width(), blink::kFixed)); |
| 118 fullscreen_style->SetHeight(Length(viewport_size.Height(), blink::kFixed)); | 118 fullscreen_style->SetHeight(Length(viewport_size.Height(), blink::kFixed)); |
| 119 | 119 |
| 120 fullscreen_style->SetBackgroundColor(StyleColor(Color::kBlack)); | 120 fullscreen_style->SetBackgroundColor(StyleColor(Color::kBlack)); |
| 121 | 121 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 Parent()->SetNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( | 217 Parent()->SetNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation( |
| 218 LayoutInvalidationReason::kFullscreen); | 218 LayoutInvalidationReason::kFullscreen); |
| 219 } | 219 } |
| 220 } else { | 220 } else { |
| 221 placeholder_->SetStyle(std::move(style)); | 221 placeholder_->SetStyle(std::move(style)); |
| 222 placeholder_->SetStyleWithWritingModeOfParent(std::move(style)); | 222 placeholder_->SetStyleWithWritingModeOfParent(std::move(style)); |
| 223 } | 223 } |
| 224 } | 224 } |
| 225 | 225 |
| 226 } // namespace blink | 226 } // namespace blink |
| OLD | NEW |