| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include <memory> | 29 #include <memory> |
| 30 #include "core/frame/UseCounter.h" | 30 #include "core/frame/UseCounter.h" |
| 31 #include "core/layout/LayoutState.h" | 31 #include "core/layout/LayoutState.h" |
| 32 #include "core/layout/TextAutosizer.h" | 32 #include "core/layout/TextAutosizer.h" |
| 33 #include "core/paint/GridPainter.h" | 33 #include "core/paint/GridPainter.h" |
| 34 #include "core/paint/PaintLayer.h" | 34 #include "core/paint/PaintLayer.h" |
| 35 #include "core/style/ComputedStyle.h" | 35 #include "core/style/ComputedStyle.h" |
| 36 #include "core/style/GridArea.h" | 36 #include "core/style/GridArea.h" |
| 37 #include "platform/LengthFunctions.h" | 37 #include "platform/LengthFunctions.h" |
| 38 #include "platform/text/WritingMode.h" | 38 #include "platform/text/WritingMode.h" |
| 39 #include "wtf/PtrUtil.h" | 39 #include "platform/wtf/PtrUtil.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 struct ContentAlignmentData { | 43 struct ContentAlignmentData { |
| 44 STACK_ALLOCATED(); | 44 STACK_ALLOCATED(); |
| 45 | 45 |
| 46 public: | 46 public: |
| 47 ContentAlignmentData(){}; | 47 ContentAlignmentData(){}; |
| 48 ContentAlignmentData(LayoutUnit position, LayoutUnit distribution) | 48 ContentAlignmentData(LayoutUnit position, LayoutUnit distribution) |
| 49 : position_offset(position), distribution_offset(distribution) {} | 49 : position_offset(position), distribution_offset(distribution) {} |
| (...skipping 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2357 if (direction == kForRows) | 2357 if (direction == kForRows) |
| 2358 return grid.NumTracks(kForRows); | 2358 return grid.NumTracks(kForRows); |
| 2359 | 2359 |
| 2360 return grid.NumTracks(kForRows) | 2360 return grid.NumTracks(kForRows) |
| 2361 ? grid.NumTracks(kForColumns) | 2361 ? grid.NumTracks(kForColumns) |
| 2362 : GridPositionsResolver::ExplicitGridColumnCount( | 2362 : GridPositionsResolver::ExplicitGridColumnCount( |
| 2363 StyleRef(), grid.AutoRepeatTracks(kForColumns)); | 2363 StyleRef(), grid.AutoRepeatTracks(kForColumns)); |
| 2364 } | 2364 } |
| 2365 | 2365 |
| 2366 } // namespace blink | 2366 } // namespace blink |
| OLD | NEW |