| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| 11 * This library is free software; you can redistribute it and/or | 11 * This library is free software; you can redistribute it and/or |
| 12 * modify it under the terms of the GNU Library General Public | 12 * modify it under the terms of the GNU Library General Public |
| 13 * License as published by the Free Software Foundation; either | 13 * License as published by the Free Software Foundation; either |
| 14 * version 2 of the License, or (at your option) any later version. | 14 * version 2 of the License, or (at your option) any later version. |
| 15 * | 15 * |
| 16 * This library is distributed in the hope that it will be useful, | 16 * This library is distributed in the hope that it will be useful, |
| 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 19 * Library General Public License for more details. | 19 * Library General Public License for more details. |
| 20 * | 20 * |
| 21 * You should have received a copy of the GNU Library General Public License | 21 * You should have received a copy of the GNU Library General Public License |
| 22 * along with this library; see the file COPYING.LIB. If not, write to | 22 * along with this library; see the file COPYING.LIB. If not, write to |
| 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "sky/engine/config.h" |
| 28 #include "core/frame/FrameView.h" | 28 #include "sky/engine/core/frame/FrameView.h" |
| 29 | 29 |
| 30 #include "core/css/FontFaceSet.h" | |
| 31 #include "core/css/resolver/StyleResolver.h" | |
| 32 #include "core/dom/DocumentMarkerController.h" | |
| 33 #include "core/editing/FrameSelection.h" | |
| 34 #include "core/fetch/ResourceFetcher.h" | |
| 35 #include "core/frame/FrameHost.h" | |
| 36 #include "core/frame/LocalFrame.h" | |
| 37 #include "core/frame/Settings.h" | |
| 38 #include "core/html/parser/TextResourceDecoder.h" | |
| 39 #include "core/inspector/InspectorTraceEvents.h" | |
| 40 #include "core/loader/FrameLoaderClient.h" | |
| 41 #include "core/page/Chrome.h" | |
| 42 #include "core/page/ChromeClient.h" | |
| 43 #include "core/page/EventHandler.h" | |
| 44 #include "core/page/FocusController.h" | |
| 45 #include "core/page/Page.h" | |
| 46 #include "core/rendering/RenderLayer.h" | |
| 47 #include "core/rendering/RenderView.h" | |
| 48 #include "core/rendering/compositing/CompositedLayerMapping.h" | |
| 49 #include "core/rendering/compositing/RenderLayerCompositor.h" | |
| 50 #include "core/rendering/style/RenderStyle.h" | |
| 51 #include "gen/sky/platform/RuntimeEnabledFeatures.h" | 30 #include "gen/sky/platform/RuntimeEnabledFeatures.h" |
| 52 #include "platform/ScriptForbiddenScope.h" | 31 #include "sky/engine/core/css/FontFaceSet.h" |
| 53 #include "platform/TraceEvent.h" | 32 #include "sky/engine/core/css/resolver/StyleResolver.h" |
| 54 #include "platform/fonts/FontCache.h" | 33 #include "sky/engine/core/dom/DocumentMarkerController.h" |
| 55 #include "platform/geometry/FloatRect.h" | 34 #include "sky/engine/core/editing/FrameSelection.h" |
| 56 #include "platform/graphics/GraphicsContext.h" | 35 #include "sky/engine/core/fetch/ResourceFetcher.h" |
| 57 #include "platform/graphics/GraphicsLayerDebugInfo.h" | 36 #include "sky/engine/core/frame/FrameHost.h" |
| 58 #include "platform/scroll/ScrollAnimator.h" | 37 #include "sky/engine/core/frame/LocalFrame.h" |
| 59 #include "platform/scroll/Scrollbar.h" | 38 #include "sky/engine/core/frame/Settings.h" |
| 60 #include "platform/text/TextStream.h" | 39 #include "sky/engine/core/html/parser/TextResourceDecoder.h" |
| 61 #include "wtf/CurrentTime.h" | 40 #include "sky/engine/core/inspector/InspectorTraceEvents.h" |
| 62 #include "wtf/TemporaryChange.h" | 41 #include "sky/engine/core/loader/FrameLoaderClient.h" |
| 42 #include "sky/engine/core/page/Chrome.h" |
| 43 #include "sky/engine/core/page/ChromeClient.h" |
| 44 #include "sky/engine/core/page/EventHandler.h" |
| 45 #include "sky/engine/core/page/FocusController.h" |
| 46 #include "sky/engine/core/page/Page.h" |
| 47 #include "sky/engine/core/rendering/RenderLayer.h" |
| 48 #include "sky/engine/core/rendering/RenderView.h" |
| 49 #include "sky/engine/core/rendering/compositing/CompositedLayerMapping.h" |
| 50 #include "sky/engine/core/rendering/compositing/RenderLayerCompositor.h" |
| 51 #include "sky/engine/core/rendering/style/RenderStyle.h" |
| 52 #include "sky/engine/platform/ScriptForbiddenScope.h" |
| 53 #include "sky/engine/platform/TraceEvent.h" |
| 54 #include "sky/engine/platform/fonts/FontCache.h" |
| 55 #include "sky/engine/platform/geometry/FloatRect.h" |
| 56 #include "sky/engine/platform/graphics/GraphicsContext.h" |
| 57 #include "sky/engine/platform/graphics/GraphicsLayerDebugInfo.h" |
| 58 #include "sky/engine/platform/scroll/ScrollAnimator.h" |
| 59 #include "sky/engine/platform/scroll/Scrollbar.h" |
| 60 #include "sky/engine/platform/text/TextStream.h" |
| 61 #include "sky/engine/wtf/CurrentTime.h" |
| 62 #include "sky/engine/wtf/TemporaryChange.h" |
| 63 | 63 |
| 64 namespace blink { | 64 namespace blink { |
| 65 | 65 |
| 66 double FrameView::s_currentFrameTimeStamp = 0.0; | 66 double FrameView::s_currentFrameTimeStamp = 0.0; |
| 67 bool FrameView::s_inPaintContents = false; | 67 bool FrameView::s_inPaintContents = false; |
| 68 | 68 |
| 69 FrameView::FrameView(LocalFrame* frame) | 69 FrameView::FrameView(LocalFrame* frame) |
| 70 : m_frame(frame) | 70 : m_frame(frame) |
| 71 , m_hasPendingLayout(false) | 71 , m_hasPendingLayout(false) |
| 72 , m_layoutSubtreeRoot(0) | 72 , m_layoutSubtreeRoot(0) |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 void FrameView::setLayoutSizeInternal(const IntSize& size) | 1121 void FrameView::setLayoutSizeInternal(const IntSize& size) |
| 1122 { | 1122 { |
| 1123 if (m_layoutSize == size) | 1123 if (m_layoutSize == size) |
| 1124 return; | 1124 return; |
| 1125 | 1125 |
| 1126 m_layoutSize = size; | 1126 m_layoutSize = size; |
| 1127 contentsResized(); | 1127 contentsResized(); |
| 1128 } | 1128 } |
| 1129 | 1129 |
| 1130 } // namespace blink | 1130 } // namespace blink |
| OLD | NEW |