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

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

Issue 1835843002: WIP: Fix foreignObject cullrect Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2008, 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 needLayoutObject = (buttonsPlacement == WebScrollbarButtonsPlacement Single || buttonsPlacement == WebScrollbarButtonsPlacementDoubleEnd 257 needLayoutObject = (buttonsPlacement == WebScrollbarButtonsPlacement Single || buttonsPlacement == WebScrollbarButtonsPlacementDoubleEnd
258 || buttonsPlacement == WebScrollbarButtonsPlacementDoubleBoth); 258 || buttonsPlacement == WebScrollbarButtonsPlacementDoubleBoth);
259 break; 259 break;
260 default: 260 default:
261 break; 261 break;
262 } 262 }
263 } 263 }
264 264
265 LayoutScrollbarPart* partLayoutObject = m_parts.get(partType); 265 LayoutScrollbarPart* partLayoutObject = m_parts.get(partType);
266 if (!partLayoutObject && needLayoutObject) { 266 if (!partLayoutObject && needLayoutObject) {
267 partLayoutObject = LayoutScrollbarPart::createAnonymous(&owningLayoutObj ect()->document(), this, partType); 267 partLayoutObject = LayoutScrollbarPart::createAnonymous(&owningLayoutObj ect()->document(), m_scrollableArea, this, partType);
268 m_parts.set(partType, partLayoutObject); 268 m_parts.set(partType, partLayoutObject);
269 } else if (partLayoutObject && !needLayoutObject) { 269 } else if (partLayoutObject && !needLayoutObject) {
270 m_parts.remove(partType); 270 m_parts.remove(partType);
271 partLayoutObject->destroy(); 271 partLayoutObject->destroy();
272 partLayoutObject = 0; 272 partLayoutObject = 0;
273 } 273 }
274 274
275 if (partLayoutObject) 275 if (partLayoutObject)
276 partLayoutObject->setStyleWithWritingModeOfParent(partStyle.release()); 276 partLayoutObject->setStyleWithWritingModeOfParent(partStyle.release());
277 } 277 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 return orientation() == HorizontalScrollbar ? partLayoutObject->size().width () : partLayoutObject->size().height(); 361 return orientation() == HorizontalScrollbar ? partLayoutObject->size().width () : partLayoutObject->size().height();
362 } 362 }
363 363
364 void LayoutScrollbar::invalidateDisplayItemClientsOfScrollbarParts(const LayoutB oxModelObject& paintInvalidationContainer) 364 void LayoutScrollbar::invalidateDisplayItemClientsOfScrollbarParts(const LayoutB oxModelObject& paintInvalidationContainer)
365 { 365 {
366 for (auto& part : m_parts) 366 for (auto& part : m_parts)
367 part.value->invalidateDisplayItemClientsIncludingNonCompositingDescendan ts(&paintInvalidationContainer, PaintInvalidationScroll); 367 part.value->invalidateDisplayItemClientsIncludingNonCompositingDescendan ts(&paintInvalidationContainer, PaintInvalidationScroll);
368 } 368 }
369 369
370 } // namespace blink 370 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698