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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.h

Issue 1490013002: Devirtualize LayoutBlock::firstLineBlock() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FirstLine
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBlock.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.h b/third_party/WebKit/Source/core/layout/LayoutBlock.h
index 358dcff2e53d2618b0d548794074594931924f10..ad442524c55389d11ec8c213b3e0033051580e30 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.h
@@ -276,6 +276,9 @@ public:
bool recalcChildOverflowAfterStyleChange();
bool recalcOverflowAfterStyleChange();
+ // Obtains the nearest enclosing block (including this block) that contributes a first-line style to our inline children.
+ LayoutBlock* firstLineBlock() const;
+
void invalidateDisplayItemClientsOfFirstLine();
protected:
@@ -398,10 +401,6 @@ private:
void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const;
- // Obtains the nearest enclosing block (including this block) that contributes a first-line style to our inline
- // children.
- LayoutBlock* firstLineBlock() const override;
-
LayoutObject* hoverAncestor() const final;
void updateDragState(bool dragOn) final;
void childBecameNonInline(LayoutObject* child) final;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698