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

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderView.cpp

Issue 10670: Do another merge using nifty new merge script (CL for that coming soon). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 * This file is part of the HTML widget for KDE. 2 * This file is part of the HTML widget for KDE.
3 * 3 *
4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 FloatPoint RenderView::absoluteToLocal(FloatPoint containerPoint, bool fixed, bo ol useTransforms) const 142 FloatPoint RenderView::absoluteToLocal(FloatPoint containerPoint, bool fixed, bo ol useTransforms) const
143 { 143 {
144 if (fixed && m_frameView) 144 if (fixed && m_frameView)
145 containerPoint -= m_frameView->scrollOffset(); 145 containerPoint -= m_frameView->scrollOffset();
146 146
147 return containerPoint; 147 return containerPoint;
148 } 148 }
149 149
150 FloatQuad RenderView::localToAbsoluteQuad(const FloatQuad& localQuad, bool fixed ) const
151 {
152 FloatQuad quad = localQuad;
153 if (fixed && m_frameView)
154 quad += m_frameView->scrollOffset();
155
156 return quad;
157 }
158
150 void RenderView::paint(PaintInfo& paintInfo, int tx, int ty) 159 void RenderView::paint(PaintInfo& paintInfo, int tx, int ty)
151 { 160 {
152 // If we ever require layout but receive a paint anyway, something has gone horribly wrong. 161 // If we ever require layout but receive a paint anyway, something has gone horribly wrong.
153 ASSERT(!needsLayout()); 162 ASSERT(!needsLayout());
154 163
155 // Cache the print rect because the dirty rect could get changed during pain ting. 164 // Cache the print rect because the dirty rect could get changed during pain ting.
156 if (printing()) 165 if (printing())
157 setPrintRect(paintInfo.rect); 166 setPrintRect(paintInfo.rect);
158 else 167 else
159 setPrintRect(IntRect()); 168 setPrintRect(IntRect());
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // Apply our transform if we have one (because of full page zooming). 244 // Apply our transform if we have one (because of full page zooming).
236 if (m_layer && m_layer->transform()) 245 if (m_layer && m_layer->transform())
237 rect = m_layer->transform()->mapRect(rect); 246 rect = m_layer->transform()->mapRect(rect);
238 } 247 }
239 248
240 void RenderView::absoluteRects(Vector<IntRect>& rects, int tx, int ty, bool) 249 void RenderView::absoluteRects(Vector<IntRect>& rects, int tx, int ty, bool)
241 { 250 {
242 rects.append(IntRect(tx, ty, m_layer->width(), m_layer->height())); 251 rects.append(IntRect(tx, ty, m_layer->width(), m_layer->height()));
243 } 252 }
244 253
254 void RenderView::absoluteQuads(Vector<FloatQuad>& quads, bool topLevel)
255 {
256 quads.append(FloatRect(0, 0, m_layer->width(), m_layer->height()));
257 }
258
245 RenderObject* rendererAfterPosition(RenderObject* object, unsigned offset) 259 RenderObject* rendererAfterPosition(RenderObject* object, unsigned offset)
246 { 260 {
247 if (!object) 261 if (!object)
248 return 0; 262 return 0;
249 263
250 RenderObject* child = object->childAt(offset); 264 RenderObject* child = object->childAt(offset);
251 return child ? child : object->nextInPreOrderAfterChildren(); 265 return child ? child : object->nextInPreOrderAfterChildren();
252 } 266 }
253 267
254 IntRect RenderView::selectionRect(bool clipToVisibleContent) const 268 IntRect RenderView::selectionRect(bool clipToVisibleContent) const
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 void RenderView::pushLayoutState(RenderObject* root) 581 void RenderView::pushLayoutState(RenderObject* root)
568 { 582 {
569 ASSERT(!m_frameView->needsFullRepaint()); 583 ASSERT(!m_frameView->needsFullRepaint());
570 ASSERT(m_layoutStateDisableCount == 0); 584 ASSERT(m_layoutStateDisableCount == 0);
571 ASSERT(m_layoutState == 0); 585 ASSERT(m_layoutState == 0);
572 586
573 m_layoutState = new (renderArena()) LayoutState(root); 587 m_layoutState = new (renderArena()) LayoutState(root);
574 } 588 }
575 589
576 } // namespace WebCore 590 } // namespace WebCore
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderView.h ('k') | third_party/WebKit/WebKit/mac/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698