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

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

Issue 1032823003: Refactor HitTestResult to store the HitTestRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments Created 5 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
« no previous file with comments | « Source/core/layout/LayoutBlockFlow.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 382
383 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const override; 383 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const override;
384 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const overrid e; 384 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const overrid e;
385 385
386 int reflectionOffset() const; 386 int reflectionOffset() const;
387 // Given a rect in the object's coordinate space, returns the corresponding rect in the reflection. 387 // Given a rect in the object's coordinate space, returns the corresponding rect in the reflection.
388 LayoutRect reflectedRect(const LayoutRect&) const; 388 LayoutRect reflectedRect(const LayoutRect&) const;
389 389
390 virtual void layout() override; 390 virtual void layout() override;
391 virtual void paint(const PaintInfo&, const LayoutPoint&) override; 391 virtual void paint(const PaintInfo&, const LayoutPoint&) override;
392 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) override; 392 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
393 393
394 virtual LayoutUnit minPreferredLogicalWidth() const override; 394 virtual LayoutUnit minPreferredLogicalWidth() const override;
395 virtual LayoutUnit maxPreferredLogicalWidth() const override; 395 virtual LayoutUnit maxPreferredLogicalWidth() const override;
396 396
397 // FIXME: We should rename these back to overrideLogicalHeight/Width and hav e them store 397 // FIXME: We should rename these back to overrideLogicalHeight/Width and hav e them store
398 // the border-box height/width like the regular height/width accessors on La youtBox. 398 // the border-box height/width like the regular height/width accessors on La youtBox.
399 // Right now, these are different than contentHeight/contentWidth because th ey still 399 // Right now, these are different than contentHeight/contentWidth because th ey still
400 // include the scrollbar height/width. 400 // include the scrollbar height/width.
401 LayoutUnit overrideLogicalContentWidth() const; 401 LayoutUnit overrideLogicalContentWidth() const;
402 LayoutUnit overrideLogicalContentHeight() const; 402 LayoutUnit overrideLogicalContentHeight() const;
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 if (UNLIKELY(inlineBoxWrapper() != 0)) 912 if (UNLIKELY(inlineBoxWrapper() != 0))
913 deleteLineBoxWrapper(); 913 deleteLineBoxWrapper();
914 } 914 }
915 915
916 ensureRareData().m_inlineBoxWrapper = boxWrapper; 916 ensureRareData().m_inlineBoxWrapper = boxWrapper;
917 } 917 }
918 918
919 } // namespace blink 919 } // namespace blink
920 920
921 #endif // LayoutBox_h 921 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBlockFlow.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698