OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1651 | 1651 |
1652 if (m_styleEngine->needsUpdateActiveStylesheetsOnStyleRecalc()) | 1652 if (m_styleEngine->needsUpdateActiveStylesheetsOnStyleRecalc()) |
1653 m_styleEngine->updateActiveStyleSheets(FullStyleUpdate); | 1653 m_styleEngine->updateActiveStyleSheets(FullStyleUpdate); |
1654 | 1654 |
1655 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits()) | 1655 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits()) |
1656 m_styleEngine->setUsesRemUnit(true); | 1656 m_styleEngine->setUsesRemUnit(true); |
1657 | 1657 |
1658 { | 1658 { |
1659 PostAttachCallbacks::SuspendScope suspendPostAttachCallbacks; | 1659 PostAttachCallbacks::SuspendScope suspendPostAttachCallbacks; |
1660 RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates; | 1660 RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates; |
1661 FrameView::DeferredRepaintScope deferRepaints(*view()); | |
1662 TemporaryChange<bool> changeInStyleRecalc(m_inStyleRecalc, true); | 1661 TemporaryChange<bool> changeInStyleRecalc(m_inStyleRecalc, true); |
1663 | 1662 |
1664 if (styleChangeType() >= SubtreeStyleChange) | 1663 if (styleChangeType() >= SubtreeStyleChange) |
1665 change = Force; | 1664 change = Force; |
1666 | 1665 |
1667 // FIXME: Cannot access the ensureStyleResolver() before calling styleFo
rDocument below because | 1666 // FIXME: Cannot access the ensureStyleResolver() before calling styleFo
rDocument below because |
1668 // apparently the StyleResolver's constructor has side effects. We shoul
d fix it. | 1667 // apparently the StyleResolver's constructor has side effects. We shoul
d fix it. |
1669 // See printing/setPrinting.html, printing/width-overflow.html though th
ey only fail on | 1668 // See printing/setPrinting.html, printing/width-overflow.html though th
ey only fail on |
1670 // mac when accessing the resolver by what appears to be a viewport size
difference. | 1669 // mac when accessing the resolver by what appears to be a viewport size
difference. |
1671 | 1670 |
(...skipping 3576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5248 } | 5247 } |
5249 | 5248 |
5250 FastTextAutosizer* Document::fastTextAutosizer() | 5249 FastTextAutosizer* Document::fastTextAutosizer() |
5251 { | 5250 { |
5252 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable
d()) | 5251 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable
d()) |
5253 m_fastTextAutosizer = FastTextAutosizer::create(this); | 5252 m_fastTextAutosizer = FastTextAutosizer::create(this); |
5254 return m_fastTextAutosizer.get(); | 5253 return m_fastTextAutosizer.get(); |
5255 } | 5254 } |
5256 | 5255 |
5257 } // namespace WebCore | 5256 } // namespace WebCore |
OLD | NEW |