WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
73585
[Chromium] Add a helper method to find whether an html page has custom page size styles.
https://bugs.webkit.org/show_bug.cgi?id=73585
Summary
[Chromium] Add a helper method to find whether an html page has custom page s...
kmadhusu
Reported
2011-12-01 13:13:26 PST
Created
attachment 117472
[details]
Patch Actual bug: crbug.com/85132. To support my changes to fix crbug.com/85132, I need to add a helper method to identify whether the page has custom page size style.
Attachments
Patch
(6.93 KB, patch)
2011-12-01 13:13 PST
,
kmadhusu
darin
: review-
darin
: commit-queue-
Details
Formatted Diff
Diff
Patch
(6.93 KB, patch)
2011-12-01 18:37 PST
,
kmadhusu
tkent
: review-
Details
Formatted Diff
Diff
Latest patch with Changelog
(9.11 KB, patch)
2011-12-02 09:34 PST
,
kmadhusu
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
WebKit Review Bot
Comment 1
2011-12-01 13:23:03 PST
Please wait for approval from
fishd@chromium.org
before submitting because this patch contains changes to the Chromium public API.
Darin Adler
Comment 2
2011-12-01 15:21:25 PST
Comment on
attachment 117472
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=117472&action=review
> Source/WebCore/dom/Document.cpp:1698 > + RefPtr<RenderStyle> style = styleForPage(pageIndex); > + return style->pageSizeType() != PAGE_SIZE_AUTO;
This function should not be added. You can just put all the code at at the call site in WebFrameImpl.
> Source/WebKit/chromium/src/WebFrameImpl.cpp:1481 > + return frame()->document()->hasCustomPageSizeStyle(pageIndex);
return frame->document()->styleForPage(pageIndex)->pageSizeType() != PAGE_SIZE_AUTO;
Kent Tamura
Comment 3
2011-12-01 15:30:12 PST
Comment on
attachment 117472
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=117472&action=review
The patch contains no ChangeLog.
> LayoutTests/printing/page-format-data.html:62 > + // Page size style tests.
Do you think layoutTestController.hasCustomPageSizeStyle() is Chromium-specific? If so, we should make a new test in LayoutTests/chromium/printing/ directory.
Kent Tamura
Comment 4
2011-12-01 15:30:54 PST
(In reply to
comment #3
)
> (From update of
attachment 117472
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=117472&action=review
> > The patch contains no ChangeLog. > > > LayoutTests/printing/page-format-data.html:62 > > + // Page size style tests. > > Do you think layoutTestController.hasCustomPageSizeStyle() is Chromium-specific? > If so, we should make a new test in LayoutTests/chromium/printing/ directory.
LayoutTests/platform/chromium/printing/
kmadhusu
Comment 5
2011-12-01 18:37:36 PST
Created
attachment 117539
[details]
Patch Addressed review comments and created a new test.
Kent Tamura
Comment 6
2011-12-01 19:03:23 PST
Comment on
attachment 117539
[details]
Patch Please add ChangeLog.
Darin Fisher (:fishd, Google)
Comment 7
2011-12-01 22:38:38 PST
Comment on
attachment 117539
[details]
Patch WebKit API changes LGTM
kmadhusu
Comment 8
2011-12-02 09:34:21 PST
Created
attachment 117639
[details]
Latest patch with Changelog ChangeLog added. Thanks.
kmadhusu
Comment 9
2011-12-02 11:33:44 PST
fishd: Can you commit this patch for me? Thanks.
Kent Tamura
Comment 10
2011-12-02 14:07:29 PST
Comment on
attachment 117639
[details]
Latest patch with Changelog Clearing flags on attachment: 117639 Committed
r101851
: <
http://trac.webkit.org/changeset/101851
>
Kent Tamura
Comment 11
2011-12-02 14:07:36 PST
All reviewed patches have been landed. Closing bug.
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