Changeset 168674 in webkit
- Timestamp:
- May 12, 2014 11:04:58 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r168669 r168674 1 2014-05-12 Dirk Schulze <krit@webkit.org> 2 3 SVG root element accepts background color but fails to repaint it 4 https://bugs.webkit.org/show_bug.cgi?id=63153 5 6 Reviewed by Dean Jackson. 7 8 Check that background color updates if the size of an outermost 9 root SVG element changes. 10 11 * svg/custom/svg-root-background-expected.png: Added. 12 * svg/custom/svg-root-background-expected.txt: Added. 13 * svg/custom/svg-root-background.html: Added. 14 1 15 2014-05-12 Jeffrey Pfau <jpfau@apple.com> 2 16 -
trunk/LayoutTests/platform/mac/http/tests/misc/slow-loading-image-in-pattern-expected.txt
r103407 r168674 15 15 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 16 16 RenderSVGResourcePattern {pattern} [id="pattern"] [patternUnits=userSpaceOnUse] [patternContentUnits=userSpaceOnUse] 17 RenderSVGImage {image} at (1 3,53) size 403x30318 RenderSVGRect {rect} at (1 3,53) size 400x300[fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=0.00] [width=400.00] [height=300.00]17 RenderSVGImage {image} at (10,50) size 406x306 18 RenderSVGRect {rect} at (10,50) size 406x306 [fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=0.00] [width=400.00] [height=300.00] -
trunk/LayoutTests/platform/mac/svg/custom/circle-move-invalidation-expected.txt
r112667 r168674 5 5 RenderBody {body} at (8,8) size 784x340 6 6 RenderBlock (anonymous) at (0,0) size 784x306 7 RenderSVGRoot {svg} at ( 195,195) size 78x788 RenderSVGEllipse {circle} at ( 196,196) size 76x76 [fill={[type=SOLID] [color=#FF0000]}] [cx=300.00] [cy=300.00] [r=50.00]7 RenderSVGRoot {svg} at (8,8) size 302x306 8 RenderSVGEllipse {circle} at (8,8) size 302x306 [fill={[type=SOLID] [color=#FF0000]}] [cx=300.00] [cy=300.00] [r=50.00] 9 9 RenderText {#text} at (302,288) size 4x18 10 10 text run at (302,288) width 4: " " -
trunk/LayoutTests/platform/mac/svg/custom/mouse-move-on-svg-container-expected.txt
r161884 r168674 4 4 RenderBlock {html} at (0,0) size 800x410 5 5 RenderBody {body} at (0,0) size 800x410 6 RenderSVGRoot {svg} at ( 45,33) size 361x3737 RenderSVGContainer {g} at ( 303,303) size 100x1008 RenderSVGEllipse {circle} at ( 303,303) size 100x100 [fill={[type=SOLID] [color=#008000]}] [cx=350.00] [cy=350.00] [r=50.00]6 RenderSVGRoot {svg} at (0,0) size 406x410 7 RenderSVGContainer {g} at (0,0) size 406x410 8 RenderSVGEllipse {circle} at (0,0) size 406x410 [fill={[type=SOLID] [color=#008000]}] [cx=350.00] [cy=350.00] [r=50.00] 9 9 RenderSVGText {text} at (48,36) size 304x18 contains 1 chunk(s) 10 10 RenderSVGInlineText {#text} at (0,0) size 303x18 -
trunk/LayoutTests/platform/mac/svg/custom/mouse-move-on-svg-container-standalone-expected.txt
r161884 r168674 2 2 RenderView at (0,0) size 800x600 3 3 layer at (0,0) size 406x406 4 RenderSVGRoot {svg} at ( 45,33) size 361x3735 RenderSVGContainer {g} at ( 303,303) size 100x1006 RenderSVGEllipse {circle} at ( 303,303) size 100x100[fill={[type=SOLID] [color=#008000]}] [cx=350.00] [cy=350.00] [r=50.00]4 RenderSVGRoot {svg} at (0,0) size 406x406 5 RenderSVGContainer {g} at (0,0) size 406x406 6 RenderSVGEllipse {circle} at (0,0) size 406x406 [fill={[type=SOLID] [color=#008000]}] [cx=350.00] [cy=350.00] [r=50.00] 7 7 RenderSVGText {text} at (48,36) size 304x18 contains 1 chunk(s) 8 8 RenderSVGInlineText {#text} at (0,0) size 303x18 -
trunk/LayoutTests/platform/mac/svg/custom/mouse-move-on-svg-root-expected.txt
r112667 r168674 4 4 RenderBlock {html} at (0,0) size 800x410 5 5 RenderBody {body} at (0,0) size 800x410 6 RenderSVGRoot {svg} at ( 90,33) size 226x2237 RenderSVGEllipse {circle} at ( 150,150) size 100x100 [fill={[type=SOLID] [color=#008000]}] [cx=197.00] [cy=197.00] [r=50.00]6 RenderSVGRoot {svg} at (0,0) size 406x410 7 RenderSVGEllipse {circle} at (0,0) size 406x410 [fill={[type=SOLID] [color=#008000]}] [cx=197.00] [cy=197.00] [r=50.00] 8 8 RenderSVGText {text} at (93,36) size 214x18 contains 1 chunk(s) 9 9 RenderSVGInlineText {#text} at (0,0) size 214x18 -
trunk/LayoutTests/platform/mac/svg/custom/mouse-move-on-svg-root-standalone-expected.txt
r112667 r168674 2 2 RenderView at (0,0) size 800x600 3 3 layer at (0,0) size 406x406 4 RenderSVGRoot {svg} at ( 90,33) size 226x2235 RenderSVGEllipse {circle} at ( 150,150) size 100x100[fill={[type=SOLID] [color=#008000]}] [cx=197.00] [cy=197.00] [r=50.00]4 RenderSVGRoot {svg} at (0,0) size 406x406 5 RenderSVGEllipse {circle} at (0,0) size 406x406 [fill={[type=SOLID] [color=#008000]}] [cx=197.00] [cy=197.00] [r=50.00] 6 6 RenderSVGText {text} at (93,36) size 214x18 contains 1 chunk(s) 7 7 RenderSVGInlineText {#text} at (0,0) size 214x18 -
trunk/LayoutTests/platform/mac/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.txt
r104356 r168674 8 8 RenderBR {br} at (762,0) size 0x18 9 9 RenderBR {br} at (0,18) size 0x18 10 RenderSVGRoot {svg} at (8,44) size 202x 20311 RenderSVGContainer {g} at ( 9,45) size 200x20012 RenderSVGRect {rect} at ( 9,145) size 100x50[fill={[type=SOLID] [color=#FF0000]}] [x=0.00] [y=100.00] [width=100.00] [height=50.00]13 RenderSVGRect {rect} at ( 109,45) size 100x50[fill={[type=SOLID] [color=#FF0000]}] [x=100.00] [y=0.00] [width=100.00] [height=50.00]14 RenderSVGRect {rect} at ( 9,145) size 100x100[fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=100.00] [width=100.00] [height=100.00]15 RenderSVGRect {rect} at ( 109,45) size 100x100[fill={[type=PATTERN] [id="pattern"]}] [x=100.00] [y=0.00] [width=100.00] [height=100.00]10 RenderSVGRoot {svg} at (8,44) size 202x306 11 RenderSVGContainer {g} at (8,44) size 202x306 12 RenderSVGRect {rect} at (8,44) size 202x306 [fill={[type=SOLID] [color=#FF0000]}] [x=0.00] [y=100.00] [width=100.00] [height=50.00] 13 RenderSVGRect {rect} at (8,44) size 202x306 [fill={[type=SOLID] [color=#FF0000]}] [x=100.00] [y=0.00] [width=100.00] [height=50.00] 14 RenderSVGRect {rect} at (8,44) size 202x306 [fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=100.00] [width=100.00] [height=100.00] 15 RenderSVGRect {rect} at (8,44) size 202x306 [fill={[type=PATTERN] [id="pattern"]}] [x=100.00] [y=0.00] [width=100.00] [height=100.00] 16 16 RenderText {#text} at (202,324) size 4x18 17 17 text run at (202,324) width 4: " " 18 RenderSVGRoot {svg} at (214,44) size 202x 28718 RenderSVGRoot {svg} at (214,44) size 202x306 19 19 RenderSVGText {text} at (5,266) size 81x18 contains 1 chunk(s) 20 20 RenderSVGInlineText {#text} at (0,0) size 81x18 21 21 chunk 1 text run 1 at (5.00,280.00) startOffset 0 endOffset 11 width 81.00: "+Transforms" 22 RenderSVGContainer {g} at (21 5,145) size 100x100[transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,100.00)}]23 RenderSVGRect {rect} at (21 5,145) size 100x50[fill={[type=SOLID] [color=#FF0000]}] [x=0.00] [y=0.00] [width=100.00] [height=50.00]24 RenderSVGRect {rect} at (21 5,145) size 100x100[fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00]25 RenderSVGContainer {g} at ( 315,45) size 100x100[transform={m=((1.00,0.00)(0.00,1.00)) t=(100.00,0.00)}]26 RenderSVGRect {rect} at ( 315,45) size 100x50[fill={[type=SOLID] [color=#FF0000]}] [x=0.00] [y=0.00] [width=100.00] [height=50.00]27 RenderSVGRect {rect} at ( 315,45) size 100x100[fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00]22 RenderSVGContainer {g} at (214,44) size 202x306 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,100.00)}] 23 RenderSVGRect {rect} at (214,44) size 202x306 [fill={[type=SOLID] [color=#FF0000]}] [x=0.00] [y=0.00] [width=100.00] [height=50.00] 24 RenderSVGRect {rect} at (214,44) size 202x306 [fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00] 25 RenderSVGContainer {g} at (214,44) size 202x306 [transform={m=((1.00,0.00)(0.00,1.00)) t=(100.00,0.00)}] 26 RenderSVGRect {rect} at (214,44) size 202x306 [fill={[type=SOLID] [color=#FF0000]}] [x=0.00] [y=0.00] [width=100.00] [height=50.00] 27 RenderSVGRect {rect} at (214,44) size 202x306 [fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00] 28 28 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 29 29 RenderSVGResourcePattern {pattern} [id="pattern"] [patternUnits=userSpaceOnUse] [patternContentUnits=userSpaceOnUse] 30 RenderSVGRect {rect} at (21 5,45) size 100x25[fill={[type=SOLID] [color=#008000]}] [x=0.00] [y=0.00] [width=100.00] [height=25.00]31 RenderSVGRect {rect} at (21 5,70) size 100x25[fill={[type=SOLID] [color=#0000FF]}] [x=0.00] [y=25.00] [width=100.00] [height=25.00]30 RenderSVGRect {rect} at (214,44) size 202x306 [fill={[type=SOLID] [color=#008000]}] [x=0.00] [y=0.00] [width=100.00] [height=25.00] 31 RenderSVGRect {rect} at (214,44) size 202x306 [fill={[type=SOLID] [color=#0000FF]}] [x=0.00] [y=25.00] [width=100.00] [height=25.00] 32 32 RenderText {#text} at (408,324) size 4x18 33 33 text run at (408,324) width 4: " " 34 34 RenderText {#text} at (0,0) size 0x0 35 35 layer at (420,44) size 202x302 36 RenderSVGRoot {svg} at (420,44) size 202x 28736 RenderSVGRoot {svg} at (420,44) size 202x306 37 37 RenderSVGText {text} at (5,266) size 169x18 contains 1 chunk(s) 38 38 RenderSVGInlineText {#text} at (0,0) size 169x18 39 39 chunk 1 text run 1 at (5.00,280.00) startOffset 0 endOffset 24 width 169.00: "+Accelerated Compositing" 40 RenderSVGContainer {g} at (42 1,45) size 200x20041 RenderSVGRect {rect} at (42 1,145) size 100x100[fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=100.00] [width=100.00] [height=100.00]42 RenderSVGRect {rect} at ( 521,45) size 100x100[fill={[type=PATTERN] [id="pattern"]}] [x=100.00] [y=0.00] [width=100.00] [height=100.00]40 RenderSVGContainer {g} at (420,44) size 202x306 41 RenderSVGRect {rect} at (420,44) size 202x306 [fill={[type=PATTERN] [id="pattern"]}] [x=0.00] [y=100.00] [width=100.00] [height=100.00] 42 RenderSVGRect {rect} at (420,44) size 202x306 [fill={[type=PATTERN] [id="pattern"]}] [x=100.00] [y=0.00] [width=100.00] [height=100.00] -
trunk/LayoutTests/platform/mac/svg/custom/svg-float-border-padding-expected.txt
r103407 r168674 12 12 text run at (0,0) width 354: "There should be a red, white and blue pattern below this" 13 13 RenderSVGRoot {svg} at (18,86) size 140x140 14 RenderSVGRect {rect} at ( 38,106) size 100x100 [fill={[type=SOLID] [color=#0000FF]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00]14 RenderSVGRect {rect} at (18,86) size 140x140 [fill={[type=SOLID] [color=#0000FF]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00] 15 15 RenderBlock {p} at (0,228) size 784x18 16 16 RenderText {#text} at (0,0) size 353x18 -
trunk/LayoutTests/platform/mac/svg/hixie/mixed/010-expected.txt
r103407 r168674 8 8 text run at (0,0) width 238: "There should be a green block below." 9 9 RenderBlock (anonymous) at (0,34) size 784x104 10 RenderSVGRoot {svg} at (8,50) size 300x10 011 RenderSVGRect {rect} at (8,50) size 300x10 0[fill={[type=SOLID] [color=#FF0000]}] [x=0.00] [y=0.00] [width=300.00] [height=100.00]12 RenderSVGRect {rect} at (8,50) size 300x10 0[fill={[type=SOLID] [color=#008000]}] [x=0.00] [y=0.00] [width=300.00] [height=100.00]10 RenderSVGRoot {svg} at (8,50) size 300x104 11 RenderSVGRect {rect} at (8,50) size 300x104 [fill={[type=SOLID] [color=#FF0000]}] [x=0.00] [y=0.00] [width=300.00] [height=100.00] 12 RenderSVGRect {rect} at (8,50) size 300x104 [fill={[type=SOLID] [color=#008000]}] [x=0.00] [y=0.00] [width=300.00] [height=100.00] 13 13 RenderText {#text} at (0,0) size 0x0 -
trunk/LayoutTests/platform/mac/svg/text/small-fonts-in-html5-expected.txt
r161884 r168674 8 8 text run at (0,0) width 471: "Small fonts in HTML5/inline SVG" 9 9 RenderBlock (anonymous) at (0,58) size 784x507 10 RenderSVGRoot {svg} at ( 157,259) size 104x3111 RenderSVGContainer {g} at ( 159,261) size 100x27 [transform={m=((400.00,0.00)(0.00,400.00)) t=(0.00,0.00)}]10 RenderSVGRoot {svg} at (8,79) size 502x507 11 RenderSVGContainer {g} at (8,79) size 502x507 [transform={m=((400.00,0.00)(0.00,400.00)) t=(0.00,0.00)}] 12 12 RenderSVGText {text} at (0,0) size 1x1 contains 1 chunk(s) 13 13 RenderSVGInlineText {#text} at (0,0) size 1x1 -
trunk/LayoutTests/platform/mac/svg/zoom/text/zoom-svg-float-border-padding-expected.txt
r161884 r168674 13 13 text run at (0,0) width 524: "There should be a red, white and blue pattern below this" 14 14 RenderSVGRoot {svg} at (18,142) size 140x141 15 RenderSVGRect {rect} at ( 38,162) size 100x101 [fill={[type=SOLID] [color=#0000FF]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00]15 RenderSVGRect {rect} at (18,142) size 140x141 [fill={[type=SOLID] [color=#0000FF]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00] 16 16 RenderBlock {p} at (0,284) size 769x27 17 17 RenderText {#text} at (0,0) size 523x26 -
trunk/LayoutTests/svg/animations/animate-viewport-overflow-2-expected.txt
r168543 r168674 6 6 RenderBody {BODY} at (8,8) size 784x100 7 7 RenderBlock {DIV} at (0,0) size 100x100 8 RenderSVGRoot {svg} at (8, 208) size 100x1009 RenderSVGRect {rect} at (8, 208) size 100x100 [fill={[type=SOLID] [color=#0000FF]}] [x=0.00] [y=200.00] [width=100.00] [height=100.00]8 RenderSVGRoot {svg} at (8,8) size 100x300 9 RenderSVGRect {rect} at (8,8) size 100x300 [fill={[type=SOLID] [color=#0000FF]}] [x=0.00] [y=200.00] [width=100.00] [height=100.00] 10 10 RenderText {#text} at (0,0) size 0x0 -
trunk/LayoutTests/svg/animations/animate-viewport-overflow-expected.txt
r168543 r168674 6 6 RenderBody {BODY} at (8,8) size 784x200 7 7 RenderBlock {DIV} at (0,0) size 100x100 8 RenderSVGRoot {svg} at (8, 208) size 100x1009 RenderSVGRect {rect} at (8, 208) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [x=0.00] [y=200.00] [width=100.00] [height=100.00]8 RenderSVGRoot {svg} at (8,8) size 100x300 9 RenderSVGRect {rect} at (8,8) size 100x300 [fill={[type=SOLID] [color=#FF0000]}] [x=0.00] [y=200.00] [width=100.00] [height=100.00] 10 10 RenderText {#text} at (0,0) size 0x0 11 11 RenderBlock {DIV} at (0,100) size 100x100 -
trunk/LayoutTests/svg/custom/gradient-stroke-width-expected.txt
r130599 r168674 2 2 RenderView at (0,0) size 800x600 3 3 layer at (0,0) size 200x500 4 RenderSVGRoot {svg} at ( 32,32) size 123x1234 RenderSVGRoot {svg} at (0,0) size 200x500 5 5 RenderSVGHiddenContainer {defs} at (0,0) size 0x0 6 6 RenderSVGResourceLinearGradient {linearGradient} [id="black2white"] [gradientUnits=objectBoundingBox] [start=(0,0)] [end=(1,0)] … … 12 12 RenderSVGResourceRadialGradient {radialGradient} [id="red-radial-grad"] [gradientUnits=objectBoundingBox] [center=(0.50,0.50)] [focal=(0.50,0.50)] [radius=0.50] [focalRadius=0.00] 13 13 RenderSVGResourceLinearGradient {linearGradient} [id="border-grad"] [gradientUnits=objectBoundingBox] [start=(0.05,0.95)] [end=(0.95,0.05)] 14 RenderSVGEllipse {circle} at ( 45,45) size 110x110 [stroke={[type=LINEAR-GRADIENT] [id="border-grad"] [stroke width=10.00]}] [fill={[type=RADIAL-GRADIENT] [id="red-radial-grad"]}] [cx=100.00] [cy=100.00] [r=50.00]15 RenderSVGEllipse {circle} at ( 32,32) size 30x30 [stroke={[type=LINEAR-GRADIENT] [id="border-grad"] [stroke width=10.00]}] [fill={[type=RADIAL-GRADIENT] [id="red-radial-grad"]}] [cx=47.00] [cy=47.00] [r=10.00]14 RenderSVGEllipse {circle} at (0,0) size 200x500 [stroke={[type=LINEAR-GRADIENT] [id="border-grad"] [stroke width=10.00]}] [fill={[type=RADIAL-GRADIENT] [id="red-radial-grad"]}] [cx=100.00] [cy=100.00] [r=50.00] 15 RenderSVGEllipse {circle} at (0,0) size 200x500 [stroke={[type=LINEAR-GRADIENT] [id="border-grad"] [stroke width=10.00]}] [fill={[type=RADIAL-GRADIENT] [id="red-radial-grad"]}] [cx=47.00] [cy=47.00] [r=10.00] -
trunk/LayoutTests/svg/custom/repaint-moving-svg-and-div-expected.txt
r107241 r168674 6 6 layer at (250,350) size 150x150 7 7 RenderSVGRoot {svg} at (250,350) size 150x150 8 RenderSVGRect {rect} at (2 75,375) size 100x100 [fill={[type=SOLID] [color=#00FF00]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00]8 RenderSVGRect {rect} at (250,350) size 150x150 [fill={[type=SOLID] [color=#00FF00]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00] 9 9 layer at (550,350) size 150x150 10 10 RenderBlock (positioned) {div} at (550,350) size 150x150 [border: (5px solid #FF0000) (20px solid #FFFF00) (10px solid #008000) (15px solid #0000FF)] -
trunk/LayoutTests/svg/custom/viewport-update2-expected.txt
r149088 r168674 4 4 RenderSVGRoot {svg} at (0,0) size 110x110 5 5 RenderSVGRect {rect} at (0,0) size 110x110 [fill={[type=SOLID] [color=#FF0000]}] [x=-100.00] [y=-100.00] [width=300.00] [height=300.00] 6 RenderSVGRect {rect} at ( 5,5) size 100x100 [fill={[type=SOLID] [color=#008000]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00]6 RenderSVGRect {rect} at (0,0) size 110x110 [fill={[type=SOLID] [color=#008000]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00] -
trunk/Source/WebCore/ChangeLog
r168670 r168674 1 2014-05-12 Dirk Schulze <krit@webkit.org> 2 3 SVG root element accepts background color but fails to repaint it 4 https://bugs.webkit.org/show_bug.cgi?id=63153 5 6 Reviewed by Dean Jackson. 7 8 This is back ported from Blink. Don't know the exact commit though. 9 The patch checks if the SVGSVGElement is an outermost root element. 10 If it is, mark the whole element for repaint. 11 12 Test: svg/custom/svg-root-background.html 13 14 * rendering/RenderBoxModelObject.cpp: 15 (WebCore::RenderBoxModelObject::calculateHasBoxDecorations): 16 (WebCore::RenderBoxModelObject::updateFromStyle): 17 * rendering/RenderBoxModelObject.h: 18 * rendering/svg/RenderSVGRoot.cpp: 19 (WebCore::RenderSVGRoot::RenderSVGRoot): 20 (WebCore::RenderSVGRoot::layout): 21 (WebCore::RenderSVGRoot::paintReplaced): 22 (WebCore::RenderSVGRoot::clippedOverflowRectForRepaint): 23 This is a simple optimization by taking the necessary parts 24 from RenderReplaced and SVGRenderSupport. 25 * rendering/svg/RenderSVGRoot.h: 26 1 27 2014-05-12 Simon Fraser <simon.fraser@apple.com> 2 28 -
trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp
r168448 r168674 191 191 } 192 192 193 bool RenderBoxModelObject::hasBoxDecorationStyle() const 194 { 195 return hasBackground() || style().hasBorder() || style().hasAppearance() || style().boxShadow(); 196 } 197 193 198 void RenderBoxModelObject::updateFromStyle() 194 199 { … … 198 203 // we only check for bits that could possibly be set to true. 199 204 const RenderStyle& styleToUse = style(); 200 setHasBoxDecorations(hasB ackground() || styleToUse.hasBorder() || styleToUse.hasAppearance() || styleToUse.boxShadow());205 setHasBoxDecorations(hasBoxDecorationStyle()); 201 206 setInline(styleToUse.isDisplayInlineType()); 202 207 setPositionState(styleToUse.position()); -
trunk/Source/WebCore/rendering/RenderBoxModelObject.h
r168380 r168674 251 251 LayoutPoint adjustedPositionRelativeToOffsetParent(const LayoutPoint&) const; 252 252 253 bool hasBoxDecorationStyle() const; 253 254 void calculateBackgroundImageGeometry(const RenderLayerModelObject* paintContainer, const FillLayer*, const LayoutRect& paintRect, BackgroundImageGeometry&, RenderElement* = 0) const; 254 255 bool borderObscuresBackgroundEdge(const FloatSize& contextScale) const; -
trunk/Source/WebCore/rendering/svg/RenderSVGRoot.cpp
r168645 r168674 33 33 #include "Page.h" 34 34 #include "RenderIterator.h" 35 #include "RenderLayer.h" 35 36 #include "RenderNamedFlowFragment.h" 36 37 #include "RenderSVGResource.h" … … 59 60 , m_needsBoundariesOrTransformUpdate(true) 60 61 , m_hasSVGShadow(false) 62 , m_hasBoxDecorations(false) 61 63 { 62 64 } … … 204 206 205 207 updateLayerTransform(); 208 m_hasBoxDecorations = isRoot() ? hasBoxDecorationStyle() : hasBoxDecorations(); 209 invalidateBackgroundObscurationStatus(); 206 210 207 211 repainter.repaintAfterLayout(); … … 358 362 if (shouldApplyViewportClip()) 359 363 repaintRect.intersect(pixelSnappedBorderBoxRect()); 364 365 if (m_hasBoxDecorations || hasRenderOverflow()) { 366 // The selectionRect can project outside of the overflowRect, so take their union 367 // for repainting to avoid selection painting glitches. 368 LayoutRect decoratedRepaintRect = unionRect(localSelectionRect(false), visualOverflowRect()); 369 repaintRect.unite(decoratedRepaintRect); 370 } 360 371 361 372 LayoutRect rect = enclosingIntRect(repaintRect); -
trunk/Source/WebCore/rendering/svg/RenderSVGRoot.h
r168543 r168674 120 120 bool m_needsBoundariesOrTransformUpdate : 1; 121 121 bool m_hasSVGShadow : 1; 122 bool m_hasBoxDecorations : 1; 122 123 }; 123 124
Note: See TracChangeset
for help on using the changeset viewer.