Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2809363002: Rewrite references to "wtf/" to "platform/wtf/" in core/layout. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public 11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either 12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version. 13 * version 2 of the License, or (at your option) any later version.
14 * 14 *
15 * This library is distributed in the hope that it will be useful, 15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details. 18 * Library General Public License for more details.
19 * 19 *
20 * You should have received a copy of the GNU Library General Public License 20 * You should have received a copy of the GNU Library General Public License
21 * along with this library; see the file COPYING.LIB. If not, write to 21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA. 23 * Boston, MA 02110-1301, USA.
24 * 24 *
25 */ 25 */
26 26
27 #include "core/layout/LayoutBox.h" 27 #include "core/layout/LayoutBox.h"
28 28
29 #include <math.h>
30 #include <algorithm>
29 #include "core/dom/Document.h" 31 #include "core/dom/Document.h"
30 #include "core/editing/EditingUtilities.h" 32 #include "core/editing/EditingUtilities.h"
31 #include "core/frame/FrameView.h" 33 #include "core/frame/FrameView.h"
32 #include "core/frame/LocalFrame.h" 34 #include "core/frame/LocalFrame.h"
33 #include "core/frame/Settings.h" 35 #include "core/frame/Settings.h"
34 #include "core/html/HTMLElement.h" 36 #include "core/html/HTMLElement.h"
35 #include "core/html/HTMLFrameElementBase.h" 37 #include "core/html/HTMLFrameElementBase.h"
36 #include "core/html/HTMLFrameOwnerElement.h" 38 #include "core/html/HTMLFrameOwnerElement.h"
37 #include "core/input/EventHandler.h" 39 #include "core/input/EventHandler.h"
38 #include "core/layout/HitTestResult.h" 40 #include "core/layout/HitTestResult.h"
(...skipping 20 matching lines...) Expand all
59 #include "core/page/scrolling/SnapCoordinator.h" 61 #include "core/page/scrolling/SnapCoordinator.h"
60 #include "core/paint/BackgroundImageGeometry.h" 62 #include "core/paint/BackgroundImageGeometry.h"
61 #include "core/paint/BoxPaintInvalidator.h" 63 #include "core/paint/BoxPaintInvalidator.h"
62 #include "core/paint/BoxPainter.h" 64 #include "core/paint/BoxPainter.h"
63 #include "core/paint/PaintLayer.h" 65 #include "core/paint/PaintLayer.h"
64 #include "core/style/ShadowList.h" 66 #include "core/style/ShadowList.h"
65 #include "platform/LengthFunctions.h" 67 #include "platform/LengthFunctions.h"
66 #include "platform/geometry/DoubleRect.h" 68 #include "platform/geometry/DoubleRect.h"
67 #include "platform/geometry/FloatQuad.h" 69 #include "platform/geometry/FloatQuad.h"
68 #include "platform/geometry/FloatRoundedRect.h" 70 #include "platform/geometry/FloatRoundedRect.h"
69 #include "wtf/PtrUtil.h" 71 #include "platform/wtf/PtrUtil.h"
70 #include <algorithm>
71 #include <math.h>
72 72
73 namespace blink { 73 namespace blink {
74 74
75 // Used by flexible boxes when flexing this element and by table cells. 75 // Used by flexible boxes when flexing this element and by table cells.
76 typedef WTF::HashMap<const LayoutBox*, LayoutUnit> OverrideSizeMap; 76 typedef WTF::HashMap<const LayoutBox*, LayoutUnit> OverrideSizeMap;
77 77
78 static OverrideSizeMap* g_extra_inline_offset_map = nullptr; 78 static OverrideSizeMap* g_extra_inline_offset_map = nullptr;
79 static OverrideSizeMap* g_extra_block_offset_map = nullptr; 79 static OverrideSizeMap* g_extra_block_offset_map = nullptr;
80 80
81 // Size of border belt for autoscroll. When mouse pointer in border belt, 81 // Size of border belt for autoscroll. When mouse pointer in border belt,
(...skipping 5814 matching lines...) Expand 10 before | Expand all | Expand 10 after
5896 void LayoutBox::MutableForPainting:: 5896 void LayoutBox::MutableForPainting::
5897 SavePreviousContentBoxSizeAndLayoutOverflowRect() { 5897 SavePreviousContentBoxSizeAndLayoutOverflowRect() {
5898 auto& rare_data = GetLayoutBox().EnsureRareData(); 5898 auto& rare_data = GetLayoutBox().EnsureRareData();
5899 rare_data.has_previous_content_box_size_and_layout_overflow_rect_ = true; 5899 rare_data.has_previous_content_box_size_and_layout_overflow_rect_ = true;
5900 rare_data.previous_content_box_size_ = GetLayoutBox().ContentBoxRect().size(); 5900 rare_data.previous_content_box_size_ = GetLayoutBox().ContentBoxRect().size();
5901 rare_data.previous_layout_overflow_rect_ = 5901 rare_data.previous_layout_overflow_rect_ =
5902 GetLayoutBox().LayoutOverflowRect(); 5902 GetLayoutBox().LayoutOverflowRect();
5903 } 5903 }
5904 5904
5905 } // namespace blink 5905 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698