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

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

Issue 1588543004: Remove paintInvalidationRect from display item client invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 startOfContinuations = inlineElementContinuation->node()->layoutObject() ; 361 startOfContinuations = inlineElementContinuation->node()->layoutObject() ;
362 } else if (LayoutObject* firstChild = block.firstChild()) { 362 } else if (LayoutObject* firstChild = block.firstChild()) {
363 // This block is the anonymous containing block of an inline element con tinuation. 363 // This block is the anonymous containing block of an inline element con tinuation.
364 if (firstChild->isElementContinuation()) 364 if (firstChild->isElementContinuation())
365 startOfContinuations = firstChild->node()->layoutObject(); 365 startOfContinuations = firstChild->node()->layoutObject();
366 } 366 }
367 if (startOfContinuations && startOfContinuations->styleRef().outlineStyleIsA uto()) 367 if (startOfContinuations && startOfContinuations->styleRef().outlineStyleIsA uto())
368 startOfContinuations->invalidateDisplayItemClient(*startOfContinuations) ; 368 startOfContinuations->invalidateDisplayItemClient(*startOfContinuations) ;
369 } 369 }
370 370
371 void LayoutBlock::invalidateDisplayItemClients(const LayoutBoxModelObject& paint InvalidationContainer, PaintInvalidationReason invalidationReason, const LayoutR ect* paintInvalidationRect) const 371 void LayoutBlock::invalidateDisplayItemClients(const LayoutBoxModelObject& paint InvalidationContainer, PaintInvalidationReason invalidationReason) const
372 { 372 {
373 LayoutBox::invalidateDisplayItemClients(paintInvalidationContainer, invalida tionReason, paintInvalidationRect); 373 LayoutBox::invalidateDisplayItemClients(paintInvalidationContainer, invalida tionReason);
374 invalidateDisplayItemClientForStartOfContinuationsIfNeeded(*this); 374 invalidateDisplayItemClientForStartOfContinuationsIfNeeded(*this);
375 } 375 }
376 376
377 void LayoutBlock::addChildIgnoringContinuation(LayoutObject* newChild, LayoutObj ect* beforeChild) 377 void LayoutBlock::addChildIgnoringContinuation(LayoutObject* newChild, LayoutObj ect* beforeChild)
378 { 378 {
379 if (beforeChild && beforeChild->parent() != this) { 379 if (beforeChild && beforeChild->parent() != this) {
380 LayoutObject* beforeChildContainer = beforeChild->parent(); 380 LayoutObject* beforeChildContainer = beforeChild->parent();
381 while (beforeChildContainer->parent() != this) 381 while (beforeChildContainer->parent() != this)
382 beforeChildContainer = beforeChildContainer->parent(); 382 beforeChildContainer = beforeChildContainer->parent();
383 ASSERT(beforeChildContainer); 383 ASSERT(beforeChildContainer);
(...skipping 2512 matching lines...) Expand 10 before | Expand all | Expand 10 after
2896 void LayoutBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout Object* obj) const 2896 void LayoutBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout Object* obj) const
2897 { 2897 {
2898 showLayoutObject(); 2898 showLayoutObject();
2899 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box()) 2899 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box())
2900 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1); 2900 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1);
2901 } 2901 }
2902 2902
2903 #endif 2903 #endif
2904 2904
2905 } // namespace blink 2905 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698