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

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

Issue 13544008: Remove PlatformWidget references (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 paintInfo.context->translate(widgetPaintOffset); 256 paintInfo.context->translate(widgetPaintOffset);
257 paintRect.move(-widgetPaintOffset); 257 paintRect.move(-widgetPaintOffset);
258 } 258 }
259 m_widget->paint(paintInfo.context, paintRect); 259 m_widget->paint(paintInfo.context, paintRect);
260 260
261 if (!widgetPaintOffset.isZero()) 261 if (!widgetPaintOffset.isZero())
262 paintInfo.context->translate(-widgetPaintOffset); 262 paintInfo.context->translate(-widgetPaintOffset);
263 263
264 if (m_widget->isFrameView()) { 264 if (m_widget->isFrameView()) {
265 FrameView* frameView = toFrameView(m_widget.get()); 265 FrameView* frameView = toFrameView(m_widget.get());
266 bool runOverlapTests = !frameView->useSlowRepaintsIfNotOverlapped() || f rameView->hasCompositedContentIncludingDescendants(); 266 bool runOverlapTests = !frameView->useSlowRepaintsIfNotOverlapped() || f rameView->hasCompositedContent();
267 if (paintInfo.overlapTestRequests && runOverlapTests) { 267 if (paintInfo.overlapTestRequests && runOverlapTests) {
268 ASSERT(!paintInfo.overlapTestRequests->contains(this)); 268 ASSERT(!paintInfo.overlapTestRequests->contains(this));
269 paintInfo.overlapTestRequests->set(this, m_widget->frameRect()); 269 paintInfo.overlapTestRequests->set(this, m_widget->frameRect());
270 } 270 }
271 } 271 }
272 } 272 }
273 273
274 void RenderWidget::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) 274 void RenderWidget::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
275 { 275 {
276 if (!shouldPaint(paintInfo, paintOffset)) 276 if (!shouldPaint(paintInfo, paintOffset))
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor ) const 404 CursorDirective RenderWidget::getCursor(const LayoutPoint& point, Cursor& cursor ) const
405 { 405 {
406 if (widget() && widget()->isPluginViewBase()) { 406 if (widget() && widget()->isPluginViewBase()) {
407 // A plug-in is responsible for setting the cursor when the pointer is o ver it. 407 // A plug-in is responsible for setting the cursor when the pointer is o ver it.
408 return DoNotSetCursor; 408 return DoNotSetCursor;
409 } 409 }
410 return RenderReplaced::getCursor(point, cursor); 410 return RenderReplaced::getCursor(point, cursor);
411 } 411 }
412 412
413 } // namespace WebCore 413 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698