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

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

Issue 1958413003: Assert that continuations be either LayoutBlockFlow or LayoutInline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | 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 * (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 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 } 913 }
914 914
915 LayoutBoxModelObject* LayoutBoxModelObject::continuation() const 915 LayoutBoxModelObject* LayoutBoxModelObject::continuation() const
916 { 916 {
917 return (!continuationMap) ? nullptr : continuationMap->get(this); 917 return (!continuationMap) ? nullptr : continuationMap->get(this);
918 } 918 }
919 919
920 void LayoutBoxModelObject::setContinuation(LayoutBoxModelObject* continuation) 920 void LayoutBoxModelObject::setContinuation(LayoutBoxModelObject* continuation)
921 { 921 {
922 if (continuation) { 922 if (continuation) {
923 ASSERT(continuation->isLayoutInline() || continuation->isLayoutBlockFlow ());
923 if (!continuationMap) 924 if (!continuationMap)
924 continuationMap = new ContinuationMap; 925 continuationMap = new ContinuationMap;
925 continuationMap->set(this, continuation); 926 continuationMap->set(this, continuation);
926 } else { 927 } else {
927 if (continuationMap) 928 if (continuationMap)
928 continuationMap->remove(this); 929 continuationMap->remove(this);
929 } 930 }
930 } 931 }
931 932
932 void LayoutBoxModelObject::computeLayerHitTestRects(LayerHitTestRects& rects) co nst 933 void LayoutBoxModelObject::computeLayerHitTestRects(LayerHitTestRects& rects) co nst
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 if (rootElementStyle->hasBackground()) 1135 if (rootElementStyle->hasBackground())
1135 return false; 1136 return false;
1136 1137
1137 if (node() != document().firstBodyElement()) 1138 if (node() != document().firstBodyElement())
1138 return false; 1139 return false;
1139 1140
1140 return true; 1141 return true;
1141 } 1142 }
1142 1143
1143 } // namespace blink 1144 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698