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

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderContainer.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 * 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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
7 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 7 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 672
673 unsigned offset = start; 673 unsigned offset = start;
674 for (RenderObject* child = childAt(start); child && offset < end; child = ch ild->nextSibling(), ++offset) { 674 for (RenderObject* child = childAt(start); child && offset < end; child = ch ild->nextSibling(), ++offset) {
675 if (child->isText() || child->isInline() || child->isAnonymousBlock()) { 675 if (child->isText() || child->isInline() || child->isAnonymousBlock()) {
676 FloatPoint absPos = child->localToAbsoluteForContent(FloatPoint()); 676 FloatPoint absPos = child->localToAbsoluteForContent(FloatPoint());
677 child->absoluteRects(rects, absPos.x(), absPos.y()); 677 child->absoluteRects(rects, absPos.x(), absPos.y());
678 } 678 }
679 } 679 }
680 } 680 }
681 681
682 void RenderContainer::collectAbsoluteLineBoxQuads(Vector<FloatQuad>& quads, unsi gned start, unsigned end, bool useSelectionHeight)
683 {
684 if (!m_firstChild && (isInline() || isAnonymousBlock())) {
685 absoluteQuads(quads);
686 return;
687 }
688
689 if (!m_firstChild)
690 return;
691
692 unsigned offset = start;
693 for (RenderObject* child = childAt(start); child && offset < end; child = ch ild->nextSibling(), ++offset) {
694 if (child->isText() || child->isInline() || child->isAnonymousBlock())
695 child->absoluteQuads(quads);
696 }
697 }
698
682 #undef DEBUG_LAYOUT 699 #undef DEBUG_LAYOUT
683 700
684 } // namespace WebCore 701 } // namespace WebCore
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderContainer.h ('k') | third_party/WebKit/WebCore/rendering/RenderInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698