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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h

Issue 2910133002: [LayoutNG] Handle empty inlines and border edges (Closed)
Patch Set: Rebase Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
index 81ec470f2e14b08e0c6847b60fc5fa1dc4d00742..dbf8786f107923c5fbee8b112f71f5405c539268 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
@@ -54,10 +54,8 @@ class CORE_EXPORT NGPhysicalFragment : public RefCounted<NGPhysicalFragment> {
// Returns the border-box size.
NGPhysicalSize Size() const { return size_; }
- // Bitmask for border edges, see NGPaintBorderEdge.
- NGBorderEdges::Physical BorderEdges() const {
- return static_cast<NGBorderEdges::Physical>(border_edge_);
- }
+ // Bitmask for border edges, see NGBorderEdges::Physical.
+ unsigned BorderEdges() const { return border_edge_; }
NGPixelSnappedPhysicalBoxStrut BorderWidths() const;
// Returns the offset relative to the parent fragment's content-box.
@@ -104,7 +102,7 @@ class CORE_EXPORT NGPhysicalFragment : public RefCounted<NGPhysicalFragment> {
unsigned type_ : 2; // NGFragmentType
unsigned is_placed_ : 1;
- unsigned border_edge_ : 4; // NGPhysicalBorderEdges
+ unsigned border_edge_ : 4; // NGBorderEdges::Physical
private:
void Destroy() const;
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698