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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp

Issue 1537133002: Renaming: distinguish ancestor, container and paintInvalidationContainer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SelectionInvalidation
Patch Set: Created 5 years 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
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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. All rights reserved.
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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 } 434 }
435 435
436 void LayoutBoxModelObject::addOutlineRectsForDescendant(const LayoutObject& desc endant, Vector<LayoutRect>& rects, const LayoutPoint& additionalOffset, IncludeB lockVisualOverflowOrNot includeBlockOverflows) const 436 void LayoutBoxModelObject::addOutlineRectsForDescendant(const LayoutObject& desc endant, Vector<LayoutRect>& rects, const LayoutPoint& additionalOffset, IncludeB lockVisualOverflowOrNot includeBlockOverflows) const
437 { 437 {
438 if (descendant.isText() || descendant.isListMarker()) 438 if (descendant.isText() || descendant.isListMarker())
439 return; 439 return;
440 440
441 if (descendant.hasLayer()) { 441 if (descendant.hasLayer()) {
442 Vector<LayoutRect> layerOutlineRects; 442 Vector<LayoutRect> layerOutlineRects;
443 descendant.addOutlineRects(layerOutlineRects, LayoutPoint(), includeBloc kOverflows); 443 descendant.addOutlineRects(layerOutlineRects, LayoutPoint(), includeBloc kOverflows);
444 descendant.localToContainerRects(layerOutlineRects, this, LayoutPoint(), additionalOffset); 444 descendant.localToAncestorRects(layerOutlineRects, this, LayoutPoint(), additionalOffset);
445 rects.appendVector(layerOutlineRects); 445 rects.appendVector(layerOutlineRects);
446 return; 446 return;
447 } 447 }
448 448
449 if (descendant.isBox()) { 449 if (descendant.isBox()) {
450 descendant.addOutlineRects(rects, additionalOffset + toLayoutBox(descend ant).locationOffset(), includeBlockOverflows); 450 descendant.addOutlineRects(rects, additionalOffset + toLayoutBox(descend ant).locationOffset(), includeBlockOverflows);
451 return; 451 return;
452 } 452 }
453 453
454 if (descendant.isLayoutInline()) { 454 if (descendant.isLayoutInline()) {
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 if (rootElementStyle->hasBackground()) 1064 if (rootElementStyle->hasBackground())
1065 return false; 1065 return false;
1066 1066
1067 if (node() != document().firstBodyElement()) 1067 if (node() != document().firstBodyElement())
1068 return false; 1068 return false;
1069 1069
1070 return true; 1070 return true;
1071 } 1071 }
1072 1072
1073 } // namespace blink 1073 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutFlowThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698