|
|
Chromium Code Reviews|
Created:
4 years, 4 months ago by cbiesinger Modified:
4 years, 4 months ago CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[LayoutNG] Very simple layout() implementation
Just resolved width and height, and returns a fragment with that.
R=eae@chromium.org,ikilpatrick@chromium.org,glebl@chromium.org
BUG=635619
NOTRY=true
Committed: https://crrev.com/7872d0ed57157601145d7efe6f3c773750f38ee2
Cr-Commit-Position: refs/heads/master@{#410814}
Patch Set 1 #Patch Set 2 : Rename variable to constraintSpace #
Total comments: 1
Patch Set 3 : Add comments & make computed style const #Patch Set 4 : Update per NGFragment change #Patch Set 5 : rebased #
Messages
Total messages: 27 (17 generated)
The CQ bit was checked by cbiesinger@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by cbiesinger@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== [layoutng] Very simple layout() implementation Just resolved width and height, and returns a fragment with that. R=eae@chromium.org,ikilpatrick@chromium.org,glebl@chromium.org BUG=635619 ========== to ========== [LayoutNG] Very simple layout() implementation Just resolved width and height, and returns a fragment with that. R=eae@chromium.org,ikilpatrick@chromium.org,glebl@chromium.org BUG=635619 ==========
LGTM w/nit https://codereview.chromium.org/2230563002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.h (right): https://codereview.chromium.org/2230563002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.h:19: NGBlockLayoutAlgorithm(ComputedStyle*); const?
LGTM
lgtm
The CQ bit was checked by cbiesinger@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by cbiesinger@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== [LayoutNG] Very simple layout() implementation Just resolved width and height, and returns a fragment with that. R=eae@chromium.org,ikilpatrick@chromium.org,glebl@chromium.org BUG=635619 ========== to ========== [LayoutNG] Very simple layout() implementation Just resolved width and height, and returns a fragment with that. R=eae@chromium.org,ikilpatrick@chromium.org,glebl@chromium.org BUG=635619 NOTRY=true ==========
The CQ bit was unchecked by cbiesinger@chromium.org
The CQ bit was checked by cbiesinger@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from glebl@chromium.org, eae@chromium.org Link to the patchset: https://codereview.chromium.org/2230563002/#ps60001 (title: "Update per NGFragment change")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply patch for
third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.cpp:
While running git apply --index -3 -p1;
error: patch failed:
third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.cpp:6
Falling back to three-way merge...
Applied patch to
'third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.cpp' with
conflicts.
U third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.cpp
Patch: third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.cpp
Index: third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.cpp
diff --git a/third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.cpp
b/third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.cpp
index
b7d4b998524e729517dfe869f1d7154d4d09c63e..8f61d24481e0c4a058ea0949fc2e550d1c738063
100644
--- a/third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.cpp
+++ b/third_party/WebKit/Source/core/layout/ng/NGBlockLayoutAlgorithm.cpp
@@ -6,14 +6,27 @@
#include "core/layout/LayoutBox.h"
#include "core/layout/ng/NGConstraintSpace.h"
+#include "core/layout/ng/NGFragment.h"
#include "core/style/ComputedStyle.h"
+#include "platform/LengthFunctions.h"
namespace blink {
-NGBlockLayoutAlgorithm::NGBlockLayoutAlgorithm()
+NGBlockLayoutAlgorithm::NGBlockLayoutAlgorithm(const ComputedStyle* style)
+ : m_style(style)
{
}
+NGFragment* NGBlockLayoutAlgorithm::layout(
+ const NGConstraintSpace& constraintSpace)
+{
+ LayoutUnit inlineSize = valueForLength(m_style->logicalWidth(),
+ constraintSpace.inlineContainerSize());
+ LayoutUnit blockSize = valueForLength(m_style->logicalHeight(),
+ constraintSpace.blockContainerSize());
+ return new NGFragment(inlineSize, blockSize, inlineSize, blockSize);
+}
+
NGConstraintSpace
NGBlockLayoutAlgorithm::createConstraintSpaceFromLayoutObject(const LayoutBox&
child)
{
bool fixedInline = false, fixedBlock = false;
The CQ bit was checked by cbiesinger@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from glebl@chromium.org, eae@chromium.org Link to the patchset: https://codereview.chromium.org/2230563002/#ps80001 (title: "rebased")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== [LayoutNG] Very simple layout() implementation Just resolved width and height, and returns a fragment with that. R=eae@chromium.org,ikilpatrick@chromium.org,glebl@chromium.org BUG=635619 NOTRY=true ========== to ========== [LayoutNG] Very simple layout() implementation Just resolved width and height, and returns a fragment with that. R=eae@chromium.org,ikilpatrick@chromium.org,glebl@chromium.org BUG=635619 NOTRY=true ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== [LayoutNG] Very simple layout() implementation Just resolved width and height, and returns a fragment with that. R=eae@chromium.org,ikilpatrick@chromium.org,glebl@chromium.org BUG=635619 NOTRY=true ========== to ========== [LayoutNG] Very simple layout() implementation Just resolved width and height, and returns a fragment with that. R=eae@chromium.org,ikilpatrick@chromium.org,glebl@chromium.org BUG=635619 NOTRY=true Committed: https://crrev.com/7872d0ed57157601145d7efe6f3c773750f38ee2 Cr-Commit-Position: refs/heads/master@{#410814} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/7872d0ed57157601145d7efe6f3c773750f38ee2 Cr-Commit-Position: refs/heads/master@{#410814} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
