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

Side by Side Diff: Source/core/rendering/RenderListMarker.cpp

Issue 945803004: Merge back LayoutLayerModelObject into RenderBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better rebasing. Created 5 years, 10 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
« no previous file with comments | « Source/core/rendering/RenderListMarker.h ('k') | Source/core/rendering/RenderText.h » ('j') | 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 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net)
6 * Copyright (C) 2010 Daniel Bates (dbates@intudata.com) 6 * Copyright (C) 2010 Daniel Bates (dbates@intudata.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 1607
1608 void RenderListMarker::setSelectionState(SelectionState state) 1608 void RenderListMarker::setSelectionState(SelectionState state)
1609 { 1609 {
1610 // The selection state for our containing block hierarchy is updated by the base class call. 1610 // The selection state for our containing block hierarchy is updated by the base class call.
1611 RenderBox::setSelectionState(state); 1611 RenderBox::setSelectionState(state);
1612 1612
1613 if (inlineBoxWrapper() && canUpdateSelectionOnRootLineBoxes()) 1613 if (inlineBoxWrapper() && canUpdateSelectionOnRootLineBoxes())
1614 inlineBoxWrapper()->root().setHasSelectedChildren(state != SelectionNone ); 1614 inlineBoxWrapper()->root().setHasSelectedChildren(state != SelectionNone );
1615 } 1615 }
1616 1616
1617 LayoutRect RenderListMarker::selectionRectForPaintInvalidation(const LayoutLayer ModelObject* paintInvalidationContainer) const 1617 LayoutRect RenderListMarker::selectionRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer) const
1618 { 1618 {
1619 ASSERT(!needsLayout()); 1619 ASSERT(!needsLayout());
1620 1620
1621 if (selectionState() == SelectionNone || !inlineBoxWrapper()) 1621 if (selectionState() == SelectionNone || !inlineBoxWrapper())
1622 return LayoutRect(); 1622 return LayoutRect();
1623 1623
1624 RootInlineBox& root = inlineBoxWrapper()->root(); 1624 RootInlineBox& root = inlineBoxWrapper()->root();
1625 LayoutRect rect(0, root.selectionTop() - location().y(), size().width(), roo t.selectionHeight()); 1625 LayoutRect rect(0, root.selectionTop() - location().y(), size().width(), roo t.selectionHeight());
1626 mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, 0); 1626 mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, 0);
1627 // FIXME: groupedMapping() leaks the squashing abstraction. 1627 // FIXME: groupedMapping() leaks the squashing abstraction.
(...skipping 11 matching lines...) Expand all
1639 if (style()) { 1639 if (style()) {
1640 // Reuse the current margins. Otherwise resetting the margins to initial values 1640 // Reuse the current margins. Otherwise resetting the margins to initial values
1641 // would trigger unnecessary layout. 1641 // would trigger unnecessary layout.
1642 newStyle->setMarginStart(style()->marginStart()); 1642 newStyle->setMarginStart(style()->marginStart());
1643 newStyle->setMarginEnd(style()->marginRight()); 1643 newStyle->setMarginEnd(style()->marginRight());
1644 } 1644 }
1645 setStyle(newStyle.release()); 1645 setStyle(newStyle.release());
1646 } 1646 }
1647 1647
1648 } // namespace blink 1648 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListMarker.h ('k') | Source/core/rendering/RenderText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698