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

Side by Side Diff: Source/WebCore/rendering/RenderWidget.cpp

Issue 6592048: Merge 76859 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 9 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
« no previous file with comments | « Source/WebCore/rendering/RenderObjectChildList.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org) 3 * Copyright (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // want to unconditionally delete ourselves (we're ref-counted). 113 // want to unconditionally delete ourselves (we're ref-counted).
114 // So the code below includes copied and pasted contents of 114 // So the code below includes copied and pasted contents of
115 // both RenderBox::destroy() and RenderObject::destroy(). 115 // both RenderBox::destroy() and RenderObject::destroy().
116 // Fix originally made for <rdar://problem/4228818>. 116 // Fix originally made for <rdar://problem/4228818>.
117 117
118 animation()->cancelAnimations(this); 118 animation()->cancelAnimations(this);
119 119
120 if (RenderView* v = view()) 120 if (RenderView* v = view())
121 v->removeWidget(this); 121 v->removeWidget(this);
122 122
123 if (m_hasCounterNodeMap)
124 RenderCounter::destroyCounterNodes(this);
125 123
126 if (AXObjectCache::accessibilityEnabled()) { 124 if (AXObjectCache::accessibilityEnabled()) {
127 document()->axObjectCache()->childrenChanged(this->parent()); 125 document()->axObjectCache()->childrenChanged(this->parent());
128 document()->axObjectCache()->remove(this); 126 document()->axObjectCache()->remove(this);
129 } 127 }
130 remove(); 128 remove();
131 129
130 if (m_hasCounterNodeMap)
131 RenderCounter::destroyCounterNodes(this);
132
132 setWidget(0); 133 setWidget(0);
133 134
134 // removes from override size map 135 // removes from override size map
135 if (hasOverrideSize()) 136 if (hasOverrideSize())
136 setOverrideSize(-1); 137 setOverrideSize(-1);
137 138
138 if (style() && (style()->height().isPercent() || style()->minHeight().isPerc ent() || style()->maxHeight().isPercent())) 139 if (style() && (style()->height().isPercent() || style()->minHeight().isPerc ent() || style()->maxHeight().isPercent()))
139 RenderBlock::removePercentHeightDescendant(this); 140 RenderBlock::removePercentHeightDescendant(this);
140 141
141 if (hasLayer()) { 142 if (hasLayer()) {
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 bool hadResult = result.innerNode(); 393 bool hadResult = result.innerNode();
393 bool inside = RenderReplaced::nodeAtPoint(request, result, x, y, tx, ty, act ion); 394 bool inside = RenderReplaced::nodeAtPoint(request, result, x, y, tx, ty, act ion);
394 395
395 // Check to see if we are really over the widget itself (and not just in the border/padding area). 396 // Check to see if we are really over the widget itself (and not just in the border/padding area).
396 if ((inside || result.isRectBasedTest()) && !hadResult && result.innerNode() == node()) 397 if ((inside || result.isRectBasedTest()) && !hadResult && result.innerNode() == node())
397 result.setIsOverWidget(contentBoxRect().contains(result.localPoint())); 398 result.setIsOverWidget(contentBoxRect().contains(result.localPoint()));
398 return inside; 399 return inside;
399 } 400 }
400 401
401 } // namespace WebCore 402 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderObjectChildList.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698