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

Side by Side Diff: third_party/WebKit/Source/platform/Widget.cpp

Issue 1860903002: Update Source/platform/ to assume Oilpan only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: back out ScrollAnimatorMac() accidental change Created 4 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) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 21 matching lines...) Expand all
32 32
33 Widget::Widget() 33 Widget::Widget()
34 : m_parent(nullptr) 34 : m_parent(nullptr)
35 , m_selfVisible(false) 35 , m_selfVisible(false)
36 , m_parentVisible(false) 36 , m_parentVisible(false)
37 { 37 {
38 } 38 }
39 39
40 Widget::~Widget() 40 Widget::~Widget()
41 { 41 {
42 #if !ENABLE(OILPAN)
43 ASSERT(!parent());
44 #endif
45 } 42 }
46 43
47 DEFINE_TRACE(Widget) 44 DEFINE_TRACE(Widget)
48 { 45 {
49 visitor->trace(m_parent); 46 visitor->trace(m_parent);
50 } 47 }
51 48
52 void Widget::setParent(Widget* widget) 49 void Widget::setParent(Widget* widget)
53 { 50 {
54 ASSERT(!widget || !m_parent); 51 ASSERT(!widget || !m_parent);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 { 162 {
166 return point; 163 return point;
167 } 164 }
168 165
169 IntPoint Widget::convertSelfToChild(const Widget*, const IntPoint& point) const 166 IntPoint Widget::convertSelfToChild(const Widget*, const IntPoint& point) const
170 { 167 {
171 return point; 168 return point;
172 } 169 }
173 170
174 } // namespace blink 171 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/MemoryPurgeController.cpp ('k') | third_party/WebKit/Source/platform/fonts/Font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698