WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
86678
Inconsistency in FrameView::forceLayoutForPagination and FrameView::forceLayout.
https://bugs.webkit.org/show_bug.cgi?id=86678
Summary
Inconsistency in FrameView::forceLayoutForPagination and FrameView::forceLayout.
Vitaly Buka
Reported
2012-05-16 14:43:56 PDT
FrameView::forceLayoutForPagination calls adjustViewSize when forceLayout does not. However after every call to forceLayout near forceLayoutForPagination followed by adjustViewSize.
Attachments
Removed adjustViewSize from forceLayoutForPagination.
(7.03 KB, patch)
2012-05-16 14:52 PDT
,
Vitaly Buka
no flags
Details
Formatted Diff
Diff
Removed adjustViewSize from forceLayoutForPagination.
(6.53 KB, patch)
2012-05-22 16:24 PDT
,
Vitaly Buka
no flags
Details
Formatted Diff
Diff
Removed adjustViewSize from forceLayoutForPagination.
(6.48 KB, patch)
2012-05-22 16:36 PDT
,
Vitaly Buka
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Vitaly Buka
Comment 1
2012-05-16 14:52:30 PDT
Created
attachment 142348
[details]
Removed adjustViewSize from forceLayoutForPagination.
Vitaly Buka
Comment 2
2012-05-16 14:54:17 PDT
Comment on
attachment 142348
[details]
Removed adjustViewSize from forceLayoutForPagination. View in context:
https://bugs.webkit.org/attachment.cgi?id=142348&action=review
> Source/WebCore/WebCore.order:28540 > +__ZN7WebCore9FrameView24forceLayoutForPaginationERKNS_9FloatSizeEf
I have no idea if manual changing of this file and above is appropriate.
Alexey Proskuryakov
Comment 3
2012-05-17 11:56:59 PDT
> I have no idea if manual changing of this file and above is appropriate.
It's unnecessary, yet harmless.
Vitaly Buka
Comment 4
2012-05-17 12:23:40 PDT
(In reply to
comment #3
)
> > I have no idea if manual changing of this file and above is appropriate. > > It's unnecessary, yet harmless.
Without change build-webkit script fails linking some targets.
Vitaly Buka
Comment 5
2012-05-22 16:24:28 PDT
Created
attachment 143392
[details]
Removed adjustViewSize from forceLayoutForPagination. Updated with repository changes.
WebKit Review Bot
Comment 6
2012-05-22 16:28:13 PDT
Attachment 143392
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/page/FrameView.h:267: Should have a space between // and comment [whitespace/comments] [4] Source/WebCore/page/FrameView.cpp:3222: Should have a space between // and comment [whitespace/comments] [4] Total errors found: 2 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Vitaly Buka
Comment 7
2012-05-22 16:31:02 PDT
(In reply to
comment #6
)
>
Attachment 143392
[details]
did not pass style-queue: > > Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 > Source/WebCore/page/FrameView.h:267: Should have a space between // and comment [whitespace/comments] [4] > Source/WebCore/page/FrameView.cpp:3222: Should have a space between // and comment [whitespace/comments] [4] > Total errors found: 2 in 7 files > > > If any of these errors are false positives, please file a bug against check-webkit-style.
I didn't expect so fast response. I have uploaded wrong patch.
Vitaly Buka
Comment 8
2012-05-22 16:36:29 PDT
Created
attachment 143396
[details]
Removed adjustViewSize from forceLayoutForPagination.
Brent Fulgham
Comment 9
2012-11-25 20:57:53 PST
Comment on
attachment 143396
[details]
Removed adjustViewSize from forceLayoutForPagination. View in context:
https://bugs.webkit.org/attachment.cgi?id=143396&action=review
I think this change looks good. I'm curious if the two methods are ever used in isolation such that there actually does need this additional parameter? It sounds like the answer is no, and therefore this simplification is a great change. Can you confirm this, and I will r+ the patch so it can be landed?
> Source/WebCore/ChangeLog:7 > +
You should add the helpful text from your bug report: " FrameView::forceLayoutForPagination calls adjustViewSize internally, while forceLayout does not. However, every call to forceLayout (near forceLayoutForPagination) is paired with a call to adjustViewSize. Make the two calls consistent."
> Source/WebKit/mac/WebView/WebHTMLView.mm:-3059 > - coreView->forceLayoutForPagination(pageSize, originalPageSize, maximumShrinkRatio, adjustViewSize ? AdjustViewSize : DoNotAdjustViewSize);
Is the forceLayoutForPagination method ever called without a nearby call to forceLayout?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug