OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 static const ComputedStyle& initialStyle() { return mutableInitialStyle(); } | 366 static const ComputedStyle& initialStyle() { return mutableInitialStyle(); } |
367 static void invalidateInitialStyle(); | 367 static void invalidateInitialStyle(); |
368 | 368 |
369 // Computes how the style change should be propagated down the tree. | 369 // Computes how the style change should be propagated down the tree. |
370 static StyleRecalcChange stylePropagationDiff(const ComputedStyle* oldStyle,
const ComputedStyle* newStyle); | 370 static StyleRecalcChange stylePropagationDiff(const ComputedStyle* oldStyle,
const ComputedStyle* newStyle); |
371 | 371 |
372 ContentPosition resolvedJustifyContentPosition(const StyleContentAlignmentDa
ta& normalValueBehavior) const; | 372 ContentPosition resolvedJustifyContentPosition(const StyleContentAlignmentDa
ta& normalValueBehavior) const; |
373 ContentDistributionType resolvedJustifyContentDistribution(const StyleConten
tAlignmentData& normalValueBehavior) const; | 373 ContentDistributionType resolvedJustifyContentDistribution(const StyleConten
tAlignmentData& normalValueBehavior) const; |
374 ContentPosition resolvedAlignContentPosition(const StyleContentAlignmentData
& normalValueBehavior) const; | 374 ContentPosition resolvedAlignContentPosition(const StyleContentAlignmentData
& normalValueBehavior) const; |
375 ContentDistributionType resolvedAlignContentDistribution(const StyleContentA
lignmentData& normalValueBehavior) const; | 375 ContentDistributionType resolvedAlignContentDistribution(const StyleContentA
lignmentData& normalValueBehavior) const; |
376 const StyleSelfAlignmentData resolvedAlignment(const ComputedStyle& parentSt
yle, ItemPosition resolvedAutoPositionForLayoutObject) const; | 376 StyleSelfAlignmentData resolvedAlignItems(ItemPosition normalValueBehaviour)
const; |
377 static ItemPosition resolveAlignment(const ComputedStyle& parentStyle, const
ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject); | 377 StyleSelfAlignmentData resolvedAlignSelf(ItemPosition normalValueBehaviour,
const ComputedStyle* parentStyle = nullptr) const; |
378 static ItemPosition resolveJustification(const ComputedStyle& parentStyle, c
onst ComputedStyle& childStyle, ItemPosition resolvedAutoPositionForLayoutObject
); | 378 StyleSelfAlignmentData resolvedJustifyItems(ItemPosition normalValueBehaviou
r) const; |
| 379 StyleSelfAlignmentData resolvedJustifySelf(ItemPosition normalValueBehaviour
, const ComputedStyle* parentStyle = nullptr) const; |
379 | 380 |
380 StyleDifference visualInvalidationDiff(const ComputedStyle&) const; | 381 StyleDifference visualInvalidationDiff(const ComputedStyle&) const; |
381 | 382 |
382 enum IsAtShadowBoundary { | 383 enum IsAtShadowBoundary { |
383 AtShadowBoundary, | 384 AtShadowBoundary, |
384 NotAtShadowBoundary, | 385 NotAtShadowBoundary, |
385 }; | 386 }; |
386 | 387 |
387 void inheritFrom(const ComputedStyle& inheritParent, IsAtShadowBoundary = No
tAtShadowBoundary); | 388 void inheritFrom(const ComputedStyle& inheritParent, IsAtShadowBoundary = No
tAtShadowBoundary); |
388 void copyNonInheritedFromCached(const ComputedStyle&); | 389 void copyNonInheritedFromCached(const ComputedStyle&); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 * is preferable to: | 421 * is preferable to: |
421 * BorderWidths getBorderWidths(); | 422 * BorderWidths getBorderWidths(); |
422 * | 423 * |
423 * Utility functions should go in a separate section at the end of the | 424 * Utility functions should go in a separate section at the end of the |
424 * class, and be kept to a minimum. | 425 * class, and be kept to a minimum. |
425 */ | 426 */ |
426 | 427 |
427 // Non-Inherited properties. | 428 // Non-Inherited properties. |
428 | 429 |
429 // Content alignment properties. | 430 // Content alignment properties. |
430 static StyleContentAlignmentData initialContentAlignment() { return StyleCon
tentAlignmentData(ContentPositionNormal, ContentDistributionDefault, OverflowAli
gnmentDefault); } | 431 static StyleContentAlignmentData initialContentAlignment() { return StyleCon
tentAlignmentData(RuntimeEnabledFeatures::cssGridLayoutEnabled() ? ContentPositi
onNormal : ContentPositionFlexStart, ContentDistributionDefault, OverflowAlignme
ntDefault); } |
431 | 432 |
432 // align-content (aka -webkit-align-content) | 433 // align-content (aka -webkit-align-content) |
433 const StyleContentAlignmentData& alignContent() const { return m_rareNonInhe
ritedData->m_alignContent; } | 434 const StyleContentAlignmentData& alignContent() const { return m_rareNonInhe
ritedData->m_alignContent; } |
434 ContentPosition alignContentPosition() const { return m_rareNonInheritedData
->m_alignContent.position(); } | |
435 ContentDistributionType alignContentDistribution() const { return m_rareNonI
nheritedData->m_alignContent.distribution(); } | |
436 OverflowAlignment alignContentOverflowAlignment() const { return m_rareNonIn
heritedData->m_alignContent.overflow(); } | |
437 void setAlignContent(const StyleContentAlignmentData& data) { SET_VAR(m_rare
NonInheritedData, m_alignContent, data); } | 435 void setAlignContent(const StyleContentAlignmentData& data) { SET_VAR(m_rare
NonInheritedData, m_alignContent, data); } |
438 void setAlignContentPosition(ContentPosition position) { m_rareNonInheritedD
ata.access()->m_alignContent.setPosition(position); } | |
439 void setAlignContentDistribution(ContentDistributionType distribution) { m_r
areNonInheritedData.access()->m_alignContent.setDistribution(distribution); } | |
440 void setAlignContentOverflow(OverflowAlignment overflow) { m_rareNonInherite
dData.access()->m_alignContent.setOverflow(overflow); } | |
441 | 436 |
442 // justify-content (aka -webkit-justify-content) | 437 // justify-content (aka -webkit-justify-content) |
443 const StyleContentAlignmentData& justifyContent() const { return m_rareNonIn
heritedData->m_justifyContent; } | 438 const StyleContentAlignmentData& justifyContent() const { return m_rareNonIn
heritedData->m_justifyContent; } |
444 ContentPosition justifyContentPosition() const { return m_rareNonInheritedDa
ta->m_justifyContent.position(); } | |
445 ContentDistributionType justifyContentDistribution() const { return m_rareNo
nInheritedData->m_justifyContent.distribution(); } | |
446 OverflowAlignment justifyContentOverflowAlignment() const { return m_rareNon
InheritedData->m_justifyContent.overflow(); } | |
447 void setJustifyContent(const StyleContentAlignmentData& data) { SET_VAR(m_ra
reNonInheritedData, m_justifyContent, data); } | 439 void setJustifyContent(const StyleContentAlignmentData& data) { SET_VAR(m_ra
reNonInheritedData, m_justifyContent, data); } |
448 void setJustifyContentPosition(ContentPosition position) { m_rareNonInherite
dData.access()->m_justifyContent.setPosition(position); } | |
449 void setJustifyContentDistribution(ContentDistributionType distribution) { m
_rareNonInheritedData.access()->m_justifyContent.setDistribution(distribution);
} | |
450 void setJustifyContentOverflow(OverflowAlignment overflow) { m_rareNonInheri
tedData.access()->m_justifyContent.setOverflow(overflow); } | |
451 | 440 |
452 // Alignment properties. | 441 // Default-Alignment properties. |
453 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign
mentData(ItemPositionAuto, OverflowAlignmentDefault); } | 442 static StyleSelfAlignmentData initialDefaultAlignment() { return StyleSelfAl
ignmentData(RuntimeEnabledFeatures::cssGridLayoutEnabled() ? ItemPositionNormal
: ItemPositionStretch, OverflowAlignmentDefault); } |
| 443 |
454 // align-items (aka -webkit-align-items) | 444 // align-items (aka -webkit-align-items) |
455 const StyleSelfAlignmentData& alignItems() const { return m_rareNonInherited
Data->m_alignItems; } | 445 const StyleSelfAlignmentData& alignItems() const { return m_rareNonInherited
Data->m_alignItems; } |
456 ItemPosition alignItemsPosition() const { return m_rareNonInheritedData->m_a
lignItems.position(); } | |
457 OverflowAlignment alignItemsOverflowAlignment() const { return m_rareNonInhe
ritedData->m_alignItems.overflow(); } | |
458 void setAlignItems(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNonIn
heritedData, m_alignItems, data); } | 446 void setAlignItems(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNonIn
heritedData, m_alignItems, data); } |
459 void setAlignItemsPosition(ItemPosition position) { m_rareNonInheritedData.a
ccess()->m_alignItems.setPosition(position); } | 447 |
460 void setAlignItemsOverflow(OverflowAlignment overflow) { m_rareNonInheritedD
ata.access()->m_alignItems.setOverflow(overflow); } | 448 // justify-items |
| 449 const StyleSelfAlignmentData& justifyItems() const { return m_rareNonInherit
edData->m_justifyItems; } |
| 450 void setJustifyItems(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNon
InheritedData, m_justifyItems, data); } |
| 451 |
| 452 // Self-Alignment properties. |
| 453 static StyleSelfAlignmentData initialSelfAlignment() { return StyleSelfAlign
mentData(ItemPositionAuto, OverflowAlignmentDefault); } |
461 | 454 |
462 // align-self (aka -webkit-align-self) | 455 // align-self (aka -webkit-align-self) |
463 const StyleSelfAlignmentData& alignSelf() const { return m_rareNonInheritedD
ata->m_alignSelf; } | 456 const StyleSelfAlignmentData& alignSelf() const { return m_rareNonInheritedD
ata->m_alignSelf; } |
464 ItemPosition alignSelfPosition() const { return m_rareNonInheritedData->m_al
ignSelf.position(); } | |
465 OverflowAlignment alignSelfOverflowAlignment() const { return m_rareNonInher
itedData->m_alignSelf.overflow(); } | |
466 void setAlignSelf(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNonInh
eritedData, m_alignSelf, data); } | 457 void setAlignSelf(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNonInh
eritedData, m_alignSelf, data); } |
467 void setAlignSelfPosition(ItemPosition position) { m_rareNonInheritedData.ac
cess()->m_alignSelf.setPosition(position); } | 458 |
468 void setAlignSelfOverflow(OverflowAlignment overflow) { m_rareNonInheritedDa
ta.access()->m_alignSelf.setOverflow(overflow); } | 459 // justify-self |
| 460 const StyleSelfAlignmentData& justifySelf() const { return m_rareNonInherite
dData->m_justifySelf; } |
| 461 void setJustifySelf(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNonI
nheritedData, m_justifySelf, data); } |
469 | 462 |
470 // Filter properties. | 463 // Filter properties. |
471 | 464 |
472 // backdrop-filter | 465 // backdrop-filter |
473 static const FilterOperations& initialBackdropFilter(); | 466 static const FilterOperations& initialBackdropFilter(); |
474 const FilterOperations& backdropFilter() const { return m_rareNonInheritedDa
ta->m_backdropFilter->m_operations; } | 467 const FilterOperations& backdropFilter() const { return m_rareNonInheritedDa
ta->m_backdropFilter->m_operations; } |
475 FilterOperations& mutableBackdropFilter() { return m_rareNonInheritedData.ac
cess()->m_backdropFilter.access()->m_operations; } | 468 FilterOperations& mutableBackdropFilter() { return m_rareNonInheritedData.ac
cess()->m_backdropFilter.access()->m_operations; } |
476 bool hasBackdropFilter() const { return !m_rareNonInheritedData->m_backdropF
ilter->m_operations.operations().isEmpty(); } | 469 bool hasBackdropFilter() const { return !m_rareNonInheritedData->m_backdropF
ilter->m_operations.operations().isEmpty(); } |
477 void setBackdropFilter(const FilterOperations& ops) { SET_NESTED_VAR(m_rareN
onInheritedData, m_backdropFilter, m_operations, ops); } | 470 void setBackdropFilter(const FilterOperations& ops) { SET_NESTED_VAR(m_rareN
onInheritedData, m_backdropFilter, m_operations, ops); } |
478 | 471 |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 // grid-template-columns | 841 // grid-template-columns |
849 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr
idTrackSize>(); /* none */ } | 842 static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<Gr
idTrackSize>(); /* none */ } |
850 const Vector<GridTrackSize>& gridTemplateColumns() const { return m_rareNonI
nheritedData->m_grid->m_gridTemplateColumns; } | 843 const Vector<GridTrackSize>& gridTemplateColumns() const { return m_rareNonI
nheritedData->m_grid->m_gridTemplateColumns; } |
851 void setGridTemplateColumns(const Vector<GridTrackSize>& lengths) { SET_NEST
ED_VAR(m_rareNonInheritedData, m_grid, m_gridTemplateColumns, lengths); } | 844 void setGridTemplateColumns(const Vector<GridTrackSize>& lengths) { SET_NEST
ED_VAR(m_rareNonInheritedData, m_grid, m_gridTemplateColumns, lengths); } |
852 | 845 |
853 // grid-template-rows | 846 // grid-template-rows |
854 static Vector<GridTrackSize> initialGridTemplateRows() { return Vector<GridT
rackSize>(); /* none */ } | 847 static Vector<GridTrackSize> initialGridTemplateRows() { return Vector<GridT
rackSize>(); /* none */ } |
855 const Vector<GridTrackSize>& gridTemplateRows() const { return m_rareNonInhe
ritedData->m_grid->m_gridTemplateRows; } | 848 const Vector<GridTrackSize>& gridTemplateRows() const { return m_rareNonInhe
ritedData->m_grid->m_gridTemplateRows; } |
856 void setGridTemplateRows(const Vector<GridTrackSize>& lengths) { SET_NESTED_
VAR(m_rareNonInheritedData, m_grid, m_gridTemplateRows, lengths); } | 849 void setGridTemplateRows(const Vector<GridTrackSize>& lengths) { SET_NESTED_
VAR(m_rareNonInheritedData, m_grid, m_gridTemplateRows, lengths); } |
857 | 850 |
858 // justify-self | |
859 const StyleSelfAlignmentData& justifySelf() const { return m_rareNonInherite
dData->m_justifySelf; } | |
860 void setJustifySelf(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNonI
nheritedData, m_justifySelf, data); } | |
861 | |
862 // justify-items | |
863 const StyleSelfAlignmentData& justifyItems() const { return m_rareNonInherit
edData->m_justifyItems; } | |
864 void setJustifyItems(const StyleSelfAlignmentData& data) { SET_VAR(m_rareNon
InheritedData, m_justifyItems, data); } | |
865 | |
866 | |
867 // Width/height properties. | 851 // Width/height properties. |
868 static Length initialSize() { return Length(); } | 852 static Length initialSize() { return Length(); } |
869 static Length initialMaxSize() { return Length(MaxSizeNone); } | 853 static Length initialMaxSize() { return Length(MaxSizeNone); } |
870 static Length initialMinSize() { return Length(); } | 854 static Length initialMinSize() { return Length(); } |
871 | 855 |
872 // width | 856 // width |
873 const Length& width() const { return m_box->width(); } | 857 const Length& width() const { return m_box->width(); } |
874 void setWidth(const Length& v) { SET_VAR(m_box, m_width, v); } | 858 void setWidth(const Length& v) { SET_VAR(m_box, m_width, v); } |
875 | 859 |
876 // height | 860 // height |
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1904 void setOrderedNamedGridColumnLines(const OrderedNamedGridLines& orderedName
dGridColumnLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_orderedName
dGridColumnLines, orderedNamedGridColumnLines); } | 1888 void setOrderedNamedGridColumnLines(const OrderedNamedGridLines& orderedName
dGridColumnLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_orderedName
dGridColumnLines, orderedNamedGridColumnLines); } |
1905 void setOrderedNamedGridRowLines(const OrderedNamedGridLines& orderedNamedGr
idRowLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_orderedNamedGridR
owLines, orderedNamedGridRowLines); } | 1889 void setOrderedNamedGridRowLines(const OrderedNamedGridLines& orderedNamedGr
idRowLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_orderedNamedGridR
owLines, orderedNamedGridRowLines); } |
1906 void setAutoRepeatNamedGridColumnLines(const NamedGridLinesMap& namedGridCol
umnLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRepeatNamedGrid
ColumnLines, namedGridColumnLines); } | 1890 void setAutoRepeatNamedGridColumnLines(const NamedGridLinesMap& namedGridCol
umnLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRepeatNamedGrid
ColumnLines, namedGridColumnLines); } |
1907 void setAutoRepeatNamedGridRowLines(const NamedGridLinesMap& namedGridRowLin
es) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRepeatNamedGridRowLin
es, namedGridRowLines); } | 1891 void setAutoRepeatNamedGridRowLines(const NamedGridLinesMap& namedGridRowLin
es) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRepeatNamedGridRowLin
es, namedGridRowLines); } |
1908 void setAutoRepeatOrderedNamedGridColumnLines(const OrderedNamedGridLines& o
rderedNamedGridColumnLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_a
utoRepeatOrderedNamedGridColumnLines, orderedNamedGridColumnLines); } | 1892 void setAutoRepeatOrderedNamedGridColumnLines(const OrderedNamedGridLines& o
rderedNamedGridColumnLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_a
utoRepeatOrderedNamedGridColumnLines, orderedNamedGridColumnLines); } |
1909 void setAutoRepeatOrderedNamedGridRowLines(const OrderedNamedGridLines& orde
redNamedGridRowLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRep
eatOrderedNamedGridRowLines, orderedNamedGridRowLines); } | 1893 void setAutoRepeatOrderedNamedGridRowLines(const OrderedNamedGridLines& orde
redNamedGridRowLines) { SET_NESTED_VAR(m_rareNonInheritedData, m_grid, m_autoRep
eatOrderedNamedGridRowLines, orderedNamedGridRowLines); } |
1910 void setNamedGridArea(const NamedGridAreaMap& namedGridArea) { SET_NESTED_VA
R(m_rareNonInheritedData, m_grid, m_namedGridArea, namedGridArea); } | 1894 void setNamedGridArea(const NamedGridAreaMap& namedGridArea) { SET_NESTED_VA
R(m_rareNonInheritedData, m_grid, m_namedGridArea, namedGridArea); } |
1911 void setNamedGridAreaRowCount(size_t rowCount) { SET_NESTED_VAR(m_rareNonInh
eritedData, m_grid, m_namedGridAreaRowCount, rowCount); } | 1895 void setNamedGridAreaRowCount(size_t rowCount) { SET_NESTED_VAR(m_rareNonInh
eritedData, m_grid, m_namedGridAreaRowCount, rowCount); } |
1912 void setNamedGridAreaColumnCount(size_t columnCount) { SET_NESTED_VAR(m_rare
NonInheritedData, m_grid, m_namedGridAreaColumnCount, columnCount); } | 1896 void setNamedGridAreaColumnCount(size_t columnCount) { SET_NESTED_VAR(m_rare
NonInheritedData, m_grid, m_namedGridAreaColumnCount, columnCount); } |
1913 | 1897 |
1914 // Justify-self utility functions. | 1898 // align-content utility functions. |
1915 ItemPosition justifySelfPosition() const { return m_rareNonInheritedData->m_
justifySelf.position(); } | 1899 ContentPosition alignContentPosition() const { return m_rareNonInheritedData
->m_alignContent.position(); } |
1916 OverflowAlignment justifySelfOverflowAlignment() const { return m_rareNonInh
eritedData->m_justifySelf.overflow(); } | 1900 ContentDistributionType alignContentDistribution() const { return m_rareNonI
nheritedData->m_alignContent.distribution(); } |
1917 void setJustifySelfPosition(ItemPosition position) { m_rareNonInheritedData.
access()->m_justifySelf.setPosition(position); } | 1901 OverflowAlignment alignContentOverflowAlignment() const { return m_rareNonIn
heritedData->m_alignContent.overflow(); } |
1918 void setJustifySelfOverflow(OverflowAlignment overflow) { m_rareNonInherited
Data.access()->m_justifySelf.setOverflow(overflow); } | 1902 void setAlignContentPosition(ContentPosition position) { m_rareNonInheritedD
ata.access()->m_alignContent.setPosition(position); } |
| 1903 void setAlignContentDistribution(ContentDistributionType distribution) { m_r
areNonInheritedData.access()->m_alignContent.setDistribution(distribution); } |
| 1904 void setAlignContentOverflow(OverflowAlignment overflow) { m_rareNonInherite
dData.access()->m_alignContent.setOverflow(overflow); } |
1919 | 1905 |
1920 // Justify-items utility functions. | 1906 // justify-content utility functions. |
| 1907 ContentPosition justifyContentPosition() const { return m_rareNonInheritedDa
ta->m_justifyContent.position(); } |
| 1908 ContentDistributionType justifyContentDistribution() const { return m_rareNo
nInheritedData->m_justifyContent.distribution(); } |
| 1909 OverflowAlignment justifyContentOverflowAlignment() const { return m_rareNon
InheritedData->m_justifyContent.overflow(); } |
| 1910 void setJustifyContentPosition(ContentPosition position) { m_rareNonInherite
dData.access()->m_justifyContent.setPosition(position); } |
| 1911 void setJustifyContentDistribution(ContentDistributionType distribution) { m
_rareNonInheritedData.access()->m_justifyContent.setDistribution(distribution);
} |
| 1912 void setJustifyContentOverflow(OverflowAlignment overflow) { m_rareNonInheri
tedData.access()->m_justifyContent.setOverflow(overflow); } |
| 1913 |
| 1914 // align-items utility functions. |
| 1915 ItemPosition alignItemsPosition() const { return m_rareNonInheritedData->m_a
lignItems.position(); } |
| 1916 OverflowAlignment alignItemsOverflowAlignment() const { return m_rareNonInhe
ritedData->m_alignItems.overflow(); } |
| 1917 void setAlignItemsPosition(ItemPosition position) { m_rareNonInheritedData.a
ccess()->m_alignItems.setPosition(position); } |
| 1918 void setAlignItemsOverflow(OverflowAlignment overflow) { m_rareNonInheritedD
ata.access()->m_alignItems.setOverflow(overflow); } |
| 1919 |
| 1920 // justify-items utility functions. |
1921 ItemPosition justifyItemsPosition() const { return m_rareNonInheritedData->m
_justifyItems.position(); } | 1921 ItemPosition justifyItemsPosition() const { return m_rareNonInheritedData->m
_justifyItems.position(); } |
1922 OverflowAlignment justifyItemsOverflowAlignment() const { return m_rareNonIn
heritedData->m_justifyItems.overflow(); } | 1922 OverflowAlignment justifyItemsOverflowAlignment() const { return m_rareNonIn
heritedData->m_justifyItems.overflow(); } |
1923 ItemPositionType justifyItemsPositionType() const { return m_rareNonInherite
dData->m_justifyItems.positionType(); } | 1923 ItemPositionType justifyItemsPositionType() const { return m_rareNonInherite
dData->m_justifyItems.positionType(); } |
1924 void setJustifyItemsPosition(ItemPosition position) { m_rareNonInheritedData
.access()->m_justifyItems.setPosition(position); } | 1924 void setJustifyItemsPosition(ItemPosition position) { m_rareNonInheritedData
.access()->m_justifyItems.setPosition(position); } |
1925 void setJustifyItemsOverflow(OverflowAlignment overflow) { m_rareNonInherite
dData.access()->m_justifyItems.setOverflow(overflow); } | 1925 void setJustifyItemsOverflow(OverflowAlignment overflow) { m_rareNonInherite
dData.access()->m_justifyItems.setOverflow(overflow); } |
1926 void setJustifyItemsPositionType(ItemPositionType positionType) { m_rareNonI
nheritedData.access()->m_justifyItems.setPositionType(positionType); } | 1926 void setJustifyItemsPositionType(ItemPositionType positionType) { m_rareNonI
nheritedData.access()->m_justifyItems.setPositionType(positionType); } |
1927 | 1927 |
| 1928 // align-self utility functions. |
| 1929 ItemPosition alignSelfPosition() const { return m_rareNonInheritedData->m_al
ignSelf.position(); } |
| 1930 OverflowAlignment alignSelfOverflowAlignment() const { return m_rareNonInher
itedData->m_alignSelf.overflow(); } |
| 1931 void setAlignSelfPosition(ItemPosition position) { m_rareNonInheritedData.ac
cess()->m_alignSelf.setPosition(position); } |
| 1932 void setAlignSelfOverflow(OverflowAlignment overflow) { m_rareNonInheritedDa
ta.access()->m_alignSelf.setOverflow(overflow); } |
| 1933 |
| 1934 // justify-self utility functions. |
| 1935 ItemPosition justifySelfPosition() const { return m_rareNonInheritedData->m_
justifySelf.position(); } |
| 1936 OverflowAlignment justifySelfOverflowAlignment() const { return m_rareNonInh
eritedData->m_justifySelf.overflow(); } |
| 1937 void setJustifySelfPosition(ItemPosition position) { m_rareNonInheritedData.
access()->m_justifySelf.setPosition(position); } |
| 1938 void setJustifySelfOverflow(OverflowAlignment overflow) { m_rareNonInherited
Data.access()->m_justifySelf.setOverflow(overflow); } |
| 1939 |
1928 // Writing mode utility functions. | 1940 // Writing mode utility functions. |
1929 bool isHorizontalWritingMode() const { return blink::isHorizontalWritingMode
(getWritingMode()); } | 1941 bool isHorizontalWritingMode() const { return blink::isHorizontalWritingMode
(getWritingMode()); } |
1930 bool isFlippedLinesWritingMode() const { return blink::isFlippedLinesWriting
Mode(getWritingMode()); } | 1942 bool isFlippedLinesWritingMode() const { return blink::isFlippedLinesWriting
Mode(getWritingMode()); } |
1931 bool isFlippedBlocksWritingMode() const { return blink::isFlippedBlocksWriti
ngMode(getWritingMode()); } | 1943 bool isFlippedBlocksWritingMode() const { return blink::isFlippedBlocksWriti
ngMode(getWritingMode()); } |
1932 | 1944 |
1933 // Will-change utility functions. | 1945 // Will-change utility functions. |
1934 bool hasWillChangeCompositingHint() const; | 1946 bool hasWillChangeCompositingHint() const; |
1935 bool hasWillChangeOpacityHint() const { return willChangeProperties().contai
ns(CSSPropertyOpacity); } | 1947 bool hasWillChangeOpacityHint() const { return willChangeProperties().contai
ns(CSSPropertyOpacity); } |
1936 bool hasWillChangeTransformHint() const; | 1948 bool hasWillChangeTransformHint() const; |
1937 | 1949 |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2567 } | 2579 } |
2568 | 2580 |
2569 inline bool ComputedStyle::hasPseudoElementStyle() const | 2581 inline bool ComputedStyle::hasPseudoElementStyle() const |
2570 { | 2582 { |
2571 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; | 2583 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; |
2572 } | 2584 } |
2573 | 2585 |
2574 } // namespace blink | 2586 } // namespace blink |
2575 | 2587 |
2576 #endif // ComputedStyle_h | 2588 #endif // ComputedStyle_h |
OLD | NEW |