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

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

Issue 1728313003: Split ImageResourceClient into ResourceClient and ImageResourceObserver [2/2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and reflect comment Created 4 years, 9 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
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, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 logicalOffset.setWidth(std::max(LayoutUnit(), -offsetForInFlowPosition() .width())); 1292 logicalOffset.setWidth(std::max(LayoutUnit(), -offsetForInFlowPosition() .width()));
1293 else 1293 else
1294 logicalOffset.setWidth(inlinePosition); 1294 logicalOffset.setWidth(inlinePosition);
1295 1295
1296 if (!child.style()->hasStaticBlockPosition(style()->isHorizontalWritingMode( ))) 1296 if (!child.style()->hasStaticBlockPosition(style()->isHorizontalWritingMode( )))
1297 logicalOffset.setHeight(blockPosition); 1297 logicalOffset.setHeight(blockPosition);
1298 1298
1299 return style()->isHorizontalWritingMode() ? logicalOffset : logicalOffset.tr ansposedSize(); 1299 return style()->isHorizontalWritingMode() ? logicalOffset : logicalOffset.tr ansposedSize();
1300 } 1300 }
1301 1301
1302 void LayoutInline::imageChanged(WrappedImagePtr, const IntRect*) 1302 void LayoutInline::imageChanged(bool, WrappedImagePtr, const IntRect*)
1303 { 1303 {
1304 if (!parent()) 1304 if (!parent())
1305 return; 1305 return;
1306 1306
1307 // FIXME: We can do better. 1307 // FIXME: We can do better.
1308 setShouldDoFullPaintInvalidation(); 1308 setShouldDoFullPaintInvalidation();
1309 } 1309 }
1310 1310
1311 namespace { 1311 namespace {
1312 1312
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 1388
1389 void LayoutInline::invalidateDisplayItemClients(const LayoutBoxModelObject& pain tInvalidationContainer, PaintInvalidationReason invalidationReason) const 1389 void LayoutInline::invalidateDisplayItemClients(const LayoutBoxModelObject& pain tInvalidationContainer, PaintInvalidationReason invalidationReason) const
1390 { 1390 {
1391 LayoutBoxModelObject::invalidateDisplayItemClients(paintInvalidationContaine r, invalidationReason); 1391 LayoutBoxModelObject::invalidateDisplayItemClients(paintInvalidationContaine r, invalidationReason);
1392 1392
1393 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) 1393 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox())
1394 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box, in validationReason); 1394 paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box, in validationReason);
1395 } 1395 }
1396 1396
1397 } // namespace blink 1397 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698