| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // if its LayoutFullScreen is destroyed. | 83 // if its LayoutFullScreen is destroyed. |
| 84 Fullscreen& fullscreen = Fullscreen::from(document()); | 84 Fullscreen& fullscreen = Fullscreen::from(document()); |
| 85 if (fullscreen.fullScreenRenderer() == this) | 85 if (fullscreen.fullScreenRenderer() == this) |
| 86 fullscreen.fullScreenRendererDestroyed(); | 86 fullscreen.fullScreenRendererDestroyed(); |
| 87 | 87 |
| 88 LayoutFlexibleBox::willBeDestroyed(); | 88 LayoutFlexibleBox::willBeDestroyed(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void LayoutFullScreen::updateStyle() | 91 void LayoutFullScreen::updateStyle() |
| 92 { | 92 { |
| 93 RefPtr<LayoutStyle> fullscreenStyle = LayoutStyle::createDefaultStyle(); | 93 RefPtr<LayoutStyle> fullscreenStyle = LayoutStyle::create(); |
| 94 | 94 |
| 95 // Create a stacking context: | 95 // Create a stacking context: |
| 96 fullscreenStyle->setZIndex(INT_MAX); | 96 fullscreenStyle->setZIndex(INT_MAX); |
| 97 | 97 |
| 98 fullscreenStyle->setFontDescription(FontDescription()); | 98 fullscreenStyle->setFontDescription(FontDescription()); |
| 99 fullscreenStyle->font().update(nullptr); | 99 fullscreenStyle->font().update(nullptr); |
| 100 | 100 |
| 101 fullscreenStyle->setDisplay(FLEX); | 101 fullscreenStyle->setDisplay(FLEX); |
| 102 fullscreenStyle->setJustifyContent(ContentPositionCenter); | 102 fullscreenStyle->setJustifyContent(ContentPositionCenter); |
| 103 fullscreenStyle->setAlignItems(ItemPositionCenter); | 103 fullscreenStyle->setAlignItems(ItemPositionCenter); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 m_placeholder = new LayoutFullScreenPlaceholder(this); | 200 m_placeholder = new LayoutFullScreenPlaceholder(this); |
| 201 m_placeholder->setStyle(style); | 201 m_placeholder->setStyle(style); |
| 202 if (parent()) { | 202 if (parent()) { |
| 203 parent()->addChild(m_placeholder, this); | 203 parent()->addChild(m_placeholder, this); |
| 204 parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
); | 204 parent()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(
); |
| 205 } | 205 } |
| 206 } else { | 206 } else { |
| 207 m_placeholder->setStyle(style); | 207 m_placeholder->setStyle(style); |
| 208 } | 208 } |
| 209 } | 209 } |
| OLD | NEW |