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

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

Issue 1960373002: nodeAtPoint(): Perform the early-check EARLY. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 940
941 virtual void computePositionedLogicalWidth(LogicalExtentComputedValues&) con st; 941 virtual void computePositionedLogicalWidth(LogicalExtentComputedValues&) con st;
942 942
943 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; 943 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const;
944 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi ng) const; 944 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi ng) const;
945 945
946 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve l() && !isInlineBlockOrInlineTable(); } 946 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve l() && !isInlineBlockOrInlineTable(); }
947 947
948 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); 948 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild);
949 949
950 virtual bool hitTestOverflowControl(HitTestResult&, const HitTestLocation&, const LayoutPoint&) { return false; }
950 virtual bool hitTestChildren(HitTestResult&, const HitTestLocation& location InContainer, const LayoutPoint& accumulatedOffset, HitTestAction); 951 virtual bool hitTestChildren(HitTestResult&, const HitTestLocation& location InContainer, const LayoutPoint& accumulatedOffset, HitTestAction);
951 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override; 952 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con st override;
952 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override; 953 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override;
953 954
954 PaintInvalidationReason getPaintInvalidationReason(const LayoutBoxModelObjec t& paintInvalidationContainer, 955 PaintInvalidationReason getPaintInvalidationReason(const LayoutBoxModelObjec t& paintInvalidationContainer,
955 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, 956 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer,
956 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override; 957 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override;
957 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La youtPoint& positionFromPaintInvalidationContainer) override; 958 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La youtPoint& positionFromPaintInvalidationContainer) override;
958 959
959 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override; 960 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState &) override;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 || breakValue == BreakLeft 1168 || breakValue == BreakLeft
1168 || breakValue == BreakPage 1169 || breakValue == BreakPage
1169 || breakValue == BreakRecto 1170 || breakValue == BreakRecto
1170 || breakValue == BreakRight 1171 || breakValue == BreakRight
1171 || breakValue == BreakVerso; 1172 || breakValue == BreakVerso;
1172 } 1173 }
1173 1174
1174 } // namespace blink 1175 } // namespace blink
1175 1176
1176 #endif // LayoutBox_h 1177 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698