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

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

Issue 2816873002: Update PaintLayer size during layout, not after.
Patch Set: Speculatively remove call to UpdateScrollbars() Created 3 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
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 Apple Inc. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc.
6 * All rights reserved. 6 * 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 405
406 bool HitTestOverflowControl(HitTestResult&, 406 bool HitTestOverflowControl(HitTestResult&,
407 const HitTestLocation&, 407 const HitTestLocation&,
408 const LayoutPoint& adjusted_location) override; 408 const LayoutPoint& adjusted_location) override;
409 bool HitTestChildren(HitTestResult&, 409 bool HitTestChildren(HitTestResult&,
410 const HitTestLocation& location_in_container, 410 const HitTestLocation& location_in_container,
411 const LayoutPoint& accumulated_offset, 411 const LayoutPoint& accumulated_offset,
412 HitTestAction) override; 412 HitTestAction) override;
413 void UpdateHitTestResult(HitTestResult&, const LayoutPoint&) override; 413 void UpdateHitTestResult(HitTestResult&, const LayoutPoint&) override;
414 414
415 void UpdateAfterLayout(); 415 void UpdateAfterLayout() override;
416 416
417 void StyleWillChange(StyleDifference, 417 void StyleWillChange(StyleDifference,
418 const ComputedStyle& new_style) override; 418 const ComputedStyle& new_style) override;
419 void StyleDidChange(StyleDifference, const ComputedStyle* old_style) override; 419 void StyleDidChange(StyleDifference, const ComputedStyle* old_style) override;
420 void UpdateFromStyle() override; 420 void UpdateFromStyle() override;
421 421
422 // Returns true if non-visible overflow should be respected. Otherwise 422 // Returns true if non-visible overflow should be respected. Otherwise
423 // hasOverflowClip() will be false and we won't create scrollable area for 423 // hasOverflowClip() will be false and we won't create scrollable area for
424 // this object even if overflow is non-visible. 424 // this object even if overflow is non-visible.
425 virtual bool AllowsOverflowClip() const; 425 virtual bool AllowsOverflowClip() const;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 // TODO(lunalu): Temporary in order to ensure compatibility with existing 570 // TODO(lunalu): Temporary in order to ensure compatibility with existing
571 // layout test results. 571 // layout test results.
572 virtual void AdjustChildDebugRect(LayoutRect&) const {} 572 virtual void AdjustChildDebugRect(LayoutRect&) const {}
573 }; 573 };
574 574
575 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, IsLayoutBlock()); 575 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, IsLayoutBlock());
576 576
577 } // namespace blink 577 } // namespace blink
578 578
579 #endif // LayoutBlock_h 579 #endif // LayoutBlock_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698